75954951d6ad54b404149be263f9cd09a101d856
[gcc.git] / gcc / ChangeLog
1 2011-06-13 Jan Hubicka <jh@suse.cz>
2
3 * ipa-utils.c (postorder_stack): New structure.
4 (ipa_reverse_postorder): Handle aliases.
5
6 2011-06-13 Jan Hubicka <jh@suse.cz>
7
8 * ipa-inline.c (reset_edge_caches): Walk aliases.
9 (update_caller_keys): Do not test inlinability of aliases.
10 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
11 (do_estimate_growth): Fix typo.
12
13 2011-06-13 Jan Hubicka <jh@suse.cz>
14
15 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
16 (can_remove_node_now_p): ... here; handle same comdat groups.
17 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
18 (inline_call): Update use of can_remove_node_now_p.
19
20 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21
22 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
23 condition to disallow non-identical memory locations.
24 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
25 preference to bit manipulation instructions.
26
27 2011-06-13 Jan Hubicka <jh@suse.cz>
28
29 * cgraph.c (cgraph_for_node_thunks_and_aliases,
30 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
31 (nonremovable_p): New function.
32 (cgraph_can_remove_if_no_direct_calls_p): New function.
33 (used_from_object_file_p): New functoin.
34 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for references
35 from aliases.
36 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
37 * ipa-inline.c (check_caller_edge): New function.
38 (want_inline_function_called_once_p): Use it; accept aliases called once, too.
39 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
40
41 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
42
43 PR target/48454
44 * config/arm/neon.md (vec_pack_trunc): Set the lengths
45 correctly for the case with Quad vectors.
46
47 2011-06-13 Jakub Jelinek <jakub@redhat.com>
48 Ira Rosen <ira.rosen@linaro.org>
49
50 PR tree-optimization/49352
51 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
52 all, make sure loop_use_stmt after the loop is a def stmt of a used
53 SSA_NAME that is the only one defined inside of the loop. Don't
54 check for COND_EXPR and GIMPLE_BINARY_RHS.
55 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
56 check_reduction is true.
57
58 2011-06-11 Jan Hubicka <jh@suse.cz>
59
60 PR middle-end/49373
61 * ipa.c (cgraph_externally_visible_p): Check resolution info.
62
63 2011-06-11 Jan Hubicka <jh@suse.cz>
64
65 PR middle-end/48836
66 * ipa-inline-transform.c: Include tree-pass.h
67 (inline_transform): Set TODO_update_ssa_only_virtuals.
68 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
69
70 2011-06-11 Jan Hubicka <jh@suse.cz>
71
72 PR middle-end/49378
73 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
74 aliases and thunks.
75
76 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
77
78 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
79 Take number of iterations to peel into account for equally frequent
80 misalignment values.
81
82 2011-06-11 Jan Hubicka <jh@suse.cz>
83
84 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
85 aliases.
86
87 2011-06-11 Jan Hubicka <jh@suse.cz>
88
89 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying args.
90 (ipa_update_after_lto_read): Likewise.
91 (ipa_write_node_info): Do not sream call_with_var_arguments.
92 (ipa_read_node_info): Likewise.
93
94 2011-06-11 Jan Hubicka <jh@suse.cz>
95
96 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
97
98 2011-06-11 Jan Hubicka <jh@suse.cz>
99
100 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
101 (lto_symtab_resolve_can_prevail_p): Likewise.
102 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
103 * cgraph.c (same_body_aliases_done): New global var.
104 (cgraph_same_body_alias_1): Rename to ...
105 (cgraph_create_function_alias): ... this one; reorg to new
106 representation.
107 (cgraph_same_body_alias): Use cgraph_create_function_alias;
108 record references when asked to.
109 (cgraph_add_thunk): Fix formating.
110 (cgraph_get_node): Kill same body alias code.
111 (cgraph_node_for_asm): Likewise.
112 (cgraph_remove_same_body_alias): Remove.
113 (cgraph_remove_node): Kill same body alias code.
114 (cgraph_mark_address_taken_node): Mark also the aliased function
115 as having address taken.
116 (dump_cgraph_node): Dump same body aliases.
117 (cgraph_for_node_thunks_and_aliases): Update for new alias
118 representation.
119 (cgraph_for_node_and_aliases): Likewise.
120 * cgraph.h (same_body): Kll pointer.
121 (same_body_alias): Update comment.
122 (same_body_aliases_done): Declare.
123 (cgraph_remove_same_body_alias): Remove declaration.
124 (cgraph_create_function_alias): Declare.
125 (cgraph_process_same_body_aliases): Declare.
126 (cgraph_function_with_gimple_body_p): Check for alias.
127 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
128 (cgraph_alias_aliased_node): New function.
129 (cgraph_function_node): Update for new aliases.
130 (cgraph_function_or_thunk_node): Likewise.
131 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
132 (inline_call): Remove dead aliases.
133 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler name
134 hack for same body aliases.
135 (clone_of_p): Look through aliases.
136 (verify_cgraph_node): Verify aliases.
137 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
138 (cgraph_process_same_body_aliases): New function.
139 (process_function_and_variable_attributes): Disable weakref warning on
140 alias.
141 (cgraph_analyze_functions): Handle aliases.
142 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
143 (assemble_thunks): Rename to ...
144 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
145 (cgraph_expand_function): Remove alias output code.
146 (cgraph_output_in_order): Skip aliases.
147 (cgraph_preserve_function_body_p): Aliases don't need preserving.
148 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
149 (ipa_record_reference): Do not assert on alias references.
150 (ipa_ref_has_aliases_p): New function.
151 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
152 (ipa_ref_has_aliases_p): Declare.
153 * lto-cgraph.c (lto_output_node): Handle aliases.
154 (input_node): Likewise.
155 * lto-streamer-out.c (lto_output): Skip aliases.
156 (produce_symtab): Kill same_body_alias code.
157 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
158 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
159 * ipa-inline.c (update_caller_keys): Walk aliases.
160 (inline_small_functions): Fix thinko in previous patch.
161 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
162 (function_and_variable_visibility): Do not walk same body aliases.
163 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
164 (ipa_pta_execute): Use it.
165
166 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
167
168 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
169 (*vec_dupv2df): Rename from vec_dupv2df.
170 (vec_dupv2df): New expander.
171
172 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
173
174 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
175
176 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
177
178 * config/i386/i386.md: Use default value in "isa" attribute.
179 * config/i386/sse.md: Ditto.
180 * config/i386/mmx.md: Ditto.
181
182 2011-06-10 Wei Guozhi <carrot@google.com>
183
184 PR target/45335
185 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
186 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
187 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
188 related peephole2.
189 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
190 related peephole2.
191 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
192 (arm_legitimate_ldrd_p): New prototype.
193 (arm_output_ldrd): New prototype.
194 * config/arm/arm.c (arm_check_ldrd_operands): New function.
195 (arm_legitimate_ldrd_p): New function.
196 (arm_output_ldrd): New function.
197
198 2011-06-10 David Li <davidxl@google.com>
199
200 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
201 * passes.c (passr_eq): New function.
202 (create_pass_tab): New function.
203 (pass_traverse): New function.
204 (dump_one_pass): New function.
205 (dump_pass_list): New function.
206 (dump_passes): New function.
207
208 2011-06-10 Jan Hubicka <jh@suse.cz>
209
210 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
211 setting the nothrow flag.
212 * ipa-reference.c (propagate): Skip aliases.
213 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
214 (propagate_nothrow): Skip aliases; do not update cgraph.
215 (local_pure_const): Do not update cgraph.
216 * tree-profile.c (tree_profiling): Do fixup_cfg.
217
218 2011-06-10 Jan Hubicka <jh@suse.cz>
219
220 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
221 (cgraph_local_node_p): ... here; handle aliases.
222 (has_addr_references_p): Break out from ...;
223 (cgraph_remove_unreachable_nodes) ... here.
224
225 2011-06-10 Jan Hubicka <jh@suse.cz>
226
227 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
228 * common.opt (flag_inline_functions_called_once): Do not
229 initialize to 1.
230
231 2011-06-10 Jan Hubicka <jh@suse.cz>
232
233 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
234 (ipcp_initialize_node_lattices): Do not deal with aliases;
235 Do not try to propagate through thunks.
236 (ipcp_change_tops_to_bottom): Do not deal with aliases.
237
238 2011-06-10 Jan Hubicka <jh@suse.cz>
239
240 * ipa-prop.c (ipa_write_node_info): Stream jump functions
241 for indirect calls.
242 (ipa_read_node_info): Likewise.
243
244 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
245
246 PR lto/49302
247 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
248 (build_and_insert_call): Likewise.
249 (build_and_insert_ref): New.
250 (gimple_expand_builtin_pow): Minor cleanup.
251 (gimple_expand_builtin_cabs): New.
252 (execute_cse_sincos): Add case for BUILT_IN_CABS.
253
254 2011-06-10 Jan Hubicka <jh@suse.cz>
255
256 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
257 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
258 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
259 (ipcp_propagate_stage): Skip aliases when propagating.
260 (ipcp_need_redirect_p): Skip aliases.
261 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
262 collect_callers_of_node.
263 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
264 for aliases.
265 (ipa_compute_jump_functions): Look through aliases.
266
267 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268
269 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
270
271 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
272
273 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
274 Adjust comments.
275 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
276
277 2011-06-10 Jan Hubicka <jh@suse.cz>
278
279 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
280 Update call of gimple_get_virt_method_for_binfo.
281 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
282 refuse_thunks parameter.
283 (gimple_fold_call): Update.
284 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
285
286 2011-06-10 Jan Hubicka <jh@suse.cz>
287
288 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
289 (not_all_callers_have_enough_arguments_p): ... this one; turn into
290 worker for cgraph_for_node_and_aliases.
291 (convert_callers_for_node): Break out from ...
292 (convert_callers): ... here.
293 (modify_function): Use collect_callers_of_node.
294 (ipa_early_sra): Use cgraph_for_node_and_aliases.
295
296 2011-06-10 Richard Guenther <rguenther@suse.de>
297
298 PR tree-optimization/49361
299 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
300 when not already in gimple form.
301
302 2011-06-10 Richard Guenther <rguenther@suse.de>
303
304 PR bootstrap/49344
305 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
306 FOR_EACH_PHI_OR_STMT_USE.
307
308 2011-06-10 Jan Hubicka <jh@suse.cz>
309
310 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
311 (clone_inlined_nodes): ... here.
312 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
313 to real destination prior inlining.
314 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
315 can_early_inline_edge_p, want_early_inline_function_p,
316 want_early_inline_function_p, want_inline_small_function_p,
317 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
318 edge_badness, update_all_callee_keys, lookup_recursive_calls,
319 add_new_edges_to_heap, inline_small_functions, flatten_function,
320 inline_always_inline_functions, early_inline_small_functions): Use
321 cgraph_function_or_thunk_node.
322 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
323 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
324 (do_estimate_edge_growth_1): Break out from ...
325 (do_estimate_growth) ... here; walk aliases.
326 (inline_generate_summary): Skip aliases.
327
328 2011-06-10 Richard Guenther <rguenther@suse.de>
329
330 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
331 forward when combining, visit inserted stmts when a stmt was changed.
332
333 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
334
335 * tree.h (error_operand_p): Add.
336 * dbxout.c (dbxout_type_fields): Use the latter.
337 * c-decl.c (add_stmt): Likewise.
338 * gimplify.c (omp_add_variable, omp_notice_variable,
339 gimplify_scan_omp_clauses): Likewise.
340
341 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
342
343 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
344 when a value is actually passed in regs.
345
346 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
347 Laurent Rougé <laurent.rouge@menta.fr>
348
349 * doc/invoke.texi (SPARC options): Add -mflat.
350 * config/sparc/sparc.opt: Likewise.
351 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
352 (sparc_flat_expand_prologue): Declare.
353 (sparc_flat_expand_epilogue): Likewise.
354 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
355 (CPP_ENDIAN_SPEC): Replace with...
356 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
357 (CPP_SPEC): Adjust to above change.
358 (EXTRA_SPECS): Likewise.
359 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
360 (INCOMING_REGNO): Likewise.
361 (OUTGOING_REGNO): Likewise.
362 (LOCAL_REGNO): Likewise.
363 (SETUP_FRAME_ADDRESSES): Likewise.
364 (FIXED_REGISTERS): Set 0 for %fp.
365 (CALL_USED_REGISTERS): Likewise.
366 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
367 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
368 (RETURN_ADDR_REGNUM): Define.
369 (RETURN_ADDR_RTX): Use it.
370 (INCOMING_RETURN_ADDR_REGNUM): Define.
371 (INCOMING_RETURN_ADDR_RTX): Use it.
372 (DWARF_FRAME_RETURN_COLUMN): Likewise.
373 (EH_RETURN_REGNUM): Define.
374 (EH_RETURN_STACKADJ_RTX): Use it.
375 (EH_RETURN_HANDLER_RTX): Delete.
376 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
377 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
378 Delete.
379 (struct machine_function): Add frame_size, apparent_frame_size,
380 frame_base_reg, frame_base_offset, n_global_fp_regs and
381 save_local_in_regs_p fields.
382 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
383 sparc_frame_base_offset, sparc_n_global_fp_regs,
384 sparc_save_local_in_regs_p): New macros.
385 (sparc_option_override): Error out if -fcall-saved-REG is specified
386 for Out registers.
387 (eligible_for_restore_insn): Fix formatting.
388 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
389 (eligible_for_sibcall_delay): Likewise.
390 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
391 (sparc_legitimate_address_p): Adjust to above change.
392 (save_global_or_fp_reg_p): New predicate.
393 (return_addr_reg_needed_p): Likewise.
394 (save_local_or_in_reg_p): Likewise.
395 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
396 (SORR_SAVE, SORR_RESTORE): Delete.
397 (sorr_pred_t): New typedef.
398 (sorr_act_t): New enum.
399 (save_or_restore_regs): Rename to...
400 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
401 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
402 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
403 mechanism. Add CFI information for double-word saves in 32-bit mode.
404 (emit_adjust_base_to_offset): New function extracted from...
405 (emit_save_or_restore_regs): ...this. Rename the rest to...
406 (emit_save_or_restore_regs_global_fp_regs): ...this.
407 (emit_save_or_restore_regs_local_in_regs): New function.
408 (gen_create_flat_frame_[123]): New functions.
409 (sparc_expand_prologue): Use SIZE local variable. Adjust.
410 (sparc_flat_expand_prologue): New function.
411 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
412 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
413 (sparc_flat_expand_epilogue): New function.
414 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
415 (output_return): Likewise.
416 (output_sibcall): Likewise.
417 (sparc_output_mi_thunk): Likewise.
418 (sparc_frame_pointer_required): Likewise.
419 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
420 function optimization.
421 * config/sparc/sparc.md (flat): New attribute.
422 (prologue): Add TARGET_FLAT handling.
423 (save_register_window): Disable if TARGET_FLAT.
424 (create_flat_frame_[123]): New patterns.
425 (epilogue): Add TARGET_FLAT handling.
426 (sibcall_epilogue): Likewise.
427 (eh_return): New expander.
428 (eh_return_internal): New insn and splitter.
429 (return_internal): Add TARGET_FLAT handling.
430 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
431 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
432 (nonlocal_goto): Add TARGET_FLAT handling.
433 * config/sparc/t-elf: Add -mflat multilib.
434 * config/sparc/t-leon: Likewise.
435
436 2011-06-10 Jan Hubicka <jh@suse.cz>
437
438 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
439 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
440 (self_recursive_p): Use cgraph_function_node.
441 (propagate_pure_const): Likewise.
442 (propagate_nothrow): Likewise.
443 * ipa-reference.c (ipa_reference_get_not_read_global): Use
444 cgraph_function_node.
445 (propagate_bits): Likewise.
446 (propagate): Likewise.
447
448 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
449 Richard Earnshaw <rearnsha@arm.com>
450
451 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
452 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
453 (*thumb2_movdi_vfp): Delete.
454 (*arm_movdi_vfp_cortexa8): Delete.
455 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
456 (*movdi_vfp_cortexa8): Likewise.
457
458 2011-06-10 Richard Guenther <rguenther@suse.de>
459
460 * stor-layout.c (initialize_sizetypes): Give names to all
461 sizetype kinds.
462
463 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
464
465 PR tree-optimization/49318
466 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
467 irrelevant pattern statements.
468
469 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
470
471 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
472
473 PR bootstrap/49354
474 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
475 to last assignment.
476
477 2011-06-09 Jan Hubicka <jh@suse.cz>
478
479 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
480 do not recompute reachable flag.
481 (cgraph_finalize_function, cgraph_analyze_functions): Set
482 redefined_extern_inline here.
483
484 2011-06-09 Jan Hubicka <jh@suse.cz>
485
486 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
487 (cgraph_only_called_directly_p): ... this one; bring offline.
488 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
489 varpool_used_from_object_file_p): Drop names from the declaratoin.
490 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
491 collect_callers_of_node): New.
492 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
493 (cgraph_edge_recursive_p): Use cgraph_function_node.
494 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
495 (cgraph_node_cannot_be_local_p_1): Break out from ...
496 (cgraph_node_can_be_local_p): ... here; walk aliases.
497 (cgraph_for_node_thunks_and_aliases): New function.
498 (cgraph_for_node_and_aliases): New function.
499 (cgraph_make_node_local_1): Break out from ...
500 (cgraph_make_node_local) ... here; use
501 cgraph_for_node_thunks_and_aliases.
502 (cgraph_set_nothrow_flag_1): Break out from ...
503 (cgraph_set_nothrow_flag) ... here;
504 use cgraph_for_node_thunks_and_aliases.
505 (cgraph_set_const_flag_1): Break out from ...
506 (cgraph_set_const_flag) ... here;
507 use cgraph_for_node_thunks_and_aliases.
508 (cgraph_set_pure_flag_1): Break out from ...
509 (cgraph_set_pure_flag) ... here;
510 use cgraph_for_node_thunks_and_aliases.
511 (cgraph_propagate_frequency_1): Break out from ...
512 (cgraph_propagate_frequency) ... here; use
513 cgraph_for_node_thunks_and_aliases.
514 (cgraph_used_from_object_file_p): Do not care about aliases.
515 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
516 New functions.
517 (collect_callers_of_node_1, collect_callers_of_node): New functions.
518
519 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
520
521 PR rtl-optimization/49154
522 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
523 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
524 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
525 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
526 * config/cris/cris.h (cris_register_move_cost): Remove
527 !TARGET_V32 code. Tweak comments.
528
529 2011-06-09 Jan Hubicka <jh@suse.cz>
530
531 * cgraphbuild.c (record_eh_tables): Mark personality function as having
532 address taken.
533
534 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
535
536 PR rtl-optimization/49154
537 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
538 is a matching slot in the hashtable, assign it to classes_ptr.
539
540 PR rtl-optimization/49154
541 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
542 register classes.
543 * doc/tm.texi: Regenerate.
544
545 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
546
547 PR target/49307
548 * config/sh/sh.md (UNSPEC_CHKADD): New.
549 (chk_guard_add): New define_insn_and_split.
550 (symGOT_load): Use chk_guard_add instead of blockage.
551
552 2011-06-09 Kai Tietz <ktietz@redhat.com>
553
554 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
555
556 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
557
558 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
559
560 2011-06-09 Wei Guozhi <carrot@google.com>
561
562 PR target/46975
563 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
564 (peephole2 for conditional move): Generate 16 bit instructions.
565
566 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
567
568 * config/i386/i386.md (*movdi_internal_rex64): Merge
569 alternatives 6 and 8.
570
571 2011-06-09 David Li <davidxl@google.com>
572
573 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
574 * passes.c (passr_eq): New function.
575 (create_pass_tab): New function.
576 (pass_traverse): New function.
577 (dump_one_pass): New function.
578 (dump_pass_list): New function.
579 (dump_passes): New function.
580
581 2011-06-09 David Li <davidxl@google.com>
582
583 * tree-complex.c (tree_lower_complex): Gate cleanup.
584 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
585 (execute_optimize_stdarg): Ditto.
586 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
587 (execute_cleanup_eh_1): Ditto.
588 (execute_cleanup_eh): Ditto.
589 * gcse.c (gate_rtl_pre): Ditto.
590 (execute_rtl_pre): Ditto.
591 * except.c (finish_eh_generation): Ditto.
592 (convert_to_eh_region_ranges): Ditto.
593 * cprop.c (one_cprop_pass): Ditto.
594
595 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
596
597 PR target/48673
598 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
599 in all basic blocks.
600
601 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
602
603 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
604 (HAVE_ENABLE_EXECUTE_STACK): Define.
605 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
606 (HAVE_ENABLE_EXECUTE_STACK): Define.
607 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
608 (HAVE_ENABLE_EXECUTE_STACK): Define.
609 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
610 (ENABLE_EXECUTE_STACK): Remove.
611 (HAVE_ENABLE_EXECUTE_STACK): Define.
612 [IN_LIBGCC2]: Don't include <windows.h>.
613 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
614 (HAVE_ENABLE_EXECUTE_STACK): Define.
615 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
616 (HAVE_ENABLE_EXECUTE_STACK): Define.
617 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
618 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
619 (HAVE_ENABLE_EXECUTE_STACK): Define.
620 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
621 (HAVE_ENABLE_EXECUTE_STACK): Define.
622 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
623 (HAVE_ENABLE_EXECUTE_STACK): Define.
624 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
625 (HAVE_ENABLE_EXECUTE_STACK): Define.
626 * config/alpha/alpha.c (alpha_trampoline_init): Test
627 HAVE_ENABLE_EXECUTE_STACK.
628 * config/i386/i386.c (ix86_trampoline_init): Likewise.
629 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
630 (sparc64_initialize_trampoline): Likewise.
631 * libgcc2.c [L_enable_execute_stack]: Remove.
632 * system.h (ENABLE_EXECUTE_STACK): Poison.
633 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
634 * doc/tm.texi: Regenerate.
635 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
636
637 2011-06-09 Jakub Jelinek <jakub@redhat.com>
638
639 PR middle-end/49308
640 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
641 variable. After resetting and rescanning insn continue with previous
642 statement.
643
644 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
645
646 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
647 (gcc_cv_ld_hidden): Likewise.
648 * configure: Regenerate.
649 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
650 (ix86_stack_protect_fail): Mark unused.
651 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
652 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
653 [TARGET_MACHO]: Don't define.
654 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
655 (TARGET_STACK_PROTECT_FAIL): Likewise.
656 (rs6000_stack_protect_fail): Mark unused.
657 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
658 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
659
660 2011-06-08 Andi Kleen <ak@linux.intel.com>
661
662 * varasm.c (get_section): Print location of other conflict
663 for section conflicts.
664
665 2011-06-08 Andi Kleen <ak@linux.intel.com>
666
667 * config/i386/driver-i386.c (host_detect_local_cpu):
668 Add model 0x2d Intel CPU.
669
670 2011-06-08 Andi Kleen <ak@linux.intel.com>
671
672 * reginfo.c (global_regs_decl): Add.
673 (globalize_reg): Add decl parameter. Compute location. Pass location
674 to warnings and add inform. Store decl in global_regs_decl.
675 * rtl.h (globalize_reg): Update prototype.
676 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
677
678 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
679
680 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
681
682 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
683
684 PR target/49305
685 * config/sh/predicates.md (general_movsrc_operand): Check
686 mode for memory with indexed address for QI and HImode.
687 (general_movdst_operand): Likewise.
688
689 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
690
691 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
692
693 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
694
695 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
696 (num_ssa_operands): Likewise.
697 (op_iter_init_phiuse): Forward-declare.
698 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
699
700 2011-06-08 Nick Clifton <nickc@redhat.com>
701
702 * doc/invoke.texi (ARM Options): Update description of
703 -mthumb-interwork.
704
705 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
706
707 * config/i386/driver-i386.c (host_detect_local_cpu): Support
708 unknown Intel family 0x6 CPUs.
709
710 2011-06-08 Martin Jambor <mjambor@suse.cz>
711
712 * tree-sra.c (mark_rw_status): Removed.
713 (analyze_access_subtree): New parameter parent instead of
714 mark_read and mark_write, propagate from that.
715
716 2011-06-08 Julian Brown <julian@codesourcery.com>
717
718 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
719 for double-precision helper functions in hard-float mode if only
720 single-precision arithmetic is supported in hardware.
721
722 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
723
724 PR rtl-optimization/49303
725 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
726 code_motion_path_driver returned 0 or 1.
727 (sel_region_finish): Clear h_d_i_d.
728
729 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
730
731 * config/sh/sh.c (prepare_move_operands): Set pic register
732 appropriately for global and local dynamic tls models even
733 if flag_pic is unset.
734
735 2011-06-07 Jason Merrill <jason@redhat.com>
736
737 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
738
739 2011-06-07 Xinliang David Li <davidxl@google.com>
740 * passes.c (enable_disable_pass): Handle assembler name.
741 (is_pass_explicitly_enabled_or_disabled): Ditto.
742
743 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
744
745 PR tree-optimization/48497
746 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
747
748 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
749
750 PR tree-optimization/46728
751 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
752 to use gimple_val_nonnegative_real_p.
753 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
754 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
755
756 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
757
758 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
759
760 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
761
762 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
763 constant vectors.
764
765 2011-06-07 Richard Guenther <rguenther@suse.de>
766
767 * stor-layout.c (initialize_sizetypes): Initialize all
768 sizetypes based on target definitions.
769 (set_sizetype): Remove.
770 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
771 * tree.h (set_sizetype): Remove.
772
773 2011-06-07 Nick Clifton <nickc@redhat.com>
774
775 * config.gcc: Unify V850 architecture options and add support for
776 newer V850 architectures.
777 * config/v850/t-v850e: Delete.
778
779 2011-06-07 Richard Guenther <rguenther@suse.de>
780
781 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
782 Call set_sizetype from here.
783
784 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
785
786 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
787 (*maddhisi4tb, *maddhisi4tt): New define_insns.
788
789 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
790 Andrew Stubbs <ams@codesourcery.com>
791
792 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
793 multiplies.
794 * doc/md.texi (Canonicalization of Instructions): Document widening
795 multiply canonicalization.
796
797 2011-06-07 Jakub Jelinek <jakub@redhat.com>
798
799 PR gcov-profile/49299
800 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
801
802 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
803
804 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
805 a pointer.
806 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
807 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
808 vect_recog_pow_pattern): Likewise.
809 (vect_pattern_recog_1): Remove declaration.
810 (widened_name_p): Remove declaration. Add new argument to specify
811 whether to check that both types are either signed or unsigned.
812 (vect_recog_widen_mult_pattern): Update documentation. Handle
813 unsigned patterns and multiplication by constants.
814 (vect_pattern_recog_1): Update vect_recog_func references. Use
815 statement information from the statement returned from pattern
816 detection functions.
817 (vect_pattern_recog): Update vect_recog_func reference.
818 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
819 multiplication by a constant use the type of the other operand.
820
821 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
822
823 PR rtl-optimization/49145
824 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
825
826 2011-06-06 Jakub Jelinek <jakub@redhat.com>
827
828 PR debug/49262
829 * dwarf2out.c (native_encode_initializer): Decrement count in each
830 iteration.
831
832 PR debug/49294
833 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
834 non-MODE_INT modes.
835
836 PR c++/49264
837 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
838 if stmt folded into nothing.
839 * tree-inline.c (fold_marked_statements): If a builtin at the end of
840 a bb folded into nothing, just update cgraph edges and move to next bb.
841 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
842 to be NULL. Don't compute count and frequency if new_call is NULL.
843
844 2011-06-04 Diego Novillo <dnovillo@google.com>
845
846 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
847 (cgraph.o): Likewise.
848 (cgraphunit.o): Likewise.
849 * cgraphunit.c: Include lto-streamer.h
850 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
851 if LTO is enabled.
852 * lto-streamer-in.c (unpack_value_fields): Call
853 streamer_hooks.unpack_value_fields if set.
854 (lto_materialize_tree): For unhandled nodes, first try to
855 call lto_streamer_hooks.alloc_tree, if it exists.
856 (lto_input_ts_decl_common_tree_pointers): Move reading of
857 DECL_INITIAL to lto_streamer_read_tree.
858 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
859 (lto_streamer_read_tree): New.
860 (lto_reader_init): Rename from lto_init_reader.
861 Move initialization code to lto/lto.c.
862 * lto-streamer-out.c (pack_value_fields): Call
863 streamer_hooks.pack_value_fields if set.
864 (lto_output_tree_ref): For tree nodes that are not normally indexable,
865 call streamer_hooks.indexable_with_decls_p before giving up.
866 (lto_output_ts_decl_common_tree_pointers): Move handling
867 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
868 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
869 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
870 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
871 (lto_streamer_write_tree): New.
872 (lto_output): Call lto_streamer_init directly.
873 (lto_writer_init): Remove.
874 * lto-streamer.c (streamer_hooks): New.
875 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
876 instead of lto_preload_common_nodes.
877 (lto_is_streamable): Move from lto-streamer.h
878 (lto_streamer_hooks_init): New.
879 (streamer_hooks): New.
880 (streamer_hooks_init): New.
881 * lto-streamer.h (struct output_block): Forward declare.
882 (struct lto_input_block): Likewise.
883 (struct data_in): Likewise.
884 (struct bitpack_d): Likewise.
885 (struct streamer_hooks): Declare.
886 (streamer_hooks): Declare.
887 (lto_streamer_hooks_init): Declare.
888 (lto_streamer_write_tree): Declare.
889 (lto_streamer_read_tree): Declare.
890 (streamer_hooks_init): Declare.
891 (lto_is_streamable): Move to lto-streamer.c
892
893 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
894
895 * longlong.h (smul_ppmm): The resulting register pair contains the
896 higher order word first.
897
898 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
899
900 PR tree-optimization/46728
901 * builtins.c (powi_table): Remove.
902 (powi_lookup_cost): Remove.
903 (powi_cost): Remove.
904 (expand_powi_1): Remove.
905 (expand_powi): Remove.
906 (expand_builtin_pow_root): Remove.
907 (expand_builtin_pow): Remove.
908 (expand_builtin_powi): Eliminate handling of constant exponent.
909 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
910
911 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
912
913 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
914
915 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
916
917 * dce.c (reset_unmarked_insns_debug_uses): New.
918 (delete_unmarked_insns): Skip debug insns.
919 (prescan_insns_for_dce): Likewise.
920 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
921 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
922 active reg can be found.
923 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
924 (convert_regs_1): Use it.
925
926 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
927
928 * tree-pretty-print.c (dump_function_header): Add flags.
929 Don't dump decl_uid with nouid.
930 * tree-pretty-print.h (dump_function_header): Adjust.
931 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
932 * passes.c (pass_init_dump_file): Pass dump_flags on.
933 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
934
935 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
936
937 PR bootstrap/49270
938 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
939
940 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
941
942 PR tree-optimization/49243
943 * calls.c (setjmp_call_p): Also check if fndecl has the
944 returns_twice attribute.
945
946 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
947
948 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
949 -ffast-math etc.
950
951 2011-06-06 Richard Henderson <rth@redhat.com>
952 Georg-Johann Lay <avr@gjlay.de>
953
954 PR target/42210
955 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
956 New predicates.
957 * config/avr/avr.md ("insv"): New insn expander.
958 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
959 "*insv.not.io", "*insv.reg"): New insns.
960
961 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
962
963 PR target/49285
964 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
965 to nonimmediate_operand from memory_operand for the operand that is to
966 be forced to memory by the expander. Lose the constraints.
967
968 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
969
970 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
971 EH return when delayed branches are disabled.
972
973 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
974
975 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
976 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
977 calculation.
978 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
979 Simplify MODE_V1DF and MODE_V2SF handling.
980 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
981 Simplify MODE_SF handling.
982
983 2011-06-04 Jan Hubicka <jh@suse.cz>
984
985 PR tree-optimization/48893
986 PR tree-optimization/49091
987 PR tree-optimization/49179
988 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
989 Bounds check.
990
991 2011-06-04 Jan Hubicka <jh@suse.cz>
992
993 PR lto/48954
994 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
995 bitmaps.
996
997 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
998
999 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1000
1001 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1002
1003 PR target/49281
1004 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1005 to be strictly smaller than 1 << shiftcount.
1006
1007 2011-06-04 Jan Hubicka <jh@suse.cz>
1008
1009 PR tree-optimize/48929
1010 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1011 of empty predicate.
1012
1013 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1014
1015 PR debug/48333
1016 * calls.c (emit_call_1): Prefer the __builtin declaration of
1017 builtin functions.
1018
1019 2011-06-03 Diego Novillo <dnovillo@google.com>
1020
1021 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1022 (lto_input_tree_pointers): Likewise.
1023 * lto-streamer-out.c (pack_value_fields): Likewise.
1024 (lto_output_tree_pointers): Likewise.
1025 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1026 and OPTIMIZATION_NODE.
1027
1028 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1029
1030 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1031 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1032 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1033 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1034 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1035 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1036 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1037 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1038 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1039 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1040 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1041 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1042 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1043 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1044 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1045 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1046 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1047 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1048 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1049 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1050 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1051 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1052 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1053 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1054 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1055 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1056 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1057 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1058 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1059 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1060 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1061 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1062 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1063 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1064 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1065 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1066 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1067 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1068 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1069 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1070 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1071 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1072 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1073 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1074 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1075 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1076 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1077 * system.h (MD_UNWIND_SUPPORT): Poison.
1078 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1079 * doc/tm.texi: Regenerate.
1080 * unwind-dw2.c: Include md-unwind-support.h instead of
1081 MD_UNWIND_SUPPORT.
1082 * config/ia64/unwind-ia64.c: Likewise.
1083 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1084
1085 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1086
1087 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1088
1089 2011-06-03 Richard Henderson <rth@redhat.com>
1090 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1091
1092 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1093 (sigill_hdlr): Correct insn, insn size.
1094 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1095
1096 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1097
1098 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1099 t-slibgcc-dummy.
1100 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1101 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1102 * config/mips/t-iris: Remove.
1103 * config/mips/t-irix6: New file.
1104 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1105
1106 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1107
1108 * Makefile.in (LIB2ADDEHDEP): Remove.
1109 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1110 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1111 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1112 * config/t-darwin (LIB2ADDEHDEP): Remove.
1113 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1114 * config/t-linux (LIB2ADDEHDEP): Remove.
1115
1116 2011-06-03 Diego Novillo <dnovillo@google.com>
1117
1118 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1119 (lto_register_var_decl_in_symtab): Likewise.
1120 (lto_register_function_decl_in_symtab): Likewise.
1121 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1122 logic to uniquify_nodes.
1123
1124 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1125
1126 * config/alpha/t-osf5: Remove.
1127 * config/alpha/t-osf-pthread: Remove.
1128 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1129 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1130
1131 2011-06-03 Julian Brown <julian@codesourcery.com>
1132
1133 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1134 (strongarm1110): Use strongarm tuning.
1135 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1136 * config/arm/arm.c (arm_strongarm_tune): New.
1137 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1138 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1139 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1140 setting, using previous defaults or 1 for Cortex-A5.
1141 (arm_option_override): Set max_insns_skipped from current tuning.
1142
1143 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1144
1145 * doc/install.texi (Options specification): Document --with-specs.
1146
1147 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1148
1149 * config/arm/neon.md (orndi3_neon): Actually split it.
1150
1151 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1152
1153 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1154 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1155
1156 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1157
1158 PR debug/47590
1159 * target.def (delay_sched2, delay_vartrack): New.
1160 * doc/tm.texi.in: Update.
1161 * doc/tm.texi: Rebuild.
1162 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1163 * var-tracking.c (gate_handle_var_tracking): Likewise.
1164 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1165 (bfin_flag_var_tracking): Drop.
1166 (output_file_start): Don't save and override flag_var_tracking.
1167 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1168 (bfin_reorg): Test original variables.
1169 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1170 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1171 (ia64_flag_var_tracking): Drop.
1172 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1173 (ia64_file_start): Don't save and override flag_var_tracking.
1174 (ia64_override_options_after_change): Ditto
1175 flag_schedule_insns_after_reload.
1176 (ia64_reorg): Test original variables.
1177 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1178 (picochip_flag_var_tracking): Drop.
1179 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1180 (picochip_option_override): Don't save and override
1181 flag_schedule_insns_after_reload.
1182 (picochip_asm_file_start): Ditto flag_var_tracking.
1183 (picochip_reorg): Test original variables.
1184 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1185 (TARGET_DELAY_VARTRACK): Define.
1186 (spu_var_tracking): New.
1187 (spu_machine_dependent_reorg): Call it.
1188 (asm_file_start): Don't save and override flag_var_tracking.
1189
1190 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1191
1192 PR target/49163
1193 * config/sh/predicates.md (general_movsrc_operand): Return 0
1194 for memory and memory subreg of which address is an invalid
1195 indexed address for QI and HImode.
1196 (general_movdst_operand): Likewise.
1197
1198 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1201 edges only, when there is a non-local label in the function.
1202 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1203
1204 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1205
1206 * config/i386/constraints.md (Y3): New register constraint.
1207 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1208 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1209 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1210 *sse2_interleave_lowv2df.
1211
1212 2011-06-02 Julian Brown <julian@codesourcery.com>
1213
1214 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1215 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1216 (arm_cortex_a5_tune): New.
1217
1218 2011-06-02 Julian Brown <julian@codesourcery.com>
1219
1220 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1221 * config/arm/arm.c (arm_default_branch_cost): New.
1222 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1223 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1224 (arm_fa726_tune): Set branch_cost field using
1225 arm_default_branch_cost.
1226 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1227 current_tune structure.
1228 * dojump.c (tm_p.h): Include file.
1229
1230 2011-06-02 Julian Brown <julian@codesourcery.com>
1231
1232 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1233 tuning.
1234 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1235 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1236 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1237 field.
1238 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1239 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1240 (arm_fa726te_tune): Add prefer_constant_pool setting.
1241 (arm_v6t2_tune, arm_cortex_tune): New.
1242 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1243 prefer_constant_pool setting.
1244
1245 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1246
1247 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1248 switch statement.
1249 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1250 (*movdf_internal) <case 6,7,8>: Ditto.
1251
1252 * config/i386/constraints.md (Y4): New register constraint.
1253 * config/i386/sse.md (vec_set<mode>_0): Merge with
1254 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1255 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1256 *vec_extractv2di_1_sse.
1257 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1258 and *vec_concatv2di_rex64_sse.
1259
1260 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1261
1262 PR target/48807
1263 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1264 of cgraph_local_info for null before attempting to use it.
1265
1266 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1267
1268 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1269 (current_function_dynamic_alloc_count): Delete.
1270 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1271 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1272 (expand_builtin_update_setjmp_buf): Remove dead code.
1273 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1274 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1275 support.
1276 * function.c (instantiate_virtual_regs): Likewise.
1277 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1278 for a block with a single abnormal incoming edge.
1279 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1280 (SETJMP_VIA_SAVE_AREA): Delete.
1281 * config/sparc/sparc-protos.h (load_got_register): Declare.
1282 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1283 (load_got_register): Make global.
1284 (sparc_frame_pointer_required): Add 'static'.
1285 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1286 (sparc_builtin_setjmp_frame_value): New function.
1287 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1288 (save_stack_nonlocal): New expander.
1289 (restore_stack_nonlocal): Likewise.
1290 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1291 (nonlocal_goto_internal): New insn.
1292 (goto_handler_and_restore): Delete.
1293 (builtin_setjmp_setup): Likewise.
1294 (do_builtin_setjmp_setup): Likewise.
1295 (setjmp): Likewise.
1296 (builtin_setjmp_receiver): New expander.
1297
1298 2011-06-01 David Li <davidxl@google.com>
1299
1300 PR middle-end/49261
1301 * tree-pretty-print.c (dump_function_header): Format cleanup.
1302
1303 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1304
1305 PR target/49238
1306 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1307 needed when original operands are used for msw_skip comparison.
1308
1309 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1310
1311 PR debug/49250
1312 * var-tracking.c (add_uses, add_stores): Don't call
1313 cselib_subst_to_values on ENTRY_VALUE.
1314
1315 2011-06-01 Diego Novillo <dnovillo@google.com>
1316
1317 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1318 output_record_start with LTO_null instead of output_zero.
1319 (lto_output_ts_binfo_tree_pointers): Likewise.
1320 (lto_output_tree): Likewise.
1321 (output_eh_try_list): Likewise.
1322 (output_eh_region): Likewise.
1323 (output_eh_lp): Likewise.
1324 (output_eh_regions): Likewise.
1325 (output_bb): Likewise.
1326 (output_function): Likewise.
1327 (output_unreferenced_globals): Likewise.
1328 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1329 instead of NUM_TREE_CODES.
1330 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1331 (lto_output_int_in_range): Change << to >> when shifting VAL.
1332
1333 2011-06-01 Diego Novillo <dnovillo@google.com>
1334
1335 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1336 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1337
1338 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1339
1340 PR target/45074
1341 * optabs.h (valid_multiword_target_p): Declare.
1342 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1343 doing multi-word operations.
1344 * optabs.c (expand_binop): Likewise.
1345 (expand_doubleword_bswap): Likewise.
1346 (expand_absneg_bit): Likewise.
1347 (expand_unop): Likewise.
1348 (expand_copysign_bit): Likewise.
1349 (multiword_target_p): New function.
1350
1351 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1352
1353 PR rtl-optimization/48830
1354 PR rtl-optimization/48808
1355 PR rtl-optimization/48792
1356 * reload.c (push_reload): Check contains_reg_of_mode.
1357 * reload1.c (strip_paradoxical_subreg): New function.
1358 (gen_reload_chain_without_interm_reg_p): Use it to handle
1359 paradoxical subregs.
1360 (emit_output_reload_insns, gen_reload): Likewise.
1361
1362 2011-06-01 David Li <davidxl@google.com>
1363
1364 * predict.c : Change pass name
1365 * ipa.c: Ditto.
1366 * dce.c: Ditto.
1367 * tree-profile.c: Ditto.
1368 * except.c: Ditto.
1369
1370 2011-06-01 David Li <davidxl@google.com>
1371
1372 * tree-pretty-print.c (dump_function_header): New function.
1373 * final.c (rest_of_clean_state): Use header dumper.
1374 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1375 * passes.c (pass_init_dump_file): Use header dumper.
1376
1377 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1378
1379 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1380 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1381 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1382 New functions.
1383 (mem_loc_descriptor): Use them.
1384
1385 * var-tracking.c (create_entry_value): New function.
1386 (vt_add_function_parameter): Use it.
1387
1388 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1389
1390 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1391 Include <signal.h>, <ucontext.h>.
1392 (sigill_caught): Define.
1393 (sigill_hdlr): New function.
1394 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1395 insns can be executed.
1396 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1397 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1398
1399 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1400
1401 * config/t-slibgcc-darwin: Move to ...
1402 * config/t-slibgcc-dummy: ... this. Clarify comments.
1403 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1404 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1405 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1406 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1407 Remove i386/t-crtstuff from tmake_file.
1408 (i[34567]86-*-solaris2*): Remove t-svr4,
1409 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1410 t-slibgcc-dummy.
1411 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1412 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1413 sparc/t-crtfm from tmake_file.
1414 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1415 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1416 Remove extra_parts.
1417 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1418 * config/i386/t-nwld (SHLIB_LINK): Remove.
1419 * config/i386/t-rtems-i386: Rename to ...
1420 * config/i386/t-rtems: ... this.
1421 ($(T)crti.o, $(T)crtn.o): Remove.
1422 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1423 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1424 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1425 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1426 EXTRA_MULTILIB_PARTS): Remove.
1427 * config/sparc/t-sol2-64: Likewise.
1428 * config/sparc/t-sol2: Remove.
1429 * config/sparc/t-crtin: Remove.
1430 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1431 * config/i386/gmon-sol2.c: Remove.
1432 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1433 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1434 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1435 * config/i386/sol2-gc1.asm: Remove.
1436 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1437 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1438 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1439 * config/t-slibgcc-sld: Remove.
1440
1441 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1442
1443 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1444 base_type_for_mode with op_mode instead of mode.
1445
1446 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1447
1448 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1449 Cortex-A15.
1450 * config/arm/arm-tune.md: Regenerate.
1451 * config/arm/arm-tables.opt: Regenerate.
1452 * config/arm/arm.c (FL_DIV): Rename...
1453 (FL_THUMB_DIV): ... to this.
1454 (FL_ARM_DIV): Define.
1455 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1456 (arm_arch_hwdiv): Remove.
1457 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1458 (arm_issue_rate): Add cortexr5.
1459 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1460 __ARM_ARCH_EXT_IDIV__.
1461 (TARGET_IDIV): Define.
1462 (arm_arch_hwdiv): Remove.
1463 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1464 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1465 (divsi3, udivsi3): New patterns.
1466 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1467 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1468
1469 2011-06-01 Martin Jambor <mjambor@suse.cz>
1470
1471 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1472 * ipa-utils.c (searchc): Set scc_no.
1473
1474 2011-06-01 Martin Jambor <mjambor@suse.cz>
1475
1476 * ipa-utils.c (searchc_env): New field allow_overwritable.
1477 (searchc): do not ignore edges to overwritable nodes if indicated
1478 by env->allow_overwritable.
1479 (ipa_reduced_postorder): Set env.allow_overwritable.
1480
1481 2011-06-01 Richard Guenther <rguenther@suse.de>
1482
1483 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1484 char_type_node.
1485 * lto-streamer.c (lto_record_common_node): Take node pointer,
1486 do not register types.
1487 (lto_preload_common_nodes): Explicitly skip preloading nodes
1488 that differ between frontends.
1489
1490 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1491
1492 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1493 NON_FLOAT_REGS.
1494
1495 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1496
1497 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1498 parameter value for dump. Dump cost on outermost call only.
1499 (rs6000_memory_move_cost): Dump cost on outermost call only.
1500
1501 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1502
1503 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1504 DW_OP_GNU_convert ops.
1505
1506 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1507 cselib_preserve_constants.
1508 (cselib_lookup_1): If cselib_preserve_constants,
1509 a new VALUE is being created for REG and there is a VALUE for the
1510 same register in wider mode, add another loc with lowpart SUBREG of
1511 the wider VALUE.
1512 (cselib_subst_to_values): Handle ENTRY_VALUE.
1513 * var-tracking.c (replace_expr_with_values): Return NULL for
1514 ENTRY_VALUE too.
1515 * dwarf2out.c (convert_descriptor_to_signed): New function.
1516 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1517 instead of two shifts.
1518 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1519 the right mode if needed.
1520 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1521 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1522 convert_descriptor_to_signed.
1523 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1524 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1525
1526 PR target/48688
1527 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1528
1529 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1530
1531 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1532 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1533 (SWI248x): New mode iterator, rename from X87MODEI.
1534 (X87MODEI): Remove mode iterator.
1535 (X87MODEI12): Ditto.
1536 (SSEMODEI24): Ditto.
1537
1538 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1539
1540 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1541 * doc/invoke.texi: Document max-vartrack-expr-depth.
1542 * var-tracking.c (EXPR_DEPTH): New.
1543 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1544
1545 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1546
1547 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1548 * config/i386/sse.md: Add n to negated FMA pattern names.
1549
1550 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1551
1552 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1553
1554 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1555
1556 * gengtype-state.c (read_state_params_structs): Initialize previous.
1557
1558 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1559
1560 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1561 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1562
1563 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1564
1565 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1566 registers. Penalize F*r->o alternative to prevent partial memory
1567 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1568 CONST_DOUBLE immediates when optimizing function for size. Do not move
1569 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1570 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1571 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1572 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1573 alternatives.
1574 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1575
1576 (fp_register_operand splitters): Use fp_register_operand
1577 constraint. Do not use FP_REG_P in insn condition.
1578 (any_fp_register_operand splitters): Use any_fp_register_operand
1579 constraint. Do not use ANY_FP_REG_P in insn condition.
1580
1581 2011-05-31 Jan Hubicka <jh@suse.cz>
1582
1583 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1584 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1585 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1586 (lto_output_edge): Use output_enum and var_len_unsigned.
1587 (lto_output_varpool_node): Likewise.
1588 (input_overwrite_node): Do not take resolution parameter;
1589 extract it from a bitpack.
1590 (input_node): Do not read resolution; use input_enum and
1591 var_len_unsigned.
1592 (input_varpool_node): Likewise.
1593 (input_edge): Likewise.
1594 (input_cgraph_1): Likewise.
1595
1596 2011-05-31 Richard Guenther <rguenther@suse.de>
1597
1598 * gimple.c (gimple_register_canonical_type): Do not register
1599 any types via gimple_register_type.
1600
1601 2011-05-31 Jan Hubicka <jh@suse.cz>
1602
1603 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1604 of thunks.
1605
1606 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1607
1608 PR rtl-optimization/49235
1609 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1610 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1611
1612 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1613
1614 PR tree-optimization/49093
1615 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1616 data references.
1617
1618 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1619
1620 PR debug/49047
1621 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1622 for concrete functions containing the code of cloned functions.
1623
1624 2011-05-31 Richard Guenther <rguenther@suse.de>
1625
1626 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1627 to ...
1628 (forward_propagate_into_comparison_1): ... this.
1629 (forward_propagate_comparison): Rename to ...
1630 (forward_propagate_into_comparison): ... this. Split out
1631 real forward propagation code to ...
1632 (forward_propagate_comparison): ... this.
1633 (forward_propagate_into_gimple_cond): Remove looping.
1634 (forward_propagate_into_cond): Likewise.
1635 (simplify_not_neg_expr): Return whether we have done something.
1636 (simplify_gimple_switch): Likewise.
1637 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1638 (ssa_forward_propagate_and_combine): ... this. Re-structure
1639 to do a forward forward-propagation walk on BBs and a backward
1640 stmt combining walk on BBs. Consistently re-scan changed statements.
1641 (pass_forwprop): Adjust.
1642
1643 2011-05-30 Ian Lance Taylor <iant@google.com>
1644
1645 * godump.c (go_format_type): Correct length of name added to
1646 obstack for anonymous field.
1647
1648 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1649
1650 PR target/49186
1651 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1652 part of the second operand is 0.
1653
1654 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1655
1656 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1657 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1658 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1659 (*movdf_internal_rex64): Do not penalize F->r alternative.
1660 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1661 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1662 when optimizing function for size. Do not move CONST_DOUBLEs
1663 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1664 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1665 SUBREGs. Do not check for MEM_P operands in the insn condition,
1666 check for ANY_FP_REGNO_P instead.
1667 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1668 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1669 function for speed.
1670 * config/i386/i386.c (ix86_option_override_internal): Do not
1671 set TARGET_INTEGER_DFMODE_MOVES here.
1672
1673 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1674
1675 PR target/49168
1676 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1677
1678 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1679
1680 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1681 DW_TAG_rvalue_reference_type even for
1682 -gdwarf-4 -fno-debug-types-section.
1683
1684 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1685
1686 PR tree-optimization/46728
1687 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1688 (build_and_insert_binop): New.
1689 (gimple_expand_builtin_pow): Reorder args for
1690 build_and_insert_call; use build_and_insert_binop; add more
1691 optimizations for fractional exponents.
1692
1693 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1694
1695 PR bootstrap/49190
1696
1697 Revert:
1698 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1699
1700 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1701 tree_common.
1702 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1703 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1704 TS_BASE instead of TS_COMMON.
1705 * varasm.c (assemble_name): Remove assert.
1706
1707 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1708
1709 * config.gcc: Keep obselete list sorted.
1710
1711 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1712 Eric Botcazou <ebotcazou@adacore.com>
1713
1714 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1715 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1716 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1717 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1718 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1719
1720 2011-05-30 Richard Guenther <rguenther@suse.de>
1721
1722 * gimple.c (gimple_types_compatible_p_1): Compare record
1723 and union type members properly.
1724
1725 2011-05-30 Richard Guenther <rguenther@suse.de>
1726
1727 PR tree-optimization/49210
1728 * ipa-split.c (split_function): Care for the case where the call
1729 result is not trivially convertible to the result holding variable.
1730
1731 2011-05-30 Richard Guenther <rguenther@suse.de>
1732
1733 PR tree-optimization/49218
1734 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1735 overflow occured.
1736
1737 2011-05-30 Richard Guenther <rguenther@suse.de>
1738
1739 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1740 New function split out from ...
1741 (forward_propagate_into_gimple_cond): ... here. Adjust.
1742 (forward_propagate_into_cond): Likewise.
1743 (forward_propagate_comparison): Also propagate into
1744 comparisons on assignment RHS. Change return value to
1745 behave similar to forward_propagate_into_cond.
1746 (tree_ssa_forward_propagate_single_use_vars): Handle
1747 strict-overflow warnings properly for forward_propagate_comparison.
1748
1749 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1750
1751 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1752 from plugin linker.
1753 * configure: Regenerate.
1754
1755 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1756
1757 PR tree-optimization/49199
1758 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1759 non-reduction operands are either defined in the loop or by induction.
1760
1761 2011-05-29 Xinliang David Li <davidxl@google.com>
1762
1763 * opts-global.c (handle_common_deferred_options): Handle new options.
1764 * passes.c (register_one_dump_file): Call register_pass_name.
1765 (execute_one_pass): Check explicit enable/disable flag.
1766 (passr_hash): New function.
1767 (passr_eq): Ditto.
1768 (register_pass_name): Ditto.
1769 (get_pass_by_name): Ditto.
1770 (pass_hash): Ditto.
1771 (pass_eq): Ditto.
1772 (enable_pass): Ditto.
1773 (disable_pass): Ditto.
1774 (is_pass_explicitly_enabled_or_disabled): Ditto.
1775
1776 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1777
1778 * config/i386/i386.md (*movoi_internal_avx): Use
1779 standard_sse_constant_opcode for alternative 0.
1780 (*movti_internal_sse): Ditto.
1781 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1782 alternative 2.
1783 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1784 sselog1 type moves.
1785 (*movsi_internal): Ditto.
1786 (*movdi_internal): Ditto. Add ssecvt type moves.
1787
1788 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1789
1790 PR target/48830
1791 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1792
1793 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1794
1795 PR rtl-optimization/49095
1796 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1797 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1798
1799 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1800
1801 PR target/43995
1802 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1803 recurse_p argument. Only follow register copies if it is set,
1804 and prevent mips_find_pic_call_symbol from recursing.
1805 (mips_find_pic_call_symbol): Add a recurse_p argument.
1806 Pass it to mips_pic_call_symbol_from_set.
1807 (mips_annotate_pic_calls): Update accordingly.
1808
1809 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1810
1811 * emit-rtl.c (try_split): Use a loop to search for
1812 NOTE_INSN_CALL_ARG_LOCATIONs.
1813
1814 2011-05-29 Richard Guenther <rguenther@suse.de>
1815
1816 PR tree-optimization/49217
1817 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1818
1819 2011-05-28 Jan Hubicka <jh@suse.cz>
1820
1821 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1822 length.
1823 (string_slot_free): Remove
1824 (create_output_block): Initialize obstack.
1825 (destroy_output_block): Free obstack.
1826 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1827 the string unless it needs to be added into the hash.
1828 (lto_output_string_with_length): Add persistent attribute;
1829 handle NULL strings.
1830 (lto_output_string): Add PERSISTENT parameter.
1831 (output_string_cst, output_identifier): Simplify.
1832 (lto_output_location_bitpack): Update.
1833 (lto_output_builtin_tree): Update.
1834 * lto-streamer.h (struct output_block): Add obstack.
1835 (lto_output_string, lto_output_string_with_length): Remove
1836 declarations; functions are static now.
1837
1838 2011-05-28 Jan Hubicka <jh@suse.cz>
1839
1840 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1841 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1842 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1843 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1844 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1845 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1846 unpack_ts_decl_with_vis_value_fields,
1847 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1848 lto_get_builtin_tree): Use enum and variable length i/o.
1849 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1850 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1851 New functions.
1852 (bp_pack_enum, bp_unpack_enum): New macros.
1853
1854 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1855
1856 * genrecog.c: Remove redundant forward declarations.
1857
1858 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1859
1860 * config.gcc: Deprecate mips*-*-openbsd*.
1861
1862 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1863
1864 PR bootstrap/49195
1865 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1866 for match_op_dup.
1867
1868 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1869
1870 PR middle-end/48981
1871 * gengtype.c (vec_prefix_type): New function.
1872 (note_def_vec): Use vec_prefix_type and change the length
1873 attribute to be based on the prefix.
1874 * vec.c: Include coretypes.h before vec.h.
1875 (struct vec_prefix): Remove.
1876 (vec_gc_p_reserve): Change the offsetof to sizeof.
1877 (vec_gc_p_reserve_exact): Likewise.
1878 (vec_heap_p_reserve): Likewise.
1879 (vec_heap_p_reserve_exact): Likewise.
1880 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1881 (vec_stack_p_reserve): Change the offsetof to sizeof.
1882 (vec_stack_p_reserve_exact): Likewise.
1883 * vec.h (struct vec_prefix): New struct definition.
1884 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1885 (VEC_T_GTY(T,B)): Likewise.
1886 (DEF_VEC_FUNC_P(T)): Use prefix field.
1887 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1888 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1889
1890 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1891
1892 PR tree-optimization/46728
1893 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1894 (powi_as_mults): Add gimple_set_location.
1895 (build_and_insert_call): New.
1896 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1897 0.5, 0.25, 0.75, 1./3., or 1./6.
1898
1899 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1900
1901 * doc/contrib.texi: Update copyright years.
1902 (Contributors): Add Zdenek Sojka.
1903
1904 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1905
1906 * c-decl.c (c_push_function_context): Copy the current statement
1907 list stack.
1908 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1909 (finish_struct): Call building_stmt_list_p instead of checking
1910 cur_stmt_list.
1911 * c-parser.c (c_parser_postfix_expression): Likewise.
1912 * c-typeck.c (c_end_compound_stmt): Likewise.
1913 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1914 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1915 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1916 (free_stmt_list): Likewise.
1917 * tree.h (struct tree_statement_list): Include typed_tree instead
1918 of tree_common.
1919 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1920 as TS_TYPED instead of TS_COMMON.
1921
1922 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1923 Uros Bizjak <ubizjak@gmail.com>
1924
1925 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1926 (HAVE_AS_IX86_TLSGDPTL): Define.
1927 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1928 (HAVE_AS_IX86_TLSLDMPLT): Define.
1929 * configure: Regenerate.
1930 * config.in: Regenerate.
1931 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1932 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1933 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1934 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1935 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1936 @tlsldmplt or @plt.
1937 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1938
1939 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1940
1941 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1942 and reverse_cond.
1943 (INSN_COND, INSN_REVERSE_COND): New macros.
1944 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1945 once.
1946 (sched_get_condition_with_rev): Cache the results, and look them up
1947 if possible.
1948 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1949 are clobbered by the current insn.
1950 * target.def (exposed_pipline): New sched data hook.
1951 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1952 * doc/tm.texi: Regenerate.
1953
1954 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1955
1956 PR tree-optimization/49170
1957 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1958 sincos or cexp.
1959
1960 2011-05-27 Richard Guenther <rguenther@suse.de>
1961
1962 PR middle-end/49189
1963 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1964 of comparisons.
1965
1966 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1967
1968 * haifa-sched.c (sched_scan_info): Remove.
1969 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1970 with NULL args.
1971 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1972 Remove functions.
1973 (sched_scan): Remove.
1974 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1975 static. All callers changed.
1976 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1977 static. All callers changed.
1978 (sched_init_luids): Remove all arguments except the first. All
1979 callers changed. Don't use sched_scan.
1980 (haifa_init_h_i_d): Likewise.
1981 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1982 manually rather than using sched_init_luids. Likewise with
1983 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1984 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1985 rather than sched_init_luids with NULL args.
1986 * sel-sched-ir.c (new_insns): Remove variable.
1987 (sched_scan): New static function, previously in haifa-sched.c. Remove
1988 all arguments but the first two; all callers changed.
1989 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1990 rather than sched_init_luids.
1991 (sel_init_bbs): Remove second argument. All callers changed.
1992 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1993 with NULL arguments.
1994 (create_insn_rtx_from_pattern): Likewise.
1995 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1996 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1997 (sched_init_insn_luid, sched_extend_luids): Declare.
1998 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1999 declarations.
2000
2001 2011-05-27 Richard Guenther <rguenther@suse.de>
2002
2003 PR middle-end/49177
2004 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2005 A CMP B ? (T) true : (T) false for non-integral types T again.
2006
2007 2011-05-27 Jan Hubicka <jh@suse.cz>
2008
2009 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2010 so 0 means NULL string.
2011 (lto_output_string_with_length): ... here.
2012 (lto_output_string, output_string_cst, output_identifier): Update
2013 handling of NULL strings.
2014 (lto_output_location_bitpack): New function.
2015 (lto_output_location): Use it.
2016 (lto_output_tree_ref): Use output_record_start.
2017 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2018 len values.
2019 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2020 values by 1.
2021 (input_string_internal): ... here;
2022 (input_string_cst, input_identifier, lto_input_string): Update handling
2023 of NULL strings.
2024 (lto_input_location_bitpack): New function
2025 (lto_input_location): Use it.
2026 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2027 values.
2028 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2029 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2030 (bp_pack_value): Sanity check the value range.
2031 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2032 New functions.
2033 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2034 New functions.
2035
2036 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2037
2038 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2039 call_arg_location instructions down the floor.
2040
2041 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2042
2043 PR rtl-optimization/49154
2044 * ira.c (setup_pressure_classes): Process class without sublcasses
2045 as a candidate for pressure classes.
2046
2047 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2048
2049 PR rtl-optimization/48575
2050 * genrecog.c (position_type): New enum.
2051 (position): New structure.
2052 (decision): Use position structure instead of a string.
2053 (root_pos, peep2_insn_pos_list): New variables.
2054 (next_position, compare_positions): New functions.
2055 (new_decision): Use position structures instead of strings.
2056 (maybe_both_true): Likewise.
2057 (change_state): Likewise.
2058 (write_tree): Likewise.
2059 (make_insn_sequence): Likewise.
2060
2061 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2062
2063 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2064 TS_BASE instead of TS_COMMON.
2065 (find_decls_types_r): Check for TS_TYPED structure before looking at
2066 TREE_TYPE.
2067 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2068 Add chain field.
2069 (BLOCK_CHAIN): Use new chain field.
2070
2071 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2072
2073 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2074 moves expensive on Power7 also.
2075
2076 2011-05-26 Richard Guenther <rguenther@suse.de>
2077
2078 * fold-const.c (fold_unary_loc): Remove bogus code.
2079
2080 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2081
2082 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2083 tree_common.
2084 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2085 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2086 TS_BASE instead of TS_COMMON.
2087 * varasm.c (assemble_name): Remove assert.
2088
2089 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2090
2091 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2092 substituted first.
2093 * libgcc-std.ver: Delete file.
2094
2095 2011-05-26 Richard Guenther <rguenther@suse.de>
2096
2097 PR tree-optimization/48702
2098 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2099 only when we know the base address is within bounds.
2100 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2101 assume the base address of TARGET_MEM_REFs is in bounds.
2102
2103 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2104
2105 PR target/49099
2106 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2107 declaration in TARGET_SOLARIS.
2108
2109 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2110
2111 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2112 The instruction is then expanded explicitly.
2113 (supported_compare): Callable instruction.
2114 (compare): Likewise.
2115
2116 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2117
2118 PR c++/49165
2119 * gimplify.c (shortcut_cond_r): Don't special case
2120 COND_EXPRs if they have void type on one of their arms.
2121
2122 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2123
2124 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2125 to reduce duplication, and to achieve a slightly more logical order
2126 of operations.
2127
2128 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2129
2130 PR tree-optimization/49161
2131 * tree-vrp.c (struct case_info): New type.
2132 (compare_case_labels): Sort case_info structs instead of
2133 trees, and not primarily by CASE_LABEL uids but by
2134 label_for_block indexes.
2135 (find_switch_asserts): Put case labels into struct case_info
2136 array instead of TREE_VEC, adjust sorting, compare label_for_block
2137 values instead of CASE_LABELs.
2138
2139 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2140
2141 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2142 ("orndi3_neon"): Likewise.
2143 ("bic<mode>3_neon"): Likewise.
2144
2145 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2146
2147 PR tree-optimization/49038
2148 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2149 Ensure at least one epilogue iteration if required by data
2150 accesses with gaps.
2151 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2152 to mark loops that require peeling for gaps.
2153 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2154 (vect_get_known_peeling_cost): Take peeling for gaps into
2155 account.
2156 (vect_transform_loop): Generate epilogue if required by data
2157 access with gaps.
2158 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2159 loop as requiring an epilogue if there are gaps in the end of
2160 the strided group.
2161
2162 2011-05-25 Ian Lance Taylor <iant@google.com>
2163
2164 * godump.c (go_format_type): Output the first field with a usable
2165 Go type, if any.
2166
2167 2011-05-25 Ian Lance Taylor <iant@google.com>
2168
2169 * godump.c (go_format_type): Check for invalid type names, pointer
2170 target types, and struct field types.
2171
2172 2011-05-25 Jason Merrill <jason@redhat.com>
2173
2174 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2175
2176 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2177
2178 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2179
2180 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2181
2182 * config/i386/i386.md (*movqi_extv_1)): Put back
2183 "register_operand" check in "type" calculation.
2184 (*movqi_extzv_2): Likewise.
2185
2186 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2187
2188 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2189
2190 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2191
2192 PR bootstrap/49160
2193 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2194 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2195 __divxc3, __divtc3): Wrap definitions in #ifndef.
2196
2197 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2198
2199 PR target/49142
2200 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2201 "register_operand" check and replace q_regs_operand with
2202 QIreg_operand in "type" calculation.
2203 (*movqi_extv_1): Likewise.
2204 (*movqi_extzv_2_rex64): Likewise.
2205 (*movqi_extzv_2): Likewise.
2206
2207 * config/i386/predicates.md (QIreg_operand): New.
2208
2209 2011-05-25 Richard Guenther <rguenther@suse.de>
2210
2211 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2212 type-based offset disambiguation, streamline MEM_REF and
2213 TARGET_MEM_REF handling.
2214
2215 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2216
2217 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2218 (bdesc_special_args): Add pause intrinsic.
2219
2220 * config/i386/i386.md (UNSPEC_PAUSE): New.
2221 (pause): Likewise.
2222 (*pause): Likewise.
2223 * config/i386/ia32intrin.h (__pause): Likewise.
2224
2225 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2226 pause intrinsic.
2227
2228 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2229
2230 PR tree-optimization/46728
2231 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2232 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2233
2234 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2235
2236 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2237 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2238 instead of TS_COMMON.
2239
2240 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2241
2242 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2243 LIBGCC2_GNU_PREFIX is defined.
2244 (__N): New macro.
2245 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2246 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2247 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2248 __clz_tab): Define using __N.
2249 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2250 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2251 * target.def (libfunc_gnu_prefix): New hook.
2252 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2253 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2254 * doc/tm.texi: Regenerate.
2255 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2256 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2257 account.
2258 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2259 (init_optabs): Likewise for the bswap libfuncs.
2260 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2261 and divide.
2262 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2263 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2264 * libgcc-std.ver: Remove.
2265 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2266 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2267 libgcc-std.ver.
2268 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2269 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2270 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2271 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2272 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2273 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2274 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2275 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2276 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2277 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2278
2279 2011-05-25 Jan Hubicka <jh@suse.cz>
2280
2281 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2282 (lto_output_tree): Use output_record_start.
2283 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2284 (lto_get_pickled_tree): Use input_record_start.
2285 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2286 (lto_value_range_error): New function.
2287 * lto-streamer.h (lto_value_range_error): Declare.
2288 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2289 (lto_output_enum, lto_input_enum): New macros.
2290
2291 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2292
2293 * common.opt (flag_stack_usage_info): New variable.
2294 (-Wstack-usage): New option.
2295 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2296 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2297 <OPT_fstack_usage>: Likewise.
2298 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2299 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2300 of flag_stack_usage.
2301 (emit_library_call_value_1): Likewise.
2302 * explow.c (allocate_dynamic_stack_space): Likewise.
2303 * function.c (instantiate_virtual_regs ): Likewise.
2304 (prepare_function_start): Likewise.
2305 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2306 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2307 * config/arm/arm.c (arm_expand_prologue): Likewise.
2308 (thumb1_expand_prologue): Likewise.
2309 * config/avr/avr.c (expand_prologue): Likewise.
2310 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2311 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2312 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2313 * config/mips/mips.c (mips_expand_prologue): Likewise.
2314 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2315 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2316 * config/s390/s390.c (s390_emit_prologue): Likewise.
2317 * config/sh/sh.c (sh_expand_prologue): Likewise.
2318 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2319 * config/spu/spu.c (spu_expand_prologue): Likewise.
2320
2321 2011-05-25 Richard Guenther <rguenther@suse.de>
2322
2323 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2324 (gimple_canonical_types_compatible_p): Likewise.
2325
2326 2011-05-25 Jan Hubicka <jh@suse.cz>
2327
2328 PR middle-end/49062
2329 * ipa.c (function_and_variable_visibility): Only add to same
2330 comdat group list if DECL_ONE_ONLY.
2331
2332 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2333
2334 PR rtl-optimization/49014
2335 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2336
2337 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2338
2339 PR target/49128
2340 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2341
2342 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2343
2344 PR rtl-optimization/48757
2345 * ira-build.c (loop_with_eh_edge_p): Rename to
2346 loop_with_complex_edge_p, check edges on complexity, make function
2347 conditional.
2348 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2349 conditional.
2350
2351 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2352
2353 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2354 force flag_ira_share_save_slots to 0.
2355
2356 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2357
2358 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2359 (vt_initialize): Set PROLOGUE_BB unconditionally.
2360 Add block comment about CFA_BASE_RTX machinery.
2361 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2362 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2363
2364 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2365
2366 PR objc/48187
2367 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2368 parsing of syntax error in ObjC instance variable lists. In
2369 particular, avoid an infinite loop if there is a stray ']'.
2370 Updated error message.
2371
2372 2011-05-24 Ian Lance Taylor <iant@google.com>
2373
2374 * godump.c (go_define): Don't accept a string immediately after
2375 another operand.
2376
2377 2011-05-24 Ian Lance Taylor <iant@google.com>
2378
2379 * godump.c (struct godump_container): Add invalid_hash field.
2380 (go_format_type): Return false if type is found in invalid_hash.
2381 (go_output_typedef): Add invalid type to invalid_hash.
2382 (go_finish): Create and delete invalid_hash.
2383
2384 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2385
2386 PR tree-optimization/46728
2387 * tree-ssa-math-opts.c (powi_table): New.
2388 (powi_lookup_cost): New.
2389 (powi_cost): New.
2390 (powi_as_mults_1): New.
2391 (powi_as_mults): New.
2392 (gimple_expand_builtin_powi): New.
2393 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2394 (gate_cse_sincos): Remove sincos/cexp restriction.
2395
2396 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2397
2398 PR target/3746
2399 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2400 mips-tdump native.
2401 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2402 * mips-tdump.c: Likewise.
2403
2404 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 PR target/49128
2407 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2408 add -mno-XXX. Handle FMA.
2409
2410 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2411
2412 PR rtl-optimization/48633
2413 * ira-build.c (loop_with_eh_edge_p): New function.
2414 (mark_loops_for_removal): Use it.
2415
2416 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2417
2418 PR rtl-optimization/48971
2419 * ira.c (setup_pressure_classes): Don't check register move cost
2420 for classes with one registers. Don't add pressure class if there
2421 is a pressure class with the same available hard registers.
2422 Check contains_reg_of_mode. Fix a typo in collecting
2423 temp_hard_regset. Ignore hard registers not belonging to a class.
2424
2425 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2426
2427 PR target/49133
2428 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2429
2430 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2431 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2432
2433 PR gcov-profile/48845
2434 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2435
2436 2011-05-24 Richard Guenther <rguenther@suse.de>
2437
2438 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2439 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2440 (gimple_types_compatible_p_1): Adjust.
2441 (iterative_hash_canonical_type): Do not bother about complete vs.
2442 incomplete types.
2443 (gimple_canonical_types_compatible_p): Likewise.
2444
2445 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2446
2447 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2448
2449 2011-05-24 Richard Guenther <rguenther@suse.de>
2450
2451 PR bootstrap/49078
2452 * gimple.c (gimple_register_canonical_type): Revert
2453 previous change.
2454 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2455 does not for a tree for the case where it matters. Cache
2456 pointer-type alias-sets.
2457
2458 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2459
2460 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2461 (OBJS): Remove options.o, opts-common.o and prefix.o.
2462 (OBJS-libcommon-target): New.
2463 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2464 (BACKEND): Include libcommon-target.a.
2465 (MOSTLYCLEANFILES): Include libcommon-target.a.
2466 (libcommon-target.a): New.
2467 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2468 prefix.o.
2469
2470 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2471
2472 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2473 parts of output shared with the driver.
2474 * optc-gen.awk: Don't generate parts of output not shared with the
2475 driver.
2476 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2477 * doc/options.texi (SourcerInclude): Mention options-save.c.
2478 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2479 (OBJS): Add options-save.o.
2480 (options-save.c, options-save.o): New.
2481 (options.o): Update dependencies.
2482 (gcc-options.o): Remove.
2483 (mostlyclean): Remove options-save.c.
2484
2485 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2486
2487 PR debug/49032
2488 * dbxout.c: Include cgraph.h.
2489 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2490 and without value expr, return NULL if no varpool node exists for
2491 it or if it is not needed.
2492 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2493
2494 PR c/49120
2495 * c-decl.c (start_decl): Convert expr to void_type_node.
2496
2497 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2498
2499 PR rtl-optimization/48826
2500 * emit-rtl.c (try_split): When splitting a call that is followed
2501 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2502
2503 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2504
2505 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2506 parameters passed in memory prefer using DECL_INCOMING_RTL over
2507 the pseudos it will be copied into.
2508
2509 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2510
2511 PR target/47315
2512 * config/i386/i386.c (ix86_option_override_internal): Save the
2513 initial options after checking vzeroupper.
2514
2515 2011-05-23 David Li <davidxl@google.com>
2516
2517 PR tree-optimization/48988
2518 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2519 Initialize has_valid_pred for each pred chain.
2520
2521 2011-05-23 Richard Guenther <rguenther@suse.de>
2522
2523 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2524 (iterative_hash_gimple_type): Always hash type names.
2525
2526 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2527
2528 * c-typeck.c (build_function_call_vec): Tweak call to
2529 check_function_arguments.
2530
2531 2011-05-23 Richard Guenther <rguenther@suse.de>
2532
2533 PR tree-optimization/49115
2534 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2535 is not necessarily carried out, do not claim it kills the ref.
2536 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2537
2538 2011-05-23 Richard Guenther <rguenther@suse.de>
2539
2540 PR middle-end/15419
2541 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2542 what pointer types we accept for folding.
2543
2544 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2545
2546 * gthr-gnat.c: Remove.
2547 * gthr-gnat.h: Remove.
2548 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2549 * config/t-freebsd (LIB2ADDEH): Likewise.
2550 * config/t-linux (LIB2ADDEH): Likewise.
2551 * config/t-sol2 (LIB2ADDEH): Likewise.
2552 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2553 * configure.ac (target_thread_file): Remove gnat handling.
2554 * configure: Regenerate.
2555 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2556
2557 2011-05-23 Tristan Gingold <gingold@adacore.com>
2558 Eric Botcazou <ebotcazou@adacore.com>
2559
2560 * gcov.c (create_file_names): If no object directory is specified,
2561 keep the directory of the file.
2562
2563 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2564
2565 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2566 * configure: Regenerate.
2567
2568 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2569
2570 PR middle-end/48973
2571 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2572 failed and the comparison has a single bit signed type, use
2573 constm1_rtx instead of const1_rtx for true value.
2574 (do_store_flag): If ops->type is single bit signed type, disable
2575 signel bit test optimization and pass -1 instead of 1 as last
2576 parameter to emit_store_flag_force.
2577
2578 2011-05-23 Tom de Vries <tom@codesourcery.com>
2579
2580 PR target/45098
2581 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2582 function.
2583 (infer_loop_bounds_from_undefined): Use new function.
2584
2585 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2586
2587 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2588 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2589 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2590 and -O0 otherwise.
2591 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2592
2593 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2594
2595 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2596 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2597 returns true.
2598
2599 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2600
2601 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2602
2603 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2604
2605 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2606 UNSPEC_MOVE_PIC pattern.
2607
2608 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2609
2610 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2611 (sparc-*-rtems*): Likewise.
2612 (sparc64-*-elf*): Likewise.
2613 (sparc64-*-rtems*): Likewise.
2614 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2615 * config/sparc/t-crtin: New file.
2616 * config/sparc/t-sol2 (crti.o): Delete rule.
2617 (crtn.o): Likewise.
2618 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2619 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2620 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2621 (ENDFILE_SPEC): Add crtn.o.
2622
2623 2011-05-22 Tom de Vries <tom@codesourcery.com>
2624
2625 PR middle-end/48689
2626 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2627 CODE_CONTAINS_STRUCT (TS_COMMON).
2628
2629 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2630
2631 PR middle-end/49029
2632 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2633 only after deciding which mode to use.
2634
2635 2011-05-22 Tom de Vries <tom@codesourcery.com>
2636
2637 PR target/45098
2638 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2639 for call to get_shiftadd_cost.
2640
2641 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2642
2643 PR target/49104
2644 * config/i386/cpuid.h (bit_MMXEXT): New define.
2645
2646 2011-05-22 Nick Clifton <nickc@redhat.com>
2647
2648 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2649 initialisation of non-existant args[2] element. Use args[] array
2650 not arg[] array to pass arguments to build_function_type_list.
2651
2652 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2653
2654 PR tree-optimization/49087
2655 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2656
2657 2011-05-21 Jason Merrill <jason@redhat.com>
2658
2659 PR c++/49092
2660 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2661 static storage duration.
2662
2663 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2664
2665 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2666 frame pointer.
2667
2668 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2669
2670 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2671 false if there are call-saved registers here...
2672 (sparc_can_use_return_insn_p): ...but here instead.
2673 (save_or_restore_regs): Fix thinko.
2674 (sparc_expand_prologue): Use current_function_is_leaf.
2675 (sparc_frame_pointer_required): Likewise.
2676
2677 2011-05-21 Nick Clifton <nickc@redhat.com>
2678
2679 PR target/49098
2680 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2681
2682 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2683
2684 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2685 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2686
2687 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2688
2689 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2690 * optc-gen.awk: Move common code to opt-read.awk.
2691 * opth-gen.awk: Likewise.
2692 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2693
2694 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2695
2696 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2697
2698 2011-05-20 Tom de Vries <tom@codesourcery.com>
2699
2700 PR target/45098
2701 * tree-ssa-loop-ivopts.c: Include expmed.h.
2702 (get_shiftadd_cost): New function.
2703 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2704
2705 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2706
2707 PR bootstrap/49086
2708 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2709 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2710
2711 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2712
2713 * Makefile.in: Update comment referring to $(OBJS-common).
2714
2715 2011-05-20 Ian Lance Taylor <iant@google.com>
2716
2717 * godump.c (go_output_typedef): Put enum constants in the macro
2718 hash table to avoid duplicate Go const definitions.
2719
2720 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2721
2722 * Makefile.in (LIBDEPS): Add libcommon.a.
2723 (LIBS): Likewise.
2724 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2725 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2726 pretty-print.o and version.o.
2727 (OBJS-libcommon): New.
2728 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2729 (BACKEND): Add libcommon.a.
2730 (MOSTLYCLEANFILES): Likewise.
2731 (libcommon.a): New.
2732 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2733 (cpp$(exeext)): Likewise.
2734 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2735 pretty-print.o and input.o.
2736 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2737 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2738 (errors.o): Remove.
2739 (mips-tfile): Don't explicitly use version.o.
2740 (mips-tdump): Likewise.
2741 (gcov.o): Depend on $(DIAGNOSTIC_H).
2742 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2743 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2744 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2745 * gcov-dump.c: Include intl.h and diagnostic.h.
2746 (main): Initialize diagnostics.
2747 * gcov.c: Include diagnostic.h.
2748 (fnotice): Remove.
2749 (main): Initialize diagnostics.
2750 * lto-wrapper.c: Include diagnostic.h.
2751 (main): Initialize diagnostics.
2752
2753 2011-05-20 Michael Matz <matz@suse.de>
2754
2755 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2756
2757 2011-05-20 Michael Matz <matz@suse.de>
2758 Richard Guenther <rguenther@suse.de>
2759
2760 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2761 use lto_streamer_cache_append directly instead of returning a VEC.
2762 (preload_common_node): Remove.
2763 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2764 track seen nodes.
2765 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2766
2767 2011-05-20 Richard Guenther <rguenther@suse.de>
2768
2769 PR tree-optimization/49079
2770 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2771 MEM_REFs correctly for the trailing array access detection.
2772 Special case constants the same way as decls for overall size
2773 constraining.
2774
2775 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2776
2777 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2778 argument expansion.
2779
2780 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2781
2782 PR tree-optimization/49073
2783 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2784 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2785 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2786
2787 2011-05-20 Richard Guenther <rguenther@suse.de>
2788
2789 PR middle-end/48849
2790 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2791 of pointer types the same way the middle-end does.
2792
2793 2011-05-20 Richard Guenther <rguenther@suse.de>
2794
2795 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2796 or pointer-to chains. Delay all fixup to uniquify_nodes.
2797
2798 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2799
2800 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2801 (fma4_fmaddsub): Likewise
2802
2803 2011-05-19 Jan Hubicka <jh@suse.cz>
2804
2805 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2806 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2807 (type_pair_cache): New static var.
2808 (lookup_type_pair): Use fixed sized custom hash; make inline.
2809 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2810 calls of lookup_type_pair.
2811 (print_gimple_types_stats): Remove cache stats.
2812 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2813 and gtc_ob.
2814
2815 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2816
2817 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2818 when TARGET_RDRND is active.
2819 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2820 Generate dummy SImode target register when target is NULL.
2821
2822 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2823
2824 * config/arm/arm-fpus.def: New.
2825 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2826 arm-fpus.def.
2827 * config/arm/arm-tables.opt: Regenerate.
2828 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2829 (arm_option_override): Don't decode FPU name to string here.
2830 * config/arm/arm.opt (mfpu=): Use Enum.
2831 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2832 Update dependencies.
2833
2834 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2835
2836 * collect2.c: Include diagnostic.h.
2837 (fatal_perror, fatal, error, fancy_abort): Remove.
2838 (main): Set progname. Call xmalloc_set_program_name and
2839 diagnostic_initialize.
2840 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2841 scan_libraries, resolve_lib_name): Call fatal_error instead of
2842 fatal and fatal_perror.
2843 * collect2.h (error, fatal, fatal_perror): Don't declare.
2844 * tlink.c: Include diagnostic-core.h.
2845 (recompile_files): Call fatal_error instead of fatal_perror.
2846 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2847 pretty-print.o and input.o.
2848 (collect2.o, tlink.o): Update dependencies.
2849
2850 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2851
2852 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2853
2854 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2855
2856 PR target/40483
2857 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2858 COMDAT group syntax, both SPARC and x86 variants.
2859 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2860 * configure: Regenerate.
2861 * config/sol2.h (TARGET_SOLARIS): Define.
2862 (PUSHSECTION_FORMAT): Remove.
2863 (SECTION_NAME_FORMAT): Define.
2864 * config/sol2.c: Include hashtab.h.
2865 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2866 expansion, using SECTION_NAME_FORMAT.
2867 (solaris_comdat_htab): New variable.
2868 (struct comdat_entry): Define.
2869 (comdat_hash): New function.
2870 (comdat_eq): New function.
2871 (solaris_elf_asm_comdat_section): New function.
2872 (solaris_define_comdat_signature): New function.
2873 (solaris_code_end): New function.
2874 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2875 (solaris_code_end): Declare.
2876 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2877 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2878 solaris_code_end.
2879 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2880 Remove ATTRIBUTE_UNUSED.
2881 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2882 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2883 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2884 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2885 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2886 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2887 (PUSHSECTION_FORMAT): Remove.
2888 (SECTION_NAME_FORMAT): Redefine.
2889
2890 2011-05-19 Kai Tietz <ktietz@redhat.com>
2891
2892 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2893 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2894 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2895
2896 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2897 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2898
2899 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2900
2901 2011-05-19 Richard Guenther <rguenther@suse.de>
2902
2903 PR middle-end/48985
2904 * tree-object-size.c (addr_object_size): If the pointed-to
2905 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2906
2907 2011-05-19 Richard Guenther <rguenther@suse.de>
2908
2909 * gimple.c (gimple_types_compatible_p_1): Compare names of
2910 the types themselves.
2911 (iterative_hash_gimple_type): And hash them that way.
2912 (gimple_register_type_1): If we register a main variant properly
2913 initialize the leader to ourselves.
2914
2915 2011-05-19 Tom de Vries <tom@codesourcery.com>
2916
2917 PR target/45098
2918 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2919 get_loop_invariant_expr_id.
2920 (get_loop_invariant_expr_id): Use get_expr_id.
2921 (parm_decl_cost): New function.
2922 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2923 Improve bound cost estimation. Use different inv_expr_id for elim and
2924 express cases.
2925
2926 2011-05-19 Tom de Vries <tom@codesourcery.com>
2927
2928 PR target/45098
2929 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2930 cost_base.cost == 0.
2931
2932 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2933
2934 PR target/49002
2935 * config/i386/sse.md
2936 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2937 load cast.
2938
2939 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2940
2941 PR tree-optimization/49039
2942 * tree-vrp.c (extract_range_from_binary_expr): For
2943 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2944 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2945
2946 2011-05-18 Tom de Vries <tom@codesourcery.com>
2947
2948 PR target/45098
2949 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2950
2951 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2952
2953 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2954 (*tls_global_dynamic_64): Ditto.
2955 (*tls_local_dynamic_base_32_gnu): Ditto.
2956 (*tls_local_dynamic_base_64): Ditto.
2957 (tls_initial_exec_64_sun): Ditto.
2958
2959 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2960
2961 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2962 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2963 bf592-none.
2964 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2965 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2966 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2967 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2968 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2969 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2970 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2971
2972 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2973
2974 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2975 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2976 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2977 target_thread_pointer, arm_structure_size_boundary, struct
2978 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2979 struct abi_name, arm_all_abis): Remove.
2980 (arm_option_override) Don't process most enumerated option values here.
2981 Don't process target_fpe_name here. Work with integer not string for
2982 structure size boundary; use separate diagnostics for each case.
2983 * config/arm/arm.h (enum float_abi_type, enum
2984 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2985 to arm-opts.h.
2986 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2987 arm_structure_size_boundary): Remove.
2988 * config/arm/arm.opt (mabi=): Use Enum and Init.
2989 (arm_abi_type): New Enum and EnumValue entries.
2990 (mfloat-abi=): Use Enum and Init.
2991 (float_abi_type): New Enum and EnumValue entries.
2992 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2993 (mfp16-format=): Use Enum and Init.
2994 (arm_fp16_format_type): New Enum and EnumValue entries.
2995 (mstructure-size-boundary=): Use UInteger and Init.
2996 (mtp=): Use Enum and Init.
2997 (arm_tp_type): New Enum and EnumValue entries.
2998
2999 2011-05-18 Richard Guenther <rguenther@suse.de>
3000
3001 PR tree-optimization/49018
3002 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3003 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3004 gimple_has_side_effects.
3005
3006 2011-05-18 Richard Guenther <rguenther@suse.de>
3007
3008 * gimple.c (gimple_register_type_1): New function, split out from ...
3009 (gimple_register_type): ... here. Avoid infinite recursion.
3010
3011 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3012
3013 PR tree-optimization/41881
3014 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3015 reduction_chains along with a macro for its access.
3016 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3017 (destroy_loop_vec_info): Free reduction chains.
3018 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3019 (vect_is_slp_reduction): New function.
3020 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3021 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3022 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3023 definition types for reduction chains.
3024 (vect_supported_load_permutation_p): Don't allow permutations for
3025 reduction chains.
3026 (vect_analyze_slp_instance): Support reduction chains.
3027 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3028 (vect_get_constant_vectors): Handle reduction chains.
3029 (vect_schedule_slp_instance): Mark the first statement of the
3030 reduction chain as reduction.
3031
3032 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3033
3034 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3035 names for group elements access.
3036 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3037 reduction chains as well. Remove data reference and interleaving
3038 related words from the fields names.
3039 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3040 elements access.
3041 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3042 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3043 vect_update_interleaving_chain, vect_same_range_drs,
3044 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3045 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3046 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3047 vect_analyze_group_access, vect_analyze_data_ref_access,
3048 vect_create_data_ref_ptr, vect_transform_strided_load,
3049 vect_record_strided_load_vectors): Likewise.
3050 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3051 vect_model_load_cost, vectorizable_store, vectorizable_load,
3052 vect_remove_stores, new_stmt_vec_info): Likewise.
3053 * tree-vect-slp.c (vect_build_slp_tree,
3054 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3055
3056 2011-05-18 Richard Guenther <rguenther@suse.de>
3057
3058 PR middle-end/48989
3059 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3060 operand verification.
3061 (verify_gimple_assign_binary): Likewise.
3062 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3063 to non-1-precision BOOLEAN_TYPEs.
3064
3065 2011-05-18 Tom de Vries <tom@codesourcery.com>
3066
3067 PR target/45098
3068 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3069
3070 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3071
3072 PR tree-optimization/49000
3073 * tree-ssa.c (execute_update_addresses_taken): Call
3074 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3075 be rewritten and decl has been marked for renaming, reset
3076 the debug stmt.
3077
3078 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3079
3080 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3081 enum_opts_set when testing if attributes have set -mfpmath=.
3082
3083 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3084
3085 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3086
3087 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3088
3089 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3090 info->entry with 0
3091 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3092 id.transform_lang_insert_block with NULL.
3093
3094 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3095
3096 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3097 (output_fp_compare): Change args 3 and 4 to bool.
3098 (ix86_expand_call): Change arg 6 to bool.
3099 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3100 (ix86_attr_length_vex_default): Change arg 3 to bool.
3101 * config/i386/i386.md: Update all uses.
3102 * config/i386/i386.c: Ditto.
3103 (ix86_flags_dependent): Change return type to bool.
3104
3105 2011-05-17 Richard Guenther <rguenther@suse.de>
3106
3107 * gimple.c (type_hash_pair_compare): Fix comparison.
3108
3109 2011-05-17 Richard Guenther <rguenther@suse.de>
3110
3111 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3112 case some more, fix final hash value of the non-singleton case.
3113
3114 2011-05-17 Richard Guenther <rguenther@suse.de>
3115
3116 PR bootstrap/49013
3117 Revert
3118 2011-05-16 Richard Guenther <rguenther@suse.de>
3119
3120 * gimple.c (gimple_types_compatible_p_1): Use names of the
3121 type itself, not its main variant.
3122 (iterative_hash_gimple_type): Likewise.
3123
3124 2011-05-17 Richard Guenther <rguenther@suse.de>
3125
3126 * gimple.c (gimple_register_canonical_type): Use the main-variant
3127 leader for computing the canonical type.
3128
3129 2011-05-17 Nick Clifton <nickc@redhat.com>
3130
3131 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3132 moves.
3133
3134 * config/rx/rx.md: Add peephole to remove redundant extensions
3135 after loads.
3136 (bitset_in_memory): Use rx_restricted_mem_operand.
3137 (bitinvert_in_memory): Likewise.
3138 (bitclr_in_memory): Likewise.
3139
3140 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3141 Nick Clifton <nickc@redhat.com>
3142
3143 * config/rx/rx.md: Add peepholes to match a register move followed
3144 by a comparison of the moved register. Replace these with an
3145 addition of zero that does both actions in one instruction.
3146
3147 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3148
3149 PR target/48986
3150 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3151 predicate to allow CONST_INT.
3152 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3153
3154 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3155
3156 * opts-common.c (opt_enum_arg_to_value): New.
3157 * opts.h (opt_enum_arg_to_value): Declare.
3158 * config/i386/i386.opt (fpmath): Remove.
3159 (mfpmath=): Use Enum, Init and Save.
3160 (fpmath_unit): New Enum and EnumValue entries.
3161 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3162 name for function fpmath state.
3163 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3164 * config/i386/i386.c: Include diagnostic.h.
3165 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3166 (ix86_target_string): Take enum fpmath_unit value instead of string.
3167 (ix86_debug_options): Update call to ix86_target_string.
3168 (ix86_option_override_internal): Don't process fpmath strings here.
3169 (x86_function_specific_save, ix86_function_specific_restore):
3170 Don't handle fpmath state specially.
3171 (ix86_function_specific_print): Pass fpmath state to
3172 ix86_target_string instead of printing in this function.
3173 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3174 Handle enum attributes.
3175 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3176 (ix86_valid_target_attribute_tree): Update option_strings
3177 handling. Handle fpmath as enum option.
3178 (ix86_can_inline_p): Update field names for function fpmath state.
3179 (ix86_expand_builtin): Update call to ix86_target_string.
3180 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3181 (ix86_fpmath): Remove.
3182 * config/i386/t-i386 (i386.o): Update dependencies.
3183
3184 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3185
3186 PR preprocessor/48677
3187 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3188 from decoded_options[0], not from itself.
3189
3190 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3191
3192 * config/i386/constraints.md (z): New constraint.
3193 * config/i386/i386.c (c): New mode attribute.
3194 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3195 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3196 constraint for operand 0.
3197 (*call_vzeroupper): Ditto.
3198 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3199 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3200 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3201 Use "lzm" constraint for operand 0.
3202 (*call_pop_vzeroupper): Ditto.
3203 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3204 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3205 constraint for operand 0.
3206 (*sibcall_vzeroupper): Ditto.
3207 (*sibcall_rex64_ms_sysv): Ditto.
3208 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3209 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3210 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3211 (*sibcall_pop_vzeroupper): Ditto.
3212 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3213 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3214 mode iterator. Use "<c>zm" constraint for operand 1.
3215 (*call_value_vzeroupper): Ditto.
3216 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3217 for operand 1.
3218 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3219 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3220 *call_value_pop_1. Use "lzm" constraint for operand 1.
3221 (*call_value_pop_vzeroupper): Ditto.
3222 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3223 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3224 mode iterator. Use "Uz" constraint for operand 1.
3225 (*sibcall_value_vzeroupper): Ditto.
3226 (*sibcall_value_rex64_ms_sysv): Ditto.
3227 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3228 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3229 constraint for operand 1.
3230 (*sibcall_value_pop_vzeroupper): Ditto.
3231 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3232 and "z" constraint for operand 2.
3233 (*tls_global_dynamic_32_gnu): Ditto.
3234 (*tls_local_dynamic_base_32_gnu): Ditto.
3235 (*tls_local_dynamic_base_64): Ditto.
3236 (*tls_local_dynamic_32_once): Ditto.
3237 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3238 Update all callers.
3239 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3240
3241 2011-05-16 Richard Guenther <rguenther@suse.de>
3242
3243 * gimple.c (gimple_types_compatible_p_1): Use names of the
3244 type itself, not its main variant.
3245 (iterative_hash_gimple_type): Likewise.
3246
3247 2011-05-16 Richard Guenther <rguenther@suse.de>
3248
3249 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3250 always visit pointer target and function result and argument types.
3251
3252 2011-05-16 Jason Merrill <jason@redhat.com>
3253
3254 PR c++/48999
3255 * tree-inline.c (copy_statement_list): Put back recursion.
3256
3257 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3258
3259 PR target/27663
3260 PR target/41076
3261 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3262 * config/avr/avr.md ("*ior<mode>qi.byte0",
3263 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3264
3265 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3266
3267 PR target/45099
3268 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3269 register is needed for a function argument.
3270
3271 2011-05-16 Richard Guenther <rguenther@suse.de>
3272
3273 * gimple.c (struct type_hash_pair): New type.
3274 (type_hash_pair_compare): New function.
3275 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3276
3277 2011-05-16 Revital Eres <revital.eres@linaro.org>
3278
3279 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3280
3281 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3282
3283 * config/i386/i386.md (floating point move splitters): Fix
3284 usage of standard_80387_constant_p.
3285 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3286
3287 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3288
3289 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3290
3291 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3292
3293 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3294 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3295 (tree_ssa_lim_finalize): Likewise.
3296
3297 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3298
3299 * config/i386/constraint.md (Yd, Yx): New register constraints.
3300 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3301 Yd conditional register constraint.
3302 (*movtf_internal): Use standard_sse_constant_opcode.
3303 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3304 Yx conditional register constraint.
3305 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3306 Yd conditional register constraint. Use standard_sse_constant_p to
3307 check for valid SSE constants and call standard_sse_constant_opcode to
3308 output SSE insn.
3309 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3310 constants and call standard_sse_constant_opcode to output SSE insn.
3311 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3312 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3313 optimize_size is set.
3314 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3315
3316 2011-05-14 Tobias Burnus <burnus@net-b.de>
3317
3318 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3319
3320 2011-05-13 Martin Jambor <mjambor@suse.cz>
3321
3322 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3323 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3324 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3325 (evaluate_conditions_for_ipcp_clone): Removed.
3326 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3327 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3328 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3329
3330 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3331
3332 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3333 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3334 lieu of MAY_HAVE_DEBUG_STMTS.
3335 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3336 debug statements if !MAY_HAVE_DEBUG_STMTS.
3337
3338 2011-05-13 Martin Thuresson <martint@google.com>
3339
3340 PR gcov-profile/47793
3341 * libgcov.c (gcov_exit): Support relative profile paths.
3342 * doc/invoke.texi (-fprofile-dir): Update for above change.
3343
3344 2011-05-13 Richard Guenther <rguenther@suse.de>
3345
3346 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3347 type-pair caching, do not compare hashes.
3348
3349 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3350
3351 PR middle-end/48965
3352 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3353 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3354
3355 2011-05-13 Kai Tietz <ktietz@redhat.com>
3356
3357 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3358 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3359 compatible type for TRUTH_NOT_EXPR.
3360
3361 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3362
3363 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3364 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3365 can_create_pseudo_p ().
3366
3367 2011-05-13 Richard Guenther <rguenther@suse.de>
3368
3369 PR lto/48978
3370 * gimple.c (iterative_hash_gimple_type): Revert change in
3371 pointer target and function result and argument hashing.
3372
3373 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3374
3375 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3376 (*movxf_internal_nointeger): Ditto.
3377 (*movdf_internal_rex64): Ditto.
3378 (*movdf_internal): Ditto.
3379 (*movdf_internal_nointeger): Ditto.
3380 (*movsf_internal): Ditto.
3381 (sincos splitters): Use can_create_pseudo ().
3382
3383 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3384
3385 * config/i386/i386-opts.h: New.
3386 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3387 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3388 ix86_section_threshold): Remove.
3389 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3390 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3391 OPT_mbranch_cost_.
3392 (ix86_option_override_internal): Don't decode strings for options
3393 other than -march=, -mtune= and -mfpmath=. Don't allow for
3394 __attribute__ uses in remaining diagnostics for options with
3395 string arguments. Don't check for integer arguments being negative.
3396 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3397 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3398 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3399 ix86_branch_cost, ix86_section_threshold): Remove.
3400 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3401 HeaderInclude.
3402 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3403 but not Var.
3404 (masm=): Use Enum and Init.
3405 (asm_dialect): New Enum and EnumValue entries.
3406 (mbranch-cost=): Use UInteger.
3407 (mlarge-data-threshold=): Use UInteger and Init.
3408 (mcmodel=): Use Enum and Init.
3409 (cmodel): New Enum and EnumValue entries.
3410 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3411 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3412 mregparm=): Use UInteger.
3413 (mstringop-strategy=): Use Enum and Init.
3414 (stringop_alg): New Enum and EnumValue entries.
3415 (mtls-dialect=): Use Enum and Init.
3416 (tls_dialect): New Enum and EnumValue entries.
3417 (mabi=): Use Enum and Init.
3418 (calling_abi): New Enum and EnumValue entries.
3419 (mveclibabi=): Use Enum and Init.
3420 (ix86_veclibabi): New Enum and EnumValue entries.
3421
3422 2011-05-13 Nick Clifton <nickc@redhat.com>
3423
3424 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3425 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3426
3427 2011-05-13 Kai Tietz <ktietz@redhat.com>
3428
3429 PR middle-end/48984
3430 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3431 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3432 (gimple_boolify): Check for cast for boolean_type_node instead for
3433 BOOLEAN_TYPE.
3434
3435 2011-05-13 Richard Guenther <rguenther@suse.de>
3436
3437 PR tree-optimization/48172
3438 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3439 multiplying by number of iterations for equal step.
3440 (vect_create_cond_for_alias_checks): Likewise.
3441
3442 2011-05-13 Andreas Schwab <schwab@redhat.com>
3443
3444 * configure.ac: Use AS_HELP_STRING throughout.
3445 * configure: Regenerate.
3446
3447 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3448
3449 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3450 (ix86_emit_restore_regs_using_mov): Likewise.
3451 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3452
3453 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3454
3455 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3456 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3457 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3458 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3459 RTX_OK_FOR_OLO10_P): ...here.
3460 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3461 SYMBOLIC_CONST.
3462
3463 2011-05-12 Kai Tietz <ktietz@redhat.com>
3464
3465 * gimplify.c (gimple_boolify): Re-boolify expression
3466 arguments even if expression type is of kind BOOLEAN_TYPE.
3467 (gimplify_boolean_expr): Removed.
3468 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3469 and XOR. Additional take care that we keep expression's type.
3470 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3471 of TRUTH_AND|OR|XOR_EXPR.
3472
3473 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3474
3475 PR tree-optimization/48975
3476 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3477 on all bbs here and free and clear ifc_bbs at the end.
3478
3479 2011-05-12 Richard Guenther <rguenther@suse.de>
3480
3481 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3482 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3483 until after simple checks.
3484 (gimple_types_compatible_p): Likewise.
3485 (iterative_hash_gimple_type): Always hash pointer targets
3486 and function return and argument types.
3487 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3488 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3489 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3490 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3491 completely in the simple compare section.
3492 (gimple_register_canonical_type): Query the cache again after
3493 registering.
3494
3495 2011-05-12 Richard Guenther <rguenther@suse.de>
3496
3497 PR tree-optimization/48172
3498 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3499 the number of iterations from the segment size calculation.
3500 (vect_create_cond_for_alias_checks): Adjust.
3501
3502 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3503
3504 PR debug/48967
3505 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3506 if validate_subreg fails.
3507
3508 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3509
3510 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3511 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3512 early.
3513
3514 2011-05-12 DJ Delorie <dj@redhat.com>
3515
3516 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3517 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3518 created builtin into rx_builtins array.
3519 (rx_builtin_decl): New function.
3520 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3521
3522 2011-05-12 DJ Delorie <dj@redhat.com>
3523 Nick Clifton <nickc@redhat.com>
3524
3525 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3526 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3527 (rx_is_legitimate_address): Add pre-decrement and post-increment
3528 addressing in HImode and QImode. Fix test for out of range
3529 REG+INT addressing.
3530 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3531 (rx_align_for_label): Test label before extracting its usage count.
3532 (rx_adjust_insn_lengths): Fix selection of insn codes.
3533 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3534
3535 2011-05-11 Jason Merrill <jason@redhat.com>
3536
3537 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3538
3539 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3540
3541 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3542 reindent the subsequent block.
3543
3544 2011-05-11 Satoru Takabayashi <satorux@google.com>
3545 Paul Pluzhnikov <ppluzhnikov@google.com>
3546
3547 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3548 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3549 * config.in: Add LINKER_HASH_STYLE.
3550 * configure.ac: Add --with-linker-hash-style.
3551 * configure: Regenerate.
3552
3553 2011-05-11 Richard Guenther <rguenther@suse.de>
3554
3555 PR middle-end/48964
3556 * gimple.c (iterative_hash_canonical_type): Fix typo.
3557
3558 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3559
3560 * config/i386/i386.c (legitimize_tls_address)
3561 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3562 expanders directly for TARGET_GNU2_TLS. Determine pic and
3563 __tls_get_addr symbol reference here. Update call to
3564 gen_tls_global_dynamic_{32,64} for added arguments.
3565 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3566 expanders directly for TARGET_GNU2_TLS. Determine
3567 __tls_get_addr symbol reference here. Update call to
3568 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3569 unique UNSPEC REG_EQUIV to libcall block.
3570 (ix86_tls_get_addr): Declare static.
3571 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3572 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3573 Do not determine pic and __tls_get_addr symbol reference here. Do not
3574 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3575 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3576 (tls_global_dynamic_64): Add operand 2. Do not determine
3577 __tls_get_addr symbol reference here. Do not call
3578 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3579 (tls_local_dynamic_base64): Ditto for operand 1.
3580
3581 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3582
3583 * function.c (expand_function_start): Initialize stack_check_probe_note
3584 only if the generic stack checking mechanism is used.
3585
3586 2011-05-11 Richard Guenther <rguenther@suse.de>
3587
3588 PR tree-optimization/15256
3589 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3590 (A & B) | C, combine (A op CST1) op CST2.
3591 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3592 visit assigns that have uses.
3593
3594 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3595
3596 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3597 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3598 (unpack_ts_type_common_value_fields): ...this. Update comment.
3599 (unpack_value_fields): Adjust for renaming.
3600 (lto_input_ts_type_tree_pointers): Split into...
3601 (lto_input_ts_type_common_tree_pointer): ...this and...
3602 (lto_input_ts_type_non_common_tree_pointers): ...this.
3603 (lto_input_tree_pointers): Adjust for above split.
3604 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3605 (pack_ts_type_common_value_fields): ...this. Update comment.
3606 (lto_output_ts_type_tree_pointers): Split into...
3607 (lto_output_ts_type_common_tree_pointers): ...this and...
3608 (lto_output_ts_type_non_common_tree_pointers): ...this.
3609 (lto_output_tree_pointers): Adjust for above split.
3610 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3611 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3612 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3613 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3614 Define.
3615 (struct tree_type): Split into...
3616 (struct tree_type_common: ...this and...
3617 (struct tree_type_with_lang_specific): ...this and...
3618 (struct tree_type_non_common): ...this. Adjust accessor macros
3619 accordingly.
3620 (TYPE_VALUES_RAW): Define.
3621 (union tree_node): Update for above changes.
3622 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3623 TS_TYPE_NON_COMMON.
3624 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3625 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3626 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3627 * treestructu.def (TS_TYPE): Remove.
3628 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3629 Define.
3630
3631 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3632
3633 PR debug/48159
3634 * tree-ssa.c (reset_debug_uses): New function.
3635 * tree-flow.h (reset_debug_uses): New prototype.
3636 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3637 * tree-loop-distribution.c (generate_loops_for_partition): Call
3638 reset_debug_uses on the stmts that will be removed. Keep around
3639 all debug stmts, don't count them as bits in partition bitmap.
3640 (generate_builtin): Don't count debug stmts or labels as bits in
3641 partition bitmap.
3642
3643 2011-05-11 Richard Guenther <rguenther@suse.de>
3644
3645 * gimple.c (gimple_type_hash_1): Merge with ...
3646 (gimple_type_hash): ... this.
3647 (gtc_visit): Remove mode parameter and simplify accordingly.
3648 (gimple_types_compatible_p_1): Likewise.
3649 (gimple_types_compatible_p): Likewise.
3650 (iterative_hash_gimple_type): Likewise.
3651 (visit): Likewise.
3652 (gimple_type_eq): Adjust.
3653
3654 2011-05-11 Revital Eres <revital.eres@linaro.org>
3655
3656 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3657 enters the branch create an anti edge in the opposite direction
3658 to prevent the creation of reg-moves.
3659 * modulo-sched.c: Adjust comment to reflect the fact we are
3660 scheduling closing branch.
3661 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3662 (stage_count): New field in struct partial_schedule.
3663 (calculate_stage_count): New function.
3664 (normalize_sched_times): Rename to reset_sched_times and handle
3665 incrementing the sched time of the nodes by a constant value
3666 passed as parameter.
3667 (duplicate_insns_of_cycles): Skip closing branch.
3668 (sms_schedule_by_order): Schedule closing branch.
3669 (ps_insn_find_column): Handle closing branch.
3670 (sms_schedule): Call reset_sched_times and adjust the code to
3671 support scheduling of the closing branch.
3672 (ps_insert_empty_row): Update calls to normalize_sched_times
3673 and rotate_partial_schedule functions.
3674
3675 2011-05-11 Richard Guenther <rguenther@suse.de>
3676
3677 PR middle-end/48953
3678 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3679
3680 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3681
3682 * opts.c (finish_options): Move warning settings from process_options.
3683 * toplev.c (process_options): Move warning settings to finish_options.
3684
3685 2011-05-11 Richard Guenther <rguenther@suse.de>
3686
3687 PR tree-optimization/18041
3688 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3689 (simplify_bitwise_binary): ... this. Handle operand conversions
3690 by applying them to the result instead.
3691 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3692
3693 2011-05-11 Richard Guenther <rguenther@suse.de>
3694
3695 * gimple.c (gimple_canonical_types_compatible_p): Split out
3696 from gimple_types_compatible_p and friends. Do not recurse
3697 to pointed-to types.
3698 (gimple_canonical_type_eq): Use it.
3699 (iterative_hash_canonical_type): Split out from
3700 iterative_hash_gimple_type and friends. Do not recurse
3701 to pointed-to types.
3702 (gimple_canonical_type_hash): Use it, allocate the hash here.
3703
3704 2011-05-11 Revital Eres <revital.eres@linaro.org>
3705
3706 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3707 recognizing doloop.
3708
3709 2011-05-11 Revital Eres <revital.eres@linaro.org>
3710
3711 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3712 instead of PREV_INSN.
3713
3714 2011-05-11 Revital Eres <revital.eres@linaro.org>
3715
3716 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3717 * loop-doloop.c (doloop_condition_get): Likewise.
3718 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3719 (doloop_end): New.
3720 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3721
3722 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3723
3724 * tree.def (CASE_LABEL_EXPR): Add an operand.
3725 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3726
3727 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3728
3729 * c-decl.c (c_override_global_bindings_to_false): Remove.
3730 (global_bindings_p): Don't check
3731 c_override_global_bindings_to_false.
3732 * c-tree.h (c_override_global_bindings_to_false): Remove.
3733 * c-typeck.c (composite_type): Don't set
3734 c_override_global_bindings_to_false.
3735
3736 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3737
3738 PR target/48857, 48495
3739 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3740 (VSX_MODE): Ditto.
3741 (VSX_MOVE_MODE): Ditto.
3742 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3743 VSX vector types. Add V2DImode.
3744 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3745 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3746 (MODES_TIEABLE_P): Ditto.
3747
3748 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3749 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3750 VSX_VECTOR_MODE.
3751 (init_cumulative_args): Ditto.
3752 (rs6000_function_arg_boundary): Ditto.
3753 (rs6000_function_arg_advance_1): Ditto.
3754 (rs6000_function_arg): Ditto.
3755 (rs6000_function_ok_for_sibcall): Ditto.
3756 (emit_frame_save): Ditto.
3757 (rs6000_function_value): Ditto.
3758 (rs6000_libcall_value): Ditto.
3759
3760 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3761
3762 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3763 i386/darwin-lib.h to $libgcc_tm_file.
3764 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3765
3766 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3767
3768 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3769
3770 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3771
3772 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3773 * config/rs6000/rs6000-tables.opt: New file (generated).
3774 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3775 rs6000/rs6000-tables.opt to extra_options.
3776 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3777 * config/rs6000/rs6000.c (rs6000_select): Remove.
3778 (processor_target_table): Move contents to rs6000-cpus.def.
3779 (darwin_rs6000_override_options): Check
3780 global_options_set.x_rs6000_cpu_index instead of
3781 rs6000_select[1].string.
3782 (rs6000_option_override_internal): Likewise.
3783 (rs6000_handle_option): Don't assert that global structures are in
3784 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3785 (rs6000_default_cpu): New variable.
3786 (rs6000_file_start): Set it instead of local default_cpu. Check
3787 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3788 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3789 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3790 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3791 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3792 rs6000_select): Remove.
3793 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3794 Remove.
3795 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3796 * config/rs6000/t-rs6000
3797 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3798 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3799 global_options_set.x_rs6000_cpu_index instead of
3800 rs6000_select[1].string.
3801 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3802 global_options_set.x_rs6000_cpu_index instead of
3803 rs6000_select[1].string.
3804
3805 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3806
3807 * config.gcc (libgcc_tm_file): Define instead of including files
3808 from ../../libgcc/config/ in tm_file.
3809 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3810 * configure: Regenerate.
3811 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3812 libgcc_tm.h, cs-libgcc_tm.h): New.
3813 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3814 (clean): Remove libgcc_tm.h.
3815 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3816 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3817 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3818
3819 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3820
3821 PR target/48896
3822 * config/avr/avr.c (avr_ret_register): Return unsigned int
3823 instead of int.
3824 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3825 it to avr_libcall_value.
3826 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3827 expand_expr.
3828 (avr_expand_binop_builtin): Ditto.
3829 (avr_expand_unop_builtin): Ditto.
3830
3831 2011-05-10 DJ Delorie <dj@redhat.com>
3832
3833 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3834 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3835 * config/rx/rx.c (rx_align_for_label): Add label and
3836 uses_threshold parameters. Do not align when the label is not
3837 used enough.
3838 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3839
3840 2011-05-10 Richard Guenther <rguenther@suse.de>
3841
3842 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3843 a series of conversions and apply foldings similar to what
3844 fold-const does.
3845 (tree_ssa_forward_propagate_single_use_vars): Call it.
3846
3847 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3848
3849 PR tree-optimization/48611
3850 PR tree-optimization/48794
3851 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3852 referenced from RESX or EH_DISPATCH arguments.
3853
3854 PR debug/48928
3855 * dfp.c (decimal_to_decnumber): Handle conversion from
3856 dconst{1,2,m1,half}.
3857
3858 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3859
3860 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3861 for !flag_prefer_avx128.
3862 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3863
3864 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3865
3866 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3867 (fold_ternary_loc): Use expr_location_or.
3868
3869 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3870
3871 PR debug/48853
3872 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3873 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3874 Pmode and mem_mode is not VOIDmode.
3875
3876 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3877
3878 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3879 TYPE_QUAL_RESTRICT): Convert to enum.
3880
3881 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3882
3883 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3884 (const_pow2_1_to_8_operand): Ditto.
3885 (const_pow2_1_to_128_operand): Ditto.
3886 (const_pow2_1_to_32768_operand): Ditto.
3887 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3888 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3889 in insn constraint to check integer value of operand 3.
3890 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3891
3892 (PINSR_MODE): New mode iterator.
3893 (sse2p4_1): New mode attribute.
3894 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3895 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3896 iterator. Use const_int_operand instead of
3897 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3898 exact_log2 in insn constraint to check integer value of operand 3.
3899
3900 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3901
3902 * config/i386/sse.md (blendbits): Remove mode attribute.
3903 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3904 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3905 Check integer value of operand 3 in insn constraint.
3906
3907 2011-05-09 Richard Guenther <rguenther@suse.de>
3908
3909 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3910 for diagnostics.
3911 (lto_symtab_merge): Likewise. Do not register types here.
3912 (lto_symtab_merge_decls_2): Likewise.
3913 (lto_symtab_merge_decls_1): Likewise.
3914 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3915 * gimple.c (enum gtc_mode): Declare.
3916 (gimple_types_compatible_p): Make static.
3917
3918 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3919
3920 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3921 temporary register to match Pmode.
3922
3923 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3924
3925 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3926 and *vec_concatv4si_1_avx.
3927
3928 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3929
3930 PR rtl-optimization/48927
3931 * ira-conflicts.c (commutative_constraint_p): Use
3932 recog_data.alternative_enabled_p to disable alternatives where
3933 "enabled" attribute is false.
3934 (get_dup_num): Ditto.
3935 * ira-lives.c (single_reg_class): Ditto.
3936 (ira_implicitly_set_insn_hard_regs): Ditto.
3937
3938 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3939
3940 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3941 (dataflow_set_preserve_mem_locs): Likewise.
3942
3943 2011-05-09 Philipp Thomas <pth@suse.de>
3944
3945 * config/mep/mep.c (mep_validate_vliw): Syntax description
3946 should not be translated.
3947
3948 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3949
3950 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3951 * config/mips/mips-tables.opt: New file (generated).
3952 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3953 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3954 MIPS_ARCH_OPTION_NATIVE): Define.
3955 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3956 mips-cpus.def.
3957 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3958 mips_parse_cpu): Remove.
3959 (mips_cpu_info_from_opt, mips_default_arch): New.
3960 (mips_handle_option): Don't assert that global structures are in
3961 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3962 (mips_option_override): Use new variables and functions to set
3963 state of these options. Use strcmp to check for individual CPU names.
3964 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3965 definition.
3966 * config/mips/mips.opt (march=): Use ToLower and Enum.
3967 (mips): Use ToLower, Enum and Var.
3968 (mtune=): Use ToLower and Enum.
3969 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3970
3971 2011-05-08 Jan Hubicka <jh@suse.cz>
3972
3973 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3974 Arrange type pairs to be UID ordered.
3975 (gimple_lookup_type_leader): Make inline.
3976
3977 2011-05-09 Nick Clifton <nickc@redhat.com>
3978
3979 PR target/48899
3980 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3981 PROCESSOR_DEFAULT.
3982
3983 PR target/48897
3984 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3985 variable 's'.
3986
3987 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3988
3989 * combine.c (simplify_comparison): Abstract out parts into...
3990 (simplify_compare_const): ... new function.
3991 (try_combine): Generalize parallel arithmetic/compare combining
3992 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3993
3994 2011-05-08 Jan Hubicka <jh@suse.cz>
3995
3996 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3997 (cgraph_create_virtual_clone): Call hooks once virtual clone
3998 is finished.
3999 * cgraph.h (cgraph_clone_node): Update prototype.
4000 * ipa-cp.c (ipcp_estimate_growth): Use
4001 estimate_ipcp_clone_size_and_time.
4002 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4003 * lto-cgraph.c (input_node): Update.
4004 * ipa-inline.c (recursive_inlining): Update.
4005 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4006 (evaluate_conditions_for_known_args): Break out from ...
4007 (evaluate_conditions_for_edge): ... here.
4008 (evaluate_conditions_for_ipcp_clone): New function.
4009 (inline_node_duplication_hook): Update clone summary based
4010 on parameter map.
4011 (estimate_callee_size_and_time): Rename to ...
4012 (estimate_node_size_and_time): take NODE instead of EDGE;
4013 take POSSIBLE_TRUTHS as argument.
4014 (estimate_callee_size_and_time): Update.
4015 (estimate_ipcp_clone_size_and_time): New function.
4016 (do_estimate_edge_time): Update.
4017
4018 2011-05-08 Richard Guenther <rguenther@suse.de>
4019
4020 PR middle-end/48908
4021 PR middle-end/48905
4022 * expmed.c (expand_shift_1): Compute adjusted constant shift
4023 amount manually.
4024
4025 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4026
4027 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4028
4029 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4030
4031 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4032
4033 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4034
4035 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4036
4037 2011-05-07 Jan Hubicka <jh@suse.cz>
4038
4039 * ipa-inline-transform.c (inline_call): Account when program size
4040 decreases.
4041 * ipa-inline.c (relative_time_benefit): New function.
4042 (edge_badness): Reorganize to be power 2 based; fix thinko when
4043 computing badness for negative growth; update comments to match
4044 reality; better dumps.
4045
4046 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4047
4048 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4049 type to bool and adjust comment.
4050 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4051 (fold_mathfn_compare): Remove calls to global_bindings_p.
4052 (fold_inf_compare): Likewise.
4053 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4054 * c-tree.h (global_bindings_p): Adjust prototype.
4055 * c-decl.c (global_bindings_p): Return bool and simplify.
4056
4057 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4058
4059 PR tree-optimization/48837
4060 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4061 when accumulator transformation is performed.
4062
4063 2011-05-06 Jan Hubicka <jh@suse.cz>
4064
4065 * i386.h (ix86_tune_indices): Add
4066 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4067 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4068 * i386.c (initial_ix86_tune_features): Add
4069 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4070 (software_prefetching_beneficial_p): Remove predicate.
4071 (ix86_option_override_internal): Use new macro.
4072
4073 2011-05-06 Jan Hubicka <jh@suse.cz>
4074
4075 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4076
4077 2011-05-06 Jan Hubicka <jh@suse.cz>
4078
4079 * cgraph.c (cgraph_add_thunk): Create real function node instead
4080 of alias node; finalize it and mark needed/reachale; arrange visibility
4081 to be right and add it into the corresponding same comdat group list.
4082 (dump_cgraph_node): Dump thunks.
4083 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4084 cgraph_function_with_gimple_body_p,
4085 cgraph_first_function_with_gimple_body,
4086 cgraph_next_function_with_gimple_body): New functions.
4087 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4088 New macros.
4089 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4090 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4091 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4092 devirtualization when optimizing.
4093 (verify_cgraph_node): Verify thunks.
4094 (cgraph_analyze_function): Analyze thunks.
4095 (cgraph_mark_functions_to_output): Output thunks only in combination
4096 with function they are assigned to.
4097 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4098 alias into normal node.
4099 (assemble_thunks): New functoin.
4100 (cgraph_expand_function): Use it.
4101 * lto-cgraph.c (lto_output_node): Stream thunks.
4102 (input_overwrite_node): Stream in thunks.
4103 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4104 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4105 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4106 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4107 (inline_analyze_function): Do not care about thunk jump functions.
4108 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4109 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4110 cgraph_function_with_gimple_body_p.
4111 * passes.c (do_per_function_toporder): Use
4112 cgraph_function_with_gimple_body_p.
4113 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4114 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4115 (function_called_by_processed_nodes_p): Likewise.
4116
4117 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4118
4119 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4120 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4121 entries.
4122 (mabi=): Replace with separate entries for mabi=altivec,
4123 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4124 mabi=ieeelongdouble and mabi=ibmlongdouble.
4125 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4126 check for -mabi=spe without SPE ABI support here.
4127 (rs6000_handle_option): Replace OPT_mabi_ handling with
4128 OPT_mabi_altivec and OPT_mabi_spe handling.
4129
4130 2011-05-06 Cary Coutant <ccoutant@google.com>
4131
4132 * dwarf2out.c (contains_subprogram_definition): New function.
4133 (should_move_die_to_comdat): Call it.
4134
4135 2011-05-06 Jeff Law <law@redhat.com>
4136
4137 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4138 remove_ctrl_stmt_and_useless_edges.
4139 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4140 (fixup_template_block, thread_single_edge): Likewise.
4141 (mark_threaded_blocks): Use THREAD_TARGET.
4142
4143 2011-05-06 Alan Modra <amodra@gmail.com>
4144
4145 PR target/48900
4146 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4147 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4148
4149 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4150
4151 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4152 constraint modifier to "r".
4153
4154 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4155
4156 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4157 fall through for OPT_mcmodel_.
4158
4159 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4160
4161 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4162 instruction sizes.
4163 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4164
4165 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4166
4167 PR target/47930
4168 * config/arm/arm.opt (marm): Document it.
4169 (mthumb): Reject negative variant.
4170
4171 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4172
4173 PR target/48898
4174 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4175 Fix typo in "ccvt" variable name.
4176
4177 2011-05-06 Tristan Gingold <gingold@adacore.com>
4178
4179 PR target/48895
4180 * config/vms/vms-ar.c (main): Remove cwd variable.
4181
4182 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4183
4184 PR debug/48902
4185 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4186
4187 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4188
4189 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4190 * gimplify.c (gimplify_switch_expr): Likewise.
4191 * omp-low.c (expand_omp_sections): Likewise.
4192 * tree-eh.c (lower_try_finally_switch): Likewise.
4193 (lower_eh_dispatch): Likewise.
4194 * tree.h (build_case_label): Declare.
4195 * tree.c (build_case_label): Define.
4196
4197 2011-05-05 Jason Merrill <jason@redhat.com>
4198
4199 PR c++/40975
4200 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4201 (copy_statement_list): Don't recurse.
4202 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4203 STATEMENT_LIST.
4204
4205 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4206
4207 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4208 through from -mfpu= handling.
4209 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4210
4211 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4212
4213 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4214 POST_MODIFY.
4215
4216 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4217
4218 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4219 for 11.31.
4220 (hppa[12]*-*-hpux11*): Ditto.
4221 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4222 * config/ia64/hpux-unix2003.h: New.
4223 * config/pa/pa-hpux1131.opt: New.
4224 * config/pa/pa-hpux1131.h: New.
4225 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4226 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4227 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4228
4229 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4230
4231 PR debug/48853
4232 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4233 instead of mode as 3rd argument to recursive call.
4234 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4235 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4236 VOIDmode.
4237 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4238 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4239 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4240 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4241
4242 2011-05-05 Julian Brown <julian@codesourcery.com>
4243
4244 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4245 parenthesis in D-register case.
4246
4247 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4248
4249 * opt-functions.awk (var_type_struct): Handle Enum options.
4250 * optc-gen.awk: Don't check range of variables of character type.
4251 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4252 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4253 rs6000_sdata_name, rs6000_explicit_options): Remove.
4254 (rs6000_option_override_internal): Check for -malign-power here.
4255 Use global_options_set instead of rs6000_explicit_options.
4256 (rs6000_parse_fpu_option): Remove.
4257 (rs6000_handle_option): Access variables via opts and opts_set
4258 pointers. Use error_at and warning_at. Add fall-through
4259 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4260 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4261 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4262 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4263 here. Don't use rs6000_parse_fpu_option.
4264 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4265 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4266 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4267 (mrecip=): Use Var.
4268 (mspe): Use Var and Save.
4269 (mtraceback=): Use Enum and Var.
4270 (rs6000_traceback_type): New Enum and EnumValue entries.
4271 (mfloat-gprs=): Use Enum, Var and Save.
4272 (rs6000_float_gprs): New Enum and EnumValue entries.
4273 (mlong-double-): use Var and Save.
4274 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4275 (malign-): Use Enum and Var.
4276 (rs6000_alignment_flags): New Enum and EnumValue entries.
4277 (mfpu=): Use Enum.
4278 (fpu_type_t): New Enum and EnumValue entries.
4279 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4280 global_options_set instead of rs6000_explicit_options.
4281 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4282 global_options_set instead of rs6000_explicit_options.
4283 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4284 global_options_set instead of rs6000_explicit_options.
4285 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4286 global_options_set instead of rs6000_explicit_options.
4287 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4288 global_options_set instead of rs6000_explicit_options.
4289 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4290 global_options_set instead of rs6000_explicit_options.
4291 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4292 definition.
4293 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4294 global_options_set instead of rs6000_explicit_options.
4295 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4296 (rs6000_cmodel): New Enum and EnumValue entries.
4297 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4298 global_options_set instead of rs6000_explicit_options.
4299 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4300 (mtls-size=): Use Enum and Var.
4301 (rs6000_tls_size): New Enum and EnumValue entries.
4302
4303 2011-05-05 Michael Matz <matz@suse.de>
4304
4305 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4306 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4307 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4308 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4309 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4310 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4311 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4312 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4313 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4314 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4315 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4316 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4317 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4318 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4319 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4320 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4321
4322 2011-05-05 Richard Guenther <rguenther@suse.de>
4323
4324 * expmed.c (expand_variable_shift): Rename to ...
4325 (expand_shift_1): ... this. Take an expanded shift amount.
4326 For rotates recurse directly not building trees for the shift amount.
4327 (expand_variable_shift): Wrap around expand_shift_1.
4328 (expand_shift): Adjust.
4329
4330 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4331
4332 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4333
4334 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4335
4336 * tree.h (get_pending_sizes): Remove prototype.
4337 (put_pending_size): Likewise.
4338 (put_pending_sizes): Likewise.
4339 * stor-layout.c (pending_sizes): Delete.
4340 (get_pending_sizes): Likewise.
4341 (put_pending_size): Likewise.
4342 (put_pending_sizes): Likewise.
4343 (variable_size): Do not call put_pending_size and tidy up.
4344 * function.h (struct function): Remove dont_save_pending_sizes_p.
4345 * lto-streamer-in.c (input_function): Do not stream it.
4346 * lto-streamer-out.c (output_function): Likewise.
4347 * tree-inline.c (initialize_cfun): Do not copy it.
4348 * c-decl.c (store_parm_decls): Do not set it.
4349 * omp-low.c (create_task_copyfn): Likewise.
4350 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4351
4352 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4353
4354 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4355 conditions.
4356 (*movdf_internal): Ditto.
4357 (*movdf_internal_nointeger): Ditto.
4358 (*movsf_internal): Ditto.
4359
4360 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4361
4362 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4363 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4364 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4365 (c_variable_size): Remove.
4366 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4367 call put_pending_sizes.
4368 (get_parm_info): Add parameter expr. Use it to set
4369 arg_info->pending_sizes.
4370 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4371 get_pending_sizes.
4372 * c-parser.c (c_parser_parms_declarator): Update call to
4373 c_parser_parms_list_declarator.
4374 (c_parser_parms_list_declarator): Take parameter expr. Update
4375 call to push_parm_decl. Update recursive call. Don't call
4376 get_pending_sizes. Update calls to get_parm_info.
4377 (c_parser_objc_method_definition): Update calls to
4378 c_parser_objc_method_decl and objc_start_method_definition.
4379 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4380 (c_parser_objc_method_decl): Add parameter expr. Update call to
4381 grokparm.
4382 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4383 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4384 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4385
4386 2011-05-05 Michael Hope <michael.hope@linaro.org>
4387
4388 PR pch/45979
4389 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4390 __ARM_EABI__ hosts.
4391
4392 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4393
4394 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4395 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4396 (spu_output_mi_thunk): New function.
4397
4398 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4399
4400 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4401 targetm.asm_out.print_operand.
4402 * config/sol2.c: Include target.h.
4403
4404 2011-05-04 Jan Hubicka <jh@suse.cz>
4405
4406 * ipa-inline.c (reset_edge_caches): New function.
4407 (update_caller_keys): Add check_inlinablity_for; do not
4408 reset edge caches; remove now unnecesary loop.
4409 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4410 (update_all_callee_keys): Likewise.
4411 (inline_small_functions): Sanity check cache; update code
4412 recomputing it.
4413
4414 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4415
4416 PR rtl-optimization/47612
4417 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4418 as the last insn of the sequence to be moved.
4419
4420 2011-05-04 Tobias Burnus <burnus@net-b.de>
4421
4422 PR fortran/48864
4423 * doc/invoke.texi (Ofast): Document that it
4424 enables Fortran's -fno-protect-parens.
4425
4426 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4427
4428 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4429
4430 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4431
4432 * stor-layout.c (variable_size): Do not issue errors.
4433
4434 2011-05-04 Richard Guenther <rguenther@suse.de>
4435
4436 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4437 for array-ref indices.
4438 (tree_coverage_counter_addr): Likewise.
4439 (build_fn_info_type): Use size_int for index types.
4440 (build_gcov_info): Likewise.
4441
4442 2011-05-04 Richard Guenther <rguenther@suse.de>
4443
4444 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4445 to build_int_cst.
4446 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4447 for constructor indices.
4448 (push_init_level): Likewise.
4449
4450 2011-05-04 Richard Guenther <rguenther@suse.de>
4451
4452 * explow.c (promote_mode): Move variable declarations before code.
4453
4454 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4455
4456 * tree.h (build_function_type_array): Declare.
4457 (build_varargs_function_type_array): Declare.
4458 (build_function_type_vec, build_varargs_function_type_vec): Define.
4459 * tree.c (build_function_type_array_1): New function.
4460 (build_function_type_array): New function.
4461 (build_varargs_function_type_array): New function.
4462
4463 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4464
4465 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4466 before setting STMT_VINFO_TYPE.
4467
4468 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4469
4470 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4471 instead of spu_pass_by_reference.
4472
4473 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4474
4475 * calls.c (emit_library_call_value_1): Invoke
4476 promote_function_mode hook on libcall arguments.
4477 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4478 argument being NULL.
4479 * targhooks.c (default_promote_function_mode): Lisewise.
4480 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4481 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4482
4483 * doc/tm.texi: Document that TYPE argument might be NULL.
4484
4485 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4486
4487 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4488
4489 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4490
4491 From Bernd Schmidt
4492 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4493
4494 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4495
4496 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4497 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4498 Move ...
4499 * mips-tfile.c: ... here.
4500 Don't include coretypes.h, tm.h, filenames.h.
4501 (saber_stop): Remove definition and all calls.
4502 [__SABER__]: Remove.
4503 (__LINE__): Remove default.
4504 (Size_t, Ptrdiff_t): Remove definitions.
4505 Replace by size_t, ptrdiff_t.
4506 [!MIPS_DEBUGGING_INFO]: Remove.
4507 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4508 (progname): Add const.
4509 (STATIC): Remove.
4510 Replace all uses by static.
4511 (ALIGN_SYMTABLE_OFFSET): Remove default.
4512 * mips-tdump.c: Don't include coretypes.h, tm.h.
4513 Remove !MIPS_IS_STAB guard.
4514 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4515 $(TM_H), filenames.h dependencies.
4516 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4517
4518 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4519
4520 From Jie Zhang
4521 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4522 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4523
4524 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4525
4526 From Bernd Schmidt
4527 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4528 account and save/restore RETS.
4529 (PROFILE_BEFORE_PROLOGUE): Define.
4530 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4531 the push insn to use predecrement.
4532
4533 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4534
4535 From Jie Zhang
4536 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4537
4538 2011-05-04 Nick Clifton <nickc@redhat.com>
4539
4540 * config/mn10300/mn10300.c: Include cfgloop.h.
4541 (DUMP): New macro.
4542 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4543 Lcc or a FLcc insn into the instruction stream.
4544 (mn10300_block_contains_call): New function. Returns true if the
4545 given basic block contains a CALL insn.
4546 (mn10300_loop_contains_call_insn): New function. Returns true if
4547 the given loop contains a CALL insn.
4548 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4549 to use the SETLB and Lcc or FLcc insns.
4550 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4551 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4552 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4553 disable the SETLB optimization.
4554 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4555 __SETLB__ or __NO_SETLB__.
4556 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4557 (movsf_internal): Handle MDR register.
4558 (cmpsi): Make visible.
4559 (setlb): New pattern.
4560 (Lcc): New pattern.
4561 (FLcc): New pattern.
4562
4563 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4564
4565 PR target/48860
4566 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4567 for reg<->xmm moves.
4568 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4569 (vec_concatv2di_rex64_sse): Ditto.
4570 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4571 (*vec_extractv2di_1_rex64): Ditto.
4572
4573 Revert:
4574 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4575
4576 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4577 reg<->xmm moves.
4578 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4579
4580 2011-05-04 Richard Guenther <rguenther@suse.de>
4581
4582 * tree.h (int_const_binop): Remove notrunc argument.
4583 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4584 create integer constants that are properly truncated.
4585 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4586 (const_binop): Remove zero notrunc argument to int_const_binop.
4587 (size_binop_loc): Likewise.
4588 (fold_div_compare): Likewise.
4589 (maybe_canonicalize_comparison_1): Likewise.
4590 (fold_comparison): Likewise.
4591 (fold_binary_loc): Likewise.
4592 (multiple_of_p): Likewise.
4593 * expr.c (store_constructor): Likewise.
4594 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4595 (maybe_fold_stmt_addition): Likewise.
4596 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4597 * stor-layout.c (layout_type): Likewise.
4598 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4599 * tree-sra.c (build_ref_for_offset): Likewise.
4600 (build_user_friendly_ref_for_offset): Likewise.
4601 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4602 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4603 * tree-ssa-loop-niter.c (inverse): Likewise.
4604 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4605 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4606 * tree-switch-conversion.c (check_range): Likewise.
4607 (build_constructors): Likewise.
4608 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4609 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4610 (extract_range_from_assert): Likewise.
4611 (vrp_int_const_binop): Likewise.
4612 (extract_range_from_binary_expr): Likewise.
4613 (extract_range_from_unary_expr): Likewise.
4614 (check_array_ref): Likewise.
4615 (find_case_label_range): Likewise.
4616 (simplify_div_or_mod_using_ranges): Likewise.
4617 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4618 comparing case labels for merging.
4619
4620 2011-05-03 Mark Wielaard <mjw@redhat.com>
4621
4622 * dwarf2out.c (debug_str_hash_forced): Removed.
4623 (gen_label_for_indirect_string): Removed.
4624 (get_debug_string_label): Removed.
4625 (AT_string_form): Generate label directly.
4626 (output_indirect_string): Test indirect_string_node for
4627 DW_FORM_strp instead of checking label and refcount.
4628 (prune_indirect_string): Removed.
4629 (prune_unused_types): Don't check debug_str_hash_forced or
4630 call prune_indirect_string.
4631
4632 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4633
4634 PR other/48093
4635 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4636
4637 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4638
4639 PR debug/47994
4640 PR debug/47919
4641 * combine.c (try_combine): Skip debug insns at m_split tests.
4642
4643 2011-04-26 Mark Wielaard <mjw@redhat.com>
4644
4645 PR42288
4646 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4647 when info_section_emitted.
4648
4649 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4650
4651 * config/mips/mips-opts.h: New.
4652 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4653 to mips-opts.h.
4654 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4655 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4656 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4657 via opts pointer.
4658 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4659 mips-opts.h.
4660 (mips_abi, mips_code_readable): Don't declare.
4661 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4662 (mabi=): Use Enum and Var.
4663 (mips_abi): New Enum and EnumValue entries.
4664 (mcode-readable=): Use Enum and Var.
4665 (mips_code_readable_setting): New Enum and EnumValue entries.
4666 (mr10k-cache-barrier=): Use Enum and Var.
4667 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4668
4669 2011-05-03 Jan Hubicka <jh@suse.cz>
4670
4671 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4672 replace hash by pointer map.
4673 (cgraph_node_set_element_def, cgraph_node_set_element,
4674 const_cgraph_node_set_element, varpool_node_set_element_def,
4675 varpool_node_set_element, const_varpool_node_set_element): Remove.
4676 (free_cgraph_node_set, free_varpool_node_set): New function.
4677 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4678 * tree-emutls.c: Free varpool node set.
4679 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4680 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4681 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4682 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4683 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4684 Move here from ipa.c; implement using pointer_map
4685 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4686 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4687 debug_cgraph_node_set, varpool_node_set_new,
4688 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4689 dump_varpool_node_set, debug_varpool_node_set):
4690 Move to ipa-uitls.c.
4691 * passes.c (ipa_write_summaries): Update.
4692
4693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4694
4695 From Mike Frysinger:
4696 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4697 bf542/bf544/bf547/bf548/bf549.
4698
4699 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4700
4701 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4702
4703 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4704
4705 From Bernd Schmidt:
4706 * config/bfin/bfin.md (MOVCC): New mode_macro.
4707 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4708 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4709 comments from generated assembly.
4710
4711 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4712
4713 From Bernd Schmidt
4714 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4715 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4716 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4717 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4718 * config/bfin/lib1funcs.asm (___muldi3): New function.
4719
4720 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4721
4722 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4723 build_function_type_list instead of build_function_type.
4724 Rearrange initialization of `args' to do so.
4725
4726 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4727
4728 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4729 instead of build_function_type.
4730
4731 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4732
4733 * config/rs6000/rs6000.c (spe_init_builtins): Call
4734 build_function_type_list instead of build_function_type.
4735 (paired_init_builtins, altivec_init_builtins): Likewise.
4736 (builtin_function_type): Likewise.
4737
4738 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4739
4740 * config/sh/sh.c (sh_media_init_builtins): Call
4741 build_function_type_list instead of build_function_type.
4742
4743 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4744
4745 * config/sparc/sparc.c (sparc_file_end): Call
4746 build_function_type_list instead of build_function_type.
4747
4748 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4749
4750 * config/alpha/alpha.c (alpha_init_builtins): Call
4751 build_function_type_list instead of build_function_type.
4752
4753 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4754
4755 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4756 build_function_type_list instead of build_function_type.
4757
4758 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4759
4760 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4761 build_function_type_list instead of build_function_type.
4762 Delete `endlink' variable.
4763
4764 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4765
4766 * config/avr/avr.c (avr_init_builtins): Call
4767 build_function_type_list instead of build_function_type.
4768
4769 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4770
4771 * config/picochip/picochip.c (picochip_init_builtins): Call
4772 build_function_type_list instead of build_function_type.
4773 Delete `endlink' variable.
4774
4775 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4776
4777 * config/bfin/bfin.c (bfin_init_builtins): Call
4778 build_function_type_list instead of build_function_type.
4779
4780 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4781
4782 From Bernd Schmidt
4783 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4784 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4785
4786 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4787
4788 From Jie Zhang:
4789 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4790 libbffastfp overrides libgcc when -mfast-fp.
4791
4792 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4793
4794 Originally from Bernd Schmidt
4795 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4796 * config/bfin/bfin.c (override_options): Test it and error if
4797 TARGET_FDPIC.
4798
4799 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4800
4801 Originally From Bernd Schmidt
4802 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4803 FD-PIC.
4804
4805 2011-05-03 Jeff Law <law@redhat.com>
4806
4807 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4808 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4809 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4810 than accessing AUX field directly. Free the AUX field before
4811 clearing it.
4812 (thread_block, thread_through_loop_header): Likewise.
4813 (thread_single_edge, mark_threaded_blocks): Likewise.
4814 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4815 (register_jump_thread): Do not attempt to thread to a NULL edge.
4816
4817 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4818
4819 * function.c (init_function_start): Call decide_function_section.
4820 * varasm.c (decide_function_section): New function.
4821 (assemble_start_function): When not using
4822 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4823 or first_function_block_is_cold.
4824 * rtl.h (decide_function_section): Declare.
4825
4826 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4827 Jakub Jelinek <jakub@redhat.com>
4828
4829 PR target/48774
4830 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4831 only succeed if req_mode is the same as set_mode.
4832
4833 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4834
4835 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4836 * genemit.c (gen_exp): Handle RETURN.
4837 * emit-rtl.c (verify_rtx_sharing): Likewise.
4838 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4839 * rtl.c (copy_rtx): RETURN is shared.
4840 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4841 (ret_rtx): New.
4842 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4843 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4844 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4845 * config/cris/cris.c (cris_expand_return): Likewise.
4846 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4847 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4848 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4849 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4850 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4851 Likewise.
4852 * config/v850/v850.c (expand_epilogue): Likewise.
4853 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4854 * config/arm/arm.md (epilogue): Likewise.
4855 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4856 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4857 variable to ret_reg.
4858
4859 2011-05-03 Richard Guenther <rguenther@suse.de>
4860
4861 PR lto/48846
4862 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4863 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4864 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4865
4866 2011-05-03 Richard Guenther <rguenther@suse.de>
4867
4868 * c-decl.c (grokdeclarator): Instead of looking at
4869 TREE_OVERFLOW check if the constant fits in the index type.
4870
4871 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4872
4873 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4874 (vec_store_lanes<mode><mode>): Likewise.
4875
4876 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4877
4878 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4879 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4880 convert_optab_index values.
4881 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4882 * genopinit.c (optabs): Initialize the new optabs.
4883 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4884 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4885 (expand_STORE_LANES): New functions.
4886 * tree.h (build_array_type_nelts): Declare.
4887 * tree.c (build_array_type_nelts): New function.
4888 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4889 (vect_model_load_cost): Likewise.
4890 (vect_store_lanes_supported, vect_load_lanes_supported)
4891 (vect_record_strided_load_vectors): Declare.
4892 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4893 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4894 (vect_transform_strided_load): Split out statement recording into...
4895 (vect_record_strided_load_vectors): ...this new function.
4896 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4897 (write_vector_array, create_array_ref): New functions.
4898 (vect_model_store_cost): Add store_lanes_p argument.
4899 (vect_model_load_cost): Add load_lanes_p argument.
4900 (vectorizable_store): Try to use store-lanes functions for
4901 interleaved stores.
4902 (vectorizable_load): Likewise load-lanes and loads.
4903 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4904 to vect_model_store_cost.
4905 (vect_build_slp_tree): Likewise vect_model_load_cost.
4906
4907 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4908
4909 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4910 * hooks.c (hook_bool_mode_uhwi_false): New function.
4911 * target.def (array_mode_supported_p): New hook.
4912 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4913 * doc/tm.texi: Regenerate.
4914 * stor-layout.c (mode_for_array): New function.
4915 (layout_type): Use it.
4916 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4917 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4918
4919 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4920
4921 PR target/48723
4922 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4923 for -fstack-check if the size to allocate is negative.
4924
4925 2011-05-02 Lawrence Crowl <crowl@google.com>
4926
4927 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4928 (timevar_cond_start): New for starting a timer only when it is not
4929 already running.
4930 (timevar_cond_stop): New for stopping a timer when it was not already
4931 running.
4932
4933 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4934 (timevar_cond_start): New as above.
4935 (timevar_cond_stop): New as above.
4936
4937 * timevar.def: Add start/stop timers for compiler phases,
4938 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4939 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4940 and TV_PHASE_FINALIZE.
4941 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4942 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4943 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4944 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4945 Make unused TV_OVERLOAD into a start/stop timer.
4946
4947 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4948 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4949 to indicate that they are start/stop timers.
4950
4951 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4952 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4953 Move initialization to do_compile.
4954 (do_compile): Add initialization from above.
4955 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4956
4957 * c-decl.c (c_write_global_declarations): Add start/stop of
4958 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4959
4960 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4961 or TV_PARSE_INLINE, as appropriate.
4962 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4963 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4964
4965 2011-05-02 Jason Merrill <jason@redhat.com>
4966
4967 PR c++/40975
4968 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4969
4970 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4971
4972 PR c/35445
4973 * c-decl.c (finish_decl): Only create a composite if the types are
4974 compatible.
4975
4976 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4977
4978 * config/fr30/fr30-protos.h (Mmode): Don't define.
4979 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4980 definition where used.
4981 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4982 define. Expand definitions where used.
4983 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4984 Expand definitions where used.
4985 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4986 rx_function_arg, rx_function_arg_advance,
4987 rx_function_arg_boundary): Expand definitions of those macros.
4988 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4989 definition where used.
4990
4991 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4992
4993 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4994 reg<->xmm moves.
4995 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4996 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4997 with *movv2sf_internal_rex64_avx.
4998 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4999 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5000 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5001 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5002 "vex" in "prefix" attribute calculation.
5003 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5004
5005 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5006
5007 PR target/47951
5008 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5009 inputs match the output.
5010
5011 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5012
5013 PR target/47955
5014 * config/m68k/m68k.c (m68k_expand_prologue): Set
5015 current_function_static_stack_size.
5016
5017 2011-05-02 Jan Hubicka <jh@suse.cz>
5018
5019 * lto-streamer.c (lto_streamer_cache_insert_1,
5020 lto_streamer_cache_lookup, lto_streamer_cache_create,
5021 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5022 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5023
5024 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5025
5026 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5027 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5028 config/m68k/t-opts: New files.
5029 * config/m68k/m68k-tables.opt: New file (generated).
5030 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5031 extra_options and m68k/t-opts to tmake_file.
5032 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5033 (all_isas): Initialize using m68k-isas.def.
5034 (all_microarchs): Initialize using m68k-microarchs.def.
5035 (m68k_find_selection): Remove.
5036 (m68k_handle_option): Don't assert that global structures are in
5037 use. Use error_at. Access variables via opts pointer. Don't
5038 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5039 directly for -m68020-40 and -m68020-60.
5040 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5041 m68k_tune_entry here.
5042 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5043 to m68k-opts.h.
5044 (m68k_library_id_string): Remove declaration.
5045 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5046 (m68k_library_id_string): New Variable.
5047 (march=, mcpu=, mtune=): Use Enum and Var.
5048
5049 2011-05-02 Richard Guenther <rguenther@suse.de>
5050
5051 * varasm.c (output_constructor_regular_field): Compute zero-based
5052 index with double-ints. Make sure to ICE instead of producing
5053 wrong code.
5054 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5055 in asserts. Properly use a signed type.
5056
5057 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5058
5059 * config/i386/sse.md (V): New mode iterator.
5060 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5061 TARGET_SSE2.
5062 (V_256): Rename from AVX256MODE.
5063 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5064 condition to all users.
5065 (VF1): Ditto.
5066 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5067 condition to all users.
5068 (VF_128): Make V4SF mode unconditional.
5069 (VF_256): Rename from AVX256MODEF2P.
5070 (VI4F_128): Rename from SSEMODE4S.
5071 (VI8F_128): Rename from SSEMODE2D.
5072 (VI4F_256): Rename from AVX256MODE8P.
5073 (VI8F_256): Rename from AVX256MODE4P.
5074 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5075 (ssescalarmodesuffix): Remove SF and DF modes.
5076 (SSEMODE124): Remove.
5077 (SSEMODE1248): Ditto.
5078 (SSEMODEF2P): Ditto.
5079 (AVXMODEF2P): Ditto.
5080 (AVXMODEFDP): Ditto.
5081 (AVXMODEFSP): Ditto.
5082 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5083 unconditional.
5084 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5085 unconditional.
5086 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5087 xop_pcmov_<mode>256. Use V mode iterator.
5088
5089 Adjust RTX patterns globally for renamed mode attributes.
5090
5091 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5092
5093 * haifa-sched.c (sched_emit_insn): Emit insn before first
5094 non-scheduled insn. Inform back-end about new insn. Add
5095 new insn to scheduled_insns list.
5096
5097 2011-05-02 Richard Guenther <rguenther@suse.de>
5098
5099 PR tree-optimization/48822
5100 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5101 (process_scc): Indicate which iteration we start.
5102
5103 2011-05-02 Jan Hubicka <jh@suse.cz>
5104
5105 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5106 (lto_section_overrun): New.
5107 * lto-section-out.c (append_block): Rename to ...
5108 (lto_append_block): ... this one; export.
5109 (lto_output_1_stream): Move lto lto-streamer.h
5110 (lto_output_data_stream): Update.
5111 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5112 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5113 functions.
5114
5115 2011-05-02 Richard Guenther <rguenther@suse.de>
5116
5117 * tree.c (tree_code_counts): New global array.
5118 (record_node_allocation_statistics): Count individual tree codes.
5119 (dump_tree_statistics): Dump individual code stats.
5120
5121 2011-05-01 Jan Hubicka <jh@suse.cz>
5122
5123 * ipa-inline.c (caller_growth_limits): Fix thinko when
5124 looking for largest stack frame.
5125 * ipa-inline.h (dump_inline_summary): Declare.
5126 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5127 on stack usage.
5128 (dump_inline_summary): Export.
5129 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5130
5131 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5132
5133 * reginfo.c (memory_move_cost): Change rclass argument type form
5134 'enum reg_class' to reg_class_t.
5135 * reload.h (memory_move_cost): Update prototype.
5136 * postreload.c reload_cse_simplify_set): Change type dclass var to
5137 reg_class_t.
5138 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5139 Update prototype.
5140 (ira_allocate_and_set_costs): Change aclass argument type form
5141 'enum reg_class' to reg_class_t.
5142 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5143 Change aclass argument type to reg_class_t.
5144 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5145 to reg_class_t.
5146 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5147 memory_move_cost call.
5148
5149 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5150 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5151 Change type tmp var to reg_class_t.
5152
5153 2011-04-30 Jan Hubicka <jh@suse.cz>
5154
5155 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5156 inlining into function with flatten attribute.
5157 (want_inline_small_function_p): Be more realistic about inlining
5158 cold calls where callee size grows.
5159
5160 2011-04-30 Jan Hubicka <jh@suse.cz>
5161
5162 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5163 flags.
5164
5165 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5166
5167 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5168 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5169 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5170 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5171 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5172 (print_operand): Rename to...
5173 (sparc_print_operand): ...this. Make static. Adjust
5174 sparc_print_operand function call.
5175 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5176 functions.
5177
5178 2011-04-30 Jan Hubicka <jh@suse.cz>
5179
5180 PR middle-end/48752
5181 * ipa-inline.c (early_inliner): Disable when doing late
5182 addition of function.
5183
5184 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5185
5186 * dwarf2out.c (get_address_mode): New inline.
5187 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5188 if not dwarf_strict emit
5189 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5190 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5191 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5192 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5193 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5194 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5195 mem_loc_descriptor callers.
5196 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5197 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5198 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5199 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5200 (base_types): New variable.
5201 (get_base_type_offset, calc_base_type_die_sizes,
5202 base_type_for_mode, mark_base_types, base_type_cmp,
5203 move_marked_base_types): New functions.
5204 (calc_die_sizes): Assert that die_offset is 0 or equal to
5205 next_die_offset.
5206 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5207 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5208 callers. If not dwarf_strict, call mem_loc_descriptor even for
5209 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5210 (gen_subprogram_die): Don't give up on call site parameters
5211 with non-integral or large integral modes. Adjust
5212 mem_loc_descriptor callers.
5213 (prune_unused_types): Call prune_unused_types_mark on base_types
5214 vector entries.
5215 (resolve_addr): Call mark_base_types.
5216 (dwarf2out_finish): Call move_marked_base_types.
5217
5218 PR tree-optimization/48809
5219 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5220 type.
5221 (gen_inbound_check): Don't compute index_expr - range_min in utype
5222 again, instead reuse SSA_NAME initialized in build_arrays.
5223 Remove two useless gsi_for_stmt calls.
5224
5225 2011-04-29 Jeff Law <law@redhat.com>
5226
5227 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5228
5229 2011-04-29 Martin Jambor <mjambor@suse.cz>
5230
5231 * cgraph.h (cgraph_postorder): Remove declaration.
5232 * ipa-utils.h (ipa_free_postorder_info): Declare.
5233 (ipa_reverse_postorder): Likewise.
5234 * cgraphunit.c: Include ipa-utils.h.
5235 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5236 * ipa-inline.c: Include ipa-utils.h.
5237 (ipa_inline): Update call to ipa_reverse_postorder.
5238 * ipa-pure-const.c (propagate_pure_const): Update call to
5239 ipa_reduced_postorder and ipa_print_order. Call
5240 ipa_free_postorder_info to clean up.
5241 (propagate_nothrow): Likewise.
5242 * ipa-reference.c (propagate): Removed a useless call to
5243 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5244 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5245 * ipa.c: Include ipa-utils.h.
5246 (ipa_profile): Update call to ipa_reverse_postorder.
5247 (cgraph_postorder): Moved to...
5248 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5249 (ipa_utils_print_order): Renamed to ipa_print_order.
5250 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5251 comments.
5252 (ipa_free_postorder_info): New function.
5253 * passes.c: Include ipa-utils.h.
5254 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5255 (ipa_write_summaries): Likewise.
5256 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5257 (cgraphunit.o): Likewise.
5258 (ipa.o): Likewise.
5259 (ipa-inline.o): Likewise.
5260
5261 2011-04-29 Jan Hubicka <jh@suse.cz>
5262
5263 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5264 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5265 * ipa-inline.h (clause_t): Turn into unsigned int.
5266 * ipa-inline-analysis.c (add_clause): Do more simplification.
5267 (and_predicates): Shortcut more cases.
5268 (predicates_equal_p): Move forward; check that clauses are properly
5269 ordered.
5270 (or_predicates): Shortcut more cases.
5271 (edge_execution_predicate): Rewrite as...
5272 (set_cond_stmt_execution_predicate): ... this function; handle
5273 __builtin_constant_p.
5274 (set_switch_stmt_execution_predicate): New .
5275 (compute_bb_predicates): New.
5276 (will_be_nonconstant_predicate): Update TODO.
5277 (estimate_function_body_sizes): Use compute_bb_predicates
5278 and free them later, always try to estimate if stmt is constant.
5279 (estimate_time_after_inlining, estimate_size_after_inlining):
5280 Gracefully handle optimized out edges.
5281 (read_predicate): Fix off by one error.
5282
5283 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5284
5285 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5286
5287 2011-04-27 Xinliang David Li <davidxl@google.com>
5288
5289 * tree-profile.c (init_ic_make_global_vars): Set
5290 tls attribute on ic vars.
5291 * coverage.c (coverage_end_function): Initialize
5292 function_list with zero.
5293
5294 2011-04-29 Richard Guenther <rguenther@suse.de>
5295
5296 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5297 for the type of the result.
5298 (fold_builtin_isascii): Likewise.
5299 (fold_builtin_toascii): Use integer_type_node where appropriate.
5300 (fold_builtin_logb): Likewise.
5301 (fold_builtin_frexp): Likewise.
5302 (fold_builtin_strstr): Likewise.
5303 (fold_builtin_strpbrk): Likewise.
5304 (fold_builtin_fputs): Likewise.
5305 (fold_builtin_sprintf): Likewise.
5306 (fold_builtin_snprintf): Likewise.
5307 (fold_builtin_printf): Likewise.
5308 (do_mpfr_remquo): Use a proper type for the assigned constant.
5309 (do_mpfr_lgamma_r): Likewise.
5310 * dwarf2out.c (resolve_one_addr): Use size_int.
5311 * except.c (init_eh): Likewise.
5312 (assign_filter_values): Use integer_type_node for filter values.
5313 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5314 indices.
5315 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5316 for EH region numbers.
5317 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5318 for the shift amount.
5319
5320 2011-04-29 Richard Guenther <rguenther@suse.de>
5321
5322 * expr.h (expand_shift): Rename to ...
5323 (expand_variable_shift): ... this.
5324 (expand_shift): Take a constant shift amount.
5325 * expmed.c (expand_shift): Rename to ...
5326 (expand_variable_shift): ... this.
5327 (expand_shift): New wrapper around expand_variable_shift.
5328 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5329 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5330 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5331 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5332 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5333 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5334 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5335 emit_store_flag_1, emit_store_flag): Likewise.
5336 * builtins.c (expand_builtin_signbit): Likewise.
5337 * calls.c (load_register_parameters): Likewise.
5338 * function.c (assign_parm_setup_block): Likewise.
5339 * lower-subreg.c (resolve_shift_zext): Likewise.
5340 * optabs.c (widen_bswap, expand_abs_nojump,
5341 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5342 * spu/spu.c (spu_expand_extv): Likewise.
5343 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5344
5345 2011-04-29 Richard Guenther <rguenther@suse.de>
5346
5347 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5348 for the remapped region number.
5349 * predict.c (build_predict_expr): Use integer_type_node for the
5350 predict kind.
5351 * fold-const.c (fold_binary_loc): Use integer_type_node for
5352 the shift amount. Use a proper type for the PLUS_EXPR operand.
5353
5354 2011-04-29 Michael Matz <matz@suse.de>
5355
5356 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5357 other trees that just builtins.
5358 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5359
5360 2011-04-29 Richard Guenther <rguenther@suse.de>
5361
5362 * tree-nested.c (get_trampoline_type): Use size_int.
5363 (get_nl_goto_field): Likewise.
5364 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5365 for all indexes.
5366 (lower_eh_constructs_2): Likewise.
5367 (lower_resx): Likewise.
5368 (lower_eh_dispatch): Likewise.
5369 * tree-mudflap.c (mf_build_string): Use size_int.
5370 (mudflap_register_call): Use integer_type_node for the flag.
5371 (mudflap_enqueue_constant): Use size_int.
5372 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5373 instead of rebuilding it.
5374
5375 2011-04-29 Richard Guenther <rguenther@suse.de>
5376
5377 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5378 Handle OBJ_TYPE_REF.
5379 (find_func_aliases_for_call): Use it more consistently.
5380
5381 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5382
5383 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5384 (rank_for_schedule): Use it.
5385 (schedule_block): Set it.
5386
5387 2011-04-28 David Li <davidxl@google.com>
5388
5389 * tree.c (crc32_string): Use crc32_byte.
5390 (crc32_byte): New function.
5391 * tree.h (crc32_byte): New function.
5392 * gcov.c (read_graph_file): Handle new cfg_cksum.
5393 (read_count_file): Ditto.
5394 * profile.c (instrument_values): Ditto.
5395 (get_exec_counts): Ditto.
5396 (read_profile_edge_counts): Ditto.
5397 (compute_branch_probabilities): Ditto.
5398 (compute_value_histograms): Ditto.
5399 (branch_prob): Ditto.
5400 (end_branch_prob): Ditto.
5401 * coverage.c (read_counts_file): Ditto.
5402 (get_coverage_counts): Ditto.
5403 (tree_coverage_counter_addr): Ditto.
5404 (coverage_checksum_string): Ditto.
5405 (coverage_begin_output): Ditto.
5406 (coverage_end_function): Ditto.
5407 (build_fn_info_type): Ditto.
5408 (build_fn_info_value): Ditto.
5409 * libgcov.c (gcov_exit): Ditto.
5410 * gcov-dump.c (tag_function): Ditto.
5411 (compute_checksum): Remove.
5412
5413 2011-04-29 Alan Modra <amodra@gmail.com>
5414
5415 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5416 unspec plus offset. Tidy macho code.
5417
5418 2011-04-29 Martin Jambor <mjambor@suse.cz>
5419
5420 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5421 node instead of a decl. Update all callers.
5422 * cgraph.h: Update declaration.
5423
5424 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5425
5426 PR tree-optimization/48765
5427 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5428 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5429 to indicate if loop aware SLP is being used. Scan the statements
5430 and update the vectorization factor according to the type of
5431 vectorization before statement analysis.
5432 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5433 pass it to vect_analyze_loop_operations.
5434 (vectorizable_reduction): Set number of copies to 1 in case of pure
5435 SLP statement.
5436 * tree-vect-stmts.c (vectorizable_conversion,
5437 vectorizable_assignment, vectorizable_shift,
5438 vectorizable_operation, vectorizable_type_demotion,
5439 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5440 Likewise.
5441 (vectorizable_condition): Move the check that it is not SLP
5442 vectorization before the number of copies check.
5443 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5444 to vectorize the loop using SLP.
5445
5446 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5447
5448 PR middle-end/48597
5449 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5450 inline asm.
5451
5452 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5453
5454 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5455 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5456 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5457 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5458 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5459 linux*.h headers.
5460 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5461 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5462 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5463 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5464 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5465 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5466 REG_NAME.
5467 * config/i386/linux.h (REG_NAME): Don't define.
5468 * config/i386/linux64.h (REG_NAME): Don't define.
5469 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5470 Undefine before defining.
5471
5472 2011-04-28 Jan Hubicka <jh@suse.cz>
5473
5474 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5475 nonconstant_names array.
5476 (estimate_function_body_sizes): Build nonconstant_names array; handle
5477 BUILT_IN_CONSTANT_P.
5478
5479 2011-04-28 Richard Guenther <rguenther@suse.de>
5480
5481 PR bootstrap/48804
5482 Revert
5483 2011-04-28 Richard Guenther <rguenther@suse.de>
5484
5485 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5486 as late as possible.
5487
5488 2011-04-28 Richard Guenther <rguenther@suse.de>
5489
5490 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5491 (debug_constraint): Do it here.
5492 (dump_constraints): And here.
5493 (rewrite_constraints): And here.
5494 (dump_constraint_edge): Remove.
5495 (dump_constraint_graph): Rewrite to produce DOT output.
5496 (solve_constraints): Build succ graph as late as possible.
5497 Dump constraint graphs before and after solving.
5498
5499 2011-04-28 Richard Guenther <rguenther@suse.de>
5500
5501 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5502 New function split out from ...
5503 (find_func_aliases): ... here. Call it.
5504 (find_func_aliases_for_call): Likewise.
5505
5506 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5507
5508 * internal-fn.h (internal_fn_name_array): Declare.
5509 (internal_fn_flags_array): Likewise.
5510
5511 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5512
5513 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5514 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5515 Move from sse.md.
5516 (ssemodefsuffix): Remove.
5517 (ssevecmodesuffix): New mode attribute.
5518 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5519 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5520 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5521 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5522 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5523 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5524 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5525 ssemodesuffix mode attribute.
5526 (float splitters): Use ssevecmodesuffix mode attribute.
5527 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5528 (sseinsmode): Rename from avxvecmode.
5529 (avxsizesuffix): Rename from avxmodesuffix.
5530 (sseintvecmode): Rename from avxpermvecmode.
5531 (ssedoublevecmode): Rename from ssedoublesizemode.
5532 (ssehalfvecmode): Rename from avxhalfvecmode.
5533 (ssescalarmode): Rename from avxscalarmode.
5534 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5535 templates for ssemodesuffix mode attribute.
5536 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5537 mode attribute.
5538
5539 Adjust RTX patterns globally for renamed mode attributes.
5540
5541 2011-04-27 Jan Hubcika <jh@suse.cz>
5542
5543 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5544 * ipa-inline-analysis.c: Include alloc-pool.h.
5545 (edge_predicate_pool): New.
5546 (trye_predicate_p): New function
5547 (false_predicate_p): New function.
5548 (add_clause): Sanity check that false clauses are "optimized";
5549 never add clauses to predicate that is already known to be false.
5550 (and_predicate): Use flase_predicate_p.
5551 (evaulate_predicate): Rename to ...
5552 (evaluate_predicate): ... this one; update all callers; assert
5553 that false is not listed among possible truths.
5554 (dump_predicate): Use true_predicate_p.
5555 (account_size_time): Use false_predicate_p.
5556 (evaulate_conditions_for_edge): Rename to ...
5557 (evaluate_conditions_for_edge) ... this one.
5558 (edge_set_predicate): New function.
5559 (inline_edge_duplication_hook): Duplicate edge predicates.
5560 (inline_edge_removal_hook): Free edge predicates.
5561 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5562 (dump_inline_summary): Update.
5563 (estimate_function_body_sizes): Set edge predicates.
5564 (estimate_calls_size_and_time): Handle predicates.
5565 (estimate_callee_size_and_time): Update.
5566 (remap_predicate): Add toplev_predicate; update comment.
5567 (remap_edge_predicates): New function.
5568 (inline_merge_summary): Compute toplev predicate; update.
5569 (read_predicate): New function.
5570 (read_inline_edge_summary): Use it.
5571 (inline_read_section): Likewise.
5572 (write_predicate): New function.
5573 (write_inline_edge_summary): Use it.
5574 (inline_write_summary): Likewise.
5575 (inline_free_summary): Free alloc pool and edge summary vec.
5576
5577 2011-04-27 Richard Guenther <rguenther@suse.de>
5578
5579 * tree-ssa-structalias.c (changed_count): Remove.
5580 (changed): Use a bitmap.
5581 (unify_nodes): Adjust.
5582 (do_sd_constraint): Likewise.
5583 (do_ds_constraint): Likewise.
5584 (do_complex_constraint): Likewise.
5585 (solve_graph): Likewise.
5586
5587 2011-04-27 Jan Hubicka <jh@suse.cz>
5588
5589 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5590
5591 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5592
5593 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5594 (avx_vperm2f128_*_operand): Ditto.
5595 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5596 Use avx_vpermilp_parallel in insn condition.
5597 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5598 Use avx_vperm2f128_parallel in insn condition.
5599
5600 2011-04-27 Richard Guenther <rguenther@suse.de>
5601
5602 * Makefile.in (tree-ssa-structalias.o): Remove
5603 gt-tree-ssa-structalias.h dependency.
5604 (GTFILES): Remove tree-ssa-structalias.c.
5605 * tree.c (allocate_decl_uid): New function.
5606 (make_node_stat): Use it.
5607 (copy_node_stat): Likewise.
5608 * tree.h (allocate_decl_uid): Declare.
5609 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5610 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5611 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5612 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5613 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5614 (struct heapvar_map): Likewise.
5615 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5616 heapvar_insert): Likewise.
5617 (make_heapvar_for): Rename to ...
5618 (make_heapvar): ... this. Simplify.
5619 (fake_var_decl_obstack): New global var.
5620 (build_fake_var_decl): New function.
5621 (make_constraint_from_heapvar): Adjust.
5622 (handle_lhs_call): Likewise.
5623 (create_function_info_for): Likewise.
5624 (intra_create_variable_infos): Likewise.
5625 (init_alias_vars): Allocate fake_var_decl_obstack.
5626 (init_alias_heapvars, delete_alias_heapvars): Remove.
5627 (compute_points_to_sets): Do not call init_alias_heapvars.
5628 (ipa_pta_execute): Likewise.
5629 (delete_points_to_sets): Free fake_var_decl_obstack.
5630
5631 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5632
5633 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5634 (si_from_UTItype, si_to_UTItype): New functions.
5635 (__udivmodti4): Use them to implement type-punning.
5636 * config/spu/multi3.c (union qword_TItype): New data type.
5637 (si_from_TItype, si_to_TItype): New functions.
5638 (__multi3): Use them to implement type-punning.
5639
5640 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5641
5642 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5643
5644 2011-04-27 Jan Hubicka <jh@suse.cz>
5645
5646 * ipa-prop.c (function_insertion_hook_holder): New holder.
5647 (ipa_add_new_function): New function.
5648 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5649 Register/deregister holder.
5650
5651 2011-04-27 Richard Guenther <rguenther@suse.de>
5652
5653 PR tree-optimization/48772
5654 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5655
5656 2011-04-27 Richard Guenther <rguenther@suse.de>
5657
5658 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5659 TARGET_MEM_REF handling.
5660
5661 2011-04-27 Nick Clifton <nickc@redhat.com>
5662
5663 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5664 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5665 (REG_CLASS_NAMES): Likewise.
5666 (REG_CLASS_CONTENTS): Likewise.
5667 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5668 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5669 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5670 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5671 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5672 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5673 duplicate register classes.
5674 (frv_class_likely_spilled_p): Likewise.
5675 (frv_register_move_cost): Likewise.
5676
5677 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5678 end of the regno_reg_class array.
5679
5680 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5681
5682 PR c/48742
5683 * c-typeck.c (build_binary_op): Don't wrap arguments if
5684 int_operands is true.
5685
5686 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5687
5688 PR target/48767
5689 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5690 targetm.calls.must_pass_in_stack for void type.
5691
5692 2011-04-26 Jan Hubicka <jh@suse.cz>
5693
5694 * cgraphbuild.c (build_cgraph_edges): Update call
5695 of cgraph_create_edge and cgraph_create_indirect_edge.
5696 * cgraph.c (cgraph_create_edge_including_clones,
5697 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5698 cgraph_update_edges_for_call_stmt_node): Do not take nest
5699 argument; do not initialize call_stmt_size/time.
5700 (dump_cgraph_node): Do not dump nest.
5701 (cgraph_clone_edge): Do not take loop_nest argument;
5702 do not propagate it; do not clone call_stmt_size/time.
5703 (cgraph_clone_node): Likewise.
5704 (cgraph_create_virtual_clone): Update.
5705 * cgraph.h (struct cgraph_edge): Remove
5706 call_stmt_size/call_stmt_time/loop_nest.
5707 (cgraph_create_edge, cgraph_create_indirect_edge,
5708 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5709 prototype.
5710 * tree-emutls.c (gen_emutls_addr): Update.
5711 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5712 loop_nest; handle indirect calls, too.
5713 (clone_inlined_nodes): Do not care about updating inline summaries.
5714 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5715 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5716 stream call_stmt_size/call_stmt_time/loop_nest.
5717 * ipa-inline.c (edge_badness): Update.
5718 (ipa_inline): dump summaries after inlining.
5719 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5720 New.
5721 (inline_edge_summary): New function.
5722 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5723 (inline_edge_removal_hook): Handle edge summaries.
5724 (inline_edge_duplication_hook): New hook.
5725 (inline_summary_alloc): Alloc hooks.
5726 (initialize_growth_caches): Do not register removal hooks.
5727 (free_growth_caches); Do not free removal hook.
5728 (dump_inline_edge_summary): New function.
5729 (dump_inline_summary): Use it.
5730 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5731 (inline_update_callee_summaries): New function.
5732 (inline_merge_summary): Use it.
5733 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5734 (read_inline_edge_summary): New function.
5735 (inline_read_section): Use it.
5736 (write_inline_edge_summary): New function.
5737 (inline_write_summary): Use it.
5738 (inline_free_summary): Free edge new holders.
5739 * tree-inline.c (copy_bb): Update.
5740
5741 2011-04-26 Jason Merrill <jason@redhat.com>
5742
5743 * tree-eh.c (lower_try_finally_switch): Create the label along with
5744 the CASE_LABEL_EXPR.
5745
5746 2011-04-26 David S. Miller <davem@davemloft.net>
5747 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5748
5749 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5750 * configure: Regenerate.
5751
5752 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5753
5754 PR target/48258
5755 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5756 reduction.
5757 (VEC_reduc): New code iterator and splitters for vector reduction.
5758 (VEC_reduc_name): Ditto.
5759 (VEC_reduc_rtx): Ditto.
5760 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5761 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5762
5763 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5764 support for extracting SF on VSX.
5765
5766 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5767 generating xscvspdp.
5768 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5769 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5770 double add, minimum, maximum vector reduction.
5771 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5772 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5773 optimize double vector reduction.
5774 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5775
5776 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5777
5778 * config/fr30/fr30.h (inhibit_libc): Don't define.
5779 * config/m32r/m32r-protos.h: Correct comment.
5780 * config/v850/v850.h (GHS_default_section_names,
5781 GHS_current_section_names): Use tree, not union tree_node *.
5782
5783 2011-04-26 Xinliang David Li <davidxl@google.com>
5784
5785 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5786 * c-family/c-opts.c (c_common_handle_option): Set
5787 warn_maybe_uninitialized.
5788 * opts.c (common_handle_option): Ditto.
5789 * common.opt: New option.
5790 * tree-ssa.c (warn_uninit): Add one more parameter.
5791 (warn_uninitialized_var): Pass warning code.
5792 * tree-flow.h: Interface change.
5793
5794 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5795
5796 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5797 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5798 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5799
5800 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5801
5802 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5803 * config/mips/mips.opt (mmips-tfile): Remove.
5804
5805 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5806 mips-tdump reference to ...
5807 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5808 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5809 reference by Tru64 UNIX.
5810
5811 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5812
5813 PR debug/48768
5814 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5815 is error_mark_node, set value to NULL.
5816
5817 PR tree-optimization/48734
5818 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5819 if return value from maybe_fold_*_comparsions isn't something
5820 the code is prepared to handle.
5821
5822 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5823
5824 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5825 mode check.
5826 (ext_QIreg_nomode_operands): Remove.
5827 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5828 (*andsi_1): Ditto.
5829 (*andhi_1): Ditto.
5830
5831 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5832
5833 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5834
5835 2011-04-26 Richard Guenther <rguenther@suse.de>
5836
5837 * c-typeck.c (build_unary_op): Do not expand array-refs via
5838 pointer arithmetic. Only adjust qualifiers for function types.
5839
5840 2011-04-26 Richard Guenther <rguenther@suse.de>
5841
5842 PR middle-end/48694
5843 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5844 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5845 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5846 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5847
5848 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5849
5850 * doc/extend.texi: Document __underlying_type.
5851
5852 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5853
5854 * config/rs6000/titan.md (automata_option "progress"): Remove.
5855
5856 2011-04-25 Jeff Law <law@redhat.com>
5857
5858 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5859
5860 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5861
5862 * system.h (ENUM_BITFIELD): Remove.
5863
5864 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5865 Eric Botcazou <ebotcazou@adacore.com>
5866
5867 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5868 for STORE_FLAG_VALUE==-1 case.
5869
5870 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5871
5872 PR target/43804
5873 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5874 LEGITIMATE_PIC_OPERAND_P.
5875
5876 2011-04-24 Jan Hubicka <jh@suse.cz>
5877
5878 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5879 WPA hack.
5880 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5881 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5882 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5883 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5884 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5885 Sanity check predicate length.
5886 (remap_predicate): Likewise; sanity check jump functions.
5887 (inline_read_section, inline_write_summary): Sanity check
5888 predicate length.
5889
5890 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5891
5892 PR other/48748
5893 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5894 __is_literal_type, and __is_trivial; update throughout about
5895 possibly cv-qualified void types.
5896
5897 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5898
5899 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5900 testsuite and make it version agnostic.
5901
5902 2011-04-22 Jan Hubicka <jh@suse.cz>
5903
5904 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5905
5906 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5907
5908 PR c/48685
5909 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5910 to VOID_TYPE even around MODIFY_EXPR.
5911
5912 2011-04-22 Mike Stump <mikestump@comcast.net>
5913
5914 * gensupport.c (read_md_rtx): Fix typo in comment.
5915 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5916 comment.
5917
5918 2011-04-22 Jan Hubicka <jh@suse.cz>
5919
5920 * gengtype.c (open_base_files): Add ipa-inline.h include.
5921 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5922 ipa-prop.c; update all uses.
5923 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5924 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5925 merge summary of inlined function into former caller.
5926 * ipa-inline.c (max_benefit): Remove.
5927 (edge_badness): Compensate for removal of benefits.
5928 (update_caller_keys): Use
5929 reset_node_growth_cache/reset_edge_growth_cache.
5930 (update_callee_keys): Likewise.
5931 (update_all_callee_keys): Likewise.
5932 (inline_small_functions): Do not collect max_benefit; do not reset
5933 estimated_growth; call free_growth_caches and initialize_growth_caches.
5934 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5935 struct size_time_entry): New structures.
5936 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5937 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5938 and estimated_growth.
5939 (edge_growth_cache_entry): New structure.
5940 (node_growth_cache, edge_growth_cache): New global vars.
5941 (estimate_growth): Turn into inline.
5942 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5943 initialize_growth_caches, free_growth_caches): Declare.
5944 (estimate_edge_growth): Rewrite.
5945 (estimate_edge_time): Implement as inline cache lookup.
5946 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5947 functions.
5948 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5949 (NUM_CONDITIONS): New constant.
5950 (predicate_conditions): New enum.
5951 (IS_NOT_CONSTANT): New constant.
5952 (edge_removal_hook_holder): New var.
5953 (node_growth_cache, edge_growth_cache): New global vars.
5954 (true_predicate, single_cond_predicate, false_predicate,
5955 not_inlined_predicate, add_condition, add_clause, and_predicates,
5956 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5957 dump_clause, dump_predicate, account_size_time,
5958 evaulate_conditions_for_edge): New functions.
5959 (inline_summary_alloc): Move to heap.
5960 (inline_node_removal_hook): Clear condition and entry vectors.
5961 (inline_edge_removal_hook): New function.
5962 (initialize_growth_caches, free_growth_caches): New function.
5963 (dump_inline_summary): Update.
5964 (edge_execution_predicate): New function.
5965 (will_be_nonconstant_predicate): New function.
5966 (estimate_function_body_sizes): Compute BB and constantness predicates.
5967 (compute_inline_parameters): Do not clear estimated_growth.
5968 (estimate_edge_size_and_time): New function.
5969 (estimate_calls_size_and_time): New function.
5970 (estimate_callee_size_and_time): New function.
5971 (remap_predicate): New function.
5972 (inline_merge_summary): New function.
5973 (do_estimate_edge_time): New function based on...
5974 (estimate_edge_time): ... this one.
5975 (do_estimate_edge_growth): New function.
5976 (do_estimate_growth): New function based on....
5977 (estimate_growth): ... this one.
5978 (inline_analyze_function): Analyze after deciding on jump functions.
5979 (inline_read_section): New function.
5980 (inline_read_summary): Use it.
5981 (inline_write_summary): Write all the new data.
5982 * ipa-prop.c (ipa_get_param_decl_index): Export.
5983 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5984 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5985 Declare.
5986 (ipa_get_lattice): Move here from ipa-cp.c
5987 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5988 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5989 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5990 cgraph_edge_inlinable_p): Remove.
5991 * cgraphunit.c: Include ipainline.h
5992 (cgraph_process_new_functions): Update call of
5993 compute_inline_parameters.
5994
5995 2011-04-22 Richard Guenther <rguenther@suse.de>
5996
5997 * tree.c (build_int_cst): Properly create canonicalized integer
5998 constants.
5999 (build_int_cst_type): Remove scary comments.
6000
6001 2011-04-22 Xinliang David Li <davidxl@google.com>
6002
6003 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6004 by default when -Wno-error is not specified.
6005 * opts-global.c (decode_options): Remove call to
6006 control_warning_options.
6007
6008 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6009
6010 PR tree-optimization/48717
6011 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6012 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6013
6014 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6015
6016 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6017 definition where used.
6018
6019 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6020
6021 PR c/48716
6022 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6023 TREE_STATIC variables declared inside of some OpenMP construct.
6024
6025 2011-04-22 Martin Jambor <mjambor@suse.cz>
6026
6027 PR middle-end/48585
6028 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6029
6030 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6031
6032 PR c/36750
6033 * c-typeck.c (pop_init_level): Do not warn about initializing
6034 with ` = {0}'.
6035
6036 2011-04-22 Alan Modra <amodra@gmail.com>
6037
6038 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6039 when returning call_cookie.
6040 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6041 pointers, to functions with no more vector args than the current
6042 function, and some non-local calls for ABI_V4.
6043 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6044 sibcall_nonlocal_aix64): Combine to ..
6045 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6046 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6047 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6048 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6049 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6050 operand.
6051 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6052 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6053 sibcall_value_symbolic_64): Delete.
6054
6055 2011-04-21 Xinliang David Li <davidxl@google.com>
6056
6057 * cgraph.h: Remove pid.
6058 * cgraph.c: Remove pid.
6059 * value-prof.c (init_node_map): New function.
6060 (del_node_map): New function.
6061 (find_func_by_funcdef_no): New function.
6062 (gimple_ic_transform): Call new function.
6063 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6064 * function.c (get_last_funcdef_no): New function.
6065 * function.h (get_last_funcdef_no): New function.
6066 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6067 to libgcov function.
6068 (tree-profiling): Call node map init and delete function.
6069
6070 2011-04-21 Ian Lance Taylor <iant@google.com>
6071
6072 * godump.c (go_format_type): Use exported Go name for anonymous
6073 field name.
6074
6075 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6076
6077 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6078 Call builtin_function_type_list instead of builtin_function_type.
6079 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6080
6081 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6082
6083 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6084 build_function_type_list instead of build_function_type.
6085 Delete variable `endlink'.
6086
6087 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6088
6089 * config/s390/s390.c (s390_init_builtins): Call
6090 build_function_type_list instead of build_function_type.
6091
6092 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6093
6094 * config/ia64/ia64.c (ia64_init_builtins): Call
6095 build_function_type_list instead of builtin_function_type.
6096
6097 2011-04-21 Easwaran Raman <eraman@google.com>
6098
6099 * cfgexpand.c (stack_var): Remove OFFSET...
6100 (add_stack_var): ...and its reference here...
6101 (expand_stack_vars): ...and here.
6102 (stack_var_cmp): Sort by descending order of size.
6103 (partition_stack_vars): Change heuristic.
6104 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6105 (dump_stack_var_partition): Add newline after each partition.
6106
6107 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6108 Jeff Law <law@redhat.com>
6109
6110 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6111 * gengtype.c (matching_file_name_substitute): Likewise.
6112
6113 2011-04-21 Richard Guenther <rguenther@suse.de>
6114
6115 PR lto/48703
6116 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6117
6118 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6119
6120 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6121
6122 2011-04-21 Richard Guenther <rguenther@suse.de>
6123
6124 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6125 file name.
6126
6127 2011-04-21 Richard Guenther <rguenther@suse.de>
6128
6129 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6130 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6131 Use DECL_P, not SSA_VAR_P.
6132 (ptr_derefs_may_alias_p): Likewise.
6133 (ptr_deref_may_alias_ref_p_1): Likewise.
6134 (decl_refs_may_alias_p): Likewise.
6135 (refs_may_alias_p_1): Likewise.
6136 (ref_maybe_used_by_call_p_1): Likewise.
6137 (call_may_clobber_ref_p_1): Likewise.
6138 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6139 are either MEM_REF or TARGET_MEM_REF.
6140 (indirect_refs_may_alias_p): Likewise.
6141 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6142 for MEM_EXPR of indirect calls.
6143
6144 2011-04-21 Tristan Gingold <gingold@adacore.com>
6145
6146 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6147 (dst_file_info_struct): Remove flen field.
6148 (lookup_filename): Remove code that set flen field.
6149
6150 2011-04-21 Tristan Gingold <gingold@adacore.com>
6151
6152 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6153
6154 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6155
6156 PR target/48708
6157 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6158 vec_extract and vec_concat for non-SSE4_1 targets.
6159
6160 2011-04-21 Richard Guenther <rguenther@suse.de>
6161
6162 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6163 return statements.
6164
6165 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6166
6167 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6168 undefine.
6169 (FILE): Don't undefine.
6170
6171 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6172
6173 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6174 struct rtx_def *.
6175 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6176 struct rtx_def *.
6177 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6178 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6179 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6180 rtx_def *.
6181 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6182 definitions where used.
6183 * config/microblaze/microblaze.h (struct microblaze_args): Use
6184 rtx, not struct rtx_def *.
6185 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6186 rtx_def *.
6187 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6188 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6189 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6190 not struct rtx_def *.
6191 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6192 struct rtx_def *.
6193 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6194 rtx_def *.
6195 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6196
6197 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6198
6199 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6200 operand_equal_p to compare DR_BASE_ADDRESSes.
6201 (vect_check_interleaving): Likewise.
6202
6203 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6204
6205 PR target/46329
6206 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6207 for all Neon struct constants.
6208
6209 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6210
6211 * target.def (legitimate_constant_p): New hook.
6212 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6213 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6214 * doc/tm.texi: Regenerate.
6215 * hooks.h (hook_bool_mode_rtx_true): Declare.
6216 * hooks.c (hook_bool_mode_rtx_true): Define.
6217 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6218 * calls.c (precompute_register_parameters): Replace uses of
6219 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6220 (emit_library_call_value_1): Likewise.
6221 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6222 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6223 * ira-costs.c (scan_one_insn): Likewise.
6224 * recog.c (general_operand, immediate_operand): Likewise.
6225 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6226 * reload1.c (init_eliminable_invariants): Likewise.
6227
6228 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6229 mode argument.
6230 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6231 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6232 argument.
6233 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6234 * config/alpha/predicates.md (input_operand): Update call to
6235 alpha_legitimate_constant_p.
6236
6237 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6238 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6239 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6240 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6241 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6242 (arm_legitimate_constant_p): New functions.
6243 (arm_cannot_force_const_mem): Make static.
6244
6245 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6246
6247 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6248 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6249 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6250 instead of bfin_legitimate_constant_p.
6251 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6252 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6253
6254 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6255
6256 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6257
6258 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6259 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6260 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6261 (frv_legitimate_constant_p): Make static. Add a mode argument.
6262
6263 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6264 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6265 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6266
6267 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6268 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6269 * config/i386/i386.c (legitimate_constant_p): Rename to...
6270 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6271 argument.
6272 (ix86_cannot_force_const_mem): Update accordingly.
6273 (ix86_legitimate_address_p): Likewise.
6274 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6275 * config/i386/i386.md: Update commentary.
6276
6277 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6278 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6279 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6280 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6281
6282 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6283
6284 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6285 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6286 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6287 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6288
6289 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6290 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6291 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6292
6293 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6294 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6295 (m32r_legitimate_constant_p): New function.
6296
6297 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6298 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6299 LEGITIMATE_CONSTANT_P.
6300 (LEGITIMATE_CONSTANT_P): Delete.
6301 * config/m68k/m68k.c (m68k_expand_prologue): Call
6302 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6303 (m68k_legitimate_constant_p): New function.
6304 * config/m68k/m68k.md: Update comments.
6305
6306 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6307 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6308 (mcore_legitimate_constant_p): New function.
6309
6310 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6311 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6312 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6313 Add a mode argument.
6314 (mep_legitimate_address): Update accordingly.
6315 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6316
6317 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6318 Delete.
6319 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6320 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6321 static. Check OP's mode for VOIDmode.
6322 (microblaze_legitimate_constant_p): New function.
6323 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6324
6325 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6326 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6327 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6328 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6329 * config/mips/predicates.md: Update comments.
6330
6331 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6332 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6333 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6334 (mmix_legitimate_constant_p): Make static, return a bool, and take
6335 a mode argument.
6336 (mmix_print_operand_address): Update accordingly.
6337
6338 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6339 Delete.
6340 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6341 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6342 static. Add a mode argument.
6343 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6344
6345 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6346
6347 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6348 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6349 (pa_legitimate_constant_p): New function.
6350
6351 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6352
6353 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6354 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6355 (pdp11_legitimate_constant_p): New function.
6356
6357 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6358 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6359 (rs6000_legitimate_constant_p): New function.
6360
6361 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6362 (rx_legitimate_constant_p): ...this.
6363 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6364 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6365 (rx_legitimate_constant_p): ...this.
6366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6367 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6368
6369 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6370 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6371 * config/s390/s390.c (legitimate_constant_p): Rename to...
6372 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6373 and add a mode argument.
6374 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6375
6376 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6377
6378 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6379 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6380 (sh_legitimate_constant_p): New function.
6381
6382 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6383 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6384 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6385 (legitimate_constant_p): Rename to...
6386 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6387 argument.
6388 (constant_address_p): Update accordingly.
6389
6390 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6391 argument and return a bool.
6392 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6393 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6394 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6395 (spu_rtx_costs): Update accordingly.
6396 * config/spu/predicates.md (vec_imm_operand): Likewise.
6397
6398 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6399
6400 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6401 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6402 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6403
6404 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6405 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6406 * config/vax/vax.c (legitimate_constant_p): Likewise.
6407
6408 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6409 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6410 (xtensa_legitimate_constant_p): New function.
6411
6412 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6413
6414 * target.def (cannot_force_const_mem): Add a mode argument.
6415 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6416 * doc/tm.texi: Regenerate.
6417 * hooks.h (hook_bool_mode_rtx_false): Declare.
6418 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6419 (hook_bool_mode_const_rtx_true): Likewise.
6420 (hook_bool_mode_rtx_false): New function.
6421 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6422 to be non-VOID. Update call to cannot_force_const_mem.
6423 (find_reloads): Update accordingly.
6424 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6425 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6426 argument.
6427 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6428 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6429 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6430 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6431 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6432 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6433 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6434 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6435 (m68k_cannot_force_const_mem): ...this new function.
6436 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6437 argument.
6438 (mips_const_insns, mips_legitimize_const_move): Update calls.
6439 (mips_secondary_reload_class): Likewise.
6440 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6441 (pa_cannot_force_const_mem): ...this new function.
6442 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6443 (rs6000_cannot_force_const_mem): ...this new function.
6444 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6445 argument.
6446 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6447 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6448 to...
6449 (xtensa_cannot_force_const_mem): ...this new function.
6450
6451 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6452
6453 * config/mips/mips.c (mips16_build_function_stub): Call
6454 build_function_type_list instead of build_function_type.
6455 (mips16_build_call_stub): Likewise.
6456
6457 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6458
6459 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6460 instead of build_function_type.
6461
6462 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6463
6464 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6465 instead of build_function_type.
6466
6467 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6468
6469 PR target/48678
6470 * config/i386/i386.md (insv): Change operand 0 constraint to
6471 "register_operand". Change operand 1 and 2 constraint to
6472 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6473 * config/i386/sse.md (sse4_1_pinsrb): Export.
6474 (sse2_pinsrw): Ditto.
6475 (sse4_1_pinsrd): Ditto.
6476 (sse4_1_pinsrq): Ditto.
6477 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6478 * config/i386/i386.c (ix86_expand_pinsr): New.
6479
6480 2011-04-20 Easwaran Raman <eraman@google.com>
6481
6482 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6483 containing union type only with -fstrict-aliasing.
6484
6485 2011-04-20 Jim Meyering <meyering@redhat.com>
6486
6487 Remove useless if-before-free tests.
6488 * calls.c (expand_call, save_area): Likewise.
6489 * cfgcleanup.c (try_forward_edges): Likewise.
6490 * collect2.c (collect_execute): Likewise.
6491 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6492 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6493 * coverage.c (coverage_checksum_string): Likewise.
6494 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6495 * cselib.c (cselib_init): Likewise.
6496 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6497 (df_set_clean_cfg): Likewise.
6498 * function.c (free_after_compilation): Likewise.
6499 * gcc.c (do_spec_1, main): Likewise.
6500 * gcov.c (create_file_names): Likewise.
6501 * gensupport.c (identify_predicable_attribute): Likewise.
6502 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6503 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6504 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6505 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6506 * ipa-pure-const.c (local_pure_const): Likewise.
6507 * ipa-reference.c (propagate): Likewise.
6508 * ira-costs.c (free_ira_costs): Likewise.
6509 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6510 * matrix-reorg.c (mat_free): Likewise.
6511 * prefix.c (get_key_value): Likewise.
6512 * profile.c (compute_value_histograms): Likewise.
6513 * reload1.c (free_reg_equiv): Likewise.
6514 * sched-deps.c (free_deps): Likewise.
6515 * sel-sched-ir.c (fence_clear): Likewise.
6516 * sese.c (set_rename, if_region_set_false_region): Likewise.
6517 * tree-data-ref.c (free_rdg): Likewise.
6518 * tree-eh.c (lower_try_finally): Likewise.
6519 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6520 * tree-ssa-live.c (delete_var_map): Likewise.
6521 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6522 * tree-ssa-pre.c (phi_trans_add): Likewise.
6523
6524 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6525
6526 PR tree-optimization/48611
6527 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6528 beyond ERT_MUST_NOT_THROW region.
6529
6530 2011-04-20 Catherine Moore <clm@codesourcery.com>
6531
6532 * config/mips/mips.opt (mfix-24k): New.
6533 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6534 * config/mips/mips.md (length): Increase by 4 for stores if
6535 fixing 24K errata.
6536 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6537 all noreorder if fixing 24K errata.
6538 * doc/invoke.texi: Document mfix-24k.
6539
6540 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6541
6542 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6543 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6544
6545 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6546
6547 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6548 (const_ok_for_op): ... to here.
6549
6550 2011-04-20 Kai Tietz <ktietz@redhat.com>
6551
6552 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6553 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6554
6555 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6556
6557 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6558
6559 2011-04-20 Richard Guenther <rguenther@suse.de>
6560
6561 PR tree-optimization/47892
6562 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6563 are if-convertible.
6564
6565 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6566
6567 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6568
6569 2011-04-20 Tristan Gingold <gingold@adacore.com>
6570
6571 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6572
6573 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6574
6575 PR target/18145
6576
6577 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6578 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6579 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6580 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6581 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6582
6583 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6584 New prototype.
6585
6586 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6587 (avr_asm_named_section, avr_asm_output_aligned_common,
6588 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6589 New functions to update...
6590 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6591 (avr_asm_init_sections): Overwrite section callbacks for
6592 data_section, bss_section.
6593 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6594 from here to...
6595 (avr_file_end): ...here.
6596
6597 2011-04-20 Richard Guenther <rguenther@suse.de>
6598
6599 PR middle-end/48695
6600 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6601 objects and types here. Adjust for their offset before comparing.
6602
6603 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6604
6605 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6606 statement per copy.
6607
6608 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6609
6610 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6611 (GIMPLE_H): Include $(INTERNAL_FN_H).
6612 (OBJS-common): Add internal-fn.o.
6613 (internal-fn.o): New rule.
6614 * internal-fn.def: New file.
6615 * internal-fn.h: Likewise.
6616 * internal-fn.c: Likewise.
6617 * gimple.h: Include internal-fn.h.
6618 (GF_CALL_INTERNAL): New gf_mask.
6619 (gimple_statement_call): Put fntype into a union with a new
6620 internal_fn field.
6621 (gimple_build_call_internal): Declare.
6622 (gimple_build_call_internal_vec): Likewise.
6623 (gimple_call_same_target_p): Likewise.
6624 (gimple_call_internal_p): New function.
6625 (gimple_call_internal_fn): Likewise.
6626 (gimple_call_fntype): Return null for internal calls.
6627 (gimple_call_set_fntype): Assert that the function is not internal.
6628 (gimple_call_set_fn): Likewise.
6629 (gimple_call_set_fndecl): Likewise.
6630 (gimple_call_set_internal_fn): New function.
6631 (gimple_call_addr_fndecl): Handle null functions.
6632 (gimple_call_return_type): Likewise null types.
6633 * gimple.c (gimple_build_call_internal_1): New function.
6634 (gimple_build_call_internal): Likewise.
6635 (gimple_build_call_internal_vec): Likewise.
6636 (gimple_call_same_target_p): Likewise.
6637 (gimple_call_flags): Handle calls to internal functions.
6638 (gimple_call_fnspec): New function.
6639 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6640 (gimple_has_side_effects): Handle null functions.
6641 (gimple_rhs_has_side_effects): Likewise.
6642 (gimple_call_copy_skip_args): Handle calls to internal functions.
6643 * cfgexpand.c (expand_call_stmt): Likewise.
6644 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6645 * gimple-fold.c (gimple_fold_call): Handle null functions.
6646 (gimple_fold_stmt_to_constant_1): Don't fold
6647 calls to internal functions.
6648 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6649 functions.
6650 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6651 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6652 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6653 (do_warn_unused_result): Likewise.
6654 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6655 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6656 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6657 the target of a call.
6658 (initialize_hash_element): Update accordingly.
6659 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6660 (iterative_hash_hashable_expr): Handle calls to internal functions.
6661 (print_expr_hash_elt): Likewise.
6662 * tree-ssa-pre.c (can_value_number_call): Likewise.
6663 (eliminate): Handle null functions.
6664 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6665 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6666 (find_func_aliases): Likewise.
6667 * value-prof.c (gimple_ic_transform): Likewise.
6668 (gimple_indirect_call_to_profile): Likewise.
6669 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6670 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6671
6672 2011-04-19 Jan Hubicka <jh@suse.cz>
6673
6674 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6675 * ipa-inline.c (inline_small_functions): Compute summaries first,
6676 populate heap later.
6677
6678 2011-04-19 Jan Hubicka <jh@suse.cz>
6679
6680 * cgraph.h (save_inline_function_body): Remove.
6681 * ipa-inline-transform.c: New file, broke out of...
6682 * ipa-inline.c: ... this one; Update toplevel comment.
6683 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6684 make global.
6685 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6686 (cgraph_mark_inline_edge): Rename to inline_call; move to
6687 ipa-inline-transform.c.
6688 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6689 move to ipa-inline-transform.c
6690 (recursive_inlining, inline_small_functions, flatten_function,
6691 ipa_inline, inline_always_inline_functions,
6692 early_inline_small_functions): Update.
6693 (inline_transform): Move to ipa-inline-transform.c.
6694 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6695 Declare.
6696 * Makefile.in (ipa-inline-transform.o): New file.
6697 * cgraphunit.c (save_inline_function_body): Move to
6698 ipa-inline-transform.c
6699
6700 2011-04-19 DJ Delorie <dj@redhat.com>
6701
6702 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6703 registers if we already know there aren't any.
6704 (m32c_emit_epilogue): Don't emit a barrier here.
6705 (m32c_emit_eh_epilogue): Likewise.
6706 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6707 operands at expand time.
6708 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6709 int" wchar type.
6710 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6711 duplicates. Provide aliases instead.
6712 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6713 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6714 the compiler.
6715
6716 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6717
6718 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6719 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6720 (general_or_i64_p, sparc_register_move_cost): New function.
6721
6722 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6723
6724 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6725 Add lynx, mipssde. Sort table.
6726
6727 2011-04-19 Xinliang David Li <davidxl@google.com>
6728
6729 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6730 not negative.
6731
6732 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6733
6734 PR target/48678
6735 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6736 is a SUBREG with non-MODE_INT mode inside of it.
6737
6738 2011-04-19 Martin Jambor <mjambor@suse.cz>
6739
6740 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6741 also according to actual contants.
6742 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6743 (gimple_fold_call): Use it.
6744 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6745
6746 2011-04-19 Martin Jambor <mjambor@suse.cz>
6747
6748 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6749 non-pointer assignments.
6750
6751 2011-04-19 Martin Jambor <mjambor@suse.cz>
6752
6753 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6754 account anc_offset and otr_type from the indirect edge info.
6755 * ipa-prop.c (get_ancestor_addr_info): New function.
6756 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6757 get_ancestor_addr_info, call it.
6758 (ipa_note_param_call): Do not initialize information about polymorphic
6759 calls, return the indirect call graph edge. Remove the last
6760 parameter, adjust all callers.
6761 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6762 parameters. Initialize polymorphic information in the indirect edge.
6763
6764 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6765
6766 PR lto/48148
6767 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6768 the types if they have different enumeration identifiers.
6769
6770 2011-04-19 Jan Hubicka <jh@suse.cz>
6771
6772 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6773 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6774 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6775 (optimize_function_for_size_p) ... here.
6776
6777 2011-04-19 Richard Guenther <rguenther@suse.de>
6778
6779 PR lto/48207
6780 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6781 langhook.
6782
6783 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6784
6785 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6786 if DECL_NO_INLINE_WARNING_P is set on the function.
6787
6788 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6789
6790 PR fortran/47976
6791 * reload1.c (inc_for_reload): Return void. All callers changed.
6792 (emit_input_reload_insns): Don't try to delete previous output
6793 reloads to a register, or record spill_reg_store for autoincs.
6794
6795 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6796
6797 * gengtype.h: Updated copyright year.
6798 (struct input_file_st): Add inpisplugin field.
6799 (type_fileloc): New function.
6800 * gengtype.c
6801 (write_typed_struct_alloc_def): Add gcc_assert.
6802 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6803 (write_typed_alloc_defns): Don't output for plugin files.
6804 (input_file_by_name): Clear inpisplugin field.
6805 (main): Set inpisplugin field for plugin files.
6806
6807 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6808
6809 * gengtype-state.c (string_eq): New.
6810 (read_state): Use string_eq instead of strcmp when creating the
6811 state_ident_tab.
6812
6813 2011-04-19 Wei Guozhi <carrot@google.com>
6814
6815 PR target/47855
6816 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6817 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6818 linkage.
6819 * config/arm/constraints.md (Uu): New constraint.
6820 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6821
6822 2011-04-19 Tristan Gingold <gingold@adacore.com>
6823
6824 * config.gcc (-*-*-*vms): Added.
6825 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6826 definitions moved.
6827 * config/vms/vms-ld.c: New file.
6828 * config/vms/vms-ar.c: New file.
6829 * config/vms/t-vmsnative: New file.
6830
6831 2011-04-18 Xinliang David Li <davidxl@google.com>
6832
6833 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6834
6835 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6836
6837 PR middle-end/48661
6838 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6839 if TREE_TYPE (v) is non-NULL.
6840
6841 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6842 gimple_get_virt_mehtod_for_binfo.
6843 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6844 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6845 callers.
6846 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6847
6848 2011-04-18 Michael Matz <matz@suse.de>
6849 Steve Ellcey <sje@cup.hp.com>
6850
6851 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6852 use its mode as source mode if it isn't VOIDmode.
6853
6854 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6855
6856 * doc/passes.texi: Fill crossref nodes.
6857
6858 2011-04-18 Jim Meyering <meyering@redhat.com>
6859
6860 Fix doubled-word typos in comments and strings
6861 * config/alpha/vms-unwind.h: s/for for/for/
6862 * config/arm/unwind-arm.h: Likewise.
6863 * config/microblaze/microblaze.c: Likewise.
6864 * config/sh/constraints.md: s/in in/in/
6865 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6866
6867 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6868
6869 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6870 (AVX_FLOAT_MODE_P): Ditto.
6871 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6872 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6873 (AVX_VEC_FLOAT_MODE_P): Ditto.
6874 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6875 (UNSPEC_MASKSTORE): Ditto.
6876 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6877 Merge from <sse>_movmsk<ssemodesuffix> and
6878 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6879 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6880 iterator.
6881 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6882 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6883 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6884
6885 2011-04-18 Jan Hubicka <jh@suse.cz>
6886
6887 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6888
6889 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6890 (want_inline_function_called_once_p): Break out the logic from
6891 ipa_inline.
6892 (edge_badness): Ensure that profile is not misupdated.
6893 (lookup_recursive_calls): Prioritize by call frequencies.
6894 (inline_small_functions): Move program size estimates here;
6895 actually process whole queue even when unit growth has been
6896 met. (to properly compute inline_failed reasons and for the
6897 case unit size decrease.) Revisit comments on recursive inlining.
6898 (ipa_inline): Remove unit summary code; first inline hot calls
6899 of functions called once, cold calls next.
6900 (order, nnodes): Remove unused variables.
6901 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6902 (GTFILES): Remove ipa-inline.c
6903 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6904
6905 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6906
6907 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6908
6909 2011-04-18 Jie Zhang <jie@codesourcery.com>
6910 Richard Earnshaw <rearnsha@arm.com>
6911
6912 * arm.c (neon_builtin_type_bits): Remove.
6913 (typedef enum neon_builtin_mode): New.
6914 (T_MAX): Don't define.
6915 (typedef enum neon_builtin_datum): Remove bits, codes[],
6916 num_vars and base_fcode. Add mode, code and fcode.
6917 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6918 VAR10): Change accordingly.
6919 (neon_builtin_data[]): Change accordingly
6920 (arm_init_neon_builtins): Change accordingly.
6921 (neon_builtin_compare): Remove.
6922 (locate_neon_builtin_icode): Remove.
6923 (arm_expand_neon_builtin): Change accordingly.
6924
6925 * arm.h (enum arm_builtins): Move to ...
6926 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6927
6928 * arm.c (arm_builtin_decl): Declare.
6929 (TARGET_BUILTIN_DECL): Define.
6930 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6931 (arm_builtin_decls[]): New.
6932 (arm_init_neon_builtins): Store builtin declarations in
6933 arm_builtin_decls[].
6934 (arm_init_tls_builtins): Likewise.
6935 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6936 (arm_builtin_decl): New.
6937
6938 2011-04-18 Richard Guenther <rguenther@suse.de>
6939
6940 * tree.c (upper_bound_in_type): Build properly canonicalized
6941 INTEGER_CSTs.
6942 (lower_bound_in_type): Likewise.
6943
6944 2011-04-18 Richard Guenther <rguenther@suse.de>
6945
6946 * gimple.h (gimple_call_addr_fndecl): New function.
6947 (gimple_call_fndecl): Use it.
6948 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6949 for direct calls.
6950 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6951 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6952
6953 2011-04-18 Richard Guenther <rguenther@suse.de>
6954
6955 PR middle-end/48650
6956 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6957
6958 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6959
6960 PR lto/48492
6961 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6962 DECL_IN_CONSTANT_POOL without RTL.
6963
6964 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6965 Ira Rosen <ira.rosen@linaro.org>
6966
6967 PR target/48252
6968 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6969 to match neon_vzip/vuzp/vtrn_internal.
6970 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6971 outputs explicitly dependent on both inputs.
6972 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6973
6974 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6975
6976 PR tree-optimization/48616
6977 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6978 whether the shift is by scalar or vector based on whether all SLP
6979 scalar stmts have the same rhs.
6980
6981 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6982
6983 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6984 memory operands.
6985
6986 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6987
6988 PR target/43700
6989 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6990 registers.
6991
6992 2011-04-17 Jan Hubicka <jh@suse.cz>
6993
6994 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6995 * cgrpahunit.c (cgraph_finalize_function): Do not set
6996 finalized_by_frontend.
6997 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6998 finalized_by_frontend.
6999
7000 2011-04-17 Jan Hubicka <jh@suse.cz>
7001
7002 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7003 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7004 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7005 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7006 method.
7007 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7008 gimple-fold.c
7009 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7010
7011 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7012
7013 PR lto/48538
7014 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7015 is non-null before accessing it.
7016 (input_cgraph): Remove trailing spaces.
7017
7018 2011-04-17 Revital Eres <revital.eres@linaro.org>
7019
7020 * params.def (sms-min-sc): New param flag.
7021 * modulo-sched.c (sms_schedule): Use it.
7022 * doc/invoke.texi (sms-min-sc): Document it.
7023
7024 2011-04-17 Jan Hubicka <jh@suse.cz>
7025
7026 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7027 present, also set gimple_call_set_cannot_inline.
7028 * ipa-inline.c: Update toplevel comment.
7029 (MAX_TIME): Remove.
7030 (cgraph_clone_inlined_nodes): Fix linebreaks.
7031 (cgraph_check_inline_limits): Restructure to ...
7032 (caller_growth_limits): ... this one; be more tolerant
7033 on growth in nested inline chains; add explanatory comment;
7034 fix stack accounting thinko introduced by previous patch.
7035 (cgraph_default_inline_p): Remove.
7036 (report_inline_failed_reason): New function.
7037 (can_inline_edge_p): New function.
7038 (can_early_inline_edge_p): New function.
7039 (leaf_node_p): Move upwards in file.
7040 (want_early_inline_function_p): New function.
7041 (want_inline_small_function_p): New function.
7042 (want_inline_self_recursive_call_p): New function.
7043 (cgraph_edge_badness): Rename to ...
7044 (edge_badness) ... this one; fix linebreaks.
7045 (update_edge_key): Update call of edge_baddness; add
7046 detailed dump about queue updates.
7047 (update_caller_keys): Use can_inline_edge_p and
7048 want_inline_small_function_p.
7049 (cgraph_decide_recursive_inlining): Rename to...
7050 (recursive_inlining): Use can_inline_edge_p and
7051 want_inline_self_recursive_call_p; simplify and remove no longer
7052 valid FIXME.
7053 (cgraph_set_inline_failed): Remove.
7054 (add_new_edges_to_heap): Use can_inline_edge_p and
7055 want_inline_small_function_p.
7056 (cgraph_decide_inlining_of_small_functions): Rename to ...
7057 (inline_small_functions): ... this one; cleanup; use
7058 can/want predicates; cleanup debug ouput; work edges till fibheap
7059 is exhausted and do not stop once unit growth is reached; remove
7060 later loop processing remaining edges.
7061 (cgraph_flatten): Rename to ...
7062 (flatten_function): ... this one; use can_inline_edge_p
7063 and can_early_inline_edge_p predicates.
7064 (cgraph_decide_inlining): Rename to ...
7065 (ipa_inline): ... this one; remove unreachable nodes before
7066 inlining functions called once; simplify the pass.
7067 (cgraph_perform_always_inlining): Rename to ...
7068 (inline_always_inline_functions): ... this one; use
7069 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7070 (cgraph_decide_inlining_incrementally): Rename to ...
7071 (early_inline_small_functions): ... this one; simplify
7072 using new predicates; cleanup; make dumps prettier.
7073 (cgraph_early_inlining): Rename to ...
7074 (early_inliner): newer inline regular functions into always-inlines;
7075 fix updating of call stmt summaries.
7076 (pass_early_inline): Update for new names.
7077 (inline_transform): Fix formating.
7078 (gate_cgraph_decide_inlining): Rename to ...
7079 (pass_ipa_inline): ... this one.
7080 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7081 * ipa-inline-analysis.c (dump_inline_summary): Update.
7082 (compute_inline_parameters): Do not compute disregard_inline_limits;
7083 look for mismatching arguments.
7084 (estimate_growth): Fix handlig of non-trivial self recursion.
7085 (inline_read_summary): Do not read info->disregard_inline_limits.
7086 (inline_write_summary): Do not write info->disregard_inline_limits.
7087 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7088 and move all checks into can_inline_edge_p predicate; re-enable code
7089 comparing optimization levels.
7090 (expand_call_inline): Do not test inline_forbidden_into_p.
7091 * Makefile.in (ipa-inline.o): Update arguments.
7092
7093 2011-04-17 Revital Eres <revital.eres@linaro.org>
7094
7095 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7096
7097 2011-04-17 Revital Eres <revital.eres@linaro.org>
7098
7099 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7100
7101 2011-04-17 Michael Matz <matz@suse.de>
7102
7103 PR tree-optimization/48622
7104 PR lto/48645
7105 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7106 in same order as they're written.
7107
7108 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7109
7110 * config/pa/predicates.md: Reorganize and simplify predicates.
7111 Eliminate duplicate code checks.
7112 (arith_operand): Rename to arith14_operand
7113 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7114 * config/pa/pa.md: Use renamed operands.
7115 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7116 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7117 arith11_operand, adddi3_operand, indexed_memory_operand,
7118 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7119 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7120 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7121 move_dest_operand, move_src_operand, prefetch_cc_operand,
7122 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7123 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7124 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7125 div_operand, int5_operand, movb_comparison_operator,
7126 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7127 arith_double_operand, ireg_operand, lhs_lshift_operand,
7128 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7129 integer_store_memory_operand): Likewise.
7130 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7131 (integer_store_memory_operand, read_only_operand,
7132 function_label_operand, borx_reg_operand,
7133 non_hard_reg_operand): Likewise.
7134 (eq_neq_comparison_operator): Delete unused operator.
7135 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7136 function_label_operand.
7137 (emit_move_sequence): Likewise.
7138
7139 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7140
7141 * config/i386/sse.md (sseunpackmode): New mode attribute.
7142 (ssepackmode): Ditto.
7143 (vec_pack_trunc_<mode>): Macroize expander from
7144 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7145 (vec_unpacks_lo_<mode>): Macroize expander from
7146 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7147 (vec_unpacks_hi_<mode>): Macroize expander from
7148 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7149 (vec_unpacku_lo_<mode>): Macroize expander from
7150 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7151 (vec_unpacku_hi_<mode>): Macroize expander from
7152 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7153 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7154 ix86_expand_sse4_unpack.
7155 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7156
7157 2011-04-16 Jan Hubicka <jh@suse.cz>
7158
7159 * cgraphbuild.c: Include ipa-inline.h.
7160 (reset_inline_failed): Use initialize_inline_failed.
7161 * cgraph.c: Include ipa-inline.h.
7162 (cgraph_create_node_1): Do not initialize estimated_growth.
7163 (initialize_inline_failed): More to ipa-inline-analysis.c
7164 (dump_cgraph_node): Do not dump inline flags.
7165 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7166 and disregard_inline_limits flags.
7167 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7168 time, size, estimated_growth.
7169 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7170 Update.
7171 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7172 DECL_DISREGARD_INLINE_LIMITS.
7173 (cgraph_analyze_function): Do not initialize
7174 node->local.disregard_inline_limits.
7175 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7176 inlinable, versionable and disregard_inline_limits.
7177 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7178 cgraph_check_inline_limits, cgraph_default_inline_p,
7179 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7180 add_new_edges_to_heap): Update.
7181 (cgraph_decide_inlining_of_small_function): Update; set
7182 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7183 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7184 cgraph_decide_inlining_incrementally): Update.
7185 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7186 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7187 time, size and estimated_growth parameters.
7188 (estimate_edge_growth): Update.
7189 (initialize_inline_failed): Declare.
7190 * ipa-split.c: Include ipa-inline.h
7191 (execute_split_functions): Update.
7192 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7193 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7194 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7195 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7196 estimated_growth to INT_MIN.
7197 (inline_node_duplication_hook): Likewise.
7198 (dump_inline_summary): Dump new fields.
7199 (compute_inline_parameters): Update.
7200 (estimate_edge_time, estimate_time_after_inlining,
7201 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7202 inline_write_summary):
7203 (initialize_inline_failed): Move here from cgraph.c.
7204 * tree-sra.c: Include ipa-inline.h.
7205 (ipa_sra_preliminary_function_checks): Update.
7206 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7207 ipa-inline.h.
7208
7209 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7210
7211 * config/i386/sse.md (V16): New mode iterator.
7212 (VI1, VI8): Ditto.
7213 (AVXMODEQI, AVXMODEDI): Remove.
7214 (sse2, sse3): New mode attribute.
7215 (mov<mode>): Use V16 mode iterator.
7216 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7217 (push<mode>1): Use V16 mode iterator.
7218 (movmisalign<mode>): Ditto.
7219 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7220 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7221 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7222 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7223 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7224 avx_movdqu<avxmodesuffix>.
7225 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7226 *avx_movdqu<avxmodesuffix>.
7227 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7228 avx_lddqu<avxmodesuffix>.
7229 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7230 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7231 avx_movnt<AVXMODEDI:mode>.
7232 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7233 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7234
7235 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7236
7237 PR target/48629
7238 * haifa-sched.c (prune_ready_list, schedule_block): Use
7239 sched_pressure_p rather than flag_sched_pressure.
7240
7241 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7242
7243 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7244 cgraph_get_node instead of cgraph_get_create_node.
7245
7246 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7247
7248 * cfgexpand.c (expand_debug_expr): Use
7249 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7250
7251 2011-04-15 Michael Matz <matz@suse.de>
7252
7253 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7254 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7255 * function.c (gimplify_parameters): Ditto.
7256 * gimplify.c (gimplify_vla_decl): Ditto.
7257
7258 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7259 (gimple_call_set_alloca_for_var): New inline function.
7260 (gimple_call_alloca_for_var_p): Ditto.
7261 * gimple.c (gimple_build_call_from_tree): Remember
7262 CALL_ALLOCA_FOR_VAR_P state.
7263 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7264
7265 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7266 calls if they were for VLA objects.
7267
7268 2011-04-15 Martin Jambor <mjambor@suse.cz>
7269
7270 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7271 of ADR_EXPRs.
7272
7273 2011-04-15 Martin Jambor <mjambor@suse.cz>
7274
7275 PR middle-end/48601
7276 * tree-emutls.c (lower_emutls_function_body): Call
7277 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7278 result is non-NULL.
7279
7280 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7281
7282 * c-decl.c (detect_field_duplicates): Call
7283 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7284
7285 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7286
7287 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7288 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7289 * ipa-pure-const.c (check_stmt): Call it.
7290 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7291
7292 2011-04-15 Richard Guenther <rguenther@suse.de>
7293
7294 PR tree-optimization/48290
7295 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7296 Properly decide inhibiting propagation based on the valueized
7297 operand. Do loop-closed SSA form preserving here ...
7298 (init_copy_prop): ... not here.
7299
7300 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7301
7302 PR target/48612
7303 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7304 (*ieee_smax<mode>3): Likewise.
7305
7306 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7307
7308 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7309 Replace match_operand with match_dup for the third operand in
7310 these expanders.
7311
7312 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7313
7314 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7315 to track processing of conditionals. Update all callers.
7316 (try_combine, simplify_if_then_else): Update.
7317
7318 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7319
7320 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7321 -fsched-pressure.
7322
7323 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7324
7325 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7326 instead of match_operand for operand 3.
7327
7328 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7329
7330 * recog.h (insn_operand_data): Add an "allows_mem" field.
7331 * genoutput.c (output_operand_data): Initialize it.
7332 * optabs.c (maybe_legitimize_operand_same_code): New function.
7333 (maybe_legitimize_operand): Use it when matching the original
7334 op->value.
7335
7336 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7337
7338 * gimplify.c: Fix issues in comments throughout.
7339 (voidify_wrapper_expr): Fix long line.
7340 (build_stack_save_restore): Likewise.
7341 (gimplify_loop_expr): Likewise.
7342 (gimplify_compound_lval): Likewise.
7343 (gimplify_init_ctor_eval): Likewise.
7344 (gimplify_modify_expr_rhs): Likewise.
7345 (omp_notice_threadprivate_variable): Likewise.
7346
7347 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7348
7349 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7350 original one if this is not a builtin function.
7351
7352 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7353
7354 PR target/48605
7355 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7356 offset it as needed based on top 2 bits in operands[3], change
7357 MEM mode to SFmode and mask those 2 bits away from operands[3].
7358
7359 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7360
7361 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7362 change from objc_declare_protocols() to objc_declare_protocol().
7363
7364 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7365
7366 * config/i386/sse.md (sse4_1): New mode attribute.
7367 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7368 avx_blend<ssemodesuffix><avxmodesuffix> and
7369 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7370 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7371 avx_blendv<ssemodesuffix><avxmodesuffix> and
7372 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7373 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7374 avx_dp<ssemodesuffix><avxmodesuffix> and
7375 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7376 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7377 (sse4_1_packusdw): Merge with *avx_packusdw.
7378 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7379 (sse4_1_pblendw): Merge with *avx_pblendw.
7380 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7381 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7382 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7383 VF mode iterator.
7384 (sse4_1_round<ssescalarmodesuffix>): Merge with
7385 *avx_round<ssescalarmodesuffix>.
7386 (aesenc): Merge with *avx_aesenc.
7387 (aesenclast): Merge with *avx_aesenclast.
7388 (aesdec): Merge with *avx_aesdec.
7389 (aesdeclast): Merge with *avx_aesdeclast.
7390 (pclmulqdq): Merge with *pclmulqdq.
7391 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7392 New predicate.
7393 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7394
7395 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7396
7397 PR middle-end/48608
7398 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7399 (align_local_variable): This. Update DECL_ALIGN.
7400 (add_stack_var): Updated.
7401 (expand_one_stack_var): Likewise.
7402
7403 2011-04-14 Richard Guenther <rguenther@suse.de>
7404
7405 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7406 Remove.
7407 (dse_initialize_block_local_data, dse_leave_block,
7408 record_voperand_set, get_stmt_uid): Likewise.
7409 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7410 (dse_optimize_stmt): Remove voperand set handling code.
7411 Simplify and improve to handle any kind of killing stmt.
7412 (dse_record_phi): Remove.
7413 (dse_enter_block): Simplify.
7414 (tree_ssa_dse): Likewise.
7415 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7416
7417 2011-04-14 Jan Hubicka <jh@suse.cz>
7418
7419 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7420 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7421 (cgraph_local_info): Remove inline_summary.
7422 * ipa-cp.c: Include ipa-inline.h.
7423 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7424 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7425 accesor.
7426 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7427 (input_overwrite_node): Do not set inline summary.
7428 (input_node): Do not stream inline summary.
7429 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7430 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7431 growth; we do not have inline parameters computed for that anyway.
7432 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7433 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7434 (inline_summary_t): New type and VECtor.
7435 (debug_inline_summary, dump_inline_summaries): Declare.
7436 (inline_summary): Use VOCtor.
7437 (estimate_edge_growth): Kill hack computing call stmt size directly.
7438 * lto-section-in.c (lto_section_name): Add inline section.
7439 * ipa-inline-analysis.c: Include lto-streamer.h
7440 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7441 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7442 (inline_summary_vec): Define.
7443 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7444 dump_inline_summaries): New functions.
7445 (estimate_function_body_sizes): Properly compute size/time of outgoing
7446 calls.
7447 (compute_inline_parameters): Alloc inline_summary; do not compute
7448 size/time of incomming calls.
7449 (estimate_edge_time): Avoid missing time summary hack.
7450 (inline_read_summary): Read inline summary info.
7451 (inline_write_summary): Write inline summary info.
7452 (inline_free_summary): Free all hooks and inline summary vector.
7453 * lto-streamer.h: Add LTO_section_inline_summary section.
7454 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7455 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7456
7457 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7458
7459 * tree-vectorizer.h (vect_strided_store_supported): Add a
7460 HOST_WIDE_INT argument.
7461 (vect_strided_load_supported): Likewise.
7462 (vect_permute_store_chain): Return void.
7463 (vect_transform_strided_load): Likewise.
7464 (vect_permute_load_chain): Delete.
7465 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7466 count argument. Check that the count is a power of two.
7467 (vect_strided_load_supported): Likewise.
7468 (vect_permute_store_chain): Return void. Update after above changes.
7469 Assert that the access is supported.
7470 (vect_permute_load_chain): Likewise.
7471 (vect_transform_strided_load): Return void.
7472 * tree-vect-stmts.c (vectorizable_store): Update calls after
7473 above interface changes.
7474 (vectorizable_load): Likewise.
7475 (vect_analyze_stmt): Don't check for strided powers of two here.
7476
7477 2011-04-14 Richard Guenther <rguenther@suse.de>
7478
7479 PR tree-optimization/48590
7480 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7481 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7482 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7483 BUILT_IN_STACK_SAVE.
7484 * tree-ssa-dce.c (propagate_necessity): Handle
7485 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7486
7487 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7488
7489 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7490 objc_declare_class.
7491
7492 2011-04-14 Richard Guenther <rguenther@suse.de>
7493
7494 * tree.h (get_object_alignment_1): Declare.
7495 * builtins.c (get_object_alignment_1): Split out worker from ...
7496 (get_object_alignment): ... here.
7497 * fold-const.c (get_pointer_modulus_and_residue): Use
7498 get_object_alignment_1.
7499
7500 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7501
7502 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7503 type parameter.
7504 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7505 parameter. Generalise code to handle arrays as well as vectors.
7506 (vect_setup_realignment): Update accordingly.
7507 * tree-vect-stmts.c (vectorizable_store): Likewise.
7508 (vectorizable_load): Likewise.
7509
7510 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7511
7512 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7513 within the per-copy loop.
7514
7515 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7516
7517 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7518 in the dump file.
7519
7520 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7521
7522 * doc/options.texi (Negative): Explicitly mention that the
7523 Negative chain must be circular.
7524
7525 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7526
7527 * function.h (block_chainon): Declare.
7528 * function.c (block_chainon): Define.
7529
7530 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7531 Eric Weddington <eric.weddington@atmel.com>
7532 Georg-Johann Lay <avr@gjlay.de>
7533
7534 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7535 New Includes
7536 (avr_init_builtins, avr_expand_builtin,
7537 avr_expand_delay_cycles, avr_expand_unop_builtin,
7538 avr_expand_binop_builtin ): New functions.
7539 (avr_builtin_id): New enum
7540 (struct avr_builtin_description): New struct
7541 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7542 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7543
7544 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7545 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7546 UNSPECV_DELAY_CYCLES): new enumeration values
7547 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7548 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7549 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7550 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7551 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7552 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7553 "fmulsu"): New insns
7554
7555 * config/avr/avr-c.c: fix line endings
7556 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7557 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7558 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7559 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7560 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7561
7562 * doc/extend.texi (AVR Built-in Functions): New node
7563 (Target Builtins): Add documentation of AVR
7564 built-in functions.
7565
7566 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7567
7568 PR target/44643
7569 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7570 alone. Error if non-const data has attribute progmem.
7571
7572 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7573
7574 * tree.h (struct tree_constructor): Include tree_typed instead of
7575 tree_common.
7576 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7577 TS_TYPED instead of TS_COMMON.
7578
7579 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7580
7581 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7582 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7583 (sse2_psadbw): Merge with *avx_psadbw.
7584 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7585 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7586 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7587 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7588 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7589 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7590 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7591 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7592 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7593 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7594 (ssse3_palignrti): Merge with *avx_palignrti.
7595
7596 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7597
7598 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7599 * tree-ssanames.c (fini_ssanames): VEC_free it.
7600 (make_ssa_name_fn): Update for VECness of free_ssanames.
7601 (release_ssa_name, release_dead_ssa_names): Likewise.
7602 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7603 tree_common.
7604 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7605 TS_TYPED instead of TS_COMMON.
7606
7607 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7608
7609 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7610 statistics_counter_event.
7611 * tree-ssa-copyrename.c (stats): Define.
7612 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7613 statistics_counter_event.
7614 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7615 (bswap_stats, widen_mul_stats): Define.
7616 (insert_reciprocals): Increment rdivs_inserted.
7617 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7618 rfuncs_inserted. Add calls to statistics_counter_event.
7619 (execute_cse_sincos_1): Increment inserted.
7620 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7621 statistics_counter_event.
7622 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7623 of bswap_stats. Add calls to statistics_counter_event.
7624 (convert_mult_to_widen): Increment widen_mults_inserted.
7625 (convert_plusminus_to_widen): Increment maccs_inserted.
7626 (convert_mult_to_fma): Increment fmas_inserted.
7627 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7628 calls to statistics_counter_event.
7629
7630 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7631
7632 PR rtl-optimization/48455
7633 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7634 `temp_costs->mem_cost'.
7635
7636 2011-04-13 Jan Hubicka <jh@suse.cz>
7637
7638 * ipa-inline.h: New file.
7639 * ipa-inline-analysis.c: New file. Broken out of ...
7640 * ipa-inline.c: ... this file; update toplevel comment;
7641 include ipa-inline.h
7642 (inline_summary): Move to ipa-inline.h
7643 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7644 ipa-inline-analysis.c.
7645 (cgraph_estimate_time_after_inlining): Rename to
7646 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7647 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7648 to estimate_edge_growth.
7649 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7650 rename to estimate_size_after_inlining.
7651 (cgraph_mark_inline_edge): Update for new naming convention.
7652 (cgraph_check_inline_limits): Likewise.
7653 (cgraph_edge_badness): Likewise.
7654 (cgraph_decide_recursive_inlining): Likewise.
7655 (cgraph_decide_inlining_of_small_functions): Likewise.
7656 (cgraph_decide_inlining_incrementally): Likewise.
7657 (cgraph_estimate_growth): Rename to estimate_growth; move to
7658 ipa-inline-analysis.c.
7659 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7660 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7661 (compute_inline_parameters): Likewise.
7662 (compute_inline_parameters_for_current): Likewise.
7663 (pass_inline_parameters): Likewise.
7664 (inline_indirect_intraprocedural_analysis): Likewise.
7665 (analyze_function): Rename to inline_analyze_function; likewise.
7666 (add_new_function): Move to ipa-inline-analysis.c.
7667 (inline_generate_summary): Likewise.
7668 (inline_read_summary): Likewise.
7669 (inline_write_summary): Likewise.
7670 * Makefile.in (ipa-inline-analysis.c): New file.
7671
7672 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7673
7674 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7675 * configure: Regenerate.
7676
7677 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7678
7679 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7680 instead of tree_common.
7681 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7682 Likewise.
7683 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7684 TS_TYPED rather than TS_COMMON.
7685 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7686
7687 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7688
7689 PR target/45263
7690 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7691 r20 around calls of __tablejump_elpm__
7692
7693 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7694
7695 PR middle-end/48591
7696 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7697 NULL.
7698 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7699
7700 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7701
7702 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7703 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7704 (cfi_vec): New typedef.
7705 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7706 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7707 (cie_cfi_vec): New static variable.
7708 (cie_cfi_head): Delete.
7709 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7710 declaration changed. Use vector rather than list operations.
7711 (new_cfi): Don't initialize the dw_cfi_next field.
7712 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7713 rather than list operations.
7714 (lookup_cfa): Use vector rather than list operations.
7715 (output_cfis): New argument upto. Accept a cfi_vec rather than
7716 a dw_cfi_ref list head as argument. All callers changed.
7717 Iterate over the vector using upto as a maximum index.
7718 (output_all_cfis): New static function.
7719 (output_fde): Use vector rather than list operations. Use the
7720 new upto argument for output_cfis rather than manipulating a
7721 list.
7722 (dwarf2out_begin_prologue): Change initializations to match
7723 new struct members.
7724 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7725 from the vector length rather than searching for the end of a list.
7726 Use output_all_cfis.
7727 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7728
7729 2011-04-13 Nick Clifton <nickc@redhat.com>
7730
7731 * config/rx/rx.md (movmemsi): Do not use this pattern when
7732 volatile pointers are involved.
7733
7734 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7735
7736 * config/i386/sse.md (pinsrbits): Remove.
7737 (sse2_packsswb): Merge with *avx_packsswb.
7738 (sse2_packssdw): Merge with *avx_packssdw.
7739 (sse2_packuswb): Merge with *avx_packuswb.
7740 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7741 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7742 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7743 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7744 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7745 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7746 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7747 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7748 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7749 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7750 (sse2_loadld): Merge with *avx_loadld.
7751 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7752 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7753 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7754 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7755 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7756
7757 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7758
7759 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7760 calling TREE_CHAIN.
7761 * print-tree.c (print_node): Likewise.
7762 * tree-inline.c (copy_tree_r): Likewise.
7763 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7764 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7765 instead of TS_COMMON.
7766 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7767 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7768 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7769 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7770 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7771 ...and these...
7772 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7773 * tree.h: ...here.
7774 (TREE_CHAIN): Check for a TS_COMMON structure.
7775 (TREE_TYPE): Check for a TS_TYPED structure.
7776
7777 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7778
7779 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7780 cgraph_get_create_node instead of cgraph_node.
7781
7782 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7783
7784 * c-parser.c (c_parser_initelt): Updated call to
7785 objc_build_message_expr.
7786 (c_parser_postfix_expression): Likewise.
7787
7788 2011-04-12 Kai Tietz <ktietz@redhat.com>
7789
7790 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7791 MASK_MS_BITFIELD_LAYOUT bit.
7792
7793 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7794
7795 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7796 assert it is always true.
7797 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7798 moves.
7799
7800 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7801
7802 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7803 compiling Objective-C to be more efficient.
7804
7805 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7806
7807 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7808 argv_copied.
7809
7810 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7811
7812 * recog.h, genoutput.c, optabs.c: Revert last patch.
7813
7814 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7815
7816 PR target/48090
7817 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7818
7819 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7820
7821 * recog.h (insn_operand_data): Add an "allows_mem" field.
7822 * genoutput.c (output_operand_data): Initialize it.
7823 * optabs.c (maybe_legitimize_operand_same_code): New function.
7824 (maybe_legitimize_operand): Use it when matching the original
7825 op->value.
7826
7827 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7828
7829 * genpreds.c (process_define_predicate): Move most processing
7830 to gensupport.c. Continue to validate the expression.
7831 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7832 (process_define_predicate): Move processing to gensupport.c.
7833 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7834 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7835 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7836 argument.
7837 (valid_predicate_name_p): New function, split out from old
7838 genpreds.c:process_define_predicate.
7839 (process_define_predicate): New function, combining code from
7840 old genpreds.c and genrecog.c functions.
7841 (process_rtx): Call it for DEFINE_PREDICATE and
7842 DEFINE_SPECIAL_PREDICATE.
7843
7844 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7845
7846 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7847 size of a '%A' memory reference.
7848 (T_DREG, T_QREG): New neon_builtin_type_bits.
7849 (arm_init_neon_builtins): Assert that the load and store operands
7850 are neon_struct_operands.
7851 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7852 (NEON_ARG_MEMORY): New builtin_arg.
7853 (neon_dereference_pointer): New function.
7854 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7855 Handle NEON_ARG_MEMORY.
7856 (arm_expand_neon_builtin): Update after above interface changes.
7857 Use NEON_ARG_MEMORY for loads and stores.
7858 * config/arm/predicates.md (neon_struct_operand): New predicate.
7859 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7860 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7861 (V_four_elem): Tweak formatting.
7862 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7863 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7864 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7865 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7866 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7867 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7868 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7869 Use %A in the output template.
7870 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7871 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7872 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7873 the width of the memory access. Remove post-increment.
7874 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7875
7876 2011-04-12 Nick Clifton <nickc@redhat.com>
7877
7878 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7879 instruction for interrupt handlers if the target is the basic V850
7880 architecture.
7881 (expand_epilogue): Likewise.
7882
7883 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7884
7885 PR rtl-optimization/48549
7886 * combine.c (propagate_for_debug): Also stop after BB_END of
7887 this_basic_block. Process LAST and just stop processing after it.
7888 (combine_instructions): If last_combined_insn has been deleted,
7889 set last_combined_insn to its PREV_INSN.
7890
7891 2011-04-12 Richard Guenther <rguenther@suse.de>
7892
7893 PR tree-optimization/46076
7894 * gimple.h (struct gimple_statement_call): Add fntype field.
7895 (gimple_call_fntype): Adjust.
7896 (gimple_call_set_fntype): New function.
7897 * gimple.c (gimple_build_call_1): Set the call function type.
7898 * gimplify.c (gimplify_call_expr): Preserve the function
7899 type the frontend used for the call.
7900 (gimplify_modify_expr): Likewise.
7901 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7902 function type.
7903 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7904 function type.
7905 * tree-ssa.c (useless_type_conversion_p): Function pointer
7906 conversions are useless.
7907
7908 2011-04-12 Martin Jambor <mjambor@suse.cz>
7909
7910 * cgraph.h (cgraph_node): Remove function declaration.
7911 (cgraph_create_node): Declare.
7912 (cgraph_get_create_node): Likewise.
7913 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7914 Updated all callers.
7915 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7916 the decl does not already exist. Call cgraph_get_create_node instead
7917 of cgraph_node.
7918 (cgraph_get_create_node): New function.
7919 (cgraph_same_body_alias): Update comment.
7920 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7921 assert it does not return NULL.
7922 (cgraph_update_edges_for_call_stmt): Likewise.
7923 (cgraph_clone_edge): Likewise.
7924 (cgraph_create_virtual_clone): Likewise.
7925 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7926 instead of cgraph_node.
7927 (cgraph_add_new_function): Call cgraph_create_node or
7928 cgraph_get_create_node instead of cgraph_node.
7929 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7930 instead of cgraph_node.
7931 (record_eh_tables): Likewise.
7932 (mark_address): Likewise.
7933 (mark_load): Likewise.
7934 (build_cgraph_edges): Call cgraph_get_create_node instead
7935 of cgraph_node.
7936 (rebuild_cgraph_edges): Likewise.
7937 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7938 instead of cgraph_node.
7939 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7940 cgraph_node.
7941 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7942 cgraph_create_node instead of cgraph_node.
7943 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7944 of cgraph_node.
7945 * lto-cgraph.c (input_node): Likewise.
7946 * lto-streamer-in.c (input_function): Likewise.
7947 * varasm.c (mark_decl_referenced): Likewise.
7948 (assemble_alias): Likewise.
7949
7950 2011-04-12 Martin Jambor <mjambor@suse.cz>
7951
7952 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7953 instead of cgraph_node and assert it does not return NULL.
7954 * lto-streamer-in.c (lto_read_body): Likewise.
7955 * omp-low.c (new_omp_context): Likewise.
7956 (create_task_copyfn): Likewise.
7957 * tree-emutls.c (lower_emutls_function_body): Likewise.
7958 * matrix-reorg.c (transform_allocation_sites): Likewise.
7959
7960 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7961
7962 PR c/48552
7963 * c-typeck.c (build_asm_expr): Error out on attempts to use
7964 void type outputs or inputs for constraints that allow reg or
7965 don't allow memory.
7966
7967 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7968 Richard Earnshaw <rearnsha@arm.com>
7969
7970 PR target/48250
7971 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7972 to use sign-magnitude offsets. Reject unsupported unaligned
7973 cases. Add detailed description in comments.
7974 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7975 condition from TARGET_32BIT to TARGET_ARM.
7976
7977 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7978
7979 * tree.h (struct typed_tree): New.
7980 (struct tree_common): Include it instead of tree_base.
7981 (TREE_TYPE): Update for new location of type field.
7982 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7983 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7984 (union tree_node): Add typed field.
7985 * treestruct.def (TS_TYPED): New.
7986 * lto-streamer.c (check_handled_ts_structures): Handle it.
7987 * tree.c (MARK_TS_TYPED): New macro.
7988 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7989
7990 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7991
7992 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7993 (force_nonfallthru): Do not alter the loop nest if no basic block
7994 was created.
7995
7996 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7997
7998 * config/i386/sse.md (VI): New mode iterator.
7999 (SSEMODEI): Remove.
8000 (AVX256MODEI): Ditto.
8001 (AVXMODEF4P): Ditto.
8002 (avxvecpsmode): Ditto.
8003 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8004 (sse2_andnot<mode>3): New expander.
8005 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8006 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8007 (<any_logic:code><mode>3): Use VI mode iterator.
8008 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8009 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8010 (*andnottf3): Handle AVX three-operand constraints.
8011 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8012
8013 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8014 Robert Millan <rmh@gnu.org>
8015
8016 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8017 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8018 GNU_USER_DYNAMIC_LINKER64): Define.
8019 (REG_NAME): Don't undefine.
8020 (MD_UNWIND_SUPPORT): Undefine.
8021 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8022 (REG_NAME): Don't undefine.
8023 (MD_UNWIND_SUPPORT): Undefine.
8024 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8025
8026 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8027
8028 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8029 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8030
8031 2011-04-11 Xinliang David Li <davidxl@google.com>
8032
8033 * value-profile.c (check_ic_target): New function.
8034 (gimple_ic_transform): Sanity check indirect call target.
8035 * gimple-low.c (gimple_check_call_args): Interface change.
8036 (gimple_check_call_matching_types): New function.
8037 * tree-inline.c (tree_can_inline_p): Call new function.
8038
8039 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8040
8041 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8042 tree-pretty-print.h & realmpfr.h.
8043
8044 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8045
8046 PR middle-end/48464
8047 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8048 (setup_allocno_and_important_classes): Ditto.
8049
8050 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8051
8052 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8053 GNU_USER_DYNAMIC_LINKER.
8054 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8056 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8057 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8058 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8059 GNU_USER_TARGET_OS_CPP_BUILTINS.
8060 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8062 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8064 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8065 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8066 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8067 GNU_USER_TARGET_OS_CPP_BUILTINS.
8068 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8069 GNU_USER_DYNAMIC_LINKER.
8070 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8071 GNU_USER_TARGET_OS_CPP_BUILTINS.
8072 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8074 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8075 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8076 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8077 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8078 GNU_USER_DYNAMIC_LINKER64): Remove.
8079 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8080 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8081 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8082 GNU_USER_DYNAMIC_LINKER.
8083 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8084 GNU_USER_TARGET_OS_CPP_BUILTINS.
8085 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8086 GNU_USER_TARGET_OS_CPP_BUILTINS.
8087 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8088 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8089 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8090 GNU_USER_TARGET_OS_CPP_BUILTINS.
8091 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8092 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8093 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8094 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8095 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8096 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8097 GNU_USER_DYNAMIC_LINKER.
8098 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8099 GNU_USER_TARGET_OS_CPP_BUILTINS.
8100 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8101 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8102 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8103 GNU_USER_DYNAMIC_LINKER.
8104 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8106 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8107 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8108 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8109 GNU_USER_DYNAMIC_LINKER.
8110 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8111 GNU_USER_DYNAMIC_LINKERN32.
8112 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8113 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8114 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8115 GNU_USER_DYNAMIC_LINKER32.
8116 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8117 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8118 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8119 GNU_USER_DYNAMIC_LINKER.
8120 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8122 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8124 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8125 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8126 GNU_USER_DYNAMIC_LINKER32.
8127 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8128 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8129 GNU_USER_DYNAMIC_LINKER.
8130 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8131 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8132 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8133 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8134 GNU_USER_DYNAMIC_LINKER64.
8135 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8136 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8137 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8138 GNU_USER_DYNAMIC_LINKER.
8139 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8140 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8141 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8142 GNU_USER_DYNAMIC_LINKER.
8143 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8144 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8145 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8146 GNU_USER_DYNAMIC_LINKER32.
8147 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8148 GNU_USER_DYNAMIC_LINKER64.
8149 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8150 GNU_USER_DYNAMIC_LINKER64.
8151 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8152 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8153 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8155 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8156
8157 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8158
8159 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8160 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8161 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8162 GNU_USER_DYNAMIC_LINKER.
8163 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8164 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8165 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8166 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8167 GNU_USER_DYNAMIC_LINKER64.
8168 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8169 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8170 GNU_USER_LINK_EMULATION.
8171 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8172 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8173 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8174 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8175 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8176 CPP_SPEC, CC1_SPEC): Remove.
8177 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8178 (GNU_USER_DYNAMIC_LINKER): Define.
8179 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8180 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8181 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8182 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8183 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8184 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8185 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8186 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8187 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8188 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8189 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8190 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8191 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8192 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8193 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8194 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8195 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8196 GNU_USER_DYNAMIC_LINKER.
8197 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8198 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8199 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8200 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8201 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8202 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8203 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8204 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8205 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8206 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8207
8208 2011-04-11 Kai Tietz <ktietz@redhat.com>
8209
8210 PR target/9601
8211 PR target/11772
8212 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8213 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8214 comment.
8215 (ix86_is_msabi_thiscall): Removed.
8216 (ix86_is_type_thiscall): Likewise.
8217 (ix86_get_callcvt): New function.
8218 (ix86_comp_type_attributes): Simplify check.
8219 (ix86_function_regparm): Use ix86_get_callcvt for calling
8220 convention attribute checks.
8221 (ix86_return_pops_args): Likewise.
8222 (ix86_static_chain): Likewise.
8223 (x86_this_parameter): Likewise.
8224 (x86_output_mi_thunk): Likewise.
8225 (ix86_function_type_abi): Optimize check for types without attributes.
8226 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8227 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8228 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8229 by flag-values.
8230 (IX86_BASE_CALLCVT): Helper macro.
8231 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8232 Use ix86_get_callcvt for calling convention attribute checks and avoid
8233 symbol-decoration for stdcall in TARGET_RTD case.
8234 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8235 Likewise.
8236 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8237 for declaration.
8238
8239 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8240
8241 * config/i386/sse.md (VI_128): New mode iterator.
8242 (VI12_128): Rename from SSEMODE12.
8243 (VI14_128): Rename from SSEMODE14.
8244 (VI124_128): New mode iterator.
8245 (VI24_128): Rename from SSEMODE248.
8246 (VI248_128): Rename from SSEMODE248.
8247 (SSEMODE124C8): Remove.
8248 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8249 (*sse2_<plusminus_insn><mode>3): Merge with
8250 *avx_<plusminus_insn><mode>3.
8251 (*mulv8hi3): Merge with *avx_mulv8hi3.
8252 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8253 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8254 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8255 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8256 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8257 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8258 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8259 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8260 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8261 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8262 (*<smaxmin:code>v8hi3): Ditto.
8263 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8264 (*<smaxmin:code>v16qi3): Ditto.
8265 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8266 (*sse2_eq<mode>3): Ditto.
8267 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8268 (*sse2_gt<mode>3): Ditto.
8269 (vcondv2di): Split out of vcond<mode>.
8270 (vconduv2di): Split out of vcondu<mode>.
8271
8272 2011-04-11 Richard Guenther <rguenther@suse.de>
8273
8274 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8275 before calling tree_low_cst.
8276
8277 2011-04-11 Richard Guenther <rguenther@suse.de>
8278
8279 * stor-layout.c (layout_type): Compute all array index size operations
8280 in the original type.
8281 (initialize_sizetypes): Add comment.
8282 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8283
8284 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8285
8286 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8287
8288 2011-04-11 Martin Jambor <mjambor@suse.cz>
8289
8290 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8291 of cgraph_node, handle NULL return value.
8292 (cgraph_global_info): Likewise.
8293 (cgraph_rtl_info): Likewise.
8294 * tree-inline.c (estimate_num_insns): Likewise.
8295 * gimplify.c (unshare_body): Likewise.
8296 (unvisit_body): Likewise.
8297 (gimplify_body): Likewise.
8298 * predict.c (optimize_function_for_size_p): Likewise.
8299 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8300 (call_may_clobber_ref_p_1): Likewise.
8301 * varasm.c (function_section_1): Likewise.
8302 (assemble_start_function): Likewise.
8303
8304 2011-04-11 Martin Jambor <mjambor@suse.cz>
8305
8306 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8307 of cgraph_node.
8308 * final.c (rest_of_clean_state): Likewise.
8309 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8310 * passes.c (pass_init_dump_file): Likewise.
8311 (execute_all_ipa_transforms): Likewise.
8312 (function_called_by_processed_nodes_p): Likewise.
8313 * predict.c (maybe_hot_frequency_p): Likewise.
8314 (probably_never_executed_bb_p): Likewise.
8315 (compute_function_frequency): Likewise.
8316 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8317 (unnest_nesting_tree_1): Likewise.
8318 (lower_nested_functions): Likewise.
8319 * tree-optimize.c (execute_fixup_cfg): Likewise.
8320 (tree_rest_of_compilation): Likewise.
8321 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8322 * tree-sra.c (ipa_early_sra): Likewise.
8323 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8324 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8325 * ipa.c (record_cdtor_fn): Likewise.
8326 * ipa-inline.c (cgraph_early_inlining): Likewise.
8327 (compute_inline_parameters_for_current): Likewise.
8328 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8329 * ipa-pure-const.c (local_pure_const): Likewise.
8330 * ipa-split.c (split_function): Likewise.
8331 (execute_split_functions): Likewise.
8332 * cgraphbuild.c (build_cgraph_edges): Likewise.
8333 (rebuild_cgraph_edges): Likewise.
8334 (cgraph_rebuild_references): Likewise.
8335 (remove_cgraph_callee_edges): Likewise.
8336 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8337 (verify_cgraph_node): Likewise.
8338 (cgraph_analyze_functions): Likewise.
8339 (cgraph_preserve_function_body_p): Likewise.
8340 (save_inline_function_body): Likewise.
8341 (save_inline_function_body): Likewise.
8342 * tree-inline.c (copy_bb): Likewise.
8343 (optimize_inline_calls): Likewise.
8344
8345 2011-04-11 Martin Jambor <mjambor@suse.cz>
8346
8347 PR tree-optimization/48195
8348 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8349 ipa_check_create_edge_args.
8350 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8351 ipa_check_create_edge_args.
8352 * ipa-inline.c (inline_generate_summary): Do not call
8353 ipa_check_create_node_params and ipa_check_create_edge_args.
8354 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8355 ipa_check_create_edge_args.
8356
8357 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8358
8359 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8360 instead of loop.
8361 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8362 * function.c (record_hard_reg_sets): Likewise.
8363 * ira.c (compute_regs_asm_clobbered): Likewise.
8364 * sched-deps.c (sched_analyze_1): Likewise.
8365 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8366
8367 2011-04-09 Xinliang David Li <davidxl@google.com>
8368
8369 PR tree-optimization/PR48484
8370 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8371 has_valid_pred lazily
8372
8373 2011-04-09 Duncan Sands <baldrick@free.fr>
8374
8375 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8376
8377 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8378
8379 * combine.c (combine_validate_cost): Adjust comments. Set registered
8380 cost of I0 to zero at the end, if any.
8381
8382 2011-04-08 Xinliang David Li <davidxl@google.com>
8383
8384 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8385 to insane profile data.
8386
8387 2011-04-08 Xinliang David Li <davidxl@google.com>
8388
8389 * ipa-cp.c (ipcp_update_profiling): Correct
8390 negative scale factor due to insane profile data.
8391
8392 2011-04-08 Xinliang David Li <davidxl@google.com>
8393
8394 * final.c (dump_basic_block_info): New function.
8395 (final): Dump basic block.
8396 (final_scan_insn): Remove old dump.
8397
8398 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8399
8400 PR target/47829
8401 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8402 crtbegin/crtend.
8403
8404 2011-04-08 Michael Matz <matz@suse.de>
8405
8406 PR middle-end/48389
8407 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8408 functions.
8409 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8410 * rtl.h (rebuild_jump_labels_chain): Declare.
8411 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8412 insns inserted on edges.
8413
8414 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8415
8416 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8417 * config/arm/arm-arches.def: New.
8418 * config/arm/arm-opts.h: New.
8419 * config/arm/genopt.sh: New.
8420 * config/arm/arm-tables.opt: New (generated).
8421 * config/arm/arm.c (arm_handle_option, arm_target_help,
8422 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8423 (all_architectures): Get most table contents from arm-arches.def.
8424 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8425 arm_selected_tune here.
8426 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8427 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8428 (march=, mcpu=, mtune=): Use Enum and Var.
8429 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8430 (arm.o): Update dependencies.
8431
8432 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8433
8434 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8435 of header_file.
8436 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8437 (write_typed_alloc_defns): Likewise.
8438 (main): Calls write_typed_alloc_defns with output_header.
8439
8440 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8441
8442 PR inline-asm/48435
8443 * ira-color.c (setup_profitable_hard_regs): Add comments.
8444 Don't take prohibited hard regs into account.
8445 (setup_conflict_profitable_regs): Rename to
8446 get_conflict_profitable_regs.
8447 (check_hard_reg_p): Check prohibited hard regs.
8448
8449 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8450
8451 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8452 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8453 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8454
8455 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8456
8457 PR target/48366
8458 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8459 move from floating point to shift amount register.
8460 (emit_move_sequence): Remove secondary reload support for floating
8461 point to shift amount amount register copies.
8462 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8463 amount register copies.
8464 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8465 register, return false if mode isn't a scalar integer mode.
8466 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8467
8468 2011-04-08 Richard Guenther <rguenther@suse.de>
8469
8470 * gimple.c (gimple_call_flags): Remove kludge.
8471
8472 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8473
8474 * sel-sched.c (sel_region_init): Move call to
8475 sel_setup_region_sched_flags after setup_current_loop_nest.
8476
8477 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8478
8479 PR rtl-optimization/48272
8480 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8481 init_insn_reg_pressure_info. Adjust a caller.
8482 * sched-int.h (init_insn_reg_pressure_info): Declare.
8483 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8484 when sched-pressure is enabled.
8485
8486 2011-04-08 Richard Guenther <rguenther@suse.de>
8487
8488 * gimple.c (gimple_set_modified): Do not queue calls to
8489 MODIFIED_NORETURN_CALLS here ...
8490 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8491
8492 2011-04-08 Richard Guenther <rguenther@suse.de>
8493
8494 PR lto/48467
8495 * toplev.c (lang_dependent_init): Do not open asm_out_file
8496 in WPA mode, nor perform debug machinery initialization.
8497 (finalize): Do not unlink asm_out_file in WPA mode.
8498
8499 2011-04-08 Richard Guenther <rguenther@suse.de>
8500
8501 * gimple.h (gimple_call_fntype): New function.
8502 (gimple_call_return_type): Use it.
8503 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8504 * gimple-low.c (gimple_check_call_args): Likewise.
8505 * gimple.c (gimple_call_flags): Likewise.
8506 (gimple_call_arg_flags): Likewise.
8507 (gimple_call_return_flags): Likewise.
8508 * tree-cfg.c (verify_gimple_call): Likewise.
8509 (do_warn_unused_result): Likewise.
8510 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8511 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8512
8513 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8514
8515 PR rtl-optimization/48235
8516 * sel-sched.c (code_motion_process_successors): Recompute the last
8517 insn in basic block if control flow changed.
8518 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8519 Update condition for ilist_remove.
8520
8521 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8522
8523 PR rtl-optimization/48302
8524 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8525 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8526 it to record added preheader blocks.
8527 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8528 on to sel_add_loop_preheaders.
8529 (sel_region_init): Move call to setup_current_loop_nest after
8530 sel_init_bbs.
8531
8532 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8533
8534 PR target/48273
8535 * cfgloop.h (loop_has_exit_edges): New helper.
8536 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8537 non-clonable.
8538 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8539 that have no exit edges.
8540
8541 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8542
8543 PR rtl-optimization/48442
8544 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8545 all callers. Adjust assert.
8546
8547 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8548
8549 PR tree-optimization/48377
8550 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8551 is_packed to true even for types with smaller TYPE_ALIGN than
8552 TYPE_SIZE.
8553
8554 2011-04-08 Richard Guenther <rguenther@suse.de>
8555
8556 PR bootstrap/48513
8557 * doc/tm.texi: Re-generate.
8558
8559 2011-04-08 Wei Guozhi <carrot@google.com>
8560
8561 PR target/47855
8562 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8563 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8564 * config/arm/arm.md (*push_multi): Change the length computation to
8565 call a C function.
8566
8567 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8568
8569 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8570 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8571 * doc/tm.texi: Regenerate.
8572 * system.h (ASM_OUTPUT_BSS): Poison.
8573 * varasm.c (asm_output_bss): Remove function.
8574 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8575
8576 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8577 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8578 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8579 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8580 Likewise.
8581 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8582 Likewise.
8583 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8584 Likewise.
8585 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8586
8587 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8588
8589 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8590 EnumValue lines.
8591
8592 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8593
8594 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8595 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8596 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8597 OPT_mcpu32.
8598 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8599 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8600 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8601 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8602 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8603 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8604 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8605 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8606 options. Don't map other m68k options manually. Don't handle
8607 old-style options as canonical.
8608 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8609 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8610
8611 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8612
8613 * basic-block.h (force_nonfallthru): Move to...
8614 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8615 (force_nonfallthru): ...here.
8616 * cfghooks.c (force_nonfallthru): New function.
8617 * cfgrtl.c (force_nonfallthru): Rename into...
8618 (rtl_force_nonfallthru): ...this.
8619 (commit_one_edge_insertion): Do not set AUX field.
8620 (commit_edge_insertions): Do not discover new basic blocks.
8621 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8622 (cfg_layout_rtl_cfg_hooks): Likewise.
8623 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8624 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8625 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8626
8627 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8628
8629 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8630 Remove macros.
8631
8632 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8633
8634 * config/i386/sse.md: Update copyright year.
8635 (avxcvtvecmode): Remove.
8636 (sse_movhlps): Merge with *avx_movhlps.
8637 (sse_movlhps): Merge with *avx_movlhps.
8638 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8639 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8640 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8641 (sse_loadhps): Merge with *avx_loadhps.
8642 (sse_storelps): Merge with *avx_storelps.
8643 (sse_loadlps): Merge with *avx_loadlps.
8644 (sse_movss): Merge with *avx_movss.
8645 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8646 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8647 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8648 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8649 (vec_set<mode>_0): Ditto.
8650 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8651 (sse4_1_insertps): Merge with *avx_insertps.
8652 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8653 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8654 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8655 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8656 (sse2_storehpd): Merge with *avx_storehpd.
8657 (sse2_loadhpd): Merge with *avx_loadhpd.
8658 (sse2_loadlpd): Merge with *avx_loadlpd.
8659 (sse2_movsd): Merge with *avx_movsd.
8660 (*vec_concatv2df): Merge with *vec_concatv2df.
8661
8662 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8663
8664 PR debug/48343
8665 * combine.c (combine_instructions): Add last_combined_insn,
8666 update it if insn is after it, pass it to all try_combine calls.
8667 (try_combine): Add last_combined_insn parameter, pass it instead of
8668 i3 to propagate_for_debug.
8669
8670 2011-04-07 Nick Clifton <nickc@redhat.com>
8671
8672 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8673 to handle MDR <-> data register transfers.
8674 (movhi_internal): Likewise.
8675
8676 2011-04-07 Alan Modra <amodra@gmail.com>
8677
8678 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8679 previous stack info.
8680
8681 2011-04-07 Tom de Vries <tom@codesourcery.com>
8682
8683 PR target/43920
8684 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8685 flow_find_cross_jump. Swap variables to implement backward replacement.
8686 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8687
8688 2011-04-07 Tom de Vries <tom@codesourcery.com>
8689
8690 PR target/43920
8691 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8692 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8693 and bb2.
8694 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8695 src1 or src2. Redirect edges to the last basic block. Update
8696 frequency and count on multiple basic blocks in case of fallthru.
8697
8698 2011-04-07 Tom de Vries <tom@codesourcery.com>
8699
8700 PR target/43920
8701 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8702 function.
8703 (old_insns_match_p): Change return type. Replace return false/true
8704 with return dir_none/dir_both. Use can_replace_by.
8705 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8706 direction from dir_p. Register replacement direction in dir, last_dir
8707 and afterlast_dir. Handle new return type of old_insns_match_p using
8708 merge_dir. Return replacement direction in dir_p.
8709 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8710 return type of old_insns_match_p.
8711 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8712 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8713 flow_find_cross_jump.
8714 * basic-block.h (enum replace_direction): New type.
8715 (flow_find_cross_jump): Add parameter to declaration.
8716
8717 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8718
8719 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8720 (AVXMODEDCVTPS2DQ): Ditto.
8721 (VEC_FLOAT_MODE): Ditto.
8722 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8723 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8724 (<any_logic:code><mode>3): Use VF mode iterator.
8725 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8726 Use VF mode iterator.
8727 (copysign<mode>3): Use VF mode iterator.
8728 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8729 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8730 (*<any_logic:code><MODEF:mode>3): Merge with
8731 *avx_<any_logic:code><MODEF:mode>3.
8732 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8733 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8734 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8735 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8736 (sse2_cvtdq2ps): Use %v modifier.
8737 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8738 (avx_cvtps2dq<avxmodesuffix>): Remove.
8739 (sse2_cvtps2dq): Use %v modifier.
8740 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8741 (avx_cvttps2dq<avxmodesuffix>): Remove.
8742 (sse2_cvttps2dq): Use %v modifier.
8743 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8744 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8745 (sse2_cvtsd2siq): Fix insn template.
8746 (sse2_cvtsd2siq_2): Ditto.
8747 (sse2_cvttsd2siq): Ditto.
8748 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8749 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8750
8751 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8752
8753 * gcov-io.c: Use GCC Runtime Library Exception.
8754
8755 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8756
8757 PR debug/48466
8758 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8759 as base_reg whatever register reg has been eliminated to, instead
8760 of hardcoding STACK_POINTER_REGNUM.
8761
8762 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8763
8764 * doc/tm.texi.in: Document C target hooks as separate from general
8765 target hooks.
8766 * doc/tm.texi: Regenerate.
8767 * genhooks.c (struct hook_desc): Add docname field.
8768 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8769 docname field.
8770 (hook_array): Include c-target.def.
8771 (emit_documentation): Use docname field in output.
8772 (emit_init_macros): Take docname argument. Only emit definitions
8773 for hooks matching docname.
8774 (main): Expect additional arguments in all cases. Pass argument
8775 to emit_init_macros.
8776 * target.def: Move initial macro definitions and comments to
8777 target-hooks-macros.h.
8778 (gcc_targetcm): Move to c-family/c-target.def.
8779 * target.h (targetcm): Move declaration to c-family/c-target.h.
8780 * targhooks.c (default_handle_c_option): Move to
8781 c-family/c-opts.c.
8782 * targhooks.h (default_handle_c_option): Move declaration to
8783 c-family/c-common.h.
8784 * target-hooks-macros.h: New file.
8785 * config.gcc (target_has_targetcm): Define and use to add to
8786 c_target_objs and cxx_target_objs.
8787 * config/default-c.c: New file.
8788 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8789 of target.h and target-def.h.
8790 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8791 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8792 darwin_check_cfstring_format_arg): Make static.
8793 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8794 TARGET_STRING_OBJECT_REF_TYPE_P,
8795 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8796 * config/darwin-protos.h (darwin_objc_construct_string,
8797 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8798 declare.
8799 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8800 TARGET_STRING_OBJECT_REF_TYPE_P,
8801 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8802 * config/t-darwin (darwin-c.o): Update dependencies.
8803 * system.h (TARGET_HAS_TARGETCM): Poison.
8804 * Makefile.in (TARGET_H): Update.
8805 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8806 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8807 (default-c.o): New target.
8808 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8809 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8810 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8811 c-target.def.
8812 (build/genhooks.o): Update dependencies.
8813
8814 2011-04-06 Richard Guenther <rguenther@suse.de>
8815
8816 * ipa-inline.c (enum inlining_mode): Remove.
8817 (cgraph_flatten): Use some other token.
8818 (cgraph_edge_early_inlinable_p): New function, split out from ...
8819 (cgraph_perform_always_inlining): New function, split out from ...
8820 (cgraph_decide_inlining_incrementally): ... here.
8821 (cgraph_mark_inline_edge): Adjust.
8822 (cgraph_early_inlining): Re-structure.
8823 (pass_early_inline): Require SSA form.
8824
8825 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8826 Julian Brown <julian@codesourcery.com>
8827 Mark Shinwell <shinwell@codesourcery.com>
8828
8829 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8830 LO_REGS only for Thumb-1.
8831 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8832 be used in short instructions when optimising for size on Thumb-2.
8833
8834 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8835
8836 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8837 associated with user returns to be preserved.
8838
8839 2011-04-06 Tristan Gingold <gingold@adacore.com>
8840
8841 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8842 symbol_queue_size, DBXOUT_DECR_NESTING,
8843 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8844 if XCOFF_DEBUGGING_INFO.
8845
8846 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8847
8848 * config/i386/i386.md (attribute isa): New.
8849 (attribute enabled): New.
8850 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8851 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8852 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8853 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8854 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8855 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8856 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8857 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8858
8859 * config/i386/sse.md (VF): New mode iterator.
8860 (VF1): Ditto.
8861 (VF2): Ditto.
8862 (VF_128): Ditto.
8863 (SSEMODEF4): Remove.
8864 (attribute sse): Handle V8SF and V4DF modes.
8865 (<absneg:code><mode>2): Use VF mode iterator.
8866 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8867 mode iterator.
8868 (<plusminus_insn><mode>3): Use VF mode iterator.
8869 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8870 Use VF mode iterator.
8871 (<sse>_vm<plusminus_insn><mode>3): Merge with
8872 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8873 (mul<mode>3): Use VF mode iterator.
8874 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8875 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8876 mode iterator.
8877 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8878 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8879 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8880 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8881 mode iterator.
8882 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8883 Use VF1 mode iterator.
8884 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8885 (sqrt<VF2:mode>2): New expander.
8886 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8887 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8888 and sqrtv2df2. Use VF mode iterator.
8889 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8890 mode iterator.
8891 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8892 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8893 Use VF1 mode iterator.
8894 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8895 (<smaxmin:code><mode>3): Use VF mode iterator.
8896 (*<smaxmin:code><mode>3_finite): Merge with
8897 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8898 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8899 (<sse>_vm<smaxmin:code><mode>2): Merge with
8900 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8901 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8902 mode iterator.
8903 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8904 mode iterator.
8905 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8906 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8907 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8908 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8909 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8910 VF mode iterator.
8911 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8912 Use VF_128 mode iterator.
8913 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8914 mode iterator.
8915 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8916 VF_128 mode iterator.
8917 (vcond<mode>): Use VF mode iterator.
8918 * config/i386/predicates.md (sse_comparison_operator): Merge with
8919 avx_comparison_float_operator. Do not declare as special_predicate.
8920 * config/i386/i386.c (struct builtin_description): Update for renamed
8921 compare patterns.
8922 (ix86_expand_args_builtin): Ditto.
8923 (ix86_expand_sse_compare_mask): Ditto.
8924
8925 2011-04-06 Richard Guenther <rguenther@suse.de>
8926
8927 * tree-inline.c (estimate_num_insns): For calls simply account
8928 for all passed arguments and a used return value.
8929
8930 2011-04-06 Richard Guenther <rguenther@suse.de>
8931
8932 PR tree-optimization/47663
8933 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8934 call_stmt_time fields.
8935 (cgraph_edge_inlinable_p): Declare.
8936 (cgraph_edge_recursive_p): New inline function.
8937 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8938 (cgraph_clone_edge): Copy it.
8939 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8940 Account for call stmt time.
8941 (cgraph_estimate_time_after_inlining): Take edge argument.
8942 (cgraph_estimate_edge_growth): Account call stmt size.
8943 (cgraph_estimate_size_after_inlining): Take edge argument.
8944 (cgraph_mark_inline_edge): Adjust.
8945 (cgraph_check_inline_limits): Likewise.
8946 (cgraph_recursive_inlining_p): Remove.
8947 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8948 (cgraph_decide_recursive_inlining): Take edge argument and
8949 adjust.
8950 (cgraph_decide_inlining_of_small_functions): Do not avoid
8951 diags for recursive inlining here.
8952 (cgraph_flatten): Adjust.
8953 (cgraph_decide_inlining_incrementally): Likewise.
8954 (estimate_function_body_sizes): Remove call cost handling.
8955 (compute_inline_parameters): Initialize caller edge call costs.
8956 (cgraph_estimate_edge_growth): New function.
8957 (cgraph_estimate_growth): Use it.
8958 (cgraph_edge_badness): Likewise.
8959 (cgraph_check_inline_limits): Take an edge argument.
8960 (cgraph_decide_inlining_of_small_functions): Adjust.
8961 (cgraph_decide_inlining): Likewise.
8962 * tree-inline.c (estimate_num_insns): Only account for call
8963 return value if it is used.
8964 (expand_call_inline): Avoid diagnostics on recursive inline
8965 functions here.
8966 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8967 (input_edge): Input edge call costs.
8968
8969 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8970
8971 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8972
8973 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8974
8975 * doc/invoke.texi (Spec Files): Fix typo.
8976
8977 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8978
8979 * profile.c (branch_prob): Move declaration of local variable. Remove
8980 obsolete ??? comment. Expand the location explicitly instead of using
8981 the LOCATION_FILE and LOCATION_LINE macros.
8982
8983 2011-04-06 Wei Guozhi <carrot@google.com>
8984
8985 PR target/47855
8986 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8987 (arm_cond_branch): Likewise.
8988 (arm_cond_branch_reversed): Likewise.
8989 (arm_jump): Likewise.
8990 (push_multi): Likewise.
8991 * config/arm/constraints.md (Py): New constraint.
8992
8993 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8994
8995 PR bootstrap/48471
8996 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8997 Move these...
8998 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8999 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9000 #ifdef DBX_DEBUGGING_INFO.
9001
9002 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9003
9004 PR bootstrap/48403
9005 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9006 if old and new states differ.
9007
9008 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9009
9010 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9011 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9012 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9013 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9014 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9015 mcfv4e): Use Alias.
9016 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9017 ColdFire options to -mcpu= options.
9018
9019 2011-04-05 Jeff Law <law@redhat.com>
9020
9021 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9022 check if BB is a successor of LOOP->header and return
9023 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9024
9025 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9026
9027 * cprop.c (struct reg_use): Remove.
9028 (reg_use_table): Make an array of RTX.
9029 (find_used_regs, constprop_register, local_cprop_pass,
9030 bypass_block): Simplify users of reg_use_table.
9031 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9032 on one of the uses found by find_used_regs.
9033
9034 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9035
9036 PR bootstrap/48469
9037 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9038 declaration.
9039
9040 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9041
9042 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9043 as an rtx.
9044 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9045
9046 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9047
9048 PR middle-end/48441
9049 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9050
9051 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9052
9053 * combine.c: Include obstack.h.
9054 (struct insn_link): Define.
9055 (uid_log_links): Adjust type.
9056 (FOR_EACH_LOG_LINK): New macro.
9057 (insn_link_obstack): Declare.
9058 (alloc_insn_link): Define.
9059 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9060 type of link variables.
9061 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9062 (try_combine, record_promoted_values, distribute_notes): Likewise.
9063 (distribute_links): Likewise. Tweak prototype.
9064 (clear_log_links): Delete.
9065 (adjust_for_new_dest): Call alloc_insn_link.
9066 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9067
9068 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9069
9070 * gcse.c (modify_mem_list): Convert to an array of VECs.
9071 (canon_modify_mem_list, compute_transp): Tweak formatting.
9072 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9073 (load_killed_in_block_p): Likewise.
9074 (record_last_mem_set_info): Likewise.
9075 (clear_modify_mem_tables): Likewise.
9076
9077 2011-04-05 Tom de Vries <tom@codesourcery.com>
9078
9079 PR middle-end/48461
9080 * function.c (emit_use_return_register_into_block): Only define if
9081 HAVE_return.
9082
9083 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9084
9085 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9086
9087 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9088
9089 * config/rx/rx-opts.h: New.
9090 * config/rx/rx.c (rx_cpu_type): Remove.
9091 (rx_handle_option): Don't assert that global structures are in
9092 use. Access variables via opts pointer. Defer most handling of
9093 OPT_mint_register_. Use error_at.
9094 (rx_option_override): Handle deferred OPT_mint_register_ here.
9095 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9096 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9097 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9098 (rx_cpu_types): New Enum and EnumValue entries.
9099 (mint-register=): Use Defer and use Var accordingly.
9100
9101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9102
9103 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9104 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9105 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9106 Move these...
9107 (debug_free_queue, debug_nesting, symbol_queue_index):
9108 ...and these...
9109 * dbxout.c: ...to here. Make static.
9110
9111 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9112
9113 * gcse.c (modify_pair): Define. Define a VEC of it.
9114 (canon_modify_mem_list): Convert to an array of VECs.
9115 (free_insn_expr_list_list): Delete.
9116 (clear_modify_mem_tables): Call VEC_free instead.
9117 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9118 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9119 (canon_list_insert, compute_transp): Likewise.
9120
9121 2011-04-05 Tom de Vries <tom@codesourcery.com>
9122
9123 PR target/43920
9124 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9125 for size.
9126
9127 2011-04-05 Tom de Vries <tom@codesourcery.com>
9128
9129 PR target/43920
9130 * function.c (emit_use_return_register_into_block): New function.
9131 (thread_prologue_and_epilogue_insns): Use
9132 emit_use_return_register_into_block.
9133
9134 2011-04-05 Tom de Vries <tom@codesourcery.com>
9135
9136 PR target/43920
9137 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9138 insn.
9139
9140 2011-04-05 Tom de Vries <tom@codesourcery.com>
9141
9142 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9143
9144 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9145
9146 * config/arm/arm.md (define_constants for unspec): Replace with
9147 define_c_enum.
9148 (define_constants for unspecv): Replace with define_c_enum.
9149 * config/arm/neon.md (define_constants for unspec): Replace with
9150 define_c_enum.
9151
9152 2011-04-04 Richard Henderson <rth@redhat.com>
9153
9154 PR bootstrap/48400
9155 * dwarf2out.c (output_line_info): Always emit line info from
9156 at least one section.
9157 (dwarf2out_init): Create text_section_line_info here ...
9158 (set_cur_line_info_table): ... not here.
9159
9160 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9161
9162 PR target/48380
9163 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9164 not called.
9165
9166 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9167
9168 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9169
9170 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9171 (expr_equiv_p): Remove.
9172 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9173 (hash_scan_set): Update call to insert_set_in_table.
9174 (dump_hash_table): Dump <dest, src> pair.
9175 (lookup_set): Simplify. Lookup <dest, src> pair.
9176 (compute_transp): Remove, fold heavily simplified code into...
9177 (compute_local_properties): ...here. Expect COMP and TRANSP
9178 unconditionally.
9179 (find_avail_set): Take set directly from struct expr.
9180 (find_bypass-set): Likewise.
9181 (bypass_block): Likewise.
9182 (cprop_insn): Likewise. Remove redundant INSN_P test.
9183
9184 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9185 checks on form of COND from find_implicit_sets to here.
9186 (find_implicit_sets): Cleanup control flow. Split critical edges
9187 if it exposes implicit sets. Allocate/resize implicit_sets as
9188 necessary.
9189 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9190 changed something. Run df_analyze after find_implicit_sets if any
9191 edges were split. Do not allocate implicit_sets here.
9192
9193 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9194 (gcse_obstack): Renamed to cprop_obstack.
9195 (GNEW, GNEWVEC, GNEWVAR): Remove.
9196 (gmalloc): Remove.
9197 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9198 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9199 (gcse_alloc): Likewise, and rename to cprop_alloc.
9200 (alloc_gcse_men, free_gcse_mem): Remove.
9201 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9202 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9203 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9204
9205 * cprop.c (oprs_not_set_p): Remove.
9206 (mark_set, mark_clobber): Remove.
9207 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9208 (reg_not_set_p): New function.
9209 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9210 (cprop_insn): Likewise.
9211 (cprop_jump): Use FOR_EACH_EDGE.
9212
9213 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9214
9215 PR bootstrap/48403
9216 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9217 (rank_for_schedule): Use scheduled_insns vector instead of
9218 last_scheduled_insn.
9219 (ok_for_early_queue_removal): Likewise.
9220 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9221 we have a dbg_cnt.
9222 (choose_ready): Likewise.
9223 (commit_schedule): Use VEC_iterate.
9224 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9225 a dbg_cnt, use it and ensure the first insn is in the ready list.
9226 (haifa_sched_init): Allocate scheduled_insns.
9227 (sched_extend_ready_list): Don't allocate it; reserve space.
9228 (haifa_sched_finish): Free it.
9229
9230 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9231
9232 * optc-gen.awk: Always remove type from Variable entry before
9233 recording in var_seen.
9234
9235 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9236
9237 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9238 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9239 call to tidy_fallthru_edges.
9240
9241 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9242
9243 * doc/options.texi (ToLower): Document.
9244 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9245 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9246 * opts.h (cl_option): Add cl_tolower field.
9247 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9248 arguments with lowercase strings.
9249 * config/rx/rx.opt (mcpu=): Add ToLower.
9250 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9251 argument.
9252
9253 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9254
9255 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9256
9257 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9258
9259 * config/vax/vax.c: Include reload.h.
9260
9261 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9262
9263 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9264 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9265 (sparc_preferred_reload_class): New function.
9266
9267 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9268
9269 PR debug/48401
9270 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9271 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9272
9273 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9274
9275 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9276 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9277
9278 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9279
9280 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9281 (ASM_OUTPUT_ALIGNED_BSS): Define.
9282
9283 2011-04-03 Michael Matz <matz@suse.de>
9284
9285 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9286 and next_slot members.
9287 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9288 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9289 (lto_streamer_cache_append): Declare.
9290 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9291 unsigned index, remove offset parameter, ensure that we append
9292 or update existing entries.
9293 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9294 parameter, update next_slot for append.
9295 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9296 parameter.
9297 (lto_streamer_cache_insert_at): Likewise.
9298 (lto_streamer_cache_append): New function.
9299 (lto_streamer_cache_lookup): Use unsigned index.
9300 (lto_streamer_cache_get): Likewise.
9301 (lto_record_common_node): Don't test tree_node_can_be_shared.
9302 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9303 (lto_streamer_cache_delete): Don't free offsets member.
9304 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9305 (lto_output_string_with_length): Use lto_output_data_stream.
9306 (lto_output_tree_header): Remove ix parameter, don't write it.
9307 (lto_output_builtin_tree): Likewise.
9308 (lto_write_tree): Adjust callers to above, don't track and write
9309 offset, write unsigned index.
9310 (output_unreferenced_globals): Don't emit all global vars.
9311 (write_global_references): Use unsigned indices.
9312 (lto_output_decl_state_refs): Likewise.
9313 (write_symbol): Likewise.
9314 * lto-streamer-in.c (lto_input_chain): Move earlier.
9315 (input_function): Use unsigned index.
9316 (input_alias_pairs): Don't read and then ignore all global vars.
9317 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9318 don't pass it back, use lto_streamer_cache_append.
9319 (lto_register_var_decl_in_symtab): Use unsigned index.
9320 (lto_register_function_decl_in_symtab): Likewise.
9321 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9322 index.
9323 (lto_get_builtin_tree): Don't read index, use
9324 lto_streamer_cache_append.
9325 (lto_read_tree): Adjust call to lto_materialize_tree.
9326
9327 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9328 don't use function calls in arguments to MIN.
9329
9330 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9331 twice.
9332
9333 * gimple.c (gimple_type_leader_entry): Mark deletable.
9334
9335 2011-04-03 Alan Modra <amodra@gmail.com>
9336
9337 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9338
9339 2011-04-03 Michael Matz <matz@suse.de>
9340
9341 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9342 an integer.
9343 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9344
9345 2011-04-03 Michael Matz <matz@suse.de>
9346
9347 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9348 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9349 without function context.
9350 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9351 current_function_decl and cfun.
9352
9353 2011-04-03 Michael Matz <matz@suse.de>
9354
9355 * tree.c (decl_init_priority_insert): Don't create entry for
9356 default priority.
9357 (decl_fini_priority_insert): Ditto.
9358 (fields_compatible_p, find_compatible_field): Remove.
9359 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9360 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9361
9362 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9363
9364 * combine.c (try_combine): Remove useless local variable.
9365
9366 2011-04-03 Richard Guenther <rguenther@suse.de>
9367 Ira Rosen <ira.rosen@linaro.org>
9368
9369 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9370 non-variable offsets and compare the remaining bases of the two
9371 accesses instead of looking for exact same data-ref.
9372
9373 2011-04-02 Kai Tietz <ktietz@redhat.com>
9374
9375 PR target/48416
9376 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9377
9378 * i386.c (ix86_is_msabi_thiscall): New helper function.
9379 (ix86_is_type_thiscall): New helper function.
9380 (ix86_comp_type_attributes): Handle thiscall for method-functions
9381 special.
9382 (init_cumulative_args): Likewise.
9383 (find_drap_reg): Likewise.
9384 (ix86_static_chain): Likewise.
9385 (x86_this_parameter): Likewise.
9386 (x86_output_mi_thunk): Likewise.
9387
9388 2011-04-01 Olivier Hainque <hainque@adacore.com>
9389 Nicolas Setton <setton@adacore.com>
9390 Eric Botcazou <ebotcazou@adacore.com>
9391
9392 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9393 (add_gnat_descriptive_type_attribute): New function.
9394 (gen_array_type_die): Call it.
9395 (gen_enumeration_type_die): Likewise.
9396 (gen_struct_or_union_type_die): Likewise.
9397 (modified_type_die): Likewise.
9398 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9399 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9400 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9401
9402 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9403
9404 PR bootstrap/48148
9405 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9406 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9407
9408 Revert:
9409 2011-03-17 Richard Guenther <rguenther@suse.de>
9410
9411 PR bootstrap/48148
9412 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9413 origin for decls in other ltrans units.
9414 (input_varpool_node): Likewise.
9415
9416 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9417
9418 PR middle-end/48335
9419 * expr.c (expand_assignment): Handle all possibilities
9420 if TO_RTX is CONCAT.
9421 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9422 (store_split_bit_field): If SUBREG_REG (op0) or
9423 op0 itself has smaller mode than word, return it
9424 for offset 0 and const0_rtx for out-of-bounds stores.
9425 If word is const0_rtx, skip it.
9426
9427 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9428
9429 * config/h8300/h8300.c (print_operand_address): Rename to...
9430 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9431 Call h8300_print_operand and h8300_print_operand_address instead of
9432 print_operand and print_operand_address. Declare.
9433 (print_operand): Renake to...
9434 (h8300_print_operand): ...this. Make static. Adjust comments.
9435 Call h8300_print_operand instead of print_operand. Declare.
9436 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9437 (h8300_register_move_cost): Likewise.
9438 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9439 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9440 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9441 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9442 * config/h8300/h8300-protos.h (print_operand): Delete.
9443 (print_operand_address): Delete.
9444
9445 2011-04-01 Richard Henderson <rth@redhat.com>
9446
9447 PR 48400
9448 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9449 in strict mode before dwarf4. Re-order tests to early out
9450 before switching sections.
9451
9452 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9453
9454 * config/h8300/constraints.md: New file.
9455 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9456 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9457 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9458 * config/h8300/predicates.md (bit_operand): Likewise.
9459 (incdec_operand): Use satisfies_constraint_M and
9460 satisfies_constraint_O. Don't use C code block.
9461 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9462 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9463 (compute_mov_length): Use satisfies_constraint_G.
9464 (fix_bit_operand): Use satisfies_constraint_U.
9465 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9466 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9467 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9468 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9469 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9470 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9471 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9472 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9473 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9474 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9475 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9476 (EXTRA_MEMORY_CONSTRAINT): Delete.
9477
9478 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9479 Michael Meissner <meissner@linux.vnet.ibm.com>
9480
9481 PR target/48262
9482 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9483 operands, as per the specifications.
9484
9485 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9486 (vec_extract_evenv4sf): Ditto.
9487 (vec_extract_evenv8hi): Ditto.
9488 (vec_extract_evenv16qi): Ditto.
9489 (vec_extract_oddv4si): Ditto.
9490
9491 2011-03-31 Mark Wielaard <mjw@redhat.com>
9492
9493 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9494 high_pc attribute if the CU has no associated code. Only output
9495 DW_AT_entry_pc for CU if not generating strict dwarf and
9496 dwarf_version < 4.
9497
9498 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9499
9500 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9501 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9502 out of ...
9503 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9504 * final.c (final_start_function): Call the new function rather
9505 than using a NULL argument for dwarf2out_frame_debug.
9506
9507 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9508 that contains the prologue.
9509
9510 * haifa-sched.c (queue_insn): New arg REASON. All callers
9511 changed. Print it in debugging output.
9512
9513 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9514
9515 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9516 Split most of the code into...
9517 (begin_move_insn): ... here. New function.
9518 (ebb_sched_info): Add a pointer to it.
9519 * haifa-sched.c (scheduled_insns): New static variable.
9520 (sched_extend_ready_list): Allocate it.
9521 (schedule_block): Use it to record the order of scheduled insns.
9522 Perform RTL changes to move insns only after all scheduling
9523 decisions have been made.
9524 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9525 begin_move_insn field.
9526 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9527 * sched-int.h (struct haifa_sched_info): Remove second argument
9528 from begin_schedule_ready hook. Add new member begin_move_insn.
9529 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9530 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9531
9532 * haifa-sched.c (prune_ready_list): New function, broken out of
9533 schedule_block.
9534 (schedule_block): Use it.
9535
9536 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9537
9538 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9539
9540 2011-04-01 Kai Tietz <ktietz@redhat.com>
9541
9542 * config.gcc (*-*-mingw*): Allow as option the
9543 posix threading model.
9544 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9545 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9546 definition.
9547 (CPP_SPEC): Add pthread/no-pthread handling.
9548 (LIB_SPEC): Likewise.
9549 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9550 (LIB_SPEC): Likewise.
9551 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9552 flag to pass -pthread option for shared libgcc build.
9553 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9554 for shared libgcc build.
9555 * config/i386/t-mingw-pthread: New file.
9556 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9557 New define to enable use of library pthread by default.
9558 * config/i386/mingw.opt (pthread): New driver option.
9559 (no-pthread): New driver option.
9560 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9561 * config/i386/mingw-w64.opt: Likewise.
9562
9563 2011-04-01 Gary Funck <gary@intrepid.com>
9564
9565 * c-decl.c (grokdeclarator): Fix formatting.
9566
9567 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9568
9569 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9570 instead of n_operands.
9571 (set_storage_via_setmem): Likewise.
9572 * optabs.c (maybe_gen_insn): Likewise.
9573 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9574 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9575 (mips_expand_builtin_direct): Likewise.
9576 * config/spu/spu.c (expand_builtin_args): Likewise.
9577
9578 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9579
9580 * recog.h (insn_data_d): Add n_generator_args.
9581 * genoutput.c (data): Likewise.
9582 (output_insn_data): Print it.
9583 (max_opno, num_dups): Delete.
9584 (scan_operands): Just fill in "d->operand[...]".
9585 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9586
9587 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9588
9589 * gensupport.h (pattern_stats): New structure.
9590 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9591 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9592 (max_operand_1, max_operand_vec): Delete.
9593 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9594
9595 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9596
9597 * emit-rtl.c (emit_pattern_after_setloc): New function.
9598 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9599 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9600 (emit_pattern_after): New function.
9601 (emit_insn_after, emit_jump_insn_after): Call it.
9602 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9603 (emit_pattern_before_setloc): New function.
9604 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9605 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9606 Likewise.
9607 (emit_pattern_before): New function.
9608 (emit_insn_before, emit_jump_insn_before): Call it.
9609 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9610
9611 2011-03-31 Richard Henderson <rth@redhat.com>
9612
9613 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9614 (dw_separate_line_info_entry): Remove.
9615 (enum dw_line_info_opcode): New.
9616 (dw_line_info_entry): Use it.
9617 (dw_line_info_table, dw_line_info_table_p): New.
9618 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9619 (line_info_table, line_info_label_num): Remove.
9620 (line_info_table_in_use): Remove.
9621 (separate_line_info_table): Remove.
9622 (separate_line_info_table_allocated): Remove.
9623 (separate_line_info_table_in_use): Remove.
9624 (LINE_INFO_TABLE_INCREMENT): Remove.
9625 (line_info_label_num): New.
9626 (cur_line_info_table): New.
9627 (text_section_line_info, cold_text_section_line_info): New.
9628 (separate_line_info): New.
9629 (SEPARATE_LINE_CODE_LABEL): Remove.
9630 (print_dwarf_line_table): Remove.
9631 (debug_dwarf): Don't dump it.
9632 (output_one_line_info_table): New.
9633 (output_line_info): Use it.
9634 (new_line_info_table): New.
9635 (set_cur_line_info_table): New.
9636 (dwarf2out_switch_text_section): Use it.
9637 (dwarf2out_begin_function): Likewise.
9638 (push_dw_line_info_entry): New.
9639 (dwarf2out_source_line): Rewrite for new line info tables.
9640 (dwarf2out_init): Remove dead initailizations.
9641
9642 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9643
9644 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9645 various flags.
9646 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9647 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9648 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9649 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9650 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9651 * opt-functions.awk (flag_init, switch_bit_fields): New.
9652 (switch_flags): Don't handle flags moved to bit-fields. Don't
9653 generate CL_MISSING_OK or CL_SAVE.
9654 * optc-gen.awk: Update to generate bit-field output as well as
9655 flags field.
9656 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9657 bit-field instead of CL_REJECT_DRIVER flag.
9658 * opts-common.c (generate_canonical_option,
9659 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9660 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9661 instead of CL_REJECT_NEGATIVE flag.
9662 * toplev.c (print_switch_values): Use cl_report bit-field instead
9663 of CL_REPORT flag.
9664
9665 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9666
9667 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9668 a zero minimum index only if it is redundant.
9669
9670 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9671
9672 PR rtl-optimization/48381
9673 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9674 instead of ira_class_hard_reg_index for calculating conflicting
9675 hard registers.
9676
9677 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9678
9679 * cprop.c: Clean up hash table building.
9680 (reg_avail_info): Remove.
9681 (oprs_available_p): Remove.
9682 (record_last_reg_set_info): Remove.
9683 (record_last_set_info): Remove.
9684 (reg_available_p): New function.
9685 (gcse_constant_p): Do not treat unfolded conditions as constants.
9686 (make_set_regs_unavailable): New function.
9687 (hash_scan_set): Simplify with new reg_available_p.
9688 (compute_hash_table_work): Traverse insns stream only once.
9689 Do not compute reg_avail_info. Traverse insns in reverse order.
9690 Record implicit sets after recording explicit sets from the block.
9691
9692 2011-03-31 Michael Matz <matz@suse.de>
9693
9694 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9695
9696 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9697
9698 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9699 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9700 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9701 (h8300_mode_dependent_address_p): New function.
9702 (h8300_get_index): Make static.
9703
9704 2011-03-31 Jeff Law <law@redhat.com>
9705
9706 * reload1.c (elimination_effects): Fix typo in recent change.
9707
9708 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9709 typo potentially leading to null pointer dereference.
9710
9711 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9712 (setup_save_areas): Corresponding changes to avoid useless
9713 assignments.
9714
9715 * jump.c (reversed_comparison_code_parts): Avoid successive return
9716 statements when REVERSE_CONDITION is defined.
9717
9718 * expr.c (expand_assignment): Avoid useless assignments.
9719 (expand_expr_real_1): Likewise.
9720 (expand_expr_real_2): Avoid useless statements.
9721
9722 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9723
9724 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9725
9726 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9727 statements.
9728
9729 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9730
9731 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9732
9733 PR target/47109
9734 * doc/tm.texi.in (TARGET_VERSION): Remove.
9735 * doc/tm.texi: Regenerate.
9736 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9737 * collect2.c (main): Don't use TARGET_VERSION.
9738 * mips-tdump.c (main): Don't use TARGET_VERSION.
9739 * mips-tfile.c (main): Don't use TARGET_VERSION.
9740 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9741 * config/rs6000/vxworksae.h: Remove.
9742 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9743 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9744 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9745 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9746 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9747 * config/arm/arm.h (TARGET_VERSION): Remove.
9748 * config/arm/coff.h (TARGET_VERSION): Remove.
9749 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9750 * config/arm/elf.h (TARGET_VERSION): Remove.
9751 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9752 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9753 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9754 * config/arm/pe.h (TARGET_VERSION): Remove.
9755 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9756 * config/arm/semi.h (TARGET_VERSION): Remove.
9757 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9758 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9759 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9760 * config/avr/avr.h (TARGET_VERSION): Remove.
9761 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9762 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9763 * config/frv/frv.h (TARGET_VERSION): Remove.
9764 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9765 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9766 * config/i386/darwin.h (TARGET_VERSION): Remove.
9767 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9768 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9769 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9770 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9771 * config/i386/gnu.h (TARGET_VERSION): Remove.
9772 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9773 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9774 * config/i386/linux.h (TARGET_VERSION): Remove.
9775 * config/i386/linux64.h (TARGET_VERSION): Remove.
9776 * config/i386/lynx.h (TARGET_VERSION): Remove.
9777 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9778 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9779 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9780 * config/i386/netware.h (TARGET_VERSION): Remove.
9781 * config/i386/nto.h (TARGET_VERSION): Remove.
9782 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9783 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9784 * config/ia64/elf.h (TARGET_VERSION): Remove.
9785 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9786 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9787 * config/ia64/linux.h (TARGET_VERSION): Remove.
9788 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9789 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9790 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9791 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9792 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9793 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9794 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9795 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9796 * config/m68k/linux.h (TARGET_VERSION): Remove.
9797 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9798 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9799 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9800 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9801 * config/mep/mep.h (TARGET_VERSION): Remove.
9802 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9803 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9804 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9805 * config/mips/linux.h (TARGET_VERSION): Remove.
9806 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9807 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9808 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9809 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9810 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9811 * config/pa/pa.h (TARGET_VERSION): Remove.
9812 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9813 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9814 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9815 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9816 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9817 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9818 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9819 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9820 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9821 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9822 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9823 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9824 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9825 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9826 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9827 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9828 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9829 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9830 * config/s390/linux.h (TARGET_VERSION): Remove.
9831 * config/s390/s390.h (TARGET_VERSION): Remove.
9832 * config/s390/tpf.h (TARGET_VERSION): Remove.
9833 * config/score/score.h (TARGET_VERSION): Remove.
9834 * config/sh/linux.h (TARGET_VERSION): Remove.
9835 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9836 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9837 * config/sh/sh.h (TARGET_VERSION): Remove.
9838 * config/sh/sh64.h (TARGET_VERSION): Remove.
9839 * config/sh/superh.h (TARGET_VERSION): Remove.
9840 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9841 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9842 * config/sparc/linux.h (TARGET_VERSION): Remove.
9843 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9844 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9845 TARGET_NAME32, TARGET_NAME): Remove.
9846 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9847 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9848 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9849 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9850 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9851 * config/spu/spu.h (TARGET_VERSION): Remove.
9852 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9853 * config/v850/v850.h (TARGET_VERSION): Remove.
9854 * config/vax/linux.h (TARGET_VERSION): Remove.
9855 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9856 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9857 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9858
9859 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9860
9861 PR target/48142
9862 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9863 frame-related from frame-unrelated adjustments to the stack pointer.
9864
9865 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9866
9867 * common.opt (fdebug-types-section): Move earlier.
9868 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9869
9870 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9871
9872 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9873 var.
9874
9875 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9876
9877 * tree.h (CASE_CHAIN): Define.
9878 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9879 (gimple_redirect_edge_and_branch): Likewise.
9880
9881 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9882
9883 PR middle-end/48367
9884 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9885 calculation.
9886
9887 2011-03-30 Jeff Law <law@redhat.com>
9888
9889 * PR bootstrap/48371
9890 * reload1.c (reload): Fix botch in last change.
9891
9892 * reload.h (struct reload): Fix typo introduced in last change.
9893
9894 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9895
9896 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9897 Undocumented. Remove help text.
9898 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9899 -mhard-float.
9900
9901 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9902
9903 * doc/options.texi (NegativeAlias): Document.
9904 (Alias): Mention NegativeAlias.
9905 * opt-functions.awk: Handle NegativeAlias.
9906 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9907 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9908 * opts.h (CL_NEGATIVE_ALIAS): Define.
9909 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9910 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9911 OPT_mspe_.
9912 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9913 Alias entries.
9914 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9915 mno-spe and mno-isel instead of mspe=no and -misel=no.
9916
9917 2011-03-29 Mark Wielaard <mjw@redhat.com>
9918
9919 * common.opt (fdebug-types-section): New flag.
9920 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9921 * dwarf2out.c (use_debug_types): New define.
9922 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9923 (print_die): Guard output of type unit signatures using
9924 use_debug_types.
9925 (build_abbrev_table): Replace assert of dwarf_version >= 4
9926 with assert on use_debug_types.
9927 (size_of_die): Likewise.
9928 (unmark_dies): Likewise.
9929 (value_format): Decide AT_ref_external form on use_debug_types.
9930 (output_die): Replace dwarf_version version check guard with
9931 use_debug_types where appropriate.
9932 (modified_type_die): Likewise.
9933 (gen_reference_type_die): Likewise.
9934 (dwarf2out_start_source_file): Likewise.
9935 (dwarf2out_end_source_file): Likewise.
9936 (prune_unused_types_walk_attribs): Likewise.
9937 (dwarf2out_finish): Likewise.
9938
9939 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9940
9941 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9942
9943 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9944
9945 PR rtl-optimization/48332
9946 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9947 mode of input operand N and modeN to its actual mode.
9948
9949 2011-03-30 Jeff Law <law@redhat.com>
9950
9951 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9952 define accessor macro.
9953 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9954 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9955 (reg_equiv_init): Likewise.
9956 (reg_equivs_size): New variable.
9957 (reg_equiv_init_size): Remove.
9958 (allocate_initial_values): Move prototype to here from....
9959 * integrate.h (allocate_initial_values): Remove prototype.
9960 * integrate.c: Include reload.h.
9961 (allocate_initial_values): Corresponding changes.
9962 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9963 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9964 (update_equiv_regs): Corresponding changes.
9965 (ira): Corresponding changes.
9966 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9967 (push_secondary_reload): Corresponding changes.
9968 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9969 (make_memloc, find_reloads_address): Corresponding changes.
9970 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9971 (find_reloads_address_1): Corresponding changes.
9972 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9973 (refers_to_regno_for_reload_p): Corresponding changes.
9974 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9975 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9976 * reload1.c: Include ggc.h.
9977 (grow_reg_equivs): New function.
9978 (replace_pseudos_in, reload): Corresponding changes.
9979 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9980 (eliminate_regs_1, elimination_effects): Corresponding changes.
9981 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9982 (delete_output_reload): Likewise.
9983 * caller-save.c (mark_referenced_regs): Corresponding changes.
9984 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9985 * frv/predicates.md (frv_load_operand): Corresponding changes.
9986 * microblaze/microblaze.c (double_memory_operand): Corresponding
9987 changes.
9988 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9989 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9990 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9991 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9992 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9993 changes.
9994 * pa/pa.c (emit_move_sequence): Corresponding changes.
9995 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9996
9997 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9998
9999 PR target/47551
10000 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10001 structure modes. Don't check neon_vector_mem_operand for
10002 vector or structure modes.
10003
10004 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10005 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10006
10007 PR target/43590
10008 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10009 operand 1 and reshuffle the operands to match.
10010 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10011
10012 2011-03-30 Christian Schüler <cschueler@gmx.de>
10013
10014 PR driver/48208
10015 * config/c.opt (F): Added 'Driver' to -F option.
10016
10017 PR driver/48260
10018 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10019 handler function.
10020 * config/darwin.opt: Added '-arch' option.
10021
10022 2011-03-30 Nick Clifton <nickc@redhat.com>
10023
10024 * config/rx/rx.md: Add peepholes and patterns to combine
10025 extending loads and simple arithmetic instructions.
10026 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10027 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10028 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10029 modes to use pre-decrement and post-increment addressing.
10030 (rx_is_restricted_memory_address): Add range checking of REG+INT
10031 addresses.
10032 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10033 (rx_memory_move_cost): Adjust cost of stores.
10034 (rx_adjust_insn_length): New function.
10035
10036 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10037
10038 PR c/48305
10039 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10040 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10041 matching arg00/arg01 types.
10042
10043 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10044
10045 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10046 last_location to UNKNOWN_LOCATION.
10047
10048 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10049
10050 PR target/48349
10051 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10052 FLOAT_SSE_REGS.
10053
10054 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10055 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10056
10057 PR bootstrap/48337
10058 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10059 Init(PROCESSOR_V7).
10060 (sparc_cpu): Likewise.
10061 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10062 PROCESSOR_V7.
10063
10064 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10065
10066 PR target/48336
10067 PR middle-end/48342
10068 PR rtl-optimization/48345
10069 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10070 hard regs for given mode from profitable regs when doing secondary
10071 allocation.
10072
10073 2011-03-29 Jeff Law <law@redhat.com>
10074
10075 PR bootstrap/48327
10076 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10077 do_not_duplicate field.
10078 (lookup_redirection_data): Corresponding changes.
10079 (create_duplicates): Always create a template block.
10080 (redirect_edges): Remove code which reused the original block
10081 when it was going to become unreachable code.
10082 (thread_block): Don't set do_not_duplicate field.
10083
10084 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10085
10086 * lto-opts.c (register_user_option_p, lto_register_user_option):
10087 Make type argument unsigned.
10088 * lto-streamer.h (lto_register_user_option): Make type argument
10089 unsigned.
10090 * opth-gen.awk: Make CL_* macros unsigned.
10091 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10092 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10093 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10094 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10095 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10096 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10097 (find_opt): Make lang_mask argument unsigned.
10098
10099 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10100
10101 PR rtl-optimization/48331
10102 PR rtl-optimization/48334
10103 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10104 for any used algorithm.
10105
10106 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10107
10108 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10109 to parent_max.
10110
10111 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10112
10113 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10114 (alpha_option_override): Don't set alpha_sr_alias_set.
10115 (emit_frame_store_1): Use gen_frame_mem rather than calling
10116 set_mem_alias_set.
10117 (alpha_expand_epilogue): Ditto.
10118
10119 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10120
10121 PR tree-optimization/48290
10122 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10123 vectorization, check that relevant phis in the basic block after
10124 the inner loop are really inner loop's exit phis.
10125
10126 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10127
10128 PR debug/48190
10129 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10130 (cached_dw_loc_list_def): New structure.
10131 (cached_dw_loc_list): New typedef.
10132 (cached_dw_loc_list_table): New variable.
10133 (cached_dw_loc_list_table_hash): New function.
10134 (cached_dw_loc_list_table_eq): Likewise.
10135 (add_location_or_const_value_attribute): Take a bool cache_p.
10136 Cache the list when the parameter is true.
10137 (gen_formal_parameter_die): Update caller.
10138 (gen_variable_die): Likewise.
10139 (dwarf2out_finish): Likewise.
10140 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10141 while generating debug info for the decl.
10142 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10143 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10144 (resolve_addr): Cache the result of resolving a chain of
10145 location lists.
10146
10147 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10148
10149 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10150 conflict object hard regset nodes have intersecting hard reg sets.
10151
10152 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10153 after regstat_init_n_sets_and_refs.
10154
10155 * ira.c: Add more comments at the top.
10156 (setup_stack_reg_pressure_class, setup_pressure_classes):
10157 Add comments how we compute the register pressure classes.
10158 (setup_allocno_and_important_classes): Add more comments.
10159 (setup_class_translate_array, reorder_important_classes)
10160 (setup_reg_class_relations): Add comments.
10161
10162 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10163 start of the file.
10164
10165 * ira-color.c: Add 2011 to the Copyright line.
10166 (assign_hard_reg): Add more comments.
10167 (improve_allocation): Ditto.
10168
10169 * ira-costs.c: Add 2011 to the Copyright line.
10170 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10171 comments.
10172 (setup_regno_cost_classes_by_mode): Ditto.
10173
10174 Initial patches from ira-improv branch:
10175
10176 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10177
10178 * ira-build.c (ira_create_object): Remove initialization of
10179 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10180 (ira_create_allocno): Remove initialization of
10181 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10182 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10183 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10184 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10185 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10186 Initialize ALLOCNO_ADD_DATA.
10187 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10188 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10189 ALLOCNO_REG.
10190 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10191 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10192
10193 * ira.c (ira_reallocate): Remove.
10194 (setup_pressure_classes): Call
10195 ira_init_register_move_cost_if_necessary. Use
10196 ira_register_move_cost instead of ira_get_register_move_cost.
10197 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10198 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10199
10200 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10201 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10202 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10203 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10204 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10205 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10206 Fix formatting.
10207 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10208 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10209 (struct allocno_color_data): New.
10210 (allocno_color_data_t): New typedef.
10211 (allocno_color_data): New definition.
10212 (ALLOCNO_COLOR_DATA): New macro.
10213 (struct object_color_data): New.
10214 (object_color_data_t): New typedef.
10215 (object_color_data): New definition.
10216 (OBJECT_COLOR_DATA): New macro.
10217 (update_copy_costs, calculate_allocno_spill_cost): Call
10218 ira_init_register_move_cost_if_necessary. Use
10219 ira_register_move_cost instead of ira_get_register_move_cost.
10220 (move_spill_restore, update_curr_costs): Ditto.
10221 (allocno_spill_priority): Make it inline.
10222 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10223 (struct coalesce_data, coalesce_data_t): New.
10224 (allocno_coalesce_data): New definition.
10225 (ALLOCNO_COALESCE_DATA): New macro.
10226 (merge_allocnos, coalesced_allocno_conflict_p): Use
10227 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10228 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10229 (coalesce_allocnos): Ditto.
10230 (setup_coalesced_allocno_costs_and_nums): Ditto.
10231 (collect_spilled_coalesced_allocnos): Ditto.
10232 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10233 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10234 (coalesce_spill_slots): Ditto.
10235 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10236 free allocno_coalesce_data.
10237
10238 * ira-conflicts.c: Fix formatting.
10239 (process_regs_for_copy): Call
10240 ira_init_register_move_cost_if_necessary. Use
10241 ira_register_move_cost instead of ira_get_register_move_cost.
10242 (build_object_conflicts): Optimize.
10243
10244 * ira-costs.c (record_reg_classes): Optimize. Call
10245 ira_init_register_move_cost_if_necessary. Use
10246 ira_register_move_cost, ira_may_move_in_cost, and
10247 ira_may_move_out_cost instead of ira_get_register_move_cost and
10248 ira_get_may_move_cost.
10249 (record_address_regs): Ditto.
10250 (scan_one_insn): Optimize.
10251 (find_costs_and_classes): Optimize.
10252 (process_bb_node_for_hard_reg_moves): Call
10253 ira_init_register_move_cost_if_necessary. Use
10254 ira_register_move_cost instead of ira_get_register_move_cost.
10255
10256 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10257 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10258 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10259 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10260 definitions.
10261 (ira_initiate_emit_data, ira_finish_emit_data)
10262 (create_new_allocno): New functions.
10263 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10264 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10265 Use ira_register_move_cost instead of ira_get_register_move_cost.
10266
10267 * ira-int.h: Fix some comments.
10268 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10269 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10270 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10271 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10272 add_data.
10273 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10274 bitfield after mode. Make hard_regno a short int. Make
10275 hard_regno short. Remove first_coalesced_allocno and
10276 next_coalesced_allocno. Move mem_optimized_dest_p,
10277 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10278 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10279 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10280 temp, colorable_p. Add new member add_data.
10281 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10282 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10283 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10284 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10285 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10286 (ALLOCNO_ADD_DATA): New macro.
10287 (ira_emit_data_t): New typedef.
10288 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10289 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10290 from struct ira_allocno.
10291 (ALLOCNO_EMIT_DATA): New macro.
10292 (ira_allocno_emit_data, allocno_emit_reg): New.
10293 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10294 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10295 (OBJECT_ADD_DATA): New macro.
10296 (ira_reallocate): Remove.
10297 (ira_initiate_emit_data, ira_finish_emit_data): New.
10298 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10299 (ira_init_register_move_cost_if_necessary): New.
10300 (ira_object_conflict_iter_next): Merge into
10301 ira_object_conflict_iter_cond.
10302 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10303
10304 * ira-live.c (process_single_reg_class_operands): Call
10305 ira_init_register_move_cost_if_necessary. Use
10306 ira_register_move_cost instead of ira_get_register_move_cost.
10307
10308 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10309
10310 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10311
10312 * ira-costs.c: Fix formatting.
10313 (cost_classes, cost_classes_num): Remove.
10314 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10315 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10316 (cost_classes_del, cost_classes_htab): New.
10317 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10318 (initiate_regno_cost_classes, setup_cost_classes): New.
10319 (setup_regno_cost_classes_by_aclass): New.
10320 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10321 (record_reg_classes): Use regno_cost_classes instead of
10322 cost_classes. Move checking opposite operand up.
10323 (record_address_regs): Use regno_cost_classes
10324 instead of cost_classes.
10325 (scan_one_insn): Ditto. Use always general register.
10326 (print_allocno_costs): Use regno_cost_classes instead of
10327 cost_classes.
10328 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10329 (find_costs_and_classes): Set up cost classes for each registers.
10330 Use also their mode for this. Use regno_cost_classes instead of
10331 cost_classes.
10332 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10333 cost_classes.
10334 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10335 (ira_costs, ira_set_pseudo_classes): Call
10336 initiate_regno_cost_classes and finish_regno_cost_classes.
10337
10338 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10339
10340 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10341
10342 * target.def (ira_cover_classes): Remove.
10343
10344 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10345
10346 * doc/tm.texi.in: Ditto.
10347
10348 * ira-conflicts.c: Remove mentioning cover classes from the file.
10349 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10350 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10351
10352 * targhooks.c (default_ira_cover_classes): Remove.
10353
10354 * targhooks.h (default_ira_cover_classes): Ditto.
10355
10356 * haifa-sched.c: Remove mentioning cover classes from the file.
10357 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10358 ira_pressure_classes and ira_pressure_classes_num instead of
10359 ira_reg_class_cover_size and ira_reg_class_cover. Use
10360 sched_regno_pressure_class instead of sched_regno_cover_class.
10361 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10362 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10363
10364 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10365 classes from the file.
10366 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10367 (struct object_hard_regs, struct object_hard_regs_node): New.
10368 (struct ira_object): New members profitable_hard_regs,
10369 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10370 (struct ira_allocno): Rename cover_class to aclass. Rename
10371 cover_class_cost and updated_cover_class_cost to class_cost and
10372 updated_class_cost. Remove splay_removed_p and
10373 left_conflict_size. Add new members colorable_p.
10374 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10375 (ALLOCNO_COLORABLE_P): New macro.
10376 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10377 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10378 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10379 (OBJECT_...): Rename parameter C to O.
10380 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10381 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10382 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10383 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10384 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10385 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10386 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10387 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10388 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10389 x_ira_reg_class_subunion.
10390 (ira_max_memory_move_cost, ira_max_register_move_cost)
10391 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10392 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10393 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10394 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10395 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10396 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10397 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10398 (ira_tune_allocno_costs_and_cover_classes): Rename to
10399 ira_tune_allocno_costs.
10400 (ira_debug_hard_regs_forest): New.
10401 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10402 (ira_object_conflict_iter_next): Fix comments.
10403 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10404 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10405 cover_class to aclass.
10406 (ira_allocate_and_accumulate_costs): Ditto.
10407 (ira_allocate_and_set_or_copy_costs): Ditto.
10408
10409 * opts.c (decode_options): Remove ira_cover_class check.
10410
10411 * ira-color.c: Remove mentioning cover classes from the file. Use
10412 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10413 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10414 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10415 (splay-tree.h): Remove include.
10416 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10417 before copy_freq_compare_func.
10418 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10419 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10420 New definitions.
10421 (hard_regs_roots, hard_regs_node_vec): Ditto.
10422 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10423 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10424 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10425 (create_new_object_hard_regs_node): Ditto.
10426 (add_new_object_hard_regs_node_to_forest): Ditto.
10427 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10428 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10429 Ditto.
10430 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10431 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10432 (remove_unused_object_hard_regs_nodes): Ditto.
10433 (enumerate_object_hard_regs_nodes): Ditto.
10434 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10435 (object_hard_regs_subnode_t): Ditto.
10436 (struct object_hard_regs_subnode): Ditto.
10437 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10438 (setup_object_hard_regs_subnode_index): Ditto.
10439 (get_object_hard_regs_subnodes_num): Ditto.
10440 (form_object_hard_regs_nodes_forest): Ditto.
10441 (finish_object_hard_regs_nodes_tree): Ditto.
10442 (finish_object_hard_regs_nodes_forest): Ditto.
10443 (allocnos_have_intersected_live_ranges_p): Rename to
10444 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10445 (pseudos_have_intersected_live_ranges_p): Rename to
10446 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10447 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10448 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10449 (update_copy_costs): Remove assert. Skip cost update if the hard
10450 reg does not belong the class.
10451 (assign_hard_reg): Process only profitable hard regs.
10452 (uncolorable_allocnos_num): Make it scalar.
10453 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10454 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10455 and ira_reg_class_max_nregs.
10456 (bucket_allocno_compare_func): Check frequency first.
10457 (sort_bucket): Add compare function as a parameter.
10458 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10459 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10460 (push_allocno_to_stack): Rewrite for checking new allocno
10461 colorability.
10462 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10463 (push_only_colorable): Pass new parameter to sort_bucket.
10464 (push_allocno_to_spill): Remove.
10465 (allocno_spill_priority_compare): Make it inline and rewrite.
10466 (splay_tree_allocate, splay_tree_free): Remove.
10467 (allocno_spill_sort_compare): New function.
10468 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10469 build and use splay tree. Choose first allocno in uncolorable
10470 allocno bucket to spill. Remove setting spill cost.
10471 (all_conflicting_hard_regs): Remove.
10472 (setup_allocno_available_regs_num): Check only profitable hard
10473 regs. Print info about hard regs nodes.
10474 (setup_allocno_left_conflicts_size): Remove.
10475 (put_allocno_into_bucket): Don't call
10476 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10477 (improve_allocation): New.
10478 (color_allocnos): Call setup_profitable_hard_regs,
10479 form_object_hard_regs_nodes_forest, improve_allocation,
10480 finish_object_hard_regs_nodes_forest. Setup spill cost.
10481 (print_loop_title): Use pressure classes.
10482 (color_allocnso): Ditto.
10483 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10484 and allocnos_for_spilling.
10485 (ira_sort_regnos_for_alter_reg): Don't setup members
10486 {first,next}_coalesced_allocno.
10487 (color): Remove allocating and freeing removed_splay_allocno_vec.
10488 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10489 prohibited_class_mode_regs.
10490
10491 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10492 formatting.
10493 (update_allocno_pressure_excess_length): Use pressure classes.
10494 (inc_register_pressure, dec_register_pressure): Check for pressure
10495 class.
10496 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10497 pressure class. Use ira_reg_class_nregs instead of
10498 ira_reg_class_max_nregs.
10499 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10500 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10501 (single_reg_class): Use ira_reg_class_nregs instead of
10502 ira_reg_class_max_nregs.
10503 (process_bb_node_lives): Use pressure classes.
10504
10505 * ira-emit.c: Remove mentioning cover classes from the file. Use
10506 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10507 (change_loop): Use pressure classes.
10508 (modify_move_list): Call ira_set_allocno_class instead of
10509 ira_set_allocno_cover_class.
10510
10511 * ira-build.c: Remove mentioning cover classes from the file. Use
10512 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10513 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10514 ALLOCNO_UPDATED_CLASS_COST instead of
10515 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10516 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10517 (ira_create_allocno): Remove initialization of
10518 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10519 ALLOCNO_COLORABLE_P.
10520 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10521 Update conflict regs for the objects.
10522 (create_cap_allocno): Remove assert. Don't propagate
10523 ALLOCNO_AVAILABLE_REGS_NUM.
10524 (ira_free_allocno_costs): New function.
10525 (finish_allocno): Change a part of code into call of
10526 ira_free_allocno_costs.
10527 (low_pressure_loop_node_p): Use pressure classes.
10528 (object_range_compare_func): Don't compare classes.
10529 (setup_min_max_conflict_allocno_ids): Ditto.
10530
10531 * loop-invariant.c: Remove mentioning cover classes from the file.
10532 Use ira_pressure_classes and ira_pressure_classes_num instead of
10533 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10534 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10535 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10536 Use reg_allocno_class instead of reg_cover_class.
10537 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10538 STACK_REG_COVER_CLASS.
10539 (get_regno_cover_class): Rename to get_regno_pressure_class.
10540 (move_loop_invariants): Initialize and finalize regstat.
10541
10542 * ira.c: Remove mentioning cover classes from the file. Add
10543 comments about coloring without cover classes. Use ALLOCNO_CLASS
10544 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10545 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10546 setup_class_subset_and_memory_move_costs.
10547 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10548 (setup_cover_and_important_classes): Rename to
10549 setup_allocno_and_important_classes.
10550 (setup_class_translate_array): New.
10551 (setup_class_translate): Call it for allocno and pressure classes.
10552 (cover_class_order): Rename to allocno_class_order.
10553 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10554 of ira_class_translate.
10555 (reorder_important_classes): Set up ira_important_class_nums.
10556 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10557 (print_class_cover): Rename to print_classes. Add parameter.
10558 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10559 Print pressure classes too.
10560 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10561 setup_reg_subclasses.
10562 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10563 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10564 (setup_prohibited_class_mode_regs): Use
10565 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10566 (clarify_prohibited_class_mode_regs): New function.
10567 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10568 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10569 (ira_init_once): Initialize them.
10570 (free_register_move_costs): Process them.
10571 (ira_init): Move calls of find_reg_classes and
10572 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10573 Call clarify_prohibited_class_mode_regs.
10574 (ira_no_alloc_reg): Remove.
10575 (too_high_register_pressure_p): Use pressure classes.
10576
10577 * sched-deps.c: Remove mentioning cover classes from the file.
10578 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10579 ira_pressure_classes and ira_pressure_classes_num instead of
10580 ira_reg_class_cover_size and ira_reg_class_cover.
10581 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10582 sched_regno_pressure_class instead of sched_regno_cover_class.
10583 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10584 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10585
10586 * ira.h: Add 2010 to Copyright.
10587 (ira_no_alloc_reg): Remove external.
10588 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10589 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10590 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10591 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10592 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10593 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10594 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10595 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10596 x_ira_no_alloc_regs.
10597 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10598 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10599 ira_allocno_classes_num and ira_allocno_classes.
10600 (ira_class_translate): Rename to ira_allocno_class_translate.
10601 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10602 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10603 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10604 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10605 (ira_no_alloc_regs): New.
10606
10607 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10608 classes from the file. Use ALLOCNO_CLASS instead of
10609 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10610 ALLOCNO_COVER_CLASS_COST.
10611 (regno_cover_class): Rename to regno_aclass.
10612 (record_reg_classes): Use ira_reg_class_subunion instead of
10613 ira_reg_class_union.
10614 (record_address_regs): Check overflow.
10615 (scan_one_insn): Ditto.
10616 (print_allocno_costs): Print total mem cost fore regional allocation.
10617 (print_pseudo_costs): Use REG_N_REFS.
10618 (find_costs_and_classes): Use classes intersected with them on the
10619 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10620 ira_reg_class_union. Use ira_allocno_class_translate and
10621 regno_aclass instead of ira_class_translate and regno_cover_class.
10622 Modify code for finding regno_aclass. Setup preferred classes for
10623 the next pass.
10624 (setup_allocno_cover_class_and_costs): Rename to
10625 setup_allocno_class_and_costs. Use regno_aclass instead of
10626 regno_cover_class. Use ira_set_allocno_class instead of
10627 ira_set_allocno_cover_class.
10628 (init_costs, finish_costs): Use regno_aclass instead of
10629 regno_cover_class.
10630 (ira_costs): Use setup_allocno_class_and_costs instead of
10631 setup_allocno_cover_class_and_costs.
10632 (ira_tune_allocno_costs_and_cover_classes): Rename to
10633 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10634 by processing objects. Use ira_reg_class_max_nregs instead of
10635 ira_reg_class_nregs.
10636
10637 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10638
10639 * sched-int.h: Remove mentioning cover classes from the file.
10640 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10641
10642 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10643 classes from the file.
10644 (struct reg_pref): Rename coverclass into allocnoclass.
10645 (reg_cover_class): Rename to reg_allocno_class.
10646
10647 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10648
10649 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10650
10651 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10652
10653 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10654
10655 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10656
10657 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10658
10659 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10660
10661 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10662
10663 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10664
10665 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10666
10667 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10668 (i386_ira_cover_classes): Ditto.
10669
10670 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10671
10672 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10673
10674 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10675
10676 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10677
10678 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10679
10680 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10681
10682 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10683 (mips_ira_cover_classes): Ditto.
10684
10685 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10686
10687 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10688
10689 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10690
10691 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10692
10693 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10694
10695 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10696 (IRA_COVER_CLASSES_VSX): Ditto.
10697
10698 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10699 (rs6000_ira_cover_classes): Ditto.
10700
10701 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10702
10703 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10704
10705 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10706
10707 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10708
10709 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10710
10711 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10712
10713 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10714
10715 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10716
10717 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10718
10719 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10720
10721 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10722
10723 PR debug/48253
10724 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10725 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10726 dw_fde_unlikely_section_end_label, cold_in_std_section,
10727 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10728 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10729 fields.
10730 (output_fde): Use dw_fde_second_{begin,end} if second is
10731 true, otherwise dw_fde_{begin,end}.
10732 (output_call_frame_info): Test dw_fde_second_begin != NULL
10733 instead of dw_fde_switched_sections.
10734 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10735 fields, initialize new fields. Initialize in_std_section
10736 unconditionally from the first partition.
10737 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10738 dw_fde_second_begin is non-NULL.
10739 (dwarf2out_switch_text_section): Stop initializing removed
10740 dw_fde_struct fields, initialize new fields, initialize
10741 also dw_fde_end here. Set dw_fde_switch_cfi even when
10742 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10743 (struct var_loc_list_def): Add last_before_switch field.
10744 (arange_table, arange_table_allocated, arange_table_in_use,
10745 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10746 (size_of_aranges): Count !in_std_section and !second_in_std_section
10747 hunks in fdes, instead of looking at arange_table_in_use.
10748 (output_aranges): Add aranges_length argument, don't call
10749 size_of_aranges here. Instead of using aranges_table*
10750 emit ranges for fdes when !in_std_section resp.
10751 !second_in_std_section.
10752 (dw_loc_list): Break ranges crossing section switch.
10753 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10754 use dw_fde_second_end instead of dw_fde_end as end of last range.
10755 (gen_subprogram_die): Don't call add_arange. Use
10756 dw_fde_{begin,end} for first partition and if switched
10757 section dw_fde_second_{begin,end} for the second.
10758 (var_location_switch_text_section_1,
10759 var_location_switch_text_section): New functions.
10760 (dwarf2out_begin_function): Initialize cold_text_section even
10761 when function_section () isn't text_section.
10762 (prune_unused_types): Don't walk arange_table.
10763 (dwarf2out_finish): Don't needlessly test
10764 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10765 If info_section_emitted, call size_of_aranges and if it indicates
10766 non-empty .debug_aranges, call output_aranges with the computed
10767 size. Stop using removed dw_fde_struct fields, use
10768 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10769 for second.
10770
10771 PR debug/48203
10772 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10773 create ENTRY_VALUE if incoming or address of incoming's MEM
10774 is a hard REG.
10775 * dwarf2out.c (mem_loc_descriptor): Don't emit
10776 DW_OP_GNU_entry_value of DW_OP_fbreg.
10777 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10778 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10779 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10780 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10781 ENTRY_VALUE_EXPs.
10782 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10783 is a REG_P or MEM_P with REG_P address, compute hash directly
10784 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10785 (preserve_only_constants): Don't clear VALUES forwaring
10786 ENTRY_VALUE to some other VALUE.
10787
10788 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10789
10790 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10791 instead of GEN_INT.
10792
10793 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10794
10795 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10796 block before expanding the statement.
10797 (expand_gimple_stmt_1): Likewise. Set them here...
10798 (expand_gimple_stmt): ...and not here. Tidy.
10799 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10800 unknown.
10801
10802 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10803
10804 * Makefile.in: New rule for cprop.o.
10805 * gcse.c: Move constant/copy propagation to cprop.c.
10806 (compute_local_properties): Only handle expression tables.
10807 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10808 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10809 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10810 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10811 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10812 compute_cprop_data, find_used_regs, try_replace_reg,
10813 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10814 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10815 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10816 find_bypass_set, reg_killed_on_edge, bypass_block,
10817 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10818 execute_rtl_cprop, pass_rtl_cprop): Move to...
10819 * cprop.c: ...here. New file, constant/copy propagation for RTL
10820 moved from gcse.c to here with minor cleanups in duplicated code.
10821
10822 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10823
10824 * config/i386/i386.c (flag_opts): Fix a typo in
10825 -mavx256-split-unaligned-store.
10826
10827 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10828
10829 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10830 LIBCALL_VALUE): Remove macros.
10831 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10832 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10833 (h8300_function_value, h8300_libcall_value,
10834 h8300_function_value_regno_p): New functions.
10835
10836 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10837
10838 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10839
10840 2011-03-28 Jeff Law <law@redhat.com>
10841
10842 * tree-ssa-threadupdate.c (redirect_edges): Call
10843 create_edge_and_update_destination_phis as needed.
10844 (create_edge_and_update_destination_phis): Accept new BB argument.
10845 All callers updated.
10846 (thread_block): Do not update the profile when threading around
10847 intermediate blocks.
10848 (thread_single_edge): Likewise.
10849 (determine_bb_domination_status): If BB is not a successor of the
10850 loop header, return NONDOMINATING.
10851 (register_jump_thread): Note when we register a jump thread around
10852 an intermediate block.
10853 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10854 (thread_across_edge): Use it.
10855
10856 2011-03-28 Tristan Gingold <gingold@adacore.com>
10857
10858 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10859 when for_return is 2.
10860
10861 2011-03-28 Jeff Law <law@redhat.com>
10862
10863 * var-tracking.c (canonicalize_values_mark): Delete unused
10864 lhs assignment.
10865 (canonicalize_values_star, set_variable_part): Likewise.
10866 (clobber_variable_part, delete_variable_part): Likewise.
10867
10868 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10869
10870 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10871
10872 2011-03-28 Martin Jambor <mjambor@suse.cz>
10873
10874 * tree-inline.c (expand_call_inline): Do not check that destination
10875 node is analyzed.
10876 (optimize_inline_calls): Assert that destination node is analyzed.
10877 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10878 not call tree_lowering_passes.
10879 * cgraph.h (cgraph_analyze_function): Declare.
10880 * cgraphunit.c (cgraph_analyze_function): Make public.
10881
10882 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10883
10884 * config/sparc/sparc-opts.h: New.
10885 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10886 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10887 (sparc_option_override): Store processor_type enumeration rather
10888 than string in cpu_default. Remove name and enumeration from
10889 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10890 without using sparc_select. Use target_flags_explicit instead of
10891 fpu_option_set.
10892 * config/sparc/sparc.h (enum processor_type): Move to
10893 sparc-opts.h.
10894 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10895 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10896 HeaderInclude entry.
10897 (mcpu=, mtune=): Use Var and Enum.
10898 (sparc_processor_type): New Enum and EnumValue entries.
10899
10900 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10901 Iain Sandoe <iains@gcc.gnu.org>
10902
10903 PR target/48245
10904 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10905
10906 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10907
10908 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10909 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10910 Insert new statements at it in lieu of STMT.
10911 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10912 * tree-vect-stmts.c (vectorizable_store): Likewise.
10913 (vectorizable_load): Likewise.
10914
10915 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10916
10917 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10918 (divtf3): Ditto.
10919 (multf3): Ditto.
10920 (subtf3): Ditto.
10921
10922 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10923
10924 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10925 unaligned 256bit load/store.
10926 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10927 (*avx_movdqu<avxmodesuffix>): Likewise.
10928
10929 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10930
10931 PR target/48288
10932 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10933 * config/pa/pa.md (iordi3): Use new predicate in expander.
10934 (iorsi3): Likewise.
10935
10936 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10937
10938 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10939 FUNCTION_VALUE_REGNO_P): Remove macros.
10940 * config/mips/mips-protos.h (mips_function_value): Remove.
10941 * config/mips/mips.c (mips_function_value): Rename to...
10942 (mips_function_value_1): ... this. Make static. Handle receiving
10943 the function type in 'fn_decl_or_type' argument.
10944 (mips_function_value, mips_libcall_value,
10945 mips_function_value_regno_p): New function.
10946 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10947 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10948
10949 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10950
10951 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10952 and -mavx256-split-unaligned-store.
10953 (ix86_option_override_internal): Split 32-byte AVX unaligned
10954 load/store by default.
10955 (ix86_avx256_split_vector_move_misalign): New.
10956 (ix86_expand_vector_move_misalign): Use it.
10957
10958 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10959 -mavx256-split-unaligned-store.
10960
10961 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10962 256bit load/store. Generate unaligned store on misaligned memory
10963 operand.
10964 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10965 256bit load/store.
10966 (*avx_movdqu<avxmodesuffix>): Likewise.
10967
10968 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10969 -mavx256-split-unaligned-store.
10970
10971 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10972
10973 PR target/38598
10974 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10975 Update commentary.
10976
10977 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10978
10979 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10980 opno arguments with an expand_operand. Use create_input_operand.
10981 (mips_prepare_builtin_target): Delete.
10982 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10983 functions.
10984 (mips_expand_builtin_direct): Use create_output_operand and
10985 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10986 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10987 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10988
10989 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10990
10991 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10992 function.
10993 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10994
10995 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10996
10997 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10998 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10999 basic blocks and call commit_edge_insertions directly.
11000 (fixup_abnormal_edges): Move from here to...
11001 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11002 on the edges and return whether some have actually been inserted.
11003 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11004 compensation code.
11005
11006 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11007
11008 PR rtl-optimization/48144
11009 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11010 (merge_expr_data): ... here.
11011 (av_set_intersect): Rename to av_set_code_motion_filter.
11012 Update all callers. Call merge_history_vect when an expression
11013 is found in both sets.
11014 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11015
11016 2011-03-26 Alan Modra <amodra@gmail.com>
11017
11018 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11019 cmodel medium addresses.
11020 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11021 64-bit gpr loads and stores.
11022 (rs6000_secondary_reload_ppc64): New function.
11023 * config/rs6000/rs6000-protos.h: Declare it.
11024 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11025
11026 2011-03-26 Alan Modra <amodra@gmail.com>
11027
11028 PR target/47487
11029 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11030 GNU Go in traceback table.
11031
11032 2011-03-25 Richard Henderson <rth@redhat.com>
11033
11034 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11035 if there are exactly 6 operands.
11036 (set_storage_via_setmem): Similarly.
11037
11038 2011-03-25 Kai Tietz <ktietz@redhat.com>
11039
11040 * collect2.c (write_c_file_stat): Handle backslash
11041 as right-hand directory separator.
11042 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11043 checking just for slash.
11044 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11045 instead of checking for trailing slash.
11046 * gcc.c (record_temp_file): Use filename_cmp instead
11047 of strcmp.
11048 (do_spec_1): Likewise.
11049 (replace_outfile_spec_function): Likewise.
11050 (is_directory): Use filename_ncmp instead of strncmp.
11051 (print_multilib_info): Likewise.
11052 * gcov.c (find_source): Use filename_cmp instead
11053 instead of strcmp.
11054 (make_gcov_file_name): Fix order of slash/backslash
11055 checks.
11056 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11057 (add_standard_paths): Likewise.
11058 * mips-tfile.c (saber_stop): Handle backslash.
11059 * prefix.c (update_path): Use filename_ncmp instead of
11060 strncmp.
11061 * profile.c (output_location): Use filename_cmp instead
11062 of strcmp.
11063 * read-md.c (handle_toplevel_file): Handle backslash.
11064 * tlink.c (frob_extension): Likewise.
11065 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11066 strcmp.
11067 * tree-dump.c (dequeue_and_dump): Handle backslash.
11068 * tree.c (get_file_function_name): Likewise.
11069 * gengtype.c (read_input_list): Likewise.
11070 (get_file_realbasename): Likewise.
11071 (get_output_file_with_visibility): Use filename_cmp
11072 instead of strcmp.
11073
11074 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11075
11076 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11077 case to VFPv1.
11078
11079 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11080
11081 * fold-const.c (expr_location_or): New function.
11082 (fold_truth_not_expr): Call it.
11083
11084 2011-03-25 Jeff Law <law@redhat.com>
11085
11086 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11087 va_end.
11088 * c-family/c-common.c (def_fn_type): Likewise.
11089 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11090 * emit-rtl.c (gen_rtvec): Likewise.
11091 * lto/lto-lang.c (def_fn_type): Likewise.
11092
11093 2011-03-25 Richard Guenther <rguenther@suse.de>
11094
11095 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11096 also generate copies.
11097 (fini_copy_prop): Handle constant values properly.
11098
11099 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11100
11101 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11102 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11103 (hash_loc_operands, compare_loc_operands): Handle
11104 DW_OP_GNU_entry_value.
11105
11106 2011-03-25 Kai Tietz <ktietz@redhat.com>
11107
11108 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11109 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11110 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11111 comment and use macro TARGET_64BIT_MS_ABI instead.
11112 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11113 and change default behavior for 32-bit MS_ABI.
11114 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11115 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11116 32-bit, too.
11117 (ix86_cfun_abi): Likewise.
11118 (ix86_maybe_switch_abi): Adjust comment.
11119 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11120 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11121 instead of checking for SYSV_ABI.
11122 (ix86_nsaved_sseregs): Likewise.
11123 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11124 to 16 bytes.
11125 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11126 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11127 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11128 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11129 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11130
11131 2011-03-25 Richard Guenther <rguenther@suse.de>
11132
11133 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11134 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11135 (verify_gimple): Remove.
11136 * tree-cfg.c (verify_gimple_call): Merge verification
11137 from verify_stmts.
11138 (verify_gimple_phi): Merge verification from verify_stmts.
11139 (verify_gimple_label): New function.
11140 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11141 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11142 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11143 (verify_stmts): Rename to verify_gimple_in_cfg.
11144 (verify_gimple_in_cfg): New function.
11145 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11146 * tree-ssa.c (verify_ssa): Likewise.
11147 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11148
11149 2011-03-25 Richard Guenther <rguenther@suse.de>
11150
11151 * passes.c (init_optimization_passes): Add FRE pass after
11152 early SRA.
11153
11154 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11155 Andrew Stubbs <ams@codesourcery.com>
11156
11157 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11158 for Cortex-A8.
11159 (arm_movdi_vfp_cortexa8): New pattern.
11160 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11161 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11162 instructions when tuning for Cortex-A8. Set attribute "arch".
11163 * config/arm/arm.md: Move include arm-tune.md up a bit.
11164 (define_attr "arch"): Add "onlya8" and "nota8" values.
11165 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11166
11167 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11168
11169 PR bootstrap/48282
11170 Revert:
11171 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11172
11173 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11174 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11175 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11176 * passes.c (init_optimization_passes): Move
11177 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11178
11179 2011-03-25 Kai Tietz <ktietz@redhat.com>
11180
11181 * c-typeck.c (comptypes_internal): Replace target
11182 hook call of comp_type_attributes by version in tree.c file.
11183 * gimple.c (gimple_types_compatible_p_1): Likewise.
11184 * tree-ssa.c (useless_type_conversion_p): Likewise.
11185 * tree.c (build_type_attribute_qual_variant): Likewise.
11186 (attribute_value_equal): New static helper function.
11187 (comp_type_attributes): New function.
11188 (merge_attributes): Use attribute_value_equal for comparison.
11189 (attribute_list_contained): Likewise.
11190 * tree.h (comp_type_attributes): New prototype.
11191
11192 2011-03-25 Richard Guenther <rguenther@suse.de>
11193
11194 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11195 of complex types at -O0.
11196 (verify_gimple_assign_binary): Likewise.
11197 (verify_gimple_assign_ternary): Likewise.
11198
11199 2011-03-24 Mark Wielaard <mjw@redhat.com>
11200
11201 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11202 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11203
11204 2011-03-24 Mark Wielaard <mjw@redhat.com>
11205
11206 PR debug/48041
11207 * dwarf2out.c (output_abbrev_section): Only write table when
11208 abbrev_die_table_in_use > 1.
11209
11210 2011-02-24 Richard Henderson <rth@redhat.com>
11211
11212 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11213 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11214 (alpha_expand_unaligned_load_words): Use extql.
11215 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11216 (emit_insxl): Handle all modes for consistency.
11217
11218 2011-02-24 Richard Henderson <rth@redhat.com>
11219
11220 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11221 (alpha_expand_unaligned_load): Likewise.
11222 (alpha_expand_unaligned_store): Likewise.
11223 (alpha_expand_unaligned_load_words): Likewise.
11224 (alpha_expand_unaligned_store_words): Likewise.
11225 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11226 (alpha_split_lock_test_and_set_12): Likewise.
11227 (print_operand, alpha_fold_builtin_extxx): Likewise.
11228 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11229 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11230 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11231 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11232 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11233 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11234 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11235 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11236 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11237 (extwl, extll, extql): Similarly.
11238 (inswh, inslh, insqh): Similarly.
11239 (mskbl, mskwl, mskll, mskql): Similarly.
11240 (mskwh, msklh, mskqh): Similarly.
11241
11242 2011-02-24 Richard Henderson <rth@redhat.com>
11243
11244 * config/alpha/alpha.md (attribute isa): Add er, ner.
11245 (attribute enabled): Handle them.
11246 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11247
11248 2011-02-24 Richard Henderson <rth@redhat.com>
11249
11250 * config/alpha/alpha.md (attribute isa): Add vms.
11251 (attribute enabled): Handle it.
11252 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11253 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11254 (*movtf): Rename from *movtf_internal for consistency.
11255 (*movsi): Merge with *movsi_nt_vms.
11256 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11257 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11258 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11259 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11260
11261 2011-02-24 Richard Henderson <rth@redhat.com>
11262
11263 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11264 (extendqisi2, extendhisi2): Likewise.
11265 (extendqidi2): Simplify BWX/non-BWX expansions.
11266 (extendhidi2): Similarly.
11267
11268 2011-02-24 Richard Henderson <rth@redhat.com>
11269
11270 * config/alpha/alpha.md (attribute isa): New.
11271 (attribute enabled): New.
11272 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11273 (zero_extendqisi2, zero_extendqidi2): Similarly.
11274 (zero_extendhisi2, zero_extendhidi2): Similarly.
11275 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11276
11277 2011-02-24 Richard Henderson <rth@redhat.com>
11278
11279 * config/alpha/predicates.md (input_operand): Revert last change;
11280 update comment to mention 32-bit VMS rather than Windows.
11281
11282 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11283
11284 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11285 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11286 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11287 * passes.c (init_optimization_passes): Move
11288 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11289
11290 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11291
11292 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11293
11294 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11295
11296 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11297 correctly.
11298
11299 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11300
11301 PR debug/48204
11302 * simplify-rtx.c (simplify_const_unary_operation): Call
11303 real_convert when changing mode class with FLOAT_EXTEND.
11304
11305 2011-03-24 Nick Clifton <nickc@redhat.com>
11306
11307 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11308 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11309 * config/rx/rx.c (rx_option_override): Set align_jumps,
11310 align_loops and align_labels if not set by the user.
11311 (rx_align_for_label): New function.
11312 (rx_max_skip_for_label): New function.
11313 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11314 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11315 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11316 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11317 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11318
11319 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11320
11321 PR rtl-optimization/48263
11322 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11323 and original commutative_p handling. Use maybe_gen_insn.
11324
11325 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11326
11327 * reload.c (find_reloads_subreg_address): Add address_reloaded
11328 parameter and return true there if the full address has been
11329 reloaded.
11330 (find_reloads_toplev): Pass address_reloaded flag.
11331 (find_reloads_address_1): Don't use address_reloaded parameter.
11332
11333 2011-03-24 Jeff Law <law@redhat.com>
11334
11335 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11336 unused variable "ann".
11337 (remove_unused_locals): Likewise.
11338
11339 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11340 statement.
11341
11342 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11343 after it is freed.
11344
11345 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11346
11347 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11348 for invalid symbolic addresses.
11349 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11350 larl operands.
11351
11352 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11353
11354 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11355 the argument in calls to fold_truth_not_expr.
11356
11357 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11358
11359 * tree.c (record_node_allocation_statistics): New function.
11360 (make_node_stat, copy_node_stat, build_string): Call it.
11361 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11362 (build1_stat, build_omp_clause): Likewise.
11363
11364 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11365
11366 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11367 last commit.
11368
11369 2011-03-24 Richard Guenther <rguenther@suse.de>
11370
11371 PR tree-optimization/48271
11372 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11373 blocks that still exist.
11374
11375 2011-03-24 Richard Guenther <rguenther@suse.de>
11376
11377 PR tree-optimization/48270
11378 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11379 not free datarefs before ddrs.
11380
11381 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11382
11383 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11384 from the address built for a reference with variable offset.
11385
11386 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11387
11388 PR target/48237
11389 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11390 alternatives that can be handled with movq or movabsq insn.
11391 (*movdf_internal): Disable for !TARGET_64BIT.
11392 (*movdf_internal_nointeger): Ditto.
11393 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11394
11395 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11396
11397 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11398 (FUNCTION_ARG_ADVANCE): Likewise.
11399 * tm.texi.in: Change references to them to hook references.
11400 * tm.texi: Regenerate.
11401 * targhooks.c (default_function_arg): Eliminate check for target macro.
11402 (default_function_incoming_arg): Likewise.
11403 (default_function_arg_advance): Likewise.
11404 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11405 (function_arg_advance): Likewise.
11406 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11407
11408 2011-03-24 Richard Guenther <rguenther@suse.de>
11409
11410 PR middle-end/48269
11411 * tree-object-size.c (addr_object_size): Do not double-account
11412 for MEM_REF offsets.
11413
11414 2011-03-24 Diego Novillo <dnovillo@google.com>
11415
11416 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11417 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11418 (lto_input_data_block): Move from lto-opts.c. Make extern.
11419 Update all users.
11420 (lto_input_string): Rename from input_string. Make extern.
11421 Update all users.
11422 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11423 output_string_with_length.
11424 Output 0 to indicate a non-NULL string. Update all callers to
11425 not emit 0.
11426 (lto_output_string): Rename from output_string. Make extern.
11427 Update all users.
11428 (lto_output_decl_state_streams): Make extern.
11429 (lto_output_decl_state_refs): Make extern.
11430 * lto-streamer.h (lto_input_string): Declare.
11431 (lto_input_data_block): Declare.
11432 (lto_output_string): Declare.
11433 (lto_output_string_with_length): Declare.
11434 (lto_output_decl_state_streams): Declare.
11435 (lto_output_decl_state_refs): Declare.
11436
11437 2011-03-24 Richard Guenther <rguenther@suse.de>
11438
11439 PR tree-optimization/46562
11440 * tree.c (build_invariant_address): New function.
11441 * tree.h (build_invariant_address): Declare.
11442 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11443 a renamed function moved ...
11444 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11445 Take valueization callback parameter.
11446 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11447 * gimple-fold.h: New file.
11448 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11449 (ccp_fold, fold_const_aggregate_ref,
11450 fold_ctor_reference, fold_nonarray_ctor_reference,
11451 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11452 get_base_constructor): Move ...
11453 * gimple-fold.c: ... here.
11454 (gimple_fold_stmt_to_constant_1): New function
11455 split out from ccp_fold. Take a valueization callback parameter.
11456 Valueize all operands.
11457 (gimple_fold_stmt_to_constant): New wrapper function.
11458 (fold_const_aggregate_ref_1): New function split out from
11459 fold_const_aggregate_ref. Take a valueization callback parameter.
11460 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11461 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11462 invariant POINTER_PLUS_EXPRs to invariant form.
11463 (vn_valueize): New function.
11464 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11465 * tree-vrp.c (vrp_valueize): New function.
11466 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11467 to fold statements to constants.
11468 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11469 function declarations.
11470 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11471 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11472
11473 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11474
11475 * config/h8300/predicates.md (jump_address_operand): Fix register
11476 mode check.
11477
11478 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11479
11480 * doc/invoke.texi (max-stores-to-sink): Document.
11481 * params.h (MAX_STORES_TO_SINK): Define.
11482 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11483 if either vectorization or if-conversion is disabled.
11484 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11485 tree-vect-data-refs.c vect_equal_offsets.
11486 (dr_equal_offsets_p): New function.
11487 (find_data_references_in_bb): Remove static.
11488 * tree-data-ref.h (find_data_references_in_bb): Declare.
11489 (dr_equal_offsets_p): Likewise.
11490 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11491 (vect_drs_dependent_in_basic_block): Update calls to
11492 vect_equal_offsets.
11493 (vect_check_interleaving): Likewise.
11494 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11495 (cond_if_else_store_replacement): Rename to...
11496 (cond_if_else_store_replacement_1): ... this. Change arguments and
11497 documentation.
11498 (cond_if_else_store_replacement): New function.
11499 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11500 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11501
11502 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11503
11504 PR target/46934
11505 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11506 to subtract lower bound instead of GEN_INT().
11507
11508 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11509
11510 PR other/48179
11511 PR other/48221
11512 PR other/48234
11513 * doc/extend.texi (Alignment): Move section to match order in TOC.
11514 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11515 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11516
11517 2011-03-23 Jeff Law <law@redhat.com>
11518
11519 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11520 before removing the edge.
11521
11522 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11523 it may have been freed by redirect_branch_edge or
11524 redirect_edge_succ_nodup.
11525
11526 2011-03-23 Richard Guenther <rguenther@suse.de>
11527
11528 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11529 (check_va_list_escapes): Likewise.
11530 (check_all_va_list_escapes): Likewise.
11531
11532 2011-03-23 Richard Guenther <rguenther@suse.de>
11533
11534 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11535 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11536 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11537 (alias.o): Likewise.
11538 (ipa-type-escape.o): Remove.
11539 (ipa-struct-reorg.o): Likewise.
11540 (GTFILES): Remove ipa-struct-reorg.c.
11541 * alias.c: Do not include ipa-type-escape.h.
11542 * tree-ssa-alias.c: Likewise.
11543 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11544 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11545 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11546 and ipa-type-escape passes.
11547 * tree-pass.h (pass_ipa_type_escape): Remove.
11548 (pass_ipa_struct_reorg): Likewise.
11549 * ipa-struct-reorg.h: Remove.
11550 * ipa-struct-reorg.c: Likewise.
11551 * ipa-type-escape.h: Likewise.
11552 * ipa-type-escape.c: Likewise.
11553 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11554 (--param struct-reorg-cold-struct-ratio): Likewise.
11555 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11556 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11557 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11558
11559 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11560
11561 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11562 cpu attribute value.
11563 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11564 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11565 * config/s390/s390.c (processor_flags_table): New constant array.
11566 (s390_handle_arch_option): Remove.
11567 (s390_handle_option): Remove s390_handle_arch_option invocations
11568 and OPT_mwarn_framesize_ handling.
11569 (s390_option_override): Remove s390_handle_arch_option invocation.
11570 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11571 warnings.
11572 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11573 * config/s390/s390.opt (s390_tune, s390_arch)
11574 (march=): Replace s390_arch_option enum and values with
11575 processor_type. Set variable name to s390_arch. Set
11576 initialization value.
11577 (mtune=): Replace s390_arch_option with processor_type. Set
11578 variable name to s390_tune. Set initialization value.
11579
11580 2011-03-23 Julian Brown <julian@codesourcery.com>
11581
11582 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11583 accesses which are not naturally aligned.
11584
11585 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11586
11587 PR target/47553
11588 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11589
11590 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11591
11592 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11593 parameter from "int" to "enum insn_code".
11594 (expand_operand_type): New enum.
11595 (expand_operand): New structure.
11596 (create_expand_operand): New function.
11597 (create_fixed_operand, create_output_operand): Likewise
11598 (create_input_operand, create_convert_operand_to): Likewise.
11599 (create_convert_operand_from, create_address_operand): Likewise.
11600 (create_integer_operand): Likewise.
11601 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11602 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11603 (expand_insn, expand_jump_insn): Likewise.
11604 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11605 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11606 (expand_movstr, expand_builtin___clear_cache): Likewise.
11607 (expand_builtin_lock_release): Likewise.
11608 * explow.c (allocate_dynamic_stack_space): Likewise.
11609 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11610 and use the default handling in that case.
11611 * expmed.c (check_predicate_volatile_ok): Delete.
11612 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11613 (emit_cstore): Likewise.
11614 * expr.c (emit_block_move_via_movmem): Likewise.
11615 (set_storage_via_setmem, expand_assignment): Likewise.
11616 (emit_storent_insn, try_casesi): Likewise.
11617 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11618 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11619 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11620 (expand_twoval_unop, expand_twoval_binop): Likewise.
11621 (expand_unop_direct, emit_indirect_jump): Likewise.
11622 (emit_conditional_move, vector_compare_rtx): Likewise.
11623 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11624 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11625 (expand_sync_lock_test_and_set): Likewise.
11626 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11627 (emit_unop_insn): Likewise.
11628 (expand_copysign_absneg): Change icode to an insn_code.
11629 (create_convert_operand_from_type): New function.
11630 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11631 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11632 (expand_insn, expand_jump_insn): Likewise.
11633 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11634 than const_int_operand for operand 2.
11635
11636 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11637
11638 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11639 if possible.
11640
11641 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11642
11643 * emit-rtl.c (emit_pattern_before_noloc): New function.
11644 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11645 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11646 (emit_pattern_after_noloc): New function.
11647 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11648 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11649
11650 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11651
11652 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11653 (__ffsDI2): Likewise.
11654
11655 2011-03-22 Richard Henderson <rth@redhat.com>
11656
11657 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11658 of !TARGET_ABI_OPEN_VMS.
11659 (alpha_trampoline_init, alpha_start_function): Likewise.
11660 (alpha_expand_epilogue, alpha_file_start): Likewise.
11661 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11662 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11663 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11664 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11665 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11666
11667 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11668
11669 * config/s390/s390-opts.h: New.
11670 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11671 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11672 s390_stack_guard): Remove.
11673 (s390_handle_arch_option): Return void. Take enum
11674 s390_arch_option value instead of string and searching array.
11675 (s390_handle_option): Don't assert that global structures are in
11676 use. Access variables via opts pointer. Use error_at. Don't use
11677 sscanf for -mstack-guard= or -mstack-size=. Update call to
11678 s390_handle_arch_option.
11679 (s390_option_override): Update call to s390_handle_arch_option.
11680 (s390_emit_prologue): Use %d format for s390_stack_size in
11681 diagnostic. Use %wd for HOST_WIDE_INT.
11682 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11683 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11684 * config/s390/s390.opt (config/s390/s390-opts.h): New
11685 HeaderInclude entry.
11686 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11687 s390_arch_flags, s390_warn_framesize): New Variable entries.
11688 (s390_arch_option): New Enum and EnumValue entries.
11689 (march=): Use Enum instead of Var.
11690 (mstack-guard=, mstack-size=): Use UInteger and Var.
11691 (mtune=): Use Enum.
11692
11693 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11694
11695 * config/score/score.c (score_handle_option): Don't assert that
11696 global structures are in use. Access target_flags via opts
11697 pointer. Use value of -march= option to determine target_flags
11698 settings.
11699 * config/score/score.opt (march=): Use Enum.
11700 (score_arch): New Enum and EnumValue entries.
11701
11702 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11703
11704 * config/mep/mep.c (option_mtiny_specified): Remove.
11705 (mep_option_override): Move register handling for -mivc2 from
11706 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11707 instead of option_mtiny_specified.
11708 (mep_handle_option): Access target_flags via opts pointer. Don't
11709 assert that global structures are in use. Defer part of -mivc2
11710 handling and move it to mep_option_override.
11711 * config/mep/mep.opt (IVC2): New Mask entry.
11712 (mivc2): Use Var and Defer instead of Mask.
11713
11714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11715
11716 * config/v850/v850-opts.h: New.
11717 * config/v850/v850.c (small_memory): Replace with
11718 small_memory_physical_max array. Make that array static const.
11719 (v850_handle_memory_option): Take integer value of argument. Take
11720 gcc_options pointer, option text and location. Return void.
11721 Update for changes to small memory structures.
11722 (v850_handle_option): Access target_flags via opts pointer. Don't
11723 assert that global structures are in use. Update calls to
11724 v850_handle_memory_option.
11725 (v850_encode_data_area): Update references to small memory settings.
11726 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11727 (enum small_memory_type): Move to v850-opts.h.
11728 * config/v850/v850.opt (config/v850/v850-opts.h): New
11729 HeaderInclude entry.
11730 (small_memory_max): New Variable entry.
11731 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11732 (mtda, mzda): Likewise.
11733
11734 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11735
11736 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11737 pointer. Don't assert that global structures are in use.
11738
11739 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11740
11741 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11742 via opts pointer. Don't assert that global structures are in use.
11743
11744 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11745
11746 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11747 (munix=93): Use Var.
11748 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11749 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11750 * config/pa/pa-opts.h: New.
11751 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11752 (pa_handle_option): Don't assert that global structures are in
11753 use. Access target_flags via opts pointer. Don't handle
11754 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11755 OPT_munix_98 here.
11756 (pa_option_override): Handle deferred OPT_mfixed_range_.
11757
11758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11759
11760 * config/mn10300/mn10300-opts.h: New.
11761 * config/mn10300/mn10300.c (mn10300_processor,
11762 mn10300_tune_string): Remove.
11763 (mn10300_handle_option): Don't assert that global structures are
11764 in use. Access mn10300_processor via opts pointer. Don't handle
11765 OPT_mtune_ here.
11766 * config/mn10300/mn10300.h (enum processor_type): Move to
11767 mn10300-opts.h.
11768 (mn10300_processor): Remove.
11769 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11770 HeaderInclude entry.
11771 (mn10300_processor): New Variable entry.
11772 (mtune=): Use Var.
11773
11774 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11775
11776 * config/microblaze/microblaze.c: Don't include opts.h.
11777 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11778 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11779 (mno-clearbss): Use Var and Warn.
11780
11781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11782
11783 * config/m32r/m32r-opts.h: New.
11784 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11785 (m32r_handle_option): Don't assert that global structures are in
11786 use. Access target_flags and m32r_cache_flush_func via opts
11787 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11788 OPT_mno_flush_trap here.
11789 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11790 include of m32r-opts.h.
11791 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11792 HeaderInclude entry.
11793 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11794 (mmodel=): Use Enum and Var.
11795 (m32r_model): New Enum and EnumValue entries.
11796 (mno-flush-trap): Use Var.
11797 (msdata=): Use Enum and Var.
11798 (m32r_sdata): New Enum and EnumValue entries.
11799
11800 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11801
11802 * config/m32c/m32c.c: Don't include opts.h.
11803 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11804 m32c_handle_option): Remove.
11805 (m32c_option_override): Check global_options_set.x_target_memregs
11806 instead of target_memregs_set.
11807 * config/m32c/m32c.h (target_memregs): Remove.
11808 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11809 variable.
11810
11811 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11812
11813 * config/iq2000/iq2000-opts.h: New.
11814 * config/iq2000/iq2000.c: Don't include opts.h.
11815 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11816 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11817 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11818 HeaderInclude entry.
11819 (iq2000_tune): New Variable entry.
11820 (march=): Add comment. Use Enum.
11821 (iq2000_arch): New Enum and EnumValue entries.
11822 (mcpu=): Use Enum and Var.
11823 (iq2000_tune): New Enum and EnumValue entries.
11824
11825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11826
11827 * config/ia64/ia64-opts.h: New.
11828 * config/ia64/ia64.c (ia64_tune): Remove.
11829 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11830 here. Use error_at.
11831 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11832 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11833 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11834 HeaderInclude entry.
11835 (ia64_tune): New Variable entry.
11836 (mfixed-range=): Use Defer and Var.
11837 (mtune=): Use Enum and Var.
11838 (ia64_tune): New Enum and EnumValue entries.
11839
11840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11841
11842 * config/frv/frv-opts.h: New.
11843 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11844 frv-opts.h.
11845 (frv_cpu_type): Remove.
11846 * config/frv/frv.c: Don't include opts.h.
11847 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11848 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11849 (frv_cpu_type): New Variable entry.
11850 (frv_cpu): New Enum and EnumValue entries.
11851
11852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11853
11854 * config/cris/cris.c (cris_handle_option): Access target_flags via
11855 opts pointer. Don't assert that global structures are in use.
11856 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11857 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11858
11859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11860
11861 * config/bfin/bfin-opts.h: New.
11862 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11863 bfin_si_revision, bfin_workarounds): Remove.
11864 (bfin_cpus): Make static const.
11865 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11866 not bfin_lib_id_given.
11867 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11868 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11869 pointer. Use error_at. Don't assert that global structures are in use.
11870 * config/bfin/bfin.h: Include bfin-opts.h.
11871 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11872 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11873 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11874 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11875 entries.
11876
11877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11878
11879 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11880 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11881 or -msoft-float here.
11882 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11883 -msoft-float and -mhard-float.
11884 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11885 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11886 msoft-float.
11887 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11888 -msoft-float.
11889 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11890 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11891 not mhard-float.
11892 (LIBGCC_SPEC): Don't handle -msoft-float.
11893 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11894 -mhard-float.
11895 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11896 msoft-float.
11897 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11898 -mfloat-abi=*, not -msoft-float and -mhard-float.
11899 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11900 -msoft-float.
11901 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11902 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11903 mhard-float and msoft-float.
11904 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11905 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11906 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11907 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11908 mhard-float.
11909 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11910 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11911 msoft-float.
11912 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11913 not mhard-float.
11914 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11915 not msoft-float.
11916
11917 2011-03-22 Richard Henderson <rth@redhat.com>
11918
11919 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11920 TARGET_ABI_WINDOWS_NT.
11921 (alpha_output_function_end_prologue): Likewise.
11922 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11923 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11924 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11925 (trap, *movsi_nt_vms): Likewise.
11926 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11927 (*tablejump_osf_nt_internal): Remove.
11928 * config/alpha/predicates.md (input_operand): Only test Pmode.
11929
11930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11931
11932 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11933 via opts pointer. Use error_at. Don't assert that global
11934 structures are in use.
11935
11936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11937
11938 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11939 (ix86_handle_option): Access ix86_isa_flags and
11940 ix86_isa_flags_explicit via opts pointer. Don't assert that
11941 global structures are in use.
11942 (ix86_function_specific_save, ix86_function_specific_restore):
11943 Update ix86_isa_flags_explicit field name.
11944 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11945 (ix86_isa_flags_explicit): Rename TargetSave entry to
11946 x_ix86_isa_flags_explicit.
11947
11948 2011-03-22 Richard Henderson <rth@redhat.com>
11949
11950 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11951 (alpha_option_override, direct_return): Likewise.
11952 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11953 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11954 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11955 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11956 (alpha_expand_epilogue, alpha_end_function): Likewise.
11957 (alpha_init_libfuncs): Likewise.
11958 (struct machine_function): Remove unicosmk members.
11959 (print_operand) ['t']: Remove.
11960 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11961 unicosmk_output_module_name, unicosmk_output_common,
11962 current_section_align, unicosmk_output_text_section_asm_op,
11963 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11964 unicosmk_section_type_flags, unicosmk_unique_section,
11965 unicosmk_asm_named_section, unicosmk_insert_attributes,
11966 unicosmk_output_align, unicosmk_defer_case_vector,
11967 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11968 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11969 unicosmk_output_ssib, unicosmk_add_call_info_word,
11970 unicosmk_extern_head, unicosmk_output_default_externs,
11971 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11972 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11973 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11974 * config/alpha/alpha-protos.h: Update.
11975 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11976 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11977 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11978 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11979 (*mulsi_se, mulvsi3): Likewise.
11980 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11981 (*divmodsi_internal, call, call_value, realign): Likewise.
11982 (moddi3, umoddi3): Likewise; remove duplicate expander.
11983 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11984 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11985 (*movdi_nofix): Remove r/U alternative.
11986 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11987 * config/alpha/constraints.md ("U"): Remove.
11988 * config/alpha/predicates.md (call_operand"): Don't test
11989 TARGET_ABI_UNICOSMK.
11990
11991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11992
11993 * target.def (handle_option): Take gcc_options and
11994 cl_decoded_option pointers and location_t.
11995 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11996 * doc/tm.texi: Regenerate.
11997 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11998 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11999 * lto-opts.c (lto_reissue_options): Generate option structure for
12000 targetm.handle_option call.
12001 * opts.c (target_handle_option): Update call to
12002 targetm.handle_option. Remove assertions about values now passed
12003 down to hook.
12004 * targhooks.c (default_target_handle_option): New.
12005 * targhooks.h (default_target_handle_option): Declare.
12006 * config/alpha/alpha.c: Include opts.h.
12007 (alpha_handle_option): Update to new hook interface.
12008 * config/arm/arm.c: Include opts.h.
12009 (arm_handle_option): Update to new hook interface.
12010 * config/arm/t-arm (arm.o): Update dependencies.
12011 * config/bfin/bfin.c: Include opts.h.
12012 (bfin_handle_option): Update to new hook interface.
12013 * config/cris/cris.c: Include opts.h.
12014 (cris_handle_option): Update to new hook interface.
12015 * config/frv/frv.c: Include opts.h.
12016 (frv_handle_option): Update to new hook interface.
12017 * config/i386/i386.c: Include opts.h.
12018 (ix86_handle_option): Update to new hook interface.
12019 (ix86_valid_target_attribute_inner_p): Generate option structure
12020 for call to ix86_handle_option.
12021 * config/i386/t-i386 (i386.o): Update dependencies.
12022 * config/ia64/ia64.c: Include opts.h.
12023 (ia64_handle_option): Update to new hook interface.
12024 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12025 * config/iq2000/iq2000.c: Include opts.h.
12026 (iq2000_handle_option): Update to new hook interface.
12027 * config/m32c/m32c.c: Include opts.h.
12028 (m32c_handle_option): Update to new hook interface.
12029 * config/m32r/m32r.c: Include opts.h.
12030 (m32r_handle_option): Update to new hook interface.
12031 * config/m68k/m68k.c: Include opts.h.
12032 (m68k_handle_option): Update to new hook interface.
12033 * config/mep/mep.c: Include opts.h.
12034 (mep_handle_option): Update to new hook interface.
12035 * config/microblaze/microblaze.c: Include opts.h.
12036 (microblaze_handle_option): Update to new hook interface.
12037 * config/mips/mips.c: Include opts.h.
12038 (mips_handle_option): Update to new hook interface.
12039 * config/mn10300/mn10300.c: Include opts.h.
12040 (mn10300_handle_option): Update to new hook interface.
12041 * config/pa/pa.c: Include opts.h.
12042 (pa_handle_option): Update to new hook interface.
12043 * config/pdp11/pdp11.c: Include opts.h.
12044 (pdp11_handle_option): Update to new hook interface.
12045 * config/rs6000/rs6000.c: Include opts.h.
12046 (rs6000_handle_option): Update to new hook interface.
12047 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12048 * config/rx/rx.c: Include opts.h.
12049 (rx_handle_option): Update to new hook interface.
12050 * config/s390/s390.c: Include opts.h.
12051 (s390_handle_option): Update to new hook interface.
12052 * config/score/score.c: Include opts.h.
12053 (score_handle_option): Update to new hook interface.
12054 * config/sh/sh.c: Include opts.h.
12055 (sh_handle_option): Update to new hook interface.
12056 * config/sparc/sparc.c: Include opts.h.
12057 (sparc_handle_option): Update to new hook interface.
12058 * config/v850/v850.c: Include opts.h.
12059 (v850_handle_option): Update to new hook interface.
12060
12061 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12062
12063 * gcc.c (driver_unknown_option_callback): Only permit and save
12064 unknown -Wno- options.
12065 (driver_wrong_lang_callback): Save options directly instead of via
12066 driver_unknown_option_callback.
12067
12068 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12069
12070 * combine.c (simplify_set): Try harder to find the best CC mode when
12071 simplifying a nested COMPARE on the RHS.
12072
12073 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12074
12075 * config/alpha/gnu.h: Remove.
12076 * config/arc: Remove directory.
12077 * config/arm/netbsd.h: Remove.
12078 * config/arm/t-pe: Remove.
12079 * config/crx: Remove directory.
12080 * config/i386/netbsd.h: Remove.
12081 * config/m68hc11: Remove directory.
12082 * config/m68k/uclinux-oldabi.h: Remove.
12083 * config/mcore/mcore-pe.h: Remove.
12084 * config/mcore/t-mcore-pe: Remove.
12085 * config/netbsd-aout.h: Remove.
12086 * config/rs6000/gnu.h: Remove.
12087 * config/sh/sh-symbian.h: Remove.
12088 * config/sh/symbian-base.c: Remove.
12089 * config/sh/symbian-c.c: Remove.
12090 * config/sh/symbian-cxx.c: Remove.
12091 * config/sh/symbian-post.h: Remove.
12092 * config/sh/symbian-pre.h: Remove.
12093 * config/sh/t-symbian: Remove.
12094 * config/svr3.h: Remove.
12095 * config/vax/netbsd.h: Remove.
12096 * config.build: Don't handle i[34567]86-*-pe.
12097 * config.gcc: Remove handling of deprecations for most deprecated
12098 targets.
12099 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12100 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12101 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12102 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12103 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12104 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12105 Remove cases.
12106 * config.host: Don't handle i[34567]86-*-pe.
12107 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12108 (ASM_SPEC32): Don't handle -mcall-gnu.
12109 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12110 -mcall-gnu.
12111 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12112 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12113 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12114 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12115 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12116 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12117 conditional on SYMBIAN.
12118 * configure.ac: Don't handle powerpc*-*-gnu*.
12119 * configure: Regenerate.
12120 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12121 * doc/install-old.texi (m6811, m6812): Don't mention.
12122 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12123 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12124 (m68k-uclinuxoldabi): Don't mention.
12125 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12126 Remove.
12127 (-mcall-gnu): Remove.
12128 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12129 families): Remove constraint documentation.
12130
12131 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12132
12133 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12134 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12135 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12136
12137 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12138
12139 PR target/48226
12140 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12141 vector when peeking at the next token for vector, don't expand the
12142 keywords.
12143
12144 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12145
12146 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12147 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12148 * config/avr/avr.c (init_cumulative_args)
12149 (avr_function_arg_advance): Use it.
12150 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12151 sibcall epilogues.
12152 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12153 (avr_function_ok_for_sibcall): ...this new function.
12154 (avr_lookup_function_attribute1): New static Function.
12155 (avr_naked_function_p, interrupt_function_p)
12156 (signal_function_p, avr_OS_task_function_p)
12157 (avr_OS_main_function_p): Use it.
12158 * config/avr/avr.md ("sibcall", "sibcall_value")
12159 ("sibcall_epilogue"): New expander.
12160 ("*call_insn", "*call_value_insn"): New insn.
12161 ("call_insn", "call_value_insn"): Remove
12162 ("call", "call_value", "epilogue"): Change expander to handle
12163 sibling calls.
12164
12165 2011-03-21 Nick Clifton <nickc@redhat.com>
12166
12167 * doc/invoke.texi (Overall Options): Move closing brace to end of
12168 options list.
12169 (Optimization Options): Add missing @gol.
12170 (Directory Options): Likewise.
12171 (i386 and x86-64 Options): Likewise.
12172 (RS6000 and PowerPC Options): Likewise.
12173 (i386 and x86-64 Windows Options): Likewise.
12174 (V850 Options): Add text missing from descriptions.
12175
12176 2011-03-22 Richard Henderson <rth@redhat.com>
12177
12178 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12179 (avr_incoming_return_addr_rtx): New.
12180 (emit_push_byte): New.
12181 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12182 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12183 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12184 (emit_pop_byte): New.
12185 (expand_epilogue): Use it. Pop frame pointer by bytes.
12186 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12187 (INCOMING_RETURN_ADDR_RTX): New.
12188 (INCOMING_FRAME_SP_OFFSET): New.
12189 (ARG_POINTER_CFA_OFFSET): New.
12190 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12191 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12192 (pophi): Remove.
12193
12194 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12195
12196 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12197
12198 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12199 (FUNCTION_ARG_ADVANCE): Likewise.
12200 * tm.texi.in: Change references to them to hook references.
12201 * tm.texi: Regenerate.
12202 * targhooks.c (default_function_arg): Eliminate check for target
12203 macro.
12204 (default_function_incoming_arg): Likewise.
12205 (default_function_arg_advance): Likewise.
12206 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12207 (function_arg_advance): Likewise.
12208 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12209
12210 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12211
12212 * tree.c (build_call_1): New function.
12213 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12214
12215 2011-03-22 Richard Guenther <rguenther@suse.de>
12216
12217 PR tree-optimization/48228
12218 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12219 for single-arg PHIs.
12220
12221 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12222
12223 PR rtl-optimization/48143
12224 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12225 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12226 sse2_cvtps2pd): Likewise.
12227
12228 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12229
12230 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12231
12232 2011-03-22 Richard Guenther <rguenther@suse.de>
12233
12234 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12235 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12236 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12237 and REALIGN_LOAD_EXPR.
12238 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12239 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12240 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12241 DOT_PROD_EXPR case ...
12242 (expand_expr_real_2): ... here.
12243 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12244 and REALIGN_LOAD_EXPR.
12245 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12246 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12247 (vect_create_epilog_for_reduction): Likewise.
12248 (vectorizable_reduction): Likewise.
12249 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12250 * tree-vect-stmts.c (vectorizable_load): Likewise.
12251
12252 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12253
12254 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12255
12256 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12257
12258 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12259 handling for PLTOFF/GOTOFF.
12260
12261 2011-03-22 Nick Clifton <nickc@redhat.com>
12262
12263 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12264 trailing backslash from the end of the macro definition.
12265
12266 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12267
12268 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12269 and PLT unspecs.
12270
12271 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12272
12273 * expr.h (prepare_operand): Move to...
12274 * optabs.h (prepare_operand): ...here and change the insn code
12275 parameter from "int" to "enum insn_code".
12276 (insn_operand_matches): Declare.
12277 * expr.c (init_expr_target): Use insn_operand_matches.
12278 (compress_float_constant): Likewise.
12279 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12280 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12281 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12282 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12283 Likewise.
12284 (gen_cond_trap): Likewise.
12285 (prepare_operand): Likewise. Change icode to an insn_code.
12286 (insn_operand_matches): New function.
12287 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12288 * reload1.c (gen_reload): Likewise.
12289 * targhooks.c (default_secondary_reload): Likewise.
12290
12291 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12292
12293 * config/alpha/alpha.md (unspec): New define_c_enum.
12294 (unspecv): Ditto.
12295
12296 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12297
12298 PR debug/48214
12299 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12300 between a call and its CALL_ARG_LOCATION note.
12301
12302 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12303
12304 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12305
12306 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12307
12308 PR c/42544
12309 PR c/48197
12310 * c-common.c (shorten_compare): If primopN is first sign-extended
12311 to opN and then zero-extended to result type, set primopN to opN.
12312
12313 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12314
12315 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12316 for barrier handlers.
12317
12318 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12319
12320 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12321 UNSPEC constants to be in the unspec enumeration, and redefine
12322 all UNSPECV constants to be in the unspecv enumeration, so that
12323 dumps print which unspec/unspec_volatile this is.
12324 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12325 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12326 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12327 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12328 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12329
12330 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12331 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12332 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12333 * config/rs6000/sync.md (isync, lwsync): Ditto.
12334
12335 2011-03-21 Richard Guenther <rguenther@suse.de>
12336
12337 * params.def (lto-min-partition): Fix typo.
12338
12339 2011-03-21 Richard Guenther <rguenther@suse.de>
12340
12341 PR c/47939
12342 * c-decl.c (grokdeclarator): Drop to the main variant only
12343 for array types. Drop flag_gen_aux_info check.
12344
12345 2011-03-21 Richard Guenther <rguenther@suse.de>
12346
12347 PR translation/47911
12348 * params.def (lto-partitions): Fix typo.
12349 (lto-min-partition): Fix wording.
12350
12351 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12352
12353 * config/rs6000/t-freebsd: Remove duplication from file.
12354
12355 2011-03-21 Richard Guenther <rguenther@suse.de>
12356
12357 PR middle-end/47661
12358 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12359
12360 2011-03-21 Richard Guenther <rguenther@suse.de>
12361
12362 PR lto/48210
12363 * params.def (lto-partitions): Require at least 1 partition.
12364
12365 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12366
12367 * gthr-solaris.h: Remove.
12368 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12369 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12370 (LIB_SPEC): Likewise.
12371 * config/sol2.opt (threads): Remove.
12372 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12373 (sparc*-*-solaris2*): Likewise.
12374 * configure.ac (enable_threads): Enable solaris support.
12375 * configure: Regenerate.
12376 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12377 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12378 solaris.
12379
12380 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12381
12382 * config.gcc: Obsolete *-*-solaris2.8*.
12383 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12384
12385 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12386
12387 PR bootstrap/48135
12388 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12389 reference. Solaris 8 perl works.
12390
12391 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12392
12393 PR bootstrap/48135
12394 * doc/install.texi (Prerequisites): Move jar etc. up.
12395 Explain support library version requirements.
12396
12397 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12398
12399 PR bootstrap/48135
12400 * doc/install.texi (Prerequisites): Move Perl to build
12401 requirements. Always necessary on Solaris 2 with Sun ld.
12402
12403 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12404
12405 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12406 binutils 2.21.
12407 (Specific, i?86-*-solaris2.[89]): Likewise.
12408 (Specific, i?86-*-solaris2.10): Likewise.
12409 (Specific, mips-sgi-irix6): Likewise.
12410 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12411 Update for binutils 2.21.
12412
12413 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12414
12415 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12416 Allow -fuse-linker-plugin for non-default plugin linker.
12417 * configure: Regenerate.
12418
12419 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12420
12421 PR bootstrap/48167
12422 * gengtype.c (files_rules): Added rule for cp/parser.h.
12423
12424 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12425
12426 PR target/48213
12427 * config/s390/s390.c (s390_delegitimize_address): Don't call
12428 lowpart_subreg if orig_x has BLKmode.
12429
12430 2011-03-21 Kai Tietz <ktietz@redhat.com>
12431
12432 PR target/12171
12433 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12434 * tree.h (attribute_spec): Add new member affects_type_identity.
12435 * attribs.c (empty_attribute_table): Adjust attribute_spec
12436 initializers.
12437 * config/alpha/alpha.c: Likewise.
12438 * config/arc/arc.c: Likewise.
12439 * config/arm/arm.c: Likewise.
12440 * config/avr/avr.c: Likewise.
12441 * config/bfin/bfin.c: Likewise.
12442 * config/crx/crx.c: Likewise.
12443 * config/darwin.h: Likewise.
12444 * config/h8300/h8300.c: Likewise.
12445 * config/i386/cygming.h: Likewise.
12446 * config/i386/i386.c: Likewise.
12447 * config/ia64/ia64.c: Likewise.
12448 * config/m32c/m32c.c: Likewise.
12449 * config/m32r/m32r.c: Likewise.
12450 * config/m68hc11/m68hc11.c: Likewise.
12451 * config/m68k/m68k.c: Likewise.
12452 * config/mcore/mcore.c: Likewise.
12453 * config/mep/mep.c: Likewise.
12454 * config/microblaze/microblaze.c: Likewise.
12455 * config/mips/mips.c: Likewise.
12456 * config/rs6000/rs6000.c: Likewise.
12457 * config/rx/rx.c: Likewise.
12458 * config/sh/sh.c: Likewise.
12459 * config/sol2.h: Likewise.
12460 * config/sparc/sparc.c: Likewise.
12461 * config/spu/spu.c: Likewise.
12462 * config/stormy16/stormy16.c: Likewise.
12463 * config/v850/v850.c: Likewise.
12464
12465 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12466
12467 * simplify-rtx.c (simplify_binary_operation_1): Handle
12468 (xor (and A B) C) case when B and C are both constants.
12469
12470 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12471
12472 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12473
12474 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12475
12476 PR bootstrap/48168
12477 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12478
12479 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12480
12481 PR rtl-optimization/48156
12482 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12483 assume df and df_lr are not NULL.
12484
12485 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12486
12487 PR debug/48023
12488 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12489 between a call and its CALL_ARG_LOCATION note.
12490
12491 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12492
12493 PR debug/48178
12494 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12495 between a call and its corresponding CALL_ARG_LOCATION note.
12496
12497 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12498
12499 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12500 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12501 * haifa-sched.c (setup_ref_regs): Ditto.
12502 * caller-save.c (add_used_regs_1): Ditto.
12503 * dse.c (look_for_hardregs): Ditto.
12504 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12505 * sched-rgn.c (check_live_1): Ditto.
12506
12507 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12508
12509 * c-decl.c (diagnose_mismatched_decls): Give an error for
12510 redefining a typedef with variably modified type.
12511
12512 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12513
12514 * c-decl.c (grokfield): Don't allow typedefs for structures or
12515 unions with no tag by default.
12516 * doc/extend.texi (Unnamed Fields): Update.
12517
12518 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12519
12520 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12521 Rewrite using indirect functions.
12522 (lwp_slwpcb): Ditto.
12523 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12524 (avx_vinsertf128<mode>): Ditto.
12525
12526 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12527
12528 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12529 unspecs.
12530
12531 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12532
12533 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12534 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12535
12536 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12537
12538 PR rtl-optimization/48170
12539 * gcse.c (hoist_code): Remove bogus asserts.
12540
12541 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12542
12543 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12544 computation for prologue/epilogue.
12545
12546 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12547
12548 * Makefile.in (check-consistency): Remove.
12549
12550 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12551
12552 PR debug/48176
12553 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12554 arange_table_in_use is 0, but either text_section_used or
12555 cold_text_section_used is true. Don't call it if
12556 !info_section_emitted.
12557
12558 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12559
12560 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12561 FUNCTION_VALUE_REGNO_P): Remove.
12562 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12563 Remove.
12564 * config/avr/avr.c (avr_ret_register): Make static inline.
12565 (avr_function_value_regno_p): New function.
12566 (avr_libcall_value): Make static. Add 'func' argument.
12567 (avr_function_value): Make static. Rename 'func' argument to
12568 'fn_decl_or_type', forward it to avr_libcall_value. Call
12569 avr_ret_register function instead of RET_REGISTER macro.
12570 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12571
12572 2011-03-18 Jason Merrill <jason@redhat.com>
12573
12574 PR c++/23372
12575 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12576
12577 2011-03-18 Richard Guenther <rguenther@suse.de>
12578
12579 * doc/install.texi (--enable-gold): Remove.
12580 (--with-plugin-ld): Document.
12581 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12582
12583 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12584
12585 PR middle-end/47790
12586 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12587 again after expansion changes.
12588
12589 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12590
12591 * combine.c (try_combine): Do simplification only call of
12592 subst() on i2 even when i1 is present. Update comments.
12593
12594 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12595
12596 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12597 and UNSPEC_PCREL_SYMOFF.
12598
12599 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12600
12601 * config/s390/s390.md: Use define_c_enum for the unspec constant
12602 definitions.
12603
12604 2011-03-18 Richard Henderson <rth@redhat.com>
12605 Jakub Jelinek <jakub@redhat.com>
12606
12607 PR bootstrap/48161
12608 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12609 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12610
12611 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12612
12613 PR middle-end/47725
12614 * combine.c (cant_combine_insn_p): Don't check zero/sign
12615 extended hard registers.
12616
12617 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12618
12619 PR middle-end/47725
12620 * combine.c (cant_combine_insn_p): Check zero/sign extended
12621 hard registers.
12622
12623 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12624
12625 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12626 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12627 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12628 Change return type to bool.
12629 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12630
12631 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12632
12633 PR debug/48163
12634 * var-tracking.c (prepare_call_arguments): If CALL target
12635 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12636 pc instead of looking it up using cselib_lookup and use
12637 Pmode for it if x has VOIDmode.
12638 * dwarf2out.c (gen_subprogram_die): If also both first and
12639 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12640
12641 PR debug/48163
12642 * function.c (assign_parms): For data.passed_pointer parms
12643 use MEM of data.entry_parm instead of data.entry_parm itself
12644 as DECL_INCOMING_RTL.
12645 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12646 also when passed and declared mode is the same, DECL_RTL
12647 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12648 a MEM too.
12649
12650 2011-03-16 Jeff Law <law@redhat.com>
12651
12652 PR rtl-optimization/37273
12653 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12654 handle them like argument loads from stack slots. Do not double
12655 count memory for memory constants and argument loads from stack slots.
12656
12657 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12658
12659 PR debug/48160
12660 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12661
12662 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12663
12664 PR target/48171
12665 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12666
12667 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12668
12669 PR bootstrap/48153
12670 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12671 if dwarf_strict.
12672 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12673 Clear call_arg_locations and call_arg_loc_last always.
12674
12675 PR middle-end/48152
12676 * var-tracking.c (prepare_call_arguments): If argument needs to be
12677 passed by reference, adjust argtype and mode.
12678
12679 2011-03-17 Richard Guenther <rguenther@suse.de>
12680
12681 PR middle-end/48134
12682 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12683 a value make sure to fold the statement.
12684
12685 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12686
12687 PR target/43872
12688 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12689 return condition with !cfun->calls_alloca.
12690
12691 2011-03-17 Richard Guenther <rguenther@suse.de>
12692
12693 PR bootstrap/48148
12694 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12695 origin for decls in other ltrans units.
12696 (input_varpool_node): Likewise.
12697
12698 2011-03-17 Richard Guenther <rguenther@suse.de>
12699
12700 PR middle-end/48165
12701 * tree-object-size.c (compute_object_offset): Properly return
12702 the offset operand of MEM_REFs as sizetype.
12703
12704 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR rtl-optimization/48141
12707 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12708 * dse.c: Include params.h.
12709 (active_local_stores_len): New variable.
12710 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12711 to NULL.
12712 (record_store, check_mem_read_rtx): Decrease it when removing
12713 from the chain.
12714 (scan_insn): Likewise. Increase it when adding to chain, if it
12715 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12716 set active_local_stores to NULL before the addition.
12717 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12718
12719 PR rtl-optimization/48141
12720 * dse.c (record_store): If no positions are needed in an insn
12721 that cannot be deleted, at least unchain it from active_local_stores.
12722
12723 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12724
12725 PR debug/47510
12726 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12727 (lookup_type_die_strip_naming_typedef): ... here.
12728 (get_context_die): Use it.
12729 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12730 the anonymous struct named by the naming typedef.
12731
12732 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12733
12734 PR target/48154
12735 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12736 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12737
12738 2011-03-16 Jeff Law <law@redhat.com>
12739
12740 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12741 check for operands of conditional. Allow type to be a pointer.
12742
12743 2011-03-16 Richard Guenther <rguenther@suse.de>
12744
12745 PR tree-optimization/48149
12746 * fold-const.c (fold_binary_loc): Fold
12747 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12748
12749 2011-03-16 Richard Guenther <rguenther@suse.de>
12750
12751 PR tree-optimization/26134
12752 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12753 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12754 (non_rewritable_mem_ref_base): Handle complex type component
12755 accesses, constrain offsets for vector and complex extracts
12756 more properly.
12757
12758 2011-03-16 Richard Guenther <rguenther@suse.de>
12759
12760 PR tree-optimization/48146
12761 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12762 operands avoiding the need for renaming.
12763
12764 2011-03-16 Richard Guenther <rguenther@suse.de>
12765
12766 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12767 constant folding. Move MEM_REF canonicalization first.
12768 Rely on fold_const_aggregate_ref for initializer folding.
12769 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12770
12771 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12772
12773 PR middle-end/48136
12774 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12775 arg0/arg1 or their arguments are always fold converted to matching
12776 types.
12777
12778 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12779 to nargs.
12780
12781 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12782
12783 PR lto/46944
12784 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12785 Handle in-tree gold.
12786 (ld_vers): Extract binutils version for gold.
12787 (gcc_cv_ld_hidden): Handle gold here.
12788 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12789 * configure: Regenerate.
12790 * config.in: Regenerate.
12791 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12792 -fuse-linker-plugin otherwise.
12793 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12794 (LINK_COMMAND_SPEC): Use it.
12795 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12796
12797 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12798
12799 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12800 * calls.c: Remove debug.h include.
12801 (emit_call_1): Don't call virtual_call_token debug hook.
12802 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12803 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12804 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12805 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12806 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12807 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12808 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12809 dwarf2out_virtual_call): Remove.
12810 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12811 copy_call_info and virtual_call hooks.
12812 (dwarf2out_init): Don't initialize vcall_insn_table,
12813 debug_dcall_section and debug_vcall_section.
12814 (prune_unused_types): Don't mark nodes from dcall_table.
12815 (dwarf2out_finish): Don't output dcall or vcall tables.
12816 * final.c (final_scan_insn): Don't call direct_call or
12817 virtual_call debug hooks.
12818 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12819 virtual_call_token, copy_call_info and virtual_call hooks.
12820 (debug_nothing_uid): Remove prototype.
12821 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12822 copy_call_info and virtual_call hooks.
12823 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12824 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12825 * debug.c (do_nothing_debug_hooks): Likewise.
12826 (debug_nothing_uid): Remove.
12827 * doc/invoke.texi (-fenable-icf-debug): Remove.
12828 * common.opt (-fenable-icf-debug): Likewise.
12829
12830 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12831 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12832 call's MEM. Handle functions returning aggregate through a hidden
12833 first pointer. For virtual calls add clobbered pc to call arguments
12834 chain.
12835 * dwarf2out.c (gen_subprogram_die): Emit
12836 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12837 can't be emitted.
12838
12839 PR debug/45882
12840 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12841 * rtl.h (ENTRY_VALUE_EXP): Define.
12842 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12843 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12844 * print-rtl.c (print_rtx): Likewise.
12845 * gengtype.c (adjust_field_rtx_def): Likewise.
12846 * var-tracking.c (vt_add_function_parameter): Adjust
12847 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12848 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12849 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12850 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12851 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12852
12853 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12854 Call var_location debug hook even on CALL_INSNs.
12855 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12856 * rtl.def (ENTRY_VALUE): New.
12857 * dwarf2out.c: Include cfglayout.h.
12858 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12859 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12860 (struct call_arg_loc_node): New type.
12861 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12862 tail_call_site_count): New variables.
12863 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12864 DW_TAG_GNU_call_site_parameter.
12865 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12866 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12867 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12868 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12869 and DW_AT_GNU_all_source_call_sites.
12870 (mem_loc_descriptor): Handle ENTRY_VALUE.
12871 (add_src_coords_attributes): Don't add enything if
12872 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12873 (dwarf2out_abstract_function): Save and clear call_arg_location,
12874 call_site_count and tail_call_site_count around dwarf2out_decl call.
12875 (gen_call_site_die): New function.
12876 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12877 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12878 (dwarf2out_function_decl): Clear call_arg_locations,
12879 call_arg_loc_last, set call_site_count and tail_call_site_count
12880 to -1 and free block_map.
12881 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12882 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12883 followed by any real instructions.
12884 (dwarf2out_begin_function): Set call_site_count and
12885 tail_call_site_count to 0.
12886 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12887 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12888 attempt to force a DIE for it and worst case remove the attribute.
12889 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12890 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12891 the decl itself.
12892 * var-tracking.c: Include tm_p.h.
12893 (vt_stack_adjustments): For calls call note_register_arguments.
12894 (argument_reg_set): New variable.
12895 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12896 ensure the VALUE is resolved.
12897 (call_arguments): New variable.
12898 (prepare_call_arguments): New function.
12899 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12900 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12901 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12902 always use the best expression.
12903 (vt_expand_loc): Add ignore_cur_loc argument.
12904 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12905 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12906 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12907 note for all calls.
12908 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12909 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12910 argument. Don't call cselib_preserve_only_values and
12911 cselib_reset_table.
12912 (note_register_arguments): New function.
12913 (vt_initialize): Compute argument_reg_set. Call
12914 vt_add_function_parameters before processing basic blocks instead of
12915 afterwards. For calls call prepare_call_arguments before calling
12916 cselib_process_insn.
12917 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12918 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12919 (var-tracking.o): Depend on $(TM_P_H).
12920 * cfglayout.h (insn_scope): New prototype.
12921 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12922 * cfglayout.c (insn_scope): No longer static.
12923 * insn-notes.def (CALL_ARG_LOCATION): New.
12924 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12925 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12926 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12927 nothing for DECL_EXTERNAL BLOCK_VARS.
12928
12929 2011-03-16 Alan Modra <amodra@gmail.com>
12930
12931 PR target/45844
12932 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12933 create invalid offset address for vsx splat insn.
12934 * config/rs6000/predicates.md (splat_input_operand): New.
12935 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12936
12937 2011-03-15 Xinliang David Li <davidxl@google.com>
12938
12939 PR c/47837
12940 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12941 (normalize_preds): New function.
12942 (is_use_properly_guarded): Normalize def predicates.
12943
12944 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12945
12946 PR target/46788
12947 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12948 in the output template.
12949
12950 2011-03-15 Richard Guenther <rguenther@suse.de>
12951
12952 PR middle-end/47650
12953 * tree-pretty-print.c (dump_function_declaration): Properly
12954 dump unprototyped and varargs function types.
12955
12956 2011-03-15 Richard Guenther <rguenther@suse.de>
12957
12958 PR tree-optimization/13954
12959 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12960 and friends.
12961
12962 2011-03-15 Richard Guenther <rguenther@suse.de>
12963
12964 PR tree-optimization/48037
12965 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12966 selects into BIT_FIELD_REFs.
12967 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12968 vector select.
12969
12970 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12971
12972 PR tree-optimization/48129
12973 * builtins.c (fold_builtin_snprintf): Convert to type of
12974 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12975 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12976
12977 2011-03-15 Richard Guenther <rguenther@suse.de>
12978
12979 PR tree-optimization/41490
12980 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12981 value but with VUSE.
12982 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12983 return statements.
12984 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12985 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12986 * tree-tailcall.c (find_tail_calls): Ignore returns.
12987
12988 2011-03-15 Richard Guenther <rguenther@suse.de>
12989
12990 PR middle-end/48031
12991 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12992 or variable-indexed array accesses when in gimple form.
12993
12994 2011-03-15 Richard Guenther <rguenther@suse.de>
12995
12996 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12997
12998 2011-03-15 Alan Modra <amodra@gmail.com>
12999
13000 PR target/48032
13001 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13002 presume symbol_refs without a symbol_ref_decl are suitably
13003 aligned, nor other trees we may see here. Handle anchor symbols.
13004 (legitimate_constant_pool_address_p): Comment. Add mode param.
13005 Check cmodel=medium addresses. Adjust all calls.
13006 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13007 creating cmodel=medium optimized access to locals.
13008 * config/rs6000/constraints.md (R): Pass QImode to
13009 legitimate_constant_pool_address_p.
13010 * config/rs6000/predicates.md (input_operand): Pass mode to
13011 legitimate_constant_pool_address_p.
13012 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13013 Update prototype.
13014
13015 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13016
13017 PR target/48053
13018 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13019 64-bit constants being loaded into registers other than GPRs such
13020 as loading 0 into a VSX register.
13021
13022 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13023
13024 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13025
13026 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13027
13028 PR middle-end/47917
13029 * builtins.c (fold_builtin_snprintf): New function.
13030 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13031 (fold_builtin_4): Likewise.
13032
13033 PR middle-end/38878
13034 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13035 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13036 and C - X == X also strip nops from +/-/p+ operand.
13037 When optimizing -X == C, fold C to arg0's type.
13038
13039 PR debug/47946
13040 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13041 emit it as add_AT_int instead of add_AT_unsigned.
13042
13043 2011-03-14 Tom Tromey <tromey@redhat.com>
13044
13045 * unwind-dw2.c: Include sys/sdt.h if it exists.
13046 (_Unwind_DebugHook): Use STAP_PROBE2.
13047 * config.in, configure: Rebuild.
13048 * configure.ac: Check for sys/sdt.h.
13049
13050 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13051
13052 * config/i386/i386.md (ROUND_FLOOR): New constant.
13053 (ROUND_CEIL): Ditto.
13054 (ROUND_TRUNC): Ditto.
13055 (ROUND_MXCSR): Ditto.
13056 (ROUND_NO_EXC): Ditto.
13057 (rint<mode>2): Use new defines instead of numerical constants.
13058 (floor<mode>2): Ditto.
13059 (ceil<mode>2): Ditto.
13060 (btrunc<mode>2): Ditto.
13061 * config/i386/i386-builtin-types.def: Define ROUND function type
13062 aliases.
13063 * config/i386/i386.c (enum ix86_builtins): Add
13064 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13065 (struct builtin_description): Add
13066 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13067 (ix86_expand_sse_round): New static function.
13068 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13069 function types.
13070 (ix86_builtin_vectorized_function): Handle
13071 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13072
13073 2011-03-14 Tom Tromey <tromey@redhat.com>
13074
13075 * c-parser.c (c_parser_asm_string_literal): Clear
13076 warn_overlength_strings.
13077
13078 2011-03-14 Tom Tromey <tromey@redhat.com>
13079
13080 * c-parser.c (disable_extension_diagnostics): Save
13081 warn_overlength_strings.
13082 (restore_extension_diagnostics): Restore warn_overlength_strings.
13083
13084 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13085
13086 * BASE-VER: Change to 4.7.0.
13087
13088 2011-03-14 Richard Guenther <rguenther@suse.de>
13089
13090 PR middle-end/48098
13091 * tree.c (build_vector_from_val): Adjust assert to requirements
13092 and reality.
13093
13094 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13095
13096 PR bootstrap/48102
13097 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13098
13099 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13100
13101 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13102 terms of target_flags_explicit. Adjust copyright year.
13103
13104 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13105 * config/rs6000/t-freebsd: New file. Add override for
13106 LIB2FUNCS_EXTRA.
13107
13108 2011-03-13 Chris Demetriou <cgd@google.com>
13109
13110 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13111 (-fno-diagnostics-show-option): this, to reflect current default.
13112 (-Werror=): Update text about -fno-diagnostics-show-option.
13113
13114 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13115
13116 PR target/48053
13117 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13118 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13119 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13120 mode is not V2DImode or V2DFmode.
13121 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13122 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13123 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13124 registers to 0.
13125 (movdi_internal64): Likewise.
13126
13127 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13128
13129 PR tree-optimization/47127
13130 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13131 parameter.
13132 (set_cloog_options): Same.
13133 (scop_to_clast): Same.
13134 (print_clast_stmt): Do not call cloog_state_malloc and
13135 cloog_state_free.
13136 (print_generated_program): Same.
13137 (gloog): Same.
13138 * graphite-clast-to-gimple.h (cloog_state): Declared.
13139 (scop_to_clast): Adjust declaration.
13140 * graphite.c (cloog_state): Defined here.
13141 (graphite_initialize): Call cloog_state_malloc.
13142 (graphite_finalize): Call cloog_state_free.
13143
13144 2011-03-11 Jason Merrill <jason@redhat.com>
13145
13146 * attribs.c (lookup_attribute_spec): Take const_tree.
13147 * tree.h: Adjust.
13148
13149 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13150
13151 * config/sparc/sparc.c (sparc_option_override): Use
13152 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13153
13154 2011-03-11 Richard Guenther <rguenther@suse.de>
13155
13156 PR tree-optimization/48067
13157 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13158 multiplication result will be only used once on the target
13159 stmt.
13160
13161 2011-03-11 Richard Guenther <rguenther@suse.de>
13162
13163 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13164
13165 2011-03-11 Richard Guenther <rguenther@suse.de>
13166
13167 PR lto/48073
13168 * tree.c (find_decls_types_r): Do not walk types only reachable
13169 from IDENTIFIER_NODEs.
13170
13171 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13172
13173 PR middle-end/48044
13174 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13175 all vnode->force_output nodes as needed.
13176
13177 2011-03-11 Jason Merrill <jason@redhat.com>
13178
13179 PR c++/48069
13180 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13181 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13182
13183 2011-03-11 Martin Jambor <mjambor@suse.cz>
13184
13185 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13186 cgraph_node.
13187
13188 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13189
13190 PR tree-optimization/48063
13191 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13192 inline functions called once if !tree_can_inline_p (node->callers).
13193
13194 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13195
13196 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13197 extra_objs.
13198 * config/score/score3.c: Delete.
13199 * config/score/score3.h: Delete.
13200 * config/score/mul-div.S: Delete.
13201 * config/score/sfp-machine.h: Add new file.
13202 * config/score/constraints.md: Add new file.
13203 * config/score/t-score-softfp: Add new file.
13204 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13205 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13206 (score7_extra_constraint): Delete.
13207 (score7_option_override): Remove unused code.
13208 * config/score/score.c: Remove score3 and score5 define and code.
13209 * config/score/score.h: Remove score3 and score5 define and code.
13210 * config/score/score.md: Remove score3 template and unusual insn.
13211 * config/score/score.opt: Remove score3 and score5 options.
13212
13213 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13214
13215 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13216 when _HPUX_SOURCE is defined.
13217 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13218
13219 2011-03-10 Jason Merrill <jason@redhat.com>
13220
13221 PR c++/48029
13222 * stor-layout.c (layout_type): Don't set structural equality
13223 on arrays of incomplete type.
13224 * tree.c (type_hash_eq): Handle comparing them properly.
13225
13226 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13227
13228 PR debug/48043
13229 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13230 result mode matches original rtl mode.
13231
13232 2011-03-10 Nick Clifton <nickc@redhat.com>
13233
13234 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13235 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13236
13237 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13238
13239 PR rtl-optimization/47866
13240 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13241 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13242 if target wasn't scalar.
13243 * function.c (assign_stack_temp_for_type): Assert that neither
13244 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13245 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13246 macro.
13247 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13248
13249 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13250
13251 * config/s390/s390-protos.h (s390_label_align): New prototype.
13252 * config/s390/s390.c (s390_label_align): New function.
13253 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13254
13255 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13256
13257 PR target/47755
13258 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13259 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13260 (output_vec_const_move): Ditto.
13261
13262 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13263
13264 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13265 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13266 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13267 Change 'rclass' argument and result type to reg_class_t.
13268 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13269
13270 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13271
13272 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13273 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13274 (TARGET_MEMORY_MOVE_COST): Define.
13275 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13276
13277 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR debug/47881
13280 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13281 removed anything.
13282
13283 PR tree-optimization/48022
13284 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13285 for EQ/NE_EXPR.
13286
13287 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13288
13289 PR debug/47991
13290 * var-tracking.c (find_use_val): Return NULL for
13291 cui->sets && cui->store_p BLKmode MEMs.
13292
13293 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13294
13295 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13296 Remove.
13297 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13298 xstormy16_print_operand_address): Remove.
13299 * config/stormy16/stormy16.c (xstormy16_print_operand,
13300 xstormy16_print_operand_address): Make static.
13301 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13302
13303 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13304
13305 PR target/47862
13306 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13307 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13308 before definition.
13309
13310 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13311
13312 PR bootstrap/48000
13313 * cfgloopmanip.c (fix_bb_placements): Return immediately
13314 if FROM is BASE_LOOP's header.
13315
13316 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13317
13318 * gimplify.c (gimplify_function_tree): Fix building calls
13319 to __builtin_return_address.
13320
13321 2011-03-07 Alan Modra <amodra@gmail.com>
13322
13323 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13324 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13325 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13326 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13327 return_mode args.
13328 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13329 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13330 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13331 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13332 * config/rs6000/rs6000.c
13333 (rs6000_elf_end_indicate_exec_stack): Rename to..
13334 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13335 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13336 (rs6000_file_start): ..here.
13337 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13338 file scope variables.
13339 (call_ABI_of_interest): New function.
13340 (init_cumulative_args): Set above vars when function return value
13341 is a float, vector, or small struct.
13342 (rs6000_function_arg_advance_1): Likewise for function args.
13343 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13344 references float args.
13345
13346 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13347
13348 * doc/cfg.texi: Remove "See" before @ref.
13349 * doc/invoke.texi: Likewise.
13350
13351 2011-03-05 Jason Merrill <jason@redhat.com>
13352
13353 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13354
13355 2011-03-05 Anthony Green <green@moxielogic.com>
13356
13357 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13358
13359 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13360
13361 PR rtl-optimization/47899
13362 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13363 to flow_loop_nested_p when moving the loop upward.
13364
13365 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13366
13367 PR target/47719
13368 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13369
13370 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13371
13372 PR tree-optimization/47967
13373 * ipa-cp.c (build_const_val): Return NULL instead of creating
13374 VIEW_CONVERT_EXPR for mismatching sizes.
13375 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13376 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13377 give up on versioning.
13378
13379 2011-03-05 Alan Modra <amodra@gmail.com>
13380
13381 PR target/47986
13382 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13383 full cmodel medium/large lo_sum + high addresses.
13384
13385 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13386
13387 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13388 pool references in UNSPEC_LTREL_OFFSET.
13389
13390 2011-03-04 Jan Hubicka <jh@suse.cz>
13391
13392 PR lto/47497
13393 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13394 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13395 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13396 Add node pointers.
13397 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13398 cgraph_add_thunk): Add node pointers.
13399 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13400 associated to right node.
13401 (input_node): Update use of cgraph_same_body_alias
13402 and cgraph_add_thunk.
13403
13404 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13405
13406 * config/i386/i386.opt (mprefer-avx128): New flag.
13407 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13408 modes when the flag -mprefer-avx128 is on.
13409
13410 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13411
13412 * dwarf2out.c (compare_loc_operands): Fix address handling.
13413
13414 2011-03-04 Alan Modra <amodra@gmail.com>
13415
13416 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13417
13418 2011-03-04 Richard Guenther <rguenther@suse.de>
13419
13420 PR middle-end/47968
13421 * expmed.c (extract_bit_field_1): Prefer vector modes that
13422 vec_extract patterns can handle.
13423
13424 2011-03-04 Richard Guenther <rguenther@suse.de>
13425
13426 PR middle-end/47975
13427 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13428
13429 2011-03-04 Richard Henderson <rth@redhat.com>
13430
13431 * explow.c (emit_stack_save): Remove 'after' parameter.
13432 (emit_stack_restore): Likewise.
13433 * expr.h: Update to match.
13434 * builtins.c, calls.c, stmt.c: Likewise.
13435 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13436 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13437 * function.c (expand_function_end): Insert the emit_stack_save
13438 sequence before parm_birth_insn instead of after.
13439
13440 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13441
13442 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13443 (ssse3_pmaddubsw128): Ditto.
13444 (ssse3_pmaddubsw): Ditto.
13445
13446 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13447
13448 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13449
13450 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13451
13452 PR c/47963
13453 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13454 on TYPE_SIZE_UNIT if it is a DECL.
13455
13456 PR debug/47283
13457 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13458 first operand is not is_gimple_mem_ref_addr, try to fold it.
13459 If the operand still isn't is_gimple_mem_ref_addr, clear
13460 MEM_EXPR on op0.
13461
13462 2011-03-03 Richard Guenther <rguenther@suse.de>
13463
13464 PR middle-end/47283
13465 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13466 match comment.
13467 (refs_may_alias_p_1): For release branches return true if
13468 we are confused by our input.
13469
13470 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13471
13472 * config/s390/s390.c (s390_function_value): Rename to ...
13473 (s390_function_and_libcall_value): ... this.
13474 (s390_function_value): New function.
13475 (s390_libcall_value): New function.
13476 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13477 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13478 target macro definitions.
13479 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13480
13481 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13482
13483 * config/i386/freebsd64.h (CC1_SPEC): Define.
13484 * config/i386/linux64.h (CC1_SPEC): Define.
13485 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13486
13487 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13488
13489 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13490 Remove.
13491 * config/stormy16/stormy16.c: Include reload.h.
13492 (xstormy16_memory_move_cost): New function.
13493 (TARGET_MEMORY_MOVE_COST): Define.
13494
13495 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13496
13497 PR rtl-optimization/47925
13498 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13499 with side effects. Remove the more-specific check for volatile asms.
13500
13501 2011-03-02 Alan Modra <amodra@gmail.com>
13502
13503 PR target/47935
13504 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13505 toc relative addresses for valid offsets.
13506
13507 2011-03-01 Richard Guenther <rguenther@suse.de>
13508
13509 PR tree-optimization/47890
13510 * tree-vect-loop.c (get_initial_def_for_induction): Set
13511 related stmt properly.
13512
13513 2011-03-01 Richard Guenther <rguenther@suse.de>
13514
13515 PR lto/47924
13516 * lto-streamer.c (lto_record_common_node): Also register
13517 the canonical type.
13518
13519 2011-03-01 Richard Guenther <rguenther@suse.de>
13520
13521 PR lto/46911
13522 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13523 Do not stream DECL_ABSTRACT_ORIGIN.
13524 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13525 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13526 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13527 Do not stream DECL_ABSTRACT_ORIGIN.
13528 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13529 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13530
13531 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13532
13533 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13534 FUNCTION_VALUE_REGNO_P): Remove.
13535 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13536 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13537 Add 'outgoing' argument.
13538 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13539 function.
13540 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13541 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13542
13543 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13544
13545 PR debug/28047
13546 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13547 (lookup_filename): Likewise.
13548 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13549
13550 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13551 Jakub Jelinek <jakub@redhat.com>
13552
13553 PR middle-end/47893
13554 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13555 (assign_stack_local_1): Change last argument type to int.
13556 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13557 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13558 don't record padding space into frame_space_list nor use those areas.
13559 (assign_stack_local): Adjust caller.
13560 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13561 of assign_stack_local, pass 0 as last argument.
13562 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13563 callers.
13564
13565 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13566
13567 PR debug/47283
13568 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13569 Use target address_mode and pointer_mode hooks instead of hardcoded
13570 Pmode and ptr_mode. Handle some simple cases of extending if
13571 POINTERS_EXTEND_UNSIGNED < 0.
13572 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13573 Call convert_debug_memory_address.
13574 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13575 convert_debug_memory_address.
13576
13577 PR middle-end/46790
13578 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13579 * configure: Regenerated.
13580 * config.in: Regenerated.
13581 * varasm.c (default_function_section): Return NULL
13582 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13583
13584 2011-02-28 Martin Jambor <mjambor@suse.cz>
13585
13586 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13587 the description to match the printed values.
13588
13589 2011-02-28 Richard Guenther <rguenther@suse.de>
13590
13591 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13592 of the copied scope tree.
13593
13594 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13595
13596 * doc/extend.texi (Function Attributes): Avoid deeply (and
13597 wrongly) nested tables.
13598
13599 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13600
13601 PR middle-end/47903
13602 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13603 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13604 r isn't op0 nor op1.
13605
13606 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13607
13608 * config/avr/avr.md: Remove magic comment for emacs.
13609
13610 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13611
13612 PR target/45261
13613 * config/avr/avr.c (avr_option_override): Use error on bad options.
13614 (avr_help): New function.
13615 (TARGET_HELP): Define.
13616
13617 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13618
13619 PR target/42240
13620 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13621 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13622
13623 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13624
13625 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13626 (ARM Options): Ditto.
13627 (i386 and x86-64 Options): Ditto.
13628 (RX Options): Ditto.
13629 (SPARC Options): Ditto.
13630
13631 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13632
13633 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13634 FreeBSD 6 and later. Generally use cpu generic.
13635
13636 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13637
13638 * doc/cpp.texi: Update copyright years.
13639
13640 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13641
13642 PR target/46898
13643 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13644
13645 2011-02-25 Jon Beniston <jon@beniston.com>
13646
13647 PR target/46898
13648 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13649 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13650 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13651 (lm32_block_move_inline): Add type cast to remove warning.
13652 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13653 (gen_int_relational): Move declarations to start of function.
13654
13655 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13656
13657 PR tree-optimization/45470
13658 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13659 can throw internally only.
13660 * tree-vect-stmts.c (vectorizable_call): Likewise.
13661
13662 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13663
13664 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13665 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13666 * config/stormy16/stormy16-protos.h
13667 (xstormy16_preferred_reload_class): Remove.
13668 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13669 static. Change 'rclass' argument and return type to reg_class_t.
13670 (TARGET_PREFERRED_RELOAD_CLASS,
13671 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13672
13673 2011-02-24 Richard Guenther <rguenther@suse.de>
13674
13675 * lto-streamer-in.c (input_bb): Do not find referenced vars
13676 in debug statements.
13677
13678 2011-02-23 Jason Merrill <jason@redhat.com>
13679
13680 * common.opt (fabi-version): Document v5 and v6.
13681
13682 2011-02-23 Richard Guenther <rguenther@suse.de>
13683
13684 PR tree-optimization/47849
13685 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13686
13687 2011-02-23 Jie Zhang <jie@codesourcery.com>
13688
13689 * opts-common.c (decode_cmdline_option): Print empty string
13690 argument as "" in decoded->orig_option_with_args_text.
13691 * gcc.c (execute): Print empty string argument as ""
13692 in the verbose output.
13693 (do_spec_1): Keep empty string argument.
13694
13695 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13696
13697 * config.gcc: Declare score-* and crx-* obsolete.
13698
13699 2011-02-23 Jie Zhang <jie@codesourcery.com>
13700
13701 PR rtl-optimization/47763
13702 * web.c (web_main): Ignore naked clobber when replacing register.
13703
13704 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13705
13706 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13707 Remove.
13708
13709 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13710
13711 PR doc/47848
13712 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13713
13714 2011-02-22 Mike Stump <mikestump@comcast.net>
13715
13716 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13717 assembler.
13718 * configure: Regenerate.
13719
13720 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13721
13722 PR rtl-optimization/46002
13723 * ira-color.c (update_copy_costs): Change class intersection
13724 test to reg_class_contents[] test of 'hard_regno'.
13725
13726 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13727
13728 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13729 than Driver option.
13730 * config/hpux11.opt (mt): Likewise.
13731 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13732 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13733 * config/vax/elf.opt (mno-asm-pic): Likewise.
13734 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13735
13736 2011-02-21 Mike Stump <mikestump@comcast.net>
13737
13738 PR target/47822
13739 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13740 tree so we can get save the type.
13741 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13742 for CFString instead of trying to use past the end of the builtins.
13743 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13744 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13745 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13746 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13747 Rename to darwin_builtin_cfstring.
13748 (darwin_init_cfstring_builtins): Return the built type.
13749
13750 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13751
13752 PR target/47840
13753 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13754 (_mm256_insert_epi64): Use _mm_insert_epi64.
13755
13756 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13757
13758 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13759 * config/stormy16/stormy16-protos.h
13760 (xstormy16_mode_dependent_address_p): Remove.
13761 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13762 Make static. Change return type to bool. Change argument type to
13763 const_rtx. Remove dead code.
13764 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13765
13766 2011-02-21 Richard Guenther <rguenther@suse.de>
13767
13768 PR lto/47820
13769 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13770 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13771 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13772 TUs context.
13773 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13774 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13775
13776 2011-02-20 Richard Guenther <rguenther@suse.de>
13777
13778 PR lto/47822
13779 * tree.c (free_lang_data_in_decl): Clean builtins from
13780 the TU decl BLOCK_VARS.
13781
13782 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13783
13784 PR debug/47620
13785 PR debug/47630
13786 * haifa-sched.c (fix_tick_ready): Skip tick computation
13787 for debug insns.
13788
13789 2011-02-19 Richard Guenther <rguenther@suse.de>
13790
13791 PR lto/47647
13792 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13793 Remove lazy BLOCK_VARS streaming.
13794 (lto_input_ts_block_tree_pointers): Likewise.
13795 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13796
13797 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13798
13799 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13800
13801 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13802
13803 * config/i386/biarch32.h, config/i386/mach.h,
13804 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13805
13806 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13807
13808 PR target/47800
13809 * config/i386/i386.md (peephole2 for shift and plus): Use
13810 operands[1] original mode in the first insn.
13811
13812 2011-02-18 Mike Stump <mikestump@comcast.net>
13813
13814 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13815
13816 2011-02-18 Jan Hubicka <jh@suse.cz>
13817
13818 PR middle-end/47788
13819 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13820 to zero when the function is not inlinable at all.
13821
13822 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13823
13824 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13825 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13826 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13827 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13828 * config/pa/t-pa64: Likewise.
13829 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13830
13831 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13832
13833 PR driver/47787
13834 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13835
13836 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13837
13838 PR target/47792
13839 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13840
13841 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13842
13843 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13844 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13845 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13846 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13847 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13848 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13849 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13850 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13851 m32r_legitimate_address_p): New functions.
13852 * config/m32r/constraints.md (constraint "S"): Don't use
13853 STORE_PREINC_PREDEC_P.
13854 (constraint "U"): Don't use LOAD_POSTINC_P.
13855
13856 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13857
13858 PR rtl-optimization/46178
13859 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13860 compute ira_hard_regno_cover_class[].
13861
13862 2011-02-18 Richard Guenther <rguenther@suse.de>
13863
13864 PR lto/47798
13865 * lto-streamer.h (lto_global_var_decls): Declare.
13866 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13867 statics for global var processing.
13868
13869 2011-02-18 Richard Guenther <rguenther@suse.de>
13870
13871 PR tree-optimization/47737
13872 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13873 edge dominance check.
13874
13875 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13876
13877 PR debug/47780
13878 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13879 avoid invalid rtx sharing.
13880
13881 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13882
13883 * doc/cpp.texi (Obsolete Features): Add background on the
13884 origin of assertions.
13885
13886 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13887
13888 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13889 objc_abi == 2.
13890 * config/darwin.c (output_objc_section_asm_op): Added support for
13891 ABI v1 and v2.
13892 (is_objc_metadata): New.
13893 (darwin_objc2_section): New.
13894 (darwin_objc1_section): New.
13895 (machopic_select_section): Added support for ABI v1 and v2.
13896 (darwin_emit_objc_zeroed): New.
13897 (darwin_output_aligned_bss): Detect objc metadata and treat it
13898 appropriately.
13899 (darwin_asm_output_aligned_decl_common): Same.
13900 (darwin_asm_output_aligned_decl_local): Same.
13901 * config/darwin-sections.def: Updated for ABI v1 and v2.
13902 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13903 compiling Objective-C code for the NeXT runtime, default to using
13904 ABI version 0 for 32-bit, and version 2 for 64-bit.
13905
13906 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13907
13908 * common.opt (optimize_fast): New Variable.
13909 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13910 instead of local variable ofast.
13911
13912 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13913
13914 * doc/invoke.texi (fobjc-abi-version): Documented.
13915 (fobjc-nilcheck): Documented.
13916 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13917 version.
13918
13919 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13920
13921 PR driver/47390
13922 * common.opt (export-dynamic): New Driver option.
13923 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13924
13925 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13926
13927 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13928
13929 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13930 Jan Hubicka <jh@suse.cz>
13931
13932 PR debug/47106
13933 PR debug/47402
13934 * cfgexpand.c (account_used_vars_for_block): Remove.
13935 (estimated_stack_frame_size): Use referenced vars.
13936 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13937 that were referenced in the original function. Test src_fn
13938 rather than cfun. Drop redundant get_var_ann.
13939 (setup_one_parameter): Drop redundant get_var_ann.
13940 (declare_return_variable): Likewise.
13941 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13942 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13943 * ipa-inline.c (compute_inline_parameters): Do not compute
13944 disregard_inline_limits here.
13945 (compute_inlinable_for_current, pass_inlinable): New.
13946 (pass_inline_parameters): Require PROP_referenced_vars.
13947 * cgraphunit.c (cgraph_process_new_functions): Don't run
13948 compute_inline_parameters explicitly unless function is in SSA form.
13949 (cgraph_analyze_function): Set .disregard_inline_limits.
13950 * tree-sra.c (convert_callers): Compute inliner parameters
13951 only for functions already in SSA form.
13952
13953 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13954
13955 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13956 -mlittle-endian-data.
13957
13958 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13959
13960 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13961 -mno-fpu, not -fpu and -no-fpu.
13962 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13963 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13964
13965 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13966
13967 PR target/43653
13968 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13969 input reload with PLUS RTX.
13970
13971 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13972
13973 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13974 of InverseVar(MDMX).
13975
13976 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13977
13978 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13979 --m4-340.
13980
13981 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13982
13983 * config/mn10300/mn10300.opt (mno-crt0): New.
13984
13985 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13986
13987 * config/m68k/uclinux.opt (static-libc): New Driver option.
13988
13989 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13990
13991 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13992
13993 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13994
13995 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13996 %{muser-extend-enabled}.
13997
13998 2011-02-16 Richard Guenther <rguenther@suse.de>
13999
14000 PR tree-optimization/47738
14001 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14002 the TODO from tree_predictive_commoning.
14003
14004 2011-02-15 Jeff Law <law@redhat.com>
14005
14006 Revert
14007 2011-01-25 Jeff Law <law@redhat.com>
14008
14009 PR rtl-optimization/37273
14010 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14011 handle them like argument loads from stack slots. Do not double
14012 count memory for memory constants and argument loads from stack slots.
14013
14014 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14015
14016 PR middle-end/47725
14017 * combine.c (cant_combine_insn_p): Revert the last change.
14018
14019 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14020
14021 PR target/47755
14022 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14023 mode for vector constants. Remove code that checks for TImode.
14024
14025 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14026
14027 PR debug/47106
14028 PR debug/47402
14029 * cgraph.h (compute_inline_parameters): Return void.
14030 * ipa-inline.c (compute_inline_parameters): Adjust.
14031
14032 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14033
14034 PR debug/47106
14035 PR debug/47402
14036 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14037 rather than decl.
14038 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14039 * ipa-inline.c (compute_inline_parameters): Adjust.
14040
14041 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14042
14043 PR debug/47106
14044 PR debug/47402
14045 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14046 Adjust all users. Pass FN to...
14047 * tree-flow-inline.h (first_referenced_var): ... this. Add
14048 fn argument.
14049 * ipa-struct-reorg.c: Adjust.
14050 * tree-dfa.c: Adjust.
14051 * tree-into-ssa.c: Adjust.
14052 * tree-sra.c: Adjust.
14053 * tree-ssa-alias.c: Adjust.
14054 * tree-ssa-live.c: Adjust.
14055 * tree-ssa.c: Adjust.
14056 * tree-ssanames.c: Adjust.
14057 * tree-tailcall.c: Adjust.
14058
14059 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14060
14061 PR debug/47106
14062 PR debug/47402
14063 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14064 Adjust all callers.
14065 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14066 * tree-flow-inline.h: Adjust.
14067 * gimple-pretty-print.c: Adjust.
14068 * tree-into-ssa.c: Adjust.
14069 * tree-ssa.c: Adjust.
14070 * cfgexpand.c: Adjust.
14071
14072 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14073
14074 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14075 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14076 (EXTRA_CONSTRAINT): Delete.
14077 * config/iq2000/constraints.md: New file.
14078 * config/iq2000/iq2000.md: Include it.
14079 (define_insn ""): Delete.
14080 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14081 unsupported constraint letters from patterns.
14082 (call_value, call_value_internal1): Likewise.
14083 (call_value_multiple_internal1): Likewise.
14084
14085 2011-02-15 Nick Clifton <nickc@redhat.com>
14086
14087 * config/mn10300/mn10300.c: Include tm-constrs.h.
14088 (struct liw_data): New data structure describing an LIW candidate
14089 instruction.
14090 (extract_bundle): Use struct liw_data. Allow small integer
14091 operands for some instructions.
14092 (check_liw_constraints): Use struct liw_data. Remove swapped
14093 parameter. Add comments describing the checks. Fix bug when
14094 assigning the source of liw1 to the source of liw2.
14095 (liw_candidate): Delete. Code moved into extract_bundle.
14096 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14097 before swapping.
14098 * config/mn10300/predicates.md (liw_operand): New predicate.
14099 Allows registers and small integer constants.
14100 * config/mn10300/constraints.md (O): New constraint. Accetps
14101 integers in the range -8 to +7 inclusive.
14102 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14103 for moving a small integer into a register. Give this alternative
14104 LIW attributes.
14105 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14106 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14107 using the J,K,L and M constraints,
14108 (liw): Remove SI mode on second operands to allow for HI and QI
14109 mode values.
14110 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14111 instruction.
14112
14113 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14114
14115 PR middle-end/47725
14116 * combine.c (cant_combine_insn_p): Check zero/sign extended
14117 hard registers.
14118
14119 2011-02-15 Richard Guenther <rguenther@suse.de>
14120
14121 PR tree-optimization/47743
14122 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14123 for a non-type-compatible VN lookup bail out.
14124
14125 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14126
14127 * config/fr30/constraints.md: New file.
14128 * config/fr30/fr30.md: Include it.
14129 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14130 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14131 (EXTRA_CONSTRAINT): Delete.
14132
14133 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14134
14135 * config/frv/constraints.md: New file.
14136 * config/frv/predicates.md: Include it.
14137 * config/frv/frv.c (reg_class_from_letter): Delete.
14138 (frv_option_override): Don't initialize it.
14139 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14140 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14141 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14142 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14143 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14144 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14145 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14146 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14147 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14148 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14149 (REG_CLASS_FROM_CONSTRAINT): Delete.
14150
14151 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14152
14153 PR middle-end/47581
14154 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14155 if frame size is 0 in a leaf function.
14156
14157 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14158
14159 PR pch/14940
14160 * config/alpha/host-osf.c: New file.
14161 * config/alpha/x-osf: New file.
14162 * config.host (alpha*-dec-osf*): Use it.
14163
14164 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14165
14166 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14167 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14168 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14169 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14170 type to const_rtx.
14171 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14172
14173 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14174
14175 * config/stormy16/constraints.md: New file.
14176 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14177 Use satisfies_constraint_Q and satisfies_constraint_R.
14178 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14179 Delete.
14180 (xstormy16_legitiamte_address_p): Declare.
14181 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14182 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14183 (EXTRA_CONSTRAINT): Delete.
14184 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14185 Un-staticize.
14186 (xstormy16_extra_constraint_p): Delete.
14187
14188 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14189
14190 PR tree-optimization/46494
14191 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14192 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14193 (pass_rtl_loop_done): Add TODO_verify_flow.
14194 * fwprop.c (pass_rtl_fwprop): Likewise.
14195 * modulo-sched.c (pass_sms): Likewise.
14196 * tree-ssa-dom.c (pass_dominator): Likewise.
14197 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14198 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14199 (pass_tree_loop_done): Likewise.
14200 * tree-ssa-pre.c (execute_pre): Likewise.
14201 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14202 * tree-ssa-sink.c (pass_sink_code): Likewise.
14203 * tree-vrp.c (pass_vrp): Likewise.
14204
14205 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14206
14207 * config/v850/constraints.md: New file.
14208 * config/v850/v850.md: Include it.
14209 * config/v850/predicates.md (reg_or_0_operand): Use
14210 satisfies_constraint_G.
14211 (special_symbolref_operand): Use satisfies_constraint_K.
14212 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14213 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14214 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14215 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14216 (EXTRA_CONSTRAINT): Delete.
14217 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14218 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14219 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14220
14221 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14222
14223 PR target/47696
14224 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14225 description.
14226
14227 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14228
14229 * config/mcore/constraints.md: New file.
14230 * config/mcore/mcore.md: Include it.
14231 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14232 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14233 (REG_CLASS_FROM_LETTER): Delete.
14234 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14235 insn_const_int_ok_for_constraint.
14236 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14237 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14238 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14239 (EXTRA_CONSTRAINT): Delete.
14240
14241 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14242
14243 PR ada/41929
14244 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14245 (IS_SIGHANDLER): Define.
14246 (sparc64_is_sighandler): New function, split off from
14247 sparc64_fallback_frame_state.
14248 (sparc_is_sighandler): New function, split off from
14249 sparc_fallback_frame_state.
14250 (sparc64_fallback_frame_state): Merge with ...
14251 (sparc_fallback_frame_state): ... this into ...
14252 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14253 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14254 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14255 stack instead of hardcoded offsets.
14256
14257 2011-02-14 Andriy Gapon <avg@freebsd.org>
14258
14259 PR target/45808
14260 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14261
14262 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14263
14264 * configure: Regenerate.
14265
14266 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14267
14268 PR driver/45731
14269 * gcc.c (asm_options): Correct spec matching --target-help.
14270
14271 2011-02-12 Martin Jambor <mjambor@suse.cz>
14272
14273 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14274 to gimple call error.
14275
14276 2011-02-12 Mike Stump <mikestump@comcast.net>
14277
14278 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14279 comments in backslash regions.
14280
14281 2011-02-12 Mike Stump <mikestump@comcast.net>
14282 Jakub Jelinek <jakub@redhat.com>
14283 Iain Sandoe <iains@gcc.gnu.org>
14284
14285 PR target/47324
14286 * dwarf2out.c (output_cfa_loc): When required, apply the
14287 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14288 (output_loc_sequence): Likewise.
14289 (output_loc_operands_raw): Likewise.
14290 (output_loc_sequence_raw): Likewise.
14291 (output_cfa_loc): Likewise.
14292 (output_loc_list): Suppress register number adjustment when
14293 calling output_loc_sequence()
14294 (output_die): Likewise.
14295
14296 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14297
14298 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14299 Remove macros.
14300 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14301 xtensa_memory_move_cost): New functions.
14302 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14303
14304 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14305
14306 PR lto/47225
14307 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14308 in the current directory.
14309 * configure: Rebuilt.
14310
14311 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14312
14313 * config/darwin.c (darwin_override_options): Add a hunk missed
14314 from the commit of r168571. Trim comment line lengths and
14315 correct indents of the preceding block.
14316
14317 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14318
14319 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14320 the switch.
14321
14322 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14323
14324 * common.opt (nostartfiles): New Driver option.
14325
14326 2011-02-11 Xinliang David Li <davidxl@google.com>
14327
14328 PR tree-optimization/47707
14329 * tree-chrec.c (convert_affine_scev): Keep type precision.
14330
14331 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14332
14333 PR tree-optimization/47420
14334 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14335
14336 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14337
14338 PR rtl-optimization/47614
14339 * rtl.h (check_for_inc_dec): Declare.
14340 * dse.c (check_for_inc_dec): Externalize...
14341 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14342 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14343
14344 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14345
14346 PR driver/47678
14347 * gcc.c (main): Do not compile inputs if there were errors in
14348 option handling.
14349 * opts-common.c (read_cmdline_option): Check for wrong language
14350 after other error checks.
14351
14352 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14353
14354 * cgraph.c: Fix comment typos.
14355 * cgraph.h: Likewise.
14356 * cgraphunit.c: Likewise.
14357 * ipa-cp.c: Likewise.
14358 * ipa-inline.c: Likewise.
14359 * ipa-prop.c: Likewise.
14360 * ipa-pure-const.c: Likewise.
14361 * ipa-ref.c: Likewise.
14362 * ipa-reference.c: Likewise.
14363
14364 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14365
14366 PR debug/47684
14367 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14368
14369 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14370
14371 PR testsuite/47400
14372 * doc/sourcebuild.texi (Require Support): Document
14373 dg-require-ascii-locale.
14374
14375 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14376
14377 * doc/lto.texi (Write summary): Fix missing parentheses.
14378
14379 2011-02-10 DJ Delorie <dj@redhat.com>
14380
14381 * config/m32c/m32c.c (m32c_option_override): Disable
14382 -fcombine-stack-adjustments until flag value tracking and compare
14383 optimization can be rewritten.
14384
14385 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14386
14387 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14388 PROCESSOR_POWER7.
14389 (PROCESSOR_DEFAULT64): Likewise.
14390
14391 2011-02-10 Richard Henderson <rth@redhat.com>
14392
14393 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14394 change from 2011-02-03.
14395 * config/rx/rx.c (flags_from_code): Likewise.
14396 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14397 is valid, n/pz otherwise.
14398 (rx_select_cc_mode): Return CCmode if Y is not zero.
14399
14400 2011-02-10 Richard Guenther <rguenther@suse.de>
14401
14402 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14403
14404 2011-02-10 Richard Guenther <rguenther@suse.de>
14405
14406 PR tree-optimization/47677
14407 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14408
14409 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14410
14411 PR target/47665
14412 * combine.c (make_compound_operation): Only change shifts into
14413 multiplication for SCALAR_INT_MODE_P.
14414
14415 2011-02-10 Jie Zhang <jie@codesourcery.com>
14416
14417 PR testsuite/47622
14418 Revert
14419 2011-02-05 Jie Zhang <jie@codesourcery.com>
14420 PR debug/42631
14421 * web.c (entry_register): Don't clobber the number of the
14422 first uninitialized reference in used[].
14423
14424 2011-02-09 Richard Guenther <rguenther@suse.de>
14425
14426 PR tree-optimization/47664
14427 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14428 all edges again.
14429
14430 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14431
14432 PR target/46481
14433 PR target/47032
14434 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14435 PROCESSOR_POWER7.
14436 (PROCESSOR_DEFAULT64): Same.
14437 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14438
14439 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14440
14441 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14442
14443 2011-02-09 Martin Jambor <mjambor@suse.cz>
14444
14445 PR middle-end/45505
14446 * tree-sra.c (struct access): New flags grp_scalar_read and
14447 grp_scalar_write. Changed description of assignment read and write
14448 flags.
14449 (dump_access): Dump new flags, reorder all of them.
14450 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14451 to detect multiple scalar reads.
14452 (analyze_access_subtree): Use the new scalar read write flags instead
14453 of the old flags. Adjusted comments.
14454
14455 2011-02-08 DJ Delorie <dj@redhat.com>
14456
14457 PR target/47548
14458 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14459 patterns.
14460
14461 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14462
14463 * config/m68k/uclinux.opt: New.
14464 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14465
14466 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14467
14468 * config/cris/elf.opt (sim): New Driver option.
14469
14470 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14471
14472 * config/xtensa/elf.opt: New.
14473 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14474
14475 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14476
14477 * config/vax/elf.opt: New.
14478 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14479
14480 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14481
14482 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14483
14484 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14485
14486 * config/gnu-user.opt: New.
14487 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14488 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14489 *-*-uclinux*): Use gnu-user.opt.
14490
14491 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14492
14493 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14494 * config/i386/gnu.h (CPP_SPEC): Likewise.
14495
14496 2011-02-08 Ian Lance Taylor <iant@google.com>
14497
14498 * common.opt (fcx-limited-range): Add SetByCombined flag.
14499 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14500 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14501 (fassociative-math, freciprocal-math): Likewise.
14502 (funsafe-math-optimizations): Likewise.
14503 * opth-gen.awk: Handle SetByCombined.
14504 * optc-gen.awk: Likewise.
14505 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14506 (set_unsafe_math_optimizations_flags): Likewise.
14507 * doc/options.texi (Option properties): Document SetByCombined.
14508
14509 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14510
14511 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14512 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14513 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14514 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14515 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14516
14517 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14518
14519 PR tree-optimization/46834
14520 PR tree-optimization/46994
14521 PR tree-optimization/46995
14522 * graphite-sese-to-poly.c (used_outside_reduction): New.
14523 (detect_commutative_reduction): Call used_outside_reduction.
14524 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14525 translate_scalar_reduction_to_array only when at least one
14526 loop-phi/close-phi tuple has been detected.
14527
14528 2011-02-08 Richard Guenther <rguenther@suse.de>
14529
14530 PR middle-end/47639
14531 * tree-vect-generic.c (expand_vector_operations_1): Update
14532 stmts here ...
14533 (expand_vector_operations): ... not here. Cleanup EH info
14534 and the CFG if required.
14535
14536 2011-02-08 Richard Guenther <rguenther@suse.de>
14537
14538 PR tree-optimization/47641
14539 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14540 require type compatibility.
14541
14542 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14543
14544 * gimple-low.c (lower_function_body): Don't remove the location of
14545 the return statement here.
14546 (lower_gimple_return): Do it here instead but only if the return
14547 statement is actually used twice.
14548
14549 2011-02-08 Richard Guenther <rguenther@suse.de>
14550
14551 PR tree-optimization/47632
14552 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14553 unused up_to_stmt parameter, return whether cfg-cleanup is
14554 necessary, remove EH info properly.
14555 (forward_propagate_into_gimple_cond): Adjust caller.
14556 (forward_propagate_into_cond): Likewise.
14557 (forward_propagate_comparison): Likewise.
14558 (tree_ssa_forward_propagate_single_use_vars): Make
14559 forward_propagate_comparison case similar to the two others.
14560
14561 2011-02-08 Nick Clifton <nickc@redhat.com>
14562
14563 * config/mn10300/mn10300.opt (mliw): New command line option.
14564 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14565 (liw_bundling): New automaton.
14566 (liw): New attribute.
14567 (liw_op): New attribute.
14568 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14569 (movsi_internal): Add LIW attributes.
14570 (andsi3): Likewise.
14571 (iorsi3): Likewise.
14572 (xorsi3): Likewise.
14573 (addsi3): Separate register and immediate alternatives.
14574 Add LIW attributes.
14575 (subsi3): Likewise.
14576 (cmpsi): Likewise.
14577 (aslsi3): Likewise.
14578 (lshrsi3): Likewise.
14579 (ashrsi3): Likewise.
14580 (liw): New pattern.
14581 * config/mn10300/mn10300.c (liw_op_names): New
14582 (mn10300_print_operand): Handle 'W' operand descriptor.
14583 (extract_bundle): New function.
14584 (check_liw_constraints): New function.
14585 (liw_candidate): New function.
14586 (mn10300_bundle_liw): New function.
14587 (mn10300_reorg): New function.
14588 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14589 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14590 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14591 __LIW__ or __NO_LIW__.
14592 * doc/invoke.texi: Describe the -mliw command line option.
14593
14594 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14595
14596 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14597 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14598 pthread_mutex_unlock): Remove.
14599 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14600 * config/pa/t-pa64: Likewise.
14601 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14602 shared libc if not linking against libpthread.
14603 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14604
14605 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14606
14607 PR target/47558
14608 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14609 on 10.6 and later to ensure that we always use the unwinder from
14610 the system. Only add -no_compact_unwind when tarteting darwin
14611 10.6 or later.
14612
14613 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14614
14615 PR target/46997
14616 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14617 (vec_interleave_lowv2sf): Ditto.
14618 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14619 (vec_extract_oddv2sf): Ditto.
14620
14621 2011-02-07 Mike Stump <mikestump@comcast.net>
14622
14623 PR target/42333
14624 Add __ieee_divdc3 entry point.
14625 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14626 entry point.
14627 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14628 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14629 * config/darwin.c (darwin_rename_builtins): Add.
14630 * config/darwin-protos.h (darwin_rename_builtins): Add.
14631
14632 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14633
14634 PR target/47636
14635 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14636 for the condition.
14637
14638 2011-02-07 Mike Stump <mikestump@comcast.net>
14639
14640 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14641
14642 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14643
14644 PR target/47534
14645 * config/avr/libgcc.S (exit): Move .endfunc
14646
14647 2011-02-07 Richard Guenther <rguenther@suse.de>
14648
14649 PR tree-optimization/47615
14650 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14651 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14652 (run_scc_vn): Initialize it.
14653 (visit_reference_op_load): Use it.
14654 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14655
14656 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14657
14658 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14659 DImode trapping arithmetic libfuncs.
14660
14661 2011-02-07 Richard Guenther <rguenther@suse.de>
14662
14663 PR tree-optimization/47621
14664 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14665 two duplicates ...
14666 (execute_update_addresses_taken): ... here. Make it more
14667 conservative in what we accept.
14668
14669 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14670
14671 * config/sparc/freebsd.h (ASM_SPEC): Define.
14672 * config/sparc/vxworks.h (ASM_SPEC): Define.
14673
14674 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14675
14676 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14677
14678 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14679
14680 * doc/invoke.texi: Remove reference to compiler internals from
14681 user documentation.
14682
14683 * reg-notes.def: Remove REG_VALUE_PROFILE.
14684 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14685
14686 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14687
14688 PR middle-end/47610
14689 * varasm.c (default_section_type_flags): If decl is NULL,
14690 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14691
14692 2011-02-05 Jie Zhang <jie@codesourcery.com>
14693
14694 PR debug/42631
14695 * web.c (entry_register): Don't clobber the number of the
14696 first uninitialized reference in used[].
14697
14698 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14699
14700 PR tree-optimization/46194
14701 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14702 (build_classic_dist_vector_1): Do not represent classic distance
14703 vectors when the access functions are variating in different loops.
14704
14705 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14706
14707 * config/mips/iris6.opt: New.
14708 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14709
14710 2011-02-04 Richard Henderson <rth@redhat.com>
14711 Steve Ellcey <sje@cup.hp.com>
14712
14713 PR target/46997
14714 * config/ia64/predicates.md (mux1_brcst_element): New.
14715 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14716 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14717 (ia64_unpack_sign): New.
14718 (ia64_expand_unpack): Rewrite using new routines.
14719 (ia64_expand_widen_sum): Ditto.
14720 (ia64_expand_dot_prod_v8qi): Ditto.
14721 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14722 routines, add endian check.
14723 (pmpy2_even): Rename from pmpy2_r, add endian check.
14724 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14725 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14726 (vec_widen_smult_hi_v4hi): Ditto.
14727 (vec_widen_umult_lo_v4hi): Ditto.
14728 (vec_widen_umult_hi_v4hi): Ditto.
14729 (mulv2si3): Change endian checks.
14730 (sdot_prodv4hi): Rewrite with new calls.
14731 (udot_prodv4hi): New.
14732 (vec_pack_ssat_v4hi): Add endian check.
14733 (vec_pack_usat_v4hi): Ditto.
14734 (vec_pack_ssat_v2si): Ditto.
14735 (max1_even): Rename from max1_r, add endian check.
14736 (max1_odd): Rename from max1_l, add endian check.
14737 (*mux1_rev): Format change.
14738 (*mux1_mix): Ditto.
14739 (*mux1_shuf): Ditto.
14740 (*mux1_alt): Ditto.
14741 (*mux1_brcst_v8qi): Use new predicate.
14742 (vec_extract_evenv8qi): Remove endian check.
14743 (vec_extract_oddv8qi): Ditto.
14744 (vec_interleave_lowv4hi): Format change.
14745 (vec_interleave_highv4hi): Ditto.
14746 (mix2_even): Rename from mix2_r, add endian check.
14747 (mix2_odd): Rename from mux2_l, add endian check.
14748 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14749 (vec_extract_evenodd_helper): Format change.
14750 (vec_extract_evenv4hi): Remove endian check.
14751 (vec_extract_oddv4hi): Remove endian check.
14752 (vec_interleave_lowv2si): Format change.
14753 (vec_interleave_highv2si): Format change.
14754 (vec_initv2si): Remove endian check.
14755 (vecinit_v2si): Add endian check.
14756 (reduc_splus_v2sf): Add endian check.
14757 (reduc_smax_v2sf): Ditto.
14758 (reduc_smin_v2sf): Ditto.
14759 (vec_initv2sf): Remove endian check.
14760 (fpack): Add endian check.
14761 (fswap): Add endian check.
14762 (vec_interleave_highv2sf): Add endian check.
14763 (vec_interleave_lowv2sf): Add endian check.
14764 (fmix_lr): Add endian check.
14765 (vec_setv2sf): Format change.
14766 (*vec_extractv2sf_0_be): Use shift to extract operand.
14767 (*vec_extractv2sf_1_be): New.
14768 (vec_pack_trunc_v4hi): Add endian check.
14769 (vec_pack_trunc_v2si): Format change.
14770
14771 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14772
14773 PR inline-asm/23200
14774 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14775 do bb, locus and block comparison and disallow loads if it is not set.
14776 (stmt_is_replaceable_p): New function.
14777 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14778 callers.
14779 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14780 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14781 SSA_NAME_DEF_STMT.
14782 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14783
14784 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14785
14786 * config/rs6000/xilinx.opt: New.
14787 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14788
14789 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14790
14791 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14792
14793 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14794
14795 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14796 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14797 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14798 secondary_reload_info, xtensa_secondary_reload): Remove.
14799 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14800 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14801 (xtensa_preferred_reload_class): Make static. Change return and
14802 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14803 Use CONST_DOUBLE_P predicate.
14804 (xtensa_preferred_output_reload_class): New function.
14805 (xtensa_secondary_reload): Make static.
14806
14807 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14808
14809 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14810 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14811 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14812
14813 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14814
14815 PR middle-end/31490
14816 * output.h (SECTION_RELRO): Define.
14817 (SECTION_MACH_DEP): Adjust.
14818 (get_variable_section): New prototype.
14819 * varpool.c (varpool_finalize_named_section_flags): New function.
14820 (varpool_assemble_pending_decls): Call it.
14821 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14822 * cgraphunit.c (cgraph_output_in_order): Call
14823 varpool_finalize_named_section_flags.
14824 * varasm.c (get_section): Allow section flags conflicts between
14825 relro and read-only sections if the section hasn't been declared yet.
14826 Set SECTION_OVERRIDE after diagnosing section type conflict.
14827 (get_variable_section): No longer static.
14828 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14829 readonly sections that need relocations.
14830 (decl_readonly_section_1): New function.
14831 (decl_readonly_section): Use it.
14832
14833 Revert:
14834 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14835 Steve Ellcey <sje@cup.hp.com>
14836
14837 PR middle-end/31490
14838 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14839 if section attribute used.
14840
14841 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14842
14843 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14844 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14845 (darwin_init_sections): Remove assertion.
14846
14847 2011-02-03 Nick Clifton <nickc@redhat.com>
14848
14849 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14850 lt and ge.
14851 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14852 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14853 instead of "n" and "pz".
14854 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14855 CC_FLAG_S.
14856
14857 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14858
14859 PR target/47312
14860 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14861 fma, expand FMA_EXPR as fma{,f,l} call.
14862
14863 PR lto/47274
14864 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14865 copy them into a unsigned char variable and pass address of it to
14866 lto_output_data_stream.
14867
14868 PR target/47564
14869 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14870 around backend_init_target and lang_dependent_init_target calls.
14871 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14872 (verify_cgraph_node): Don't call set_cfun here. Use
14873 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14874 Set error_found for incorrectly represented calls to thunks.
14875
14876 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14877
14878 PR debug/43092
14879 PR rtl-optimization/43494
14880 * rtl.h (for_each_inc_dec_fn): New type.
14881 (for_each_inc_dec): Declare.
14882 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14883 (for_each_inc_dec_find_inc_dec): New fn.
14884 (for_each_inc_dec_find_mem): New fn.
14885 (for_each_inc_dec): New fn.
14886 * dse.c (struct insn_size): Remove.
14887 (replace_inc_dec, replace_inc_dec_mem): Remove.
14888 (emit_inc_dec_insn_before): New fn.
14889 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14890 (canon_address): Pass mem modes to cselib_lookup.
14891 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14892 (cselib_lookup_from_insn): Likewise.
14893 (cselib_subst_to_values): Likewise.
14894 * cselib.c (find_slot_memmode): New var.
14895 (cselib_find_slot): New fn. Use it instead of
14896 htab_find_slot_with_hash everywhere.
14897 (entry_and_rtx_equal_p): Use find_slot_memmode.
14898 (autoinc_split): New fn.
14899 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14900 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14901 Deal with autoinc. Special-case recursion into MEMs.
14902 (cselib_hash_rtx): Likewise.
14903 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14904 address and MEM modes.
14905 (cselib_subst_to_values): Add memmode, pass it on.
14906 Deal with autoinc.
14907 (cselib_lookup): Add memmode argument, pass it on.
14908 (cselib_lookup_from_insn): Add memmode.
14909 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14910 (struct cselib_record_autoinc_data): New.
14911 (cselib_record_autoinc_cb): New fn.
14912 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14913 mode to cselib_lookup. Reset autoinced REGs here instead of...
14914 (cselib_process_insn): ... here.
14915 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14916 to cselib_lookup.
14917 (add_uses): Likewise, also to cselib_subst_to_values.
14918 (add_stores): Likewise.
14919 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14920 cselib_subst_to_values.
14921 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14922 * gcse.c (do_local_cprop): Adjusted.
14923 * postreload.c (reload_cse_simplify_set): Adjusted.
14924 (reload_cse_simplify_operands): Adjusted.
14925 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14926
14927 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14928
14929 PR tree-optimization/45122
14930 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14931 unsafe assumptions when there's more than one loop exit.
14932
14933 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14934
14935 PR target/47272
14936 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14937 Document using vector double with the load/store builtins, and
14938 that the load/store builtins always use Altivec instructions.
14939
14940 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14941 to use altivec memory instructions, even on VSX.
14942 (vector_altivec_store_<mode>): Ditto.
14943
14944 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14945 function.
14946
14947 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14948 V2DF, V2DI support to load/store overloaded builtins.
14949
14950 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14951 altivec load/store builtins for V2DF/V2DI types.
14952
14953 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14954 set avoid indexed addresses on power6 if -maltivec.
14955 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14956 vector_altivec_load/vector_altivec_store builtins.
14957 (altivec_expand_st_builtin): Ditto.
14958 (altivec_expand_builtin): Add VSX memory builtins.
14959 (rs6000_init_builtins): Add V2DI types to internal types.
14960 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14961 load/store builtins.
14962 (rs6000_address_for_altivec): Insure memory address is appropriate
14963 for Altivec.
14964
14965 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14966 vec_vsx_ld and vec_vsx_st.
14967 (vsx_store_<mode>): Ditto.
14968
14969 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14970 variables to hold long long types for VSX vector memory builtins.
14971 (RS6000_BTI_unsigned_long_long): Ditto.
14972 (long_long_integer_type_internal_node): Ditti.
14973 (long_long_unsigned_type_internal_node): Ditti.
14974
14975 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14976 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14977 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14978
14979 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14980 short cuts.
14981 (vec_vsx_st): Ditto.
14982
14983 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14984
14985 * config/pa/pa-hpux10.opt: New.
14986 * config/hpux11.opt (pthread): New Driver option.
14987 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14988 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14989
14990 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14991
14992 * config/ia64/vms.opt: New.
14993 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14994
14995 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14996
14997 PR target/47580
14998 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14999 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15000 generator functions.
15001 (vsx_floatuns<VSi><mode>2): Ditto.
15002 (vsx_fix_trunc<mode><VSi>2): Ditto.
15003 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15004
15005 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15006
15007 * config/i386/djgpp.opt (posix): New Driver option.
15008
15009 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15010
15011 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15012 Move to the unsupported targets list.
15013
15014 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15015
15016 PR rtl-optimization/47525
15017 * df-scan.c: Update copyright years.
15018 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15019 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15020
15021 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15022
15023 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15024 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15025 (ASM_OUTPUT_ASCII): Remove.
15026 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15027
15028 2011-02-02 Jeff Law <law@redhat.com>
15029
15030 PR middle-end/47543
15031 * reload.c (find_reloads_address): Handle reg+d address where both
15032 components are invalid by reloading the entire address.
15033
15034 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15035 Richard Guenther <rguenther@suse.de>
15036
15037 PR tree-optimization/40979
15038 PR bootstrap/47044
15039 * passes.c (init_optimization_passes): After LIM call copy_prop
15040 and DCE to clean up.
15041 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15042
15043 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15044
15045 PR tree-optimization/47576
15046 PR tree-optimization/47555
15047 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15048 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15049 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15050 * tree-scalar-evolution.c (follow_ssa_edge): Use
15051 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15052
15053 2011-02-02 Richard Guenther <rguenther@suse.de>
15054
15055 PR tree-optimization/47566
15056 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15057
15058 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15059
15060 PR debug/47106
15061 PR debug/47402
15062 * tree-inline.c (declare_return_variable): Remove unused caller
15063 variable.
15064
15065 PR debug/47106
15066 PR debug/47402
15067 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15068 * cfgexpand.c (account_used_vars_for_block): Use them.
15069 * tree-nrv.c (tree_nrv): Likewise.
15070 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15071 (dump_scope_block): Likewise.
15072 (remove_unused_locals): Likewise.
15073
15074 PR debug/47106
15075 PR debug/47402
15076 * tree-inline.c (declare_return_variable): Add result decl to
15077 local decls only once.
15078 * gimple-low.c (record_vars_into): Mark newly-created variables
15079 as referenced.
15080
15081 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15082
15083 PR debug/47498
15084 PR debug/47501
15085 PR debug/45136
15086 PR debug/45130
15087 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15088 debug insns.
15089 (no_real_insns_p, schedule_block, set_priorities): Drop special
15090 treatment of boundary debug insns.
15091 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15092 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15093 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15094 (BOUNDARY_DEBUG_INSN_P): Likewise.
15095 (SCHEDULE_DEBUG_INSN_P): Likewise.
15096 * sched-rgn.c (init_ready_list): Drop special treatment of
15097 boundary debug insns.
15098 * final.c (rest_of_clean_state): Clear notes' BB.
15099
15100 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15101
15102 * config/openbsd.opt (assert=): New Driver option.
15103
15104 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15105
15106 * config/i386/nto.opt: New.
15107 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15108
15109 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15110
15111 * config/i386/netware.opt: New.
15112 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15113
15114 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15115
15116 * config/interix.opt (posix): New Driver option.
15117
15118 2011-02-01 DJ Delorie <dj@redhat.com>
15119
15120 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15121
15122 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15123 class for A0/A1.
15124
15125 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15126
15127 PR tree-optimization/47561
15128 * toplev.c (process_options): Print the Graphite flags. Add
15129 flag_loop_flatten to the list of options requiring Graphite.
15130
15131 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15132
15133 * config/i386/cygming.opt (posix): New Driver option.
15134
15135 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15136
15137 * config/arm/vxworks.opt: New.
15138 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15139
15140 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15141
15142 * config/alpha/elf.opt: New.
15143 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15144 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15145
15146 2011-02-01 Richard Guenther <rguenther@suse.de>
15147
15148 PR tree-optimization/47559
15149 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15150 store-motion on references that can throw.
15151
15152 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15153
15154 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15155 * tree-pass.h (TDF_CSELIB): New macro.
15156 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15157 cselib_lookup): Check for it rather than for TDF_DETAILS.
15158
15159 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15160
15161 PR driver/47547
15162 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15163 is HOST_BIT_BUCKET.
15164
15165 * opts.c (finish_options): Don't add x_aux_base_name if it is
15166 HOST_BIT_BUCKET.
15167
15168 2011-02-01 Richard Guenther <rguenther@suse.de>
15169
15170 PR tree-optimization/47555
15171 Revert
15172 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15173
15174 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15175
15176 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15177
15178 PR gcc/46692
15179 * config/lm32/t-lm32: Add multilib for all CPU options.
15180
15181 2011-02-01 Richard Guenther <rguenther@suse.de>
15182
15183 PR tree-optimization/47541
15184 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15185 sure to have a field at offset zero.
15186
15187 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15188
15189 * config/arc/arc.opt (EB, EL): New Driver options.
15190
15191 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15192
15193 * config/alpha/osf5.opt: New.
15194 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15195
15196 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15197
15198 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15199
15200 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15201
15202 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15203 -floop-interchange.
15204 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15205 is an alias of -floop-interchange and that it requires the
15206 Graphite infrastructure.
15207 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15208 flag_loop_interchange based on the value of flag_tree_loop_linear.
15209
15210 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15211 Richard Guenther <rguenther@suse.de>
15212
15213 PR tree-optimization/47538
15214 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15215 type instead of r1type, except for comparisons. For right
15216 shifts and comparisons punt if there are mismatches in
15217 sizetype vs. non-sizetype types.
15218
15219 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15220
15221 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15222 avx_runtime.
15223
15224 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15225
15226 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15227 version number.
15228 * configure: Regenerate.
15229
15230 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15231
15232 * configure.ac (gcc_cv_ld_static_option): Define.
15233 (gcc_cv_ld_dynamic_option): Define.
15234 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15235 instead.
15236 (HAVE_LD_STATIC_DYNAMIC): Update message.
15237 (LD_STATIC_OPTION): Define.
15238 (LD_DYNAMIC_OPTION): Define.
15239 * configure: Regenerate.
15240 * config.in: Regenerate.
15241 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15242 HAVE_LD_STATIC_DYNAMIC]: Use them.
15243
15244 2011-01-31 Nick Clifton <nickc@redhat.com>
15245
15246 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15247 registers inside interrupt handlers if the handler is not a leaf
15248 function.
15249
15250 2011-01-31 Nick Clifton <nickc@redhat.com>
15251
15252 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15253 reg_renumber returning an INVALID_REGNUM.
15254
15255 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15256
15257 PR libgcj/44341
15258 * doc/install.texi: Document host options discarded when cross
15259 configuring target libraries.
15260
15261 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15262
15263 Reverted:
15264 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15265 PR debug/45136
15266 PR debug/45130
15267 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15268 debug insns.
15269 (no_real_insns_p, schedule_block, set_priorities): Drop special
15270 treatment of boundary debug insns.
15271 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15272 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15273 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15274 (BOUNDARY_DEBUG_INSN_P): Likewise.
15275 (SCHEDULE_DEBUG_INSN_P): Likewise.
15276 * sched-rgn.c (init_ready_list): Drop special treatment of
15277 boundary debug insns.
15278 * final.c (rest_of_clean-state): Clear notes' BB.
15279
15280 2011-01-31 Alan Modra <amodra@gmail.com>
15281
15282 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15283 toc relative expressions as we do in print_operand_address.
15284
15285 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15286
15287 * doc/extend.texi: Follow spelling conventions.
15288 * doc/invoke.texi: Fix a typo.
15289
15290 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15291
15292 * config/hpux11.opt: New.
15293 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15294 ia64*-*-hpux*): Use hpux11.opt.
15295
15296 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15297
15298 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15299 to tmake_file.
15300
15301 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15302
15303 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15304 support sites.
15305
15306 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15307
15308 * doc/install.texi (Binaries): Remove outdated reference for
15309 Motorola 68HC11/68HC12 downloads.
15310
15311 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15312
15313 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15314 Drepper's paper.
15315
15316 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15317
15318 PR bootstrap/47147
15319 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15320 used by NetBSD.
15321
15322 2011-01-28 Ahmad Sharif <asharif@google.com>
15323
15324 * value-prof.c (check_counter): Corrected error message.
15325
15326 2011-01-29 Jie Zhang <jie@codesourcery.com>
15327
15328 * config/arm/arm.c (arm_legitimize_reload_address): New.
15329 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15330 arm_legitimize_reload_address.
15331 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15332
15333 2011-01-28 Ian Lance Taylor <iant@google.com>
15334
15335 * godump.c (go_define): Ignore macros whose definitions include
15336 two adjacent operands.
15337
15338 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15339
15340 PR target/42894
15341 * varasm.c (force_const_mem): Store copy of x in desc->constant
15342 instead of x itself.
15343 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15344 itself into REG_EQUAL note.
15345
15346 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15347
15348 * config/freebsd.opt (posix, rdynamic): New Driver options.
15349
15350 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15351
15352 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15353 -Bstatic/-Bdynamic.
15354 * configure: Regenerate.
15355
15356 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15357
15358 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15359 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15360
15361 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15362
15363 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15364 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15365 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15366 (s390_preferred_reload_class): Make static. Change return and
15367 'rclass' argument type to reg_class_t.
15368
15369 2011-01-27 Jan Hubicka <jh@suse.cz>
15370
15371 PR middle-end/46949
15372 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15373 (process_function_and_variable_attributes): Check defined weakrefs.
15374
15375 2011-01-27 Martin Jambor <mjambor@suse.cz>
15376
15377 PR tree-optimization/47228
15378 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15379 build_ref_for_offset.
15380
15381 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15382
15383 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15384
15385 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15386
15387 PR rtl-optimization/46856
15388 * postreload.c (reload_combine_recognize_const_pattern): Do not
15389 separate cc0 setter and user on cc0 targets.
15390
15391 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15392
15393 PR c/43082
15394 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15395 passed a VOID_TYPE expression, immediately emit an error and
15396 return error_mark_node.
15397
15398 2011-01-26 Jeff Law <law@redhat.com>
15399
15400 PR rtl-optimization/47464
15401 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15402 rather than may_trap_p as needed.
15403
15404 2011-01-26 DJ Delorie <dj@redhat.com>
15405
15406 PR rtl-optimization/46878
15407 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15408 setter/user dependency as well.
15409
15410 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15411
15412 PR rtl-optimization/44469
15413 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15414 after removing trivially dead basic blocks.
15415
15416 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15417
15418 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15419 * config/frv/frv.h (LINK_SPEC): Likewise.
15420 * config/i386/netware.h (LINK_SPEC): Likewise.
15421 * config/m68k/linux.h (ASM_SPEC): Likewise.
15422 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15423 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15424 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15425 * config/sparc/linux.h (ASM_SPEC): Likewise.
15426 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15427 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15428
15429 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15430
15431 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15432 * config/frv/frv.h (ASM_SPEC): Likewise.
15433 * config/m68k/linux.h (ASM_SPEC): Likewise.
15434 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15435 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15436 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15437 * config/sparc/linux.h (ASM_SPEC): Likewise.
15438 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15439 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15440
15441 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15442
15443 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15444 * config/frv/frv.h (LINK_SPEC): Likewise.
15445 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15446
15447 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15448
15449 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15450 * config/frv/frv.h (ASM_SPEC): Likewise.
15451 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15452 * config/m68k/linux.h (ASM_SPEC): Likewise.
15453 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15454 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15455 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15456 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15457 * config/sparc/linux.h (ASM_SPEC): Likewise.
15458 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15459 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15460 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15461
15462 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15463
15464 PR target/46997
15465 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15466 (*mux2): Ditto.
15467 (vec_extract_evenodd_help): Ditto.
15468 (vec_extract_evenv4hi): Ditto.
15469 (vec_extract_oddv4hi): Ditto.
15470 (vec_interleave_lowv2si): Ditto.
15471 (vec_interleave_highv2si): Ditto.
15472 (vec_extract_evenv2si): Ditto.
15473 (vec_extract_oddv2si: Ditto.
15474 (vec_pack_trunc_v2si): Ditto.
15475
15476 2011-01-22 Jan Hubicka <jh@suse.cz>
15477
15478 PR target/47237
15479 * cgraph.h (cgraph_local_info): New field can_change_signature.
15480 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15481 signature can change.
15482 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15483 can change.
15484 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15485 (cgraph_function_versioning): We can not change signature of functions
15486 that don't allow that.
15487 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15488 (lto_input_node): Likewise.
15489 * ipa-inline.c (compute_inline_parameters): Compute
15490 local.can_change_signature.
15491 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15492 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15493 functions that can not change signature.
15494 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15495 init_cumulative_args): Do not use local calling conventions
15496 for functions that can not change signature.
15497
15498 2011-01-22 Jan Hubicka <jh@suse.cz>
15499
15500 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15501
15502 2011-01-26 Richard Guenther <rguenther@suse.de>
15503
15504 PR tree-optimization/47190
15505 * cgraphunit.c (process_common_attributes): New function.
15506 (process_function_and_variable_attributes): Use it.
15507
15508 2011-01-26 Richard Guenther <rguenther@suse.de>
15509
15510 PR lto/47423
15511 * cgraphbuild.c (record_eh_tables): Record reference to personality
15512 function.
15513
15514 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15515
15516 PR debug/45454
15517 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15518 non-debug insns from moving up.
15519
15520 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15521
15522 PR target/40125
15523 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15524 t-dlldir{,-x} fragment for build and add it to tmake_file.
15525 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15526 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15527 * config/i386/t-dlldir: New file.
15528 (SHLIB_DLLDIR): Define.
15529 * config/i386/t-dlldir-x: New file.
15530 (SHLIB_DLLDIR): Define.
15531 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15532 (SHLIB_INSTALL): Use it.
15533
15534 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15535
15536 PR target/47246
15537 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15538 lower bound of the allowed Thumb-2 coprocessor load/store
15539 index range to -256. Add explaining comment.
15540
15541 2011-01-25 Ian Lance Taylor <iant@google.com>
15542
15543 * godump.c (go_define): Improve lexing of macro expansion to only
15544 accept expressions which match Go spec.
15545
15546 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15547
15548 PR c++/43601
15549 * tree.c (handle_dll_attribute): Handle it.
15550 * doc/extend.texi (@item dllexport): Mention it.
15551 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15552
15553 2011-01-25 Ian Lance Taylor <iant@google.com>
15554
15555 PR tree-optimization/26854
15556 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15557 (decl_jump_unsafe): Move higher in file, with no other change.
15558 (bind): Set has_jump_unsafe_decl if appropriate.
15559 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15560 (check_earlier_gotos): Likewise.
15561 (c_check_switch_jump_warnings): Likewise.
15562
15563 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15564
15565 * doc/invoke.texi (Warning Options): Add missing hyphen.
15566 (-fprofile-dir): Minor grammatical fixes.
15567 (-fbranch-probabilities): Likewise.
15568
15569 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15570
15571 PR debug/45136
15572 PR debug/45130
15573 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15574 debug insns.
15575 (no_real_insns_p, schedule_block, set_priorities): Drop special
15576 treatment of boundary debug insns.
15577 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15578 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15579 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15580 (BOUNDARY_DEBUG_INSN_P): Likewise.
15581 (SCHEDULE_DEBUG_INSN_P): Likewise.
15582 * sched-rgn.c (init_ready_list): Drop special treatment of
15583 boundary debug insns.
15584 * final.c (rest_of_clean-state): Clear notes' BB.
15585
15586 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15587
15588 * Makefile.in (LAMBDA_H): Removed.
15589 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15590 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15591 lambda-trans.o, and tree-loop-linear.o.
15592 (lto-symtab.o): Remove dependence on LAMBDA_H.
15593 (tree-loop-linear.o): Remove rule.
15594 (lambda-mat.o): Same.
15595 (lambda-trans.o): Same.
15596 (lambda-code.o): Same.
15597 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15598 (tree-vect-slp.o): Same.
15599 * hwint.h (gcd): Moved here.
15600 (least_common_multiple): Same.
15601 * lambda-code.c: Removed.
15602 * lambda-mat.c: Removed.
15603 * lambda-trans.c: Removed.
15604 * lambda.h: Removed.
15605 * tree-loop-linear.c: Removed.
15606 * lto-symtab.c: Do not include lambda.h.
15607 * omega.c (gcd): Removed.
15608 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15609 * tree-data-ref.c (print_lambda_vector): Moved here.
15610 (lambda_vector_copy): Same.
15611 (lambda_matrix_copy): Same.
15612 (lambda_matrix_id): Same.
15613 (lambda_vector_first_nz): Same.
15614 (lambda_matrix_row_add): Same.
15615 (lambda_matrix_row_exchange): Same.
15616 (lambda_vector_mult_const): Same.
15617 (lambda_vector_negate): Same.
15618 (lambda_matrix_row_negate): Same.
15619 (lambda_vector_equal): Same.
15620 (lambda_matrix_right_hermite): Same.
15621 * tree-data-ref.h: Do not include lambda.h.
15622 (lambda_vector): Moved here.
15623 (lambda_matrix): Same.
15624 (dependence_level): Same.
15625 (lambda_transform_legal_p): Removed declaration.
15626 (lambda_collect_parameters): Same.
15627 (lambda_compute_access_matrices): Same.
15628 (lambda_vector_gcd): Same.
15629 (lambda_vector_new): Same.
15630 (lambda_vector_clear): Same.
15631 (lambda_vector_lexico_pos): Same.
15632 (lambda_vector_zerop): Same.
15633 (lambda_matrix_new): Same.
15634 * tree-flow.h (least_common_multiple): Removed declaration.
15635 * tree-parloops.c (lambda_trans_matrix): Moved here.
15636 (LTM_MATRIX): Same.
15637 (LTM_ROWSIZE): Same.
15638 (LTM_COLSIZE): Same.
15639 (LTM_DENOMINATOR): Same.
15640 (lambda_trans_matrix_new): Same.
15641 (lambda_matrix_vector_mult): Same.
15642 (lambda_transform_legal_p): Same.
15643 * tree-pass.h (pass_linear_transform): Removed declaration.
15644 * tree-ssa-loop.c (tree_linear_transform): Removed.
15645 (gate_tree_linear_transform): Removed.
15646 (pass_linear_transform): Removed.
15647 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15648 flag_loop_interchange.
15649
15650 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15651
15652 PR tree-optimization/47265
15653 PR tree-optimization/47443
15654 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15655 if name still has some uses.
15656
15657 2011-01-25 Martin Jambor <mjambor@suse.cz>
15658
15659 PR tree-optimization/47382
15660 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15661 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15662
15663 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15664
15665 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15666 sjlj_except_unwind_info.
15667
15668 2011-01-25 Richard Guenther <rguenther@suse.de>
15669
15670 PR tree-optimization/47426
15671 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15672 visible functions results escape.
15673
15674 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15675
15676 PR target/45701
15677 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15678 (arm_get_frame_offsets): Use it.
15679
15680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15681 Jakub Jelinek <jakub@redhat.com>
15682
15683 PR tree-optimization/47271
15684 * tree-if-conv.c (bb_postdominates_preds): New.
15685 (if_convertible_bb_p): Call bb_postdominates_preds.
15686 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15687 (predicate_scalar_phi): Call bb_postdominates_preds.
15688
15689 2011-01-25 Nick Clifton <nickc@redhat.com>
15690
15691 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15692 * config/rx/rx.c (rx_function_value): Likewise.
15693 (rx_promote_function_mode): Likewise.
15694 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15695 in order to make it legitimate.
15696 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15697 make sure that the first operand is the same as the result register.
15698 (addsi3_unspec): Delete.
15699 (subdi3): Do not accept immediate operands.
15700 (subdi3_internal): Likewise.
15701
15702 2011-01-25 Jeff Law <law@redhat.com>
15703
15704 PR rtl-optimization/37273
15705 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15706 handle them like argument loads from stack slots. Do not double
15707 count memory for memory constants and argument loads from stack slots.
15708
15709 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15710
15711 PR tree-optimization/47427
15712 PR tree-optimization/47428
15713 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15714 coalesce if the new root var would be TREE_READONLY.
15715
15716 2011-01-25 Richard Guenther <rguenther@suse.de>
15717
15718 PR middle-end/47414
15719 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15720 correct type for TBAA.
15721
15722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15723
15724 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15725 (close_phi_written_to_memory): Call for_each_index with
15726 dr_indices_valid_in_loop.
15727
15728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15729
15730 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15731 when it is initialized.
15732
15733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15734
15735 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15736 call to graphite_find_data_references_in_stmt.
15737 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15738 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15739 call to graphite_find_data_references_in_stmt.
15740 (analyze_drs_in_stmts): Same.
15741 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15742 in which the scalar analysis of indices is performed.
15743 (create_data_ref): Same. Update call to dr_analyze_indices.
15744 (find_data_references_in_stmt): Update call to create_data_ref.
15745 (graphite_find_data_references_in_stmt): Same.
15746 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15747 declaration.
15748 (create_data_ref): Same.
15749 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15750 call to create_data_ref.
15751
15752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15753
15754 * graphite-sese-to-poly.c (build_poly_scop): Move
15755 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15756
15757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15758
15759 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15760 VAR_DECL, PARM_DECL, and RESULT_DECL.
15761
15762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15763
15764 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15765 in a reduction PBB.
15766 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15767 that have already been marked as PBB_IS_REDUCTION.
15768
15769 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15770
15771 * graphite-scop-detection.c (same_close_phi_node): New.
15772 (remove_duplicate_close_phi): New.
15773 (make_close_phi_nodes_unique): New.
15774 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15775
15776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15777
15778 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15779 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15780 of both data references to be the same.
15781
15782 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15783
15784 * graphite-dependences.c (build_lexicographical_constraint): Remove
15785 the gdim parameter.
15786 (build_lexicographical_constraint): Adjust call to
15787 ppl_powerset_is_empty.
15788 (dependence_polyhedron): Same.
15789 (graphite_legal_transform_dr): Same.
15790 (graphite_carried_dependence_level_k): Same.
15791 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15792 parameter.
15793 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15794
15795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15796
15797 * graphite-sese-to-poly.c
15798 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15799 (close_phi_written_to_memory): New.
15800 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15801 and unshare_expr.
15802
15803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15804
15805 * doc/install.texi: Update the expected version number of PPL to 0.11.
15806 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15807 #if PPL_VERSION_MINOR < 11.
15808
15809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15810
15811 * graphite-dependences.c: Include graphite-cloog-util.h.
15812 (new_poly_ddr): Inlined into dependence_polyhedron.
15813 (free_poly_ddr): Moved close by new_poly_ddr.
15814 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15815 Early return NULL when ppl_powerset_is_empty returns true.
15816 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15817 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15818 (graphite_legal_transform_dr): Call new_poly_ddr.
15819 (graphite_carried_dependence_level_k): Same.
15820 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15821 (dot_transformed_deps_stmt_1): Removed.
15822 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15823 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15824 (dot_deps_1): Call dot_deps_2.
15825 * Makefile.in (graphite-dependences.o): Add missing dependence on
15826 graphite-cloog-util.h.
15827
15828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15829
15830 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15831 (build_lexicographical_constraint): Same.
15832 (dependence_polyhedron_1): Same.
15833 (graphite_legal_transform_dr): Same.
15834 (graphite_carried_dependence_level_k): Same.
15835 * graphite-ppl.c (ppl_powerset_is_empty): New.
15836 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15837 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15838
15839 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15840
15841 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15842 the "a followed by b" relation and document it.
15843
15844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15845
15846 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15847 iteration when the bag of constraints is empty.
15848
15849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15850
15851 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15852
15853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15854
15855 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15856 nest and two loop depths as parameters.
15857 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15858 lst_perfect_nestify.
15859
15860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15861
15862 * graphite-dependences.c (print_pddr): Call
15863 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15864
15865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15866
15867 * graphite-ppl.c (debug_gmp_value): New.
15868 * graphite-ppl.h (debug_gmp_value): Declared.
15869
15870 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15871
15872 * doc/install.texi: Document availability of cloog-0.16.
15873
15874 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15875
15876 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15877 invalid postdominance info.
15878
15879 2011-01-24 Jan Hubicka <jh@suse.cz>
15880
15881 PR c/21659
15882 * doc/extend.texi (weak pragma): Drop claim that it must
15883 appear before definition.
15884 * varasm.c (merge_weak, declare_weak): Only sanity check
15885 that DECL is not output at a time it is declared weak.
15886
15887 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15888
15889 * machmode.def: Fixed comments.
15890
15891 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15892
15893 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15894
15895 2011-01-24 Paul Koning <ni1d@arrl.net>
15896
15897 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15898 WORDS_BIG_ENDIAN.
15899
15900 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15901
15902 PR target/46519
15903 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15904 (block_info): Add scanned and prev.
15905 (move_or_delete_vzeroupper_2): Return if the basic block
15906 has been scanned and the upper 128bit state is unchanged
15907 from the last scan.
15908 (move_or_delete_vzeroupper_1): Return true if the exit
15909 state is changed.
15910 (move_or_delete_vzeroupper): Visit basic blocks using the
15911 work-list based algorithm based on vt_find_locations in
15912 var-tracking.c.
15913
15914 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15915
15916 2011-01-24 Nick Clifton <nickc@redhat.com>
15917
15918 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15919 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15920 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15921 then define __v850e1__.
15922 * doc/invoke.texi: Document -mv850es.
15923
15924 2011-01-24 Richard Henderson <rth@redhat.com>
15925
15926 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15927 compound unordered comparisons.
15928 * config/rx/rx.c (rx_split_fp_compare): Remove.
15929 * config/rx/rx-protos.h: Update.
15930 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15931 (cbranchsf4): Don't call rx_split_fp_compare.
15932 (*cbranchsf4): Use rx_split_cbranch.
15933 (*cmpsf): Don't accept "i" constraint.
15934 (*conditional_branch): Only valid after reload.
15935 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15936
15937 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15938
15939 PR target/47385
15940 * config/rs6000/altivec.md (vector constant splitters): Add
15941 support for creating vector single precision constants if -mvsx is
15942 used and we would create the constant using Altivec primitives.
15943
15944 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15945 Richard Sandiford <rdsandiford@googlemail.com>
15946
15947 PR rtl-optimization/47166
15948 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15949 mechanism for PRE_MODIFY and POST_MODIFY.
15950 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15951 reloadreg.
15952
15953 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15954
15955 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15956
15957 2011-01-22 Jan Hubicka <jh@suse.cz>
15958
15959 PR lto/47333
15960 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15961
15962 2011-01-22 Jan Hubicka <jh@suse.cz>
15963
15964 PR tree-optimization/43884
15965 PR lto/44334
15966 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15967 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15968
15969 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15970
15971 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15972 * config/s390/s390.c (s390_register_move_cost,
15973 s390_memory_move_cost): New.
15974 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15975
15976 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15977
15978 PR middle-end/47401
15979 * except.c (sjlj_assign_call_site_values): Move setting the
15980 crtl->uses_eh_lsda flag to ...
15981 (sjlj_mark_call_sites): ... here.
15982 (sjlj_emit_function_enter): Support NULL dispatch label.
15983 (sjlj_build_landing_pads): In a function with no landing pads
15984 that still has must-not-throw regions, generate code to register
15985 a personality function with empty LSDA.
15986
15987 2011-01-21 Richard Henderson <rth@redhat.com>
15988
15989 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15990
15991 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15992
15993 * compare-elim.c: New file.
15994 * Makefile.in (OBJS-common): Add it.
15995 (compare-elim.o): New.
15996 * common.opt (fcompare-elim): New.
15997 * opts.c (default_options_table): Add OPT_fcompare_elim.
15998 * tree-pass.h (pass_compare_elim_after_reload): New.
15999 * passes.c (init_optimization_passes): Add it.
16000 * recog.h: Protect against re-inclusion.
16001 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16002 * doc/invoke.texi (-fcompare-elim): Document it.
16003 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16004 * doc/tm.texi: Rebuild.
16005
16006 2011-01-22 Nick Clifton <nickc@redhat.com>
16007
16008 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16009 rx_split_fp_compare.
16010
16011 2011-01-22 Nick Clifton <nickc@redhat.com>
16012
16013 * config/rx/rx.md (UNSPEC_CONST): New.
16014 (deallocate_and_return): Wrap the amount popped off the stack in
16015 an UNSPEC_CONST in order to stop it being rejected by
16016 -mmax-constant-size.
16017 (pop_and_return): Add a "(return)" rtx.
16018 (call): Drop the immediate operand.
16019 (call_internal): Likewise.
16020 (call_value): Likewise.
16021 (call_value_internal): Likewise.
16022 (sibcall_internal): Likewise.
16023 (sibcall_value_internal): Likewise.
16024 (sibcall): Likewise. Generate an explicit call using
16025 sibcall_internal.
16026 (sibcall_value): Likewise.
16027 (mov<>): FAIL if a constant operand is not legitimate.
16028 (addsi3_unpsec): New pattern.
16029
16030 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16031 (ok_for_max_constant): New function.
16032 (gen_safe_add): New function.
16033 (rx_expand_prologue): Use gen_safe_add.
16034 (rx_expand_epilogue): Likewise.
16035 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16036 UNSPEC CONSTs.
16037
16038 2011-01-21 Jeff Law <law@redhat.com>
16039
16040 PR tree-optimization/47053
16041 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16042 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16043 statements are deleted.
16044 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16045 is nonempty, then purge dead edges and cleanup the CFG.
16046
16047 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16048
16049 PR debug/47402
16050 Temporarily revert:
16051 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16052 PR debug/47106
16053 * tree-dfa.c (create_var_ann): Mark variable as used.
16054
16055 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16056
16057 PR middle-end/45566
16058 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16059 notes from other section in hot/cold partitioning even if
16060 last_action is -3. Increment call_site_base.
16061
16062 PR rtl-optimization/47366
16063 * fwprop.c (forward_propagate_into): Return bool. If
16064 any changes are made, -fnon-call-exceptions is used and
16065 REG_EH_REGION note is present, call purge_dead_edges
16066 and return true if it purged anything.
16067 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16068 any EH edges were purged.
16069
16070 2011-01-21 Jeff Law <law@redhat.com>
16071
16072 PR rtl-optimization/41619
16073 * caller-save.c (setup_save_areas): Break out code to determine
16074 which hard regs are live across calls by examining the reload chains
16075 so that it is always used.
16076 Eliminate code which checked REG_N_CALLS_CROSSED.
16077
16078 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16079
16080 PR tree-optimization/47355
16081 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16082 NOP has non-debug uses beyond PHIs in new_bb.
16083
16084 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16085
16086 PR debug/47106
16087 * cfgexpand.c (account_used_vars_for_block): Only account vars
16088 that are annotated as used.
16089 (estimated_stack_frame_size): Don't set TREE_USED.
16090 * tree-dfa.c (create_var_ann): Mark variable as used.
16091
16092 2011-01-21 Richard Guenther <rguenther@suse.de>
16093
16094 PR middle-end/47395
16095 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16096
16097 2011-01-21 Richard Guenther <rguenther@suse.de>
16098
16099 PR tree-optimization/47365
16100 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16101 (vn_reference_lookup_pieces): Adjust.
16102 (vn_reference_lookup): Likewise.
16103 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16104 (vn_reference_lookup_3): Only look through kills if in
16105 VN_WALKREWRITE mode.
16106 (vn_reference_lookup_pieces): Adjust.
16107 (vn_reference_lookup): Likewise.
16108 (visit_reference_op_load): Likewise.
16109 (visit_reference_op_store): Likewise.
16110 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16111 (compute_avail): Likewise.
16112 (eliminate): Likewise.
16113
16114 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16115
16116 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16117 DECL_IGNORED_P non-reg vars if they are used.
16118
16119 PR tree-optimization/47391
16120 * varpool.c (const_value_known_p): Return false if
16121 decl is volatile.
16122
16123 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16124
16125 PR bootstrap/47215
16126 * config/i386/i386.c (ix86_local_alignment): Handle
16127 case for va_list_type_node is nil.
16128 (ix86_canonical_va_list_type): Likewise.
16129
16130 2011-01-21 Alan Modra <amodra@gmail.com>
16131
16132 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16133 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16134
16135 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16136
16137 * config/arm/arm.md (define_attr type): Rename f_load
16138 and f_store to f_fpa_load and f_fpa_store. Update.
16139 (write_conflict): Deal with rename fallout.
16140 (*push_fp_multi): Likewise.
16141 * config/arm/fpa.md (f_load): Use f_fpa_load.
16142 (f_store): Use f_fpa_store.
16143 (*movsf_fpa): Likewise.
16144 (*movdf_fpa): Likewise.
16145 (*movxf_fpa): Likewise.
16146 (*thumb2_movsf_fpa): Likewise.
16147 (*thumb2_movdf_fpa): Likewise.
16148 (*thumb2_movxf_fpa): Likewise.
16149 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16150 f_loadd and f_stored.
16151 (*thumb2_movdi_vfp): Likewise.
16152 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16153 (*thumb2_movsi_vfp): Likewise.
16154 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16155 Use f_loads instead of f_load.
16156 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16157
16158 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16159
16160 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16161 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16162 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16163 (xtensa_mode_dependent_address_p): New function.
16164 (constantpool_address_p): Make static. Change return type to bool.
16165 Change argument type to const_rtx. Use CONST_INT_P predicate.
16166
16167 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16168
16169 PR debug/46583
16170 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16171
16172 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16173
16174 PR debug/47283
16175 * cfgexpand.c (expand_debug_expr): Instead of generating
16176 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16177 etc. handling.
16178
16179 2011-01-20 Richard Guenther <rguenther@suse.de>
16180
16181 PR middle-end/47370
16182 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16183 the pointer operand of MEM_REFs.
16184
16185 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16186
16187 PR tree-optimization/46130
16188 * ipa-split.c (consider_split): If return_bb contains non-virtual
16189 PHIs other than for retval or if split_function would not adjust it,
16190 refuse to split.
16191
16192 2011-01-20 Richard Guenther <rguenther@suse.de>
16193
16194 PR tree-optimization/47167
16195 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16196 Revert previous change, only avoid enumeral type changes.
16197
16198 2011-01-19 Mike Stump <mikestump@comcast.net>
16199
16200 * doc/tm.texi.in (BRANCH_COST): Englishify.
16201 * doc/tm.texi (BRANCH_COST): Likewise.
16202
16203 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16204
16205 PR c++/47291
16206 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16207 (gen_scheduled_generic_parms_dies): New functions.
16208 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16209 generation for the end of CU compilation.
16210 (dwarf2out_finish): Generate template parameters DIEs here.
16211
16212 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16213
16214 PR debug/46240
16215 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16216 debug bind stmt on merge edges.
16217
16218 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16219
16220 PR debug/47079
16221 PR debug/46724
16222 * function.c (instantiate_expr): Instantiate incoming rtl of
16223 implicit arguments, and recurse on VALUE_EXPRs.
16224 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16225 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16226
16227 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16228
16229 * c-parser.c (c_parser_for_statement): Initialize
16230 collection_expression.
16231
16232 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16233
16234 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16235
16236 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16237
16238 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16239 (LINK_SHLIB_SPEC): Don't use %(link_path).
16240 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16241
16242 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16243
16244 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16245 (NO_SHARED_LIB_SUPPORT): Remove.
16246 (LINK_SHLIB_SPEC): Remove one conditional definition.
16247
16248 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16249
16250 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16251 %{call_shared}.
16252 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16253 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16254 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16255 %{call_shared} and conditionals on these options not being passed.
16256 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16257 %{call_shared}.
16258
16259 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16260
16261 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16262 simplify.
16263
16264 * ipa-split.c: Spelling fixes.
16265
16266 2011-01-19 Richard Henderson <rth@redhat.com>
16267
16268 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16269 (*mulsi3): Likewise.
16270
16271 * longlong.h [__mn10300__] (count_leading_zeros): New.
16272 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16273 [__mn10300__] (add_ssaaaa, subddmmss): New.
16274 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16275 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16276
16277 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16278
16279 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16280
16281 2011-01-19 Richard Henderson <rth@redhat.com>
16282
16283 * config/mn10300/mn10300.md (addsi3_flags): New.
16284 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16285 (subsi3_flags, subc_internal, subdi3): New.
16286 (subdi3_internal, *subdi3_degenerate): New.
16287 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16288
16289 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16290 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16291 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16292 * config/mn10300/mn10300-protos.h: Update.
16293 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16294 (return_ret): Likewise. Rename from return_internal_regs.
16295 (return_internal): Remove.
16296
16297 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16298 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16299 (mn10300_legitimate_constant_p): Likewise.
16300 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16301 (mn10300_frame_size): New.
16302 (mn10300_expand_prologue): Use it.
16303 (mn10300_expand_epilogue): Likewise.
16304 (mn10300_initial_offset): Likewise.
16305 * config/mn10300/mn10300-protos.h: Update.
16306 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16307 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16308 (prologue, epilogue, return_internal): Tidy output code.
16309 (mn10300_store_multiple_operation, return): Likewise.
16310 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16311 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16312 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16313 (load_pic, am33_load_pic): New.
16314 (mn10300_load_pic0, mn10300_load_pic1): New.
16315
16316 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16317 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16318 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16319 (cc_flags_for_mode, cc_flags_for_code): New.
16320 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16321 overflow flag is not valid. Validate that the flags we need
16322 for the comparison are valid.
16323 (mn10300_output_cmp): Remove.
16324 (mn10300_output_add): New.
16325 (mn10300_select_cc_mode): Use cc_flags_for_code.
16326 (mn10300_split_cbranch): New.
16327 (mn10300_match_ccmode): New.
16328 (mn10300_split_and_operand_count): New.
16329 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16330 to the function.
16331 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16332 (addsi3): ... here. Use mn10300_output_add.
16333 (*addsi3_flags): New.
16334 (*am33_subsi3, *mn10300_subsi3): Merge...
16335 (subsi3): ... here. Use attribute isa.
16336 (*subsi3_flags): New.
16337 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16338 when possible.
16339 (*am33_andsi3, *mn10300_andsi3): Merge...
16340 (andsi3): ... here.
16341 (*andsi3_flags): New.
16342 (andsi3 splitters): New.
16343 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16344 (iorsi3): ... here.
16345 (*iorsi3_flags): New.
16346 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16347 (xorsi3): ... here.
16348 (*xorsi3_flags): New.
16349 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16350 (one_cmplsi2): ... here.
16351 (*one_cmplsi2_flags): New.
16352 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16353 instead of "dax" in constraints. Use mn10300_split_cbranch.
16354 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16355 use matching constraints to eliminate a self-comparison.
16356 (*integer_conditional_branch): Rename from integer_conditional_branch.
16357 Use int_mode_flags to match CC_REG.
16358 (*cbranchsi4_btst, *btstsi): New.
16359 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16360 mn10300_split_cbranch.
16361 (*am33_cmpsf): Rename from am33_cmpsf.
16362 (*float_conditional_branch): Rename from float_conditional_branch.
16363 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16364 (zero_extendqisi2): ... here.
16365 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16366 (zero_extendhisi2): ... here.
16367 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16368 (extendqisi2): ... here.
16369 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16370 (extendhisi2): ... here.
16371 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16372 (ashlsi3): ... here.
16373 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16374 (lshrsi3): ... here.
16375 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16376 (ashrsi3): ... here.
16377 (consecutive add peephole): Remove.
16378 * config/mn10300/predicates.md (label_ref_operand): New.
16379 (int_mode_flags): New.
16380 (CCZN_comparison_operator): New.
16381
16382 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16383 (throughput_42_latency_43): New reservation.
16384 (mulsidi3, umulsidi3): New expanders.
16385 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16386 the MDR register to allocation; separately allocate the low and
16387 high parts of the DImode result.
16388 (umulsidi3_internal): Similarly.
16389 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16390 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16391 (udivsi3, umodsi3): Remove.
16392 (udivmodsi4, divmodsi4): New expanders.
16393 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16394 (*divmodsi4): Simiarly.
16395 (ext_internal): New.
16396
16397 * config/mn10300/constraints.md ("z"): New constraint.
16398 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16399 (FIXED_REGISTERS): Don't fix MDR.
16400 (CALL_USED_REGSITERS): Reformat nicely.
16401 (REG_ALLOC_ORDER): Add MDR.
16402 (enum regclass): Add MDR_REGS.
16403 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16404 (IRA_COVER_CLASSES): Add MDR_REGS.
16405 (REGNO_REG_CLASS): Handle MDR_REG.
16406 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16407 (mn10300_register_move_cost): Likewise.
16408 * config/mn10300/mn10300.md (MDR_REG): New.
16409 (*movsi_internal): Handle moves to/from MDR_REGS.
16410
16411 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16412 POST_MODIFY.
16413 (mn10300_secondary_reload): Tidy combination reload classes.
16414 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16415 addresses for AM33. Allow symbolic offsets for reg+imm.
16416 (mn10300_regno_in_class_p): New.
16417 (mn10300_legitimize_reload_address): New.
16418 * config/mn10300/mn10300.h (enum reg_class): Remove
16419 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16420 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16421 SP_OR_GENERAL_REGS.
16422 (REG_CLASS_NAMES): Update to match.
16423 (REG_CLASS_CONTENTS): Likewise.
16424 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16425 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16426 (REGNO_IN_RANGE_P): Remove.
16427 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16428 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16429 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16430 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16431 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16432 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16433 (REGNO_GENERAL_P): New.
16434 (HAVE_POST_MODIFY_DISP): New.
16435 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16436 (LEGITIMIZE_RELOAD_ADDRESS): New.
16437 * config/mn10300/mn10300-protos.h: Update.
16438
16439 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16440 DATA_REGS for AM33 stack-pointer destination.
16441 (mn10300_preferred_output_reload_class): Likewise.
16442 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16443 into a form appropriate for ...
16444 (TARGET_SECONDARY_RELOAD): New.
16445 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16446 * config/mn10300/mn10300-protos.h: Update.
16447 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16448 reload_insi; use the "A" constraint for the scratch; handle AM33
16449 moves of sp to non-address registers.
16450
16451 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16452 (*movqi_internal): ... here.
16453 (*am33_movhi, *mn10300_movhi): Merge into...
16454 (*movhi_internal): ... here.
16455 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16456 as the source/destination of moves from/to SP.
16457 (movsf): Only allow for AM33-2.
16458 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16459 any integer constant constraint. Only allow for AM33-2. Tidy
16460 all of the alternative outputs.
16461 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16462 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16463 for MN103.
16464 (udivsi3, umodsi3): New patterns for MN103 only.
16465
16466 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16467
16468 * doc/tm.texi.in: Spell out that a lack of register class unions
16469 can lead to ICEs.
16470 * doc/tm.texi: Regenerate.
16471
16472 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16473
16474 PR rtl-optimization/47337
16475 * dce.c (check_argument_store): New function.
16476 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16477
16478 PR tree-optimization/47290
16479 * tree-eh.c (infinite_empty_loop_p): New function.
16480 (cleanup_empty_eh): Use it.
16481
16482 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16483
16484 PR target/46997
16485 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16486 (a64_expand_widen_sum): Ditto.
16487 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16488 (vec_extract_evenodd_help): Ditto.
16489 (vec_extract_evenv4hi): Ditto.
16490 (vec_extract_oddv4hi): Ditto.
16491 (vec_extract_evenv2si): Ditto.
16492 (vec_extract_oddv2si): Ditto.
16493 (vec_extract_evenv2sf): Ditto.
16494 (vec_extract_oddv2sf): Ditto.
16495 (vec_pack_trunc_v4hi: Ditto.
16496 (vec_pack_trunc_v2si): Ditto.
16497 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16498 (vec_interleave_highv8qi): Ditto.
16499 (mix1_r): Ditto.
16500 (vec_extract_oddv8qi): Ditto.
16501 (vec_interleave_lowv4hi): Ditto.
16502 (vec_interleave_highv4hi): Ditto.
16503 (vec_interleave_lowv2si): Ditto.
16504 (vec_interleave_highv2si): Ditto.
16505
16506 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16507
16508 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16509 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16510 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16511 (pa_c_mode_for_suffix): New.
16512 (TARGET_EXPAND_BUILTIN): Define.
16513 (TARGET_C_MODE_FOR_SUFFIX): Define.
16514 (pa_builtins): Define.
16515 (pa_init_builtins): Register __float128 type and init new support
16516 builtins.
16517 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16518 * config/pa/quadlib.c (_U_Qfcopysign): New.
16519
16520 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16521
16522 PR middle-end/46894
16523 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16524 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16525 are defined.
16526
16527 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16528
16529 PR tree-optimization/47179
16530 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16531 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16532
16533 2011-01-18 Richard Guenther <rguenther@suse.de>
16534
16535 PR rtl-optimization/47216
16536 * emit-rtl.c: Include tree-flow.h.
16537 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16538 of replicating it with different semantics.
16539 * Makefile.in (emit-rtl.o): Adjust.
16540
16541 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16542
16543 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16544 (cortex_a9_dp): Handle neon types correctly.
16545
16546 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16547
16548 PR rtl-optimization/47299
16549 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16550 subtarget. Use normal multiplication if both operands are constants.
16551 * expmed.c (expand_widening_mult): Don't try to optimize constant
16552 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16553 before using it.
16554
16555 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16556
16557 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16558 spacing after 'e.g.', typos, comma, hyphenation.
16559
16560 2011-01-17 Richard Henderson <rth@redhat.com>
16561
16562 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16563 (rx_restricted_mem_operand): New.
16564 (rx_shift_operand): Use register_operand.
16565 (rx_source_operand, rx_compare_operand): Likewise.
16566 * config/rx/rx.md (addsi3_flags): New expander.
16567 (adddi3): Rewrite as expander.
16568 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16569 (subsi3_flags): New expander.
16570 (subdi3): Rewrite as expander.
16571 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16572
16573 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16574 (rx_init_builtins): Remove sat builtin.
16575 (rx_expand_builtin): Likewise.
16576 * config/rx/rx.md (ssaddsi3): New.
16577 (*sat): Rename from sat. Represent the CC_REG input.
16578
16579 * config/rx/predicates.md (rshift_operator): New.
16580 * config/rx/rx.c (rx_expand_insv): Remove.
16581 * config/rx/rx-protos.h: Update.
16582 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16583 operand to the canonical position.
16584 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16585 (*bitclr, *bitclr_in_memory): Similarly.
16586 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16587 (insv): Retain the zero_extract in the expansion.
16588
16589 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16590 (bswaphi2, bitinvert, revw): Likewise.
16591
16592 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16593 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16594 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16595 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16596 (bitset, bitset_in_memory): Likewise.
16597 (bitinvert, bitinvert_in_memory): Likewise.
16598 (bitclr, bitclr_in_memory): Likewise.
16599 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16600 (rx_strend, rx_cmpstrn): Likewise.
16601 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16602 (bitop peep2 patterns): Remove.
16603
16604 * config/rx/rx.c (rx_match_ccmode): New.
16605 * config/rx/rx-protos.h: Update.
16606 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16607 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16608 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16609 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16610 (fix_truncsfsi2, floatsisf2): Likewise.
16611 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16612 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16613 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16614 (*subsi3_flags, *xorsi3_flags): New.
16615
16616 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16617
16618 * config/rx/rx.c (rx_print_operand): Remove workaround for
16619 unsplit comparison operations.
16620
16621 * config/rx/rx.md (movsicc): Split after reload.
16622 (*movsicc): Merge *movsieq and *movsine via match_operator.
16623 (*stcc): New pattern.
16624
16625 * config/rx/rx.c (rx_float_compare_mode): Remove.
16626 * config/rx/rx.h (rx_float_compare_mode): Remove.
16627 * config/rx/rx.md (cstoresi4): Split after reload.
16628 (*sccc): New pattern.
16629
16630 * config/rx/predicates.md (label_ref_operand): New.
16631 (rx_z_comparison_operator): New.
16632 (rx_zs_comparison_operator): New.
16633 (rx_fp_comparison_operator): New.
16634 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16635 Validate that the flags are set properly for the comparison.
16636 (rx_gen_cond_branch_template): Remove.
16637 (rx_cc_modes_compatible): Remove.
16638 (mode_from_flags): New.
16639 (flags_from_code): Rename from flags_needed_for_conditional.
16640 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16641 (rx_select_cc_mode): Likewise.
16642 (rx_split_fp_compare): New.
16643 (rx_split_cbranch): New.
16644 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16645 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16646 (*cbranchsf4): Similarly.
16647 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16648 match_operator and rx_split_cbranch.
16649 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16650 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16651 (*cmpsi): Rename from cmpsi.
16652 (*tstsi): Rename from tstsi.
16653 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16654 (*conditional_branch): Rename from conditional_branch.
16655 (*reveresed_conditional_branch): Remove.
16656 (b<code>): Remove expander.
16657 * config/rx/rx-protos.h: Update.
16658
16659 * config/rx/rx.c (rx_compare_redundant): Remove.
16660 * config/rx/rx.md (cmpsi): Don't use it.
16661 * config/rx/rx-protos.h: Update.
16662
16663 * config/rx/rx-modes.def (CC_F): New mode.
16664 * config/rx/rx.c (rx_select_cc_mode): New.
16665 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16666 * config/rx/rx-protos.h: Update.
16667
16668 2011-01-17 Richard Henderson <rth@redhat.com>
16669
16670 * except.c (dump_eh_tree): Fix stray ; after for statement.
16671
16672 2011-01-17 Richard Guenther <rguenther@suse.de>
16673
16674 PR tree-optimization/47313
16675 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16676 handling before copying the body. Properly deal with
16677 by-reference result in SSA form.
16678
16679 2011-01-17 Ian Lance Taylor <iant@google.com>
16680
16681 PR target/47219
16682 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16683 (struct_value_alias_set): Don't define.
16684 (sparc_option_override): Don't set sparc_sr_alias_set and
16685 struct_value_alias_set.
16686 (save_or_restore_regs): Use gen_frame_mem rather than calling
16687 set_mem_alias_set.
16688 (sparc_struct_value_rtx): Likewise.
16689
16690 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16691
16692 PR target/47318
16693 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16694 (_mm_maskstore_pd): Likewise.
16695 (_mm_maskload_ps): Likewise.
16696 (_mm_maskstore_ps): Likewise.
16697 (_mm256_maskload_pd): Change mask to __m256i.
16698 (_mm256_maskstore_pd): Likewise.
16699 (_mm256_maskload_ps): Likewise.
16700 (_mm256_maskstore_ps): Likewise.
16701
16702 * config/i386/i386-builtin-types.def: Updated.
16703 (ix86_expand_special_args_builtin): Likewise.
16704
16705 * config/i386/i386.c (bdesc_special_args): Update
16706 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16707 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16708 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16709 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16710
16711 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16712 Use <avxpermvecmode> on mask register.
16713 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16714
16715 2011-01-17 Olivier Hainque <hainque@adacore.com>
16716 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16717 Eric Botcazou <ebotcazou@adacore.com>
16718
16719 PR target/46655
16720 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16721 if <= USHRT_MAX in 32-bit mode.
16722
16723 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16724
16725 * doc/install.texi (Configuration, Specific): Wrap long
16726 lines in examples. Allow line wrapping in long options
16727 and URLs where beneficial for PDF output.
16728
16729 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16730
16731 * config/mips/mips.c (mips_classify_symbol): Don't return
16732 SYMBOL_PC_RELATIVE for nonlocal labels.
16733
16734 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16735
16736 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16737
16738 2011-01-15 Jan Hubicka <jh@suse.cz>
16739
16740 PR tree-optimization/47276
16741 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16742 declarations as needed.
16743
16744 2011-01-15 Martin Jambor <mjambor@suse.cz>
16745
16746 * common.opt (fdevirtualize): New flag.
16747 * doc/invoke.texi (Option Summary): Document it.
16748 * opts.c (default_options_table): Add devirtualize flag.
16749 * ipa-prop.c (detect_type_change): Return immediately if
16750 devirtualize flag is not set.
16751 (detect_type_change_ssa): Likewise.
16752 (compute_known_type_jump_func): Likewise.
16753 (ipa_analyze_virtual_call_uses): Likewise.
16754
16755 2011-01-14 Martin Jambor <mjambor@suse.cz>
16756
16757 PR tree-optimization/45934
16758 PR tree-optimization/46302
16759 * ipa-prop.c (type_change_info): New type.
16760 (stmt_may_be_vtbl_ptr_store): New function.
16761 (check_stmt_for_type_change): Likewise.
16762 (detect_type_change): Likewise.
16763 (detect_type_change_ssa): Likewise.
16764 (compute_complex_assign_jump_func): Check for dynamic type change.
16765 (compute_complex_ancestor_jump_func): Likewise.
16766 (compute_known_type_jump_func): Likewise.
16767 (compute_scalar_jump_functions): Likewise.
16768 (ipa_analyze_virtual_call_uses): Likewise.
16769 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16770
16771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16772
16773 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16774 * config/i386/i386.opt (msse5): New Alias.
16775
16776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16777
16778 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16779 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16780 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16781 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16782
16783 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16784
16785 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16786 -mcpu options.
16787 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16788 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16789 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16790 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16791 Likewise.
16792 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16793
16794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16795
16796 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16797
16798 2011-01-14 Mike Stump <mikestump@comcast.net>
16799
16800 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16801 * config/fr30/fr30.md: Likweise
16802 (movsi_push): Likewise.
16803 (movsi_pop): Likewise.
16804 (enter_func): Likewise.
16805 * config/moxie/moxie.md (movsi_push): Likewise.
16806 (movsi_pop): Likewise.
16807
16808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16809
16810 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16811 %{no_archive} %{exact_version}.
16812 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16813 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16814 %{no_archive} %{exact_version}.
16815 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16816 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16817 * config/mips/vxworks.h: Likewise.
16818
16819 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16820
16821 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16822
16823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16824
16825 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16826 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16827
16828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16829
16830 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16831 -nodefaultlib.
16832
16833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16834
16835 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16836 for mcpu not cpu.
16837 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16838 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16839 not cpu.
16840 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16841 Don't handle -shlib.
16842
16843 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16844
16845 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16846 (CC1_SPEC): Don't handle -profile.
16847
16848 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16849
16850 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16851 * config/mips/mips.h (CC1_SPEC): Likewise.
16852
16853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16854
16855 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16856 * config/mips/mips.h (CC1_SPEC): Likewise.
16857
16858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16859
16860 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16861 * config/m32r/linux.h (LINK_SPEC): Likewise.
16862 * config/mips/linux.h (LINK_SPEC): Likewise.
16863 * config/mips/linux64.h (LINK_SPEC): Likewise.
16864 * config/sparc/linux.h (LINK_SPEC): Likewise.
16865 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16866 LINK_SPEC): Likewise.
16867 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16868
16869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16870
16871 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16872 %{version:-v}.
16873 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16874
16875 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16876
16877 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16878 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16879
16880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16881
16882 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16883
16884 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16885
16886 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16887 supports -Bstatic/-Bdynamic.
16888 * configure: Regenerate.
16889
16890 2011-01-14 Jan Hubicka <jh@suse.cz>
16891 Jack Howarth <howarth@bromo.med.uc.edu>
16892
16893 PR target/46037
16894 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16895 when checking debug_info_level. Test write_symbols instead of
16896 debug_hooks->var_location when setting flag_var_tracking_uninit.
16897
16898 2011-01-14 Richard Guenther <rguenther@suse.de>
16899
16900 PR tree-optimization/47179
16901 * target.def (ref_may_alias_errno): New target hook.
16902 * targhooks.h (default_ref_may_alias_errno): Declare.
16903 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16904 (default_ref_may_alias_errno): New function.
16905 * target.h (struct ao_ref_s): Declare.
16906 * tree-ssa-alias.c: Include target.h.
16907 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16908 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16909 (targhooks.o): Likewise.
16910 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16911 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16912
16913 2011-01-14 Richard Guenther <rguenther@suse.de>
16914
16915 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16916
16917 2011-01-14 Richard Guenther <rguenther@suse.de>
16918
16919 PR tree-optimization/47280
16920 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16921 return CFG changes.
16922 (tree_ssa_forward_propagate_single_use_vars): Deal with
16923 CFG changes from associate_plusminus.
16924
16925 2011-01-14 Richard Guenther <rguenther@suse.de>
16926
16927 PR middle-end/47281
16928 Revert
16929 2011-01-11 Richard Guenther <rguenther@suse.de>
16930
16931 PR tree-optimization/46076
16932 * tree-ssa.c (useless_type_conversion_p): Conversions from
16933 unprototyped to empty argument list function types are useless.
16934
16935 2011-01-14 Richard Guenther <rguenther@suse.de>
16936
16937 PR tree-optimization/47286
16938 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16939
16940 2011-01-14 Martin Jambor <mjambor@suse.cz>
16941
16942 PR middle-end/46823
16943 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16944
16945 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16946
16947 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16948 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16949 * config/xtensa/xtensa.c (xtensa_libcall_value,
16950 xtensa_function_value_regno_p): New functions.
16951 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16952
16953 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16954
16955 PR c++/47213
16956 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16957 PE specific hook.
16958 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16959 New function prototype.
16960 * config/i386/winnt.c (i386_pe_assemble_visibility):
16961 Warn only if attribute was specified by user.
16962
16963 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16964
16965 PR target/47251
16966 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16967 floating point.
16968 (floatunsdidf2_fcfidu): Ditto.
16969
16970 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16971
16972 * config/s390/s390.c (print_operand_address): Replace 'error' with
16973 'output_operand_lossage'.
16974 (print_operand): Likewise.
16975
16976 2011-01-13 Jeff Law <law@redhat.com>
16977
16978 PR rtl-optimization/39077
16979 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16980 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16981 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16982 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16983 * gcse.c (prune_insertions_deletions): New function.
16984 (compute_pre_data): Use it.
16985
16986 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16987
16988 PR debug/PR46973
16989 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16990 static function.
16991 (prune_unused_types_mark): Use it.
16992
16993 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16994
16995 PR rtl-optimization/45352
16996 * sel-sched.c: Update copyright years.
16997 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16998 in the advancing loop when we have issued issue_rate insns.
16999
17000 2011-01-12 Richard Henderson <rth@redhat.com>
17001
17002 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17003 (TARGET_MD_ASM_CLOBBERS): New.
17004
17005 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17006 (TARGET_DELEGITIMIZE_ADDRESS): New.
17007
17008 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17009 (clzsi2, *bsch): New patterns.
17010
17011 * config/mn10300/mn10300.md (INT): New mode iterator.
17012 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17013
17014 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17015 flag_split_wide_types.
17016
17017 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17018 (mn10300_trampoline_init): Rewrite without a template, an immediate
17019 load and a direct branch.
17020 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17021
17022 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17023
17024 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17025 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17026 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17027 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17028
17029 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17030
17031 PR debug/47209
17032 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17033 of type.
17034
17035 2011-01-12 Jan Hubicka <jh@suse.cz>
17036
17037 PR driver/47244
17038 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17039 (PLUGIN_COND_CLOSE): New macro.
17040 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17041
17042 2011-01-12 Richard Guenther <rguenther@suse.de>
17043
17044 PR lto/47259
17045 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17046 register variables in a MEM_REF.
17047
17048 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17049
17050 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17051 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17052 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17053 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17054 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17055 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17056 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17057 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17058 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17059 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17060 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17061 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17062 * config/gnu-user.h: New. Copied from linux.h.
17063 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17064 GNU_USER_TARGET_STARTFILE_SPEC.
17065 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17066 GNU_USER_TARGET_ENDFILE_SPEC.
17067 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17068 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17069 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17070 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17071 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17072 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17073 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17074 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17075 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17076 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17077 * config/arm/linux-eabi.h (CC1_SPEC): Use
17078 GNU_USER_TARGET_CC1_SPEC.
17079 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17080 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17081 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17082 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17083 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17084 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17085 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17086 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17087
17088 2011-01-12 Richard Guenther <rguenther@suse.de>
17089
17090 PR other/46946
17091 * doc/invoke.texi (ffast-math): Document it is turned on
17092 with -Ofast.
17093
17094 2011-01-12 Jan Hubicka <jh@suse.cz>
17095
17096 PR tree-optimization/47233
17097 * opts.c (common_handle_option): Disable ipa-reference with profile
17098 feedback.
17099
17100 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17101
17102 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17103 error message.
17104
17105 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17106
17107 * c-parser.c (c_lex_one_token): Updated and reindented some
17108 comments. No changes in code.
17109
17110 2011-01-11 Ian Lance Taylor <iant@google.com>
17111
17112 * godump.c (go_output_var): Don't output the variable if there is
17113 already a type with the same name.
17114
17115 2011-01-11 Ian Lance Taylor <iant@google.com>
17116
17117 * godump.c (go_format_type): Don't generate float80.
17118
17119 2011-01-11 Richard Henderson <rth@redhat.com>
17120
17121 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17122 declaration. Rewrite for both speed and size.
17123 (mn10300_address_cost_1): Remove.
17124 (mn10300_register_move_cost): New.
17125 (mn10300_memory_move_cost): New.
17126 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17127 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17128 extensions, shifts, BSWAP, CLZ.
17129 (mn10300_wide_const_load_uses_clr): Remove.
17130 (TARGET_REGISTER_MOVE_COST): New.
17131 (TARGET_MEMORY_MOVE_COST): New.
17132 * config/mn10300/mn10300-protos.h: Update.
17133 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17134
17135 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17136 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17137 * config/mn10300/mn10300-protos.h: Update.
17138 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17139 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17140 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17141 (*test_int_bitfield, *test_byte_bitfield): Remove.
17142 (*bit_test, *subreg_bit_test): Remove.
17143 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17144
17145 * config/mn10300/constraints.md ("c"): Rename from "A".
17146 ("A", "D"): New constraint letters.
17147 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17148 (fmssf4, fnmasf4, fnmssf4): Likewise.
17149
17150 * config/mn10300/mn10300.md (isa): New attribute.
17151 (enabled): New attribute.
17152
17153 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17154 (abssf2, negsf2): Define only for hardware fp.
17155 (sqrtsf2): Reformat.
17156 (addsf3, subsf3, mulsf3): Merge expander and insn.
17157
17158 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17159 (DEBUGGER_AUTO_OFFSET): Remove.
17160 (DEBUGGER_ARG_OFFSET): Remove.
17161
17162 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17163 Emit register stores with the same offsets as the hardware.
17164 (mn10300_store_multiple_operation): Don't check that the register
17165 save offsets are monotonic.
17166 * config/mn10300/mn10300-protos.h: Update.
17167
17168 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17169
17170 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17171 in terms of the value on the stack, not the MDR register.
17172
17173 2011-01-11 Jan Hubicka <jh@suse.cz>
17174
17175 PR lto/45721
17176 PR lto/45375
17177 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17178 (symbol_alias_set_destroy, symbol_alias_set_contains,
17179 propagate_aliases_backward): Declare.
17180 * lto-streamer-out.c (struct sets): New sturcture.
17181 (trivally_defined_alias): New function.
17182 (output_alias_pair_p): Rewrite.
17183 (output_unreferenced_globals): Fix output of alias pairs.
17184 (produce_symtab): Likewise.
17185 * ipa.c (function_and_variable_visibility): Set weak alias destination
17186 as needed in lto.
17187 * varasm.c (symbol_alias_set_t): Remove.
17188 (symbol_alias_set_destroy): Export.
17189 (propagate_aliases_forward, propagate_aliases_backward): New functions
17190 based on ...
17191 (compute_visible_aliases): ... this one; remove.
17192 (trivially_visible_alias): New
17193 (trivially_defined_alias): New.
17194 (remove_unreachable_alias_pairs): Rewrite.
17195 (finish_aliases_1): Reorganize code checking if alias is defined.
17196 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17197 in LTO mode.
17198
17199 2011-01-11 Richard Guenther <rguenther@suse.de>
17200
17201 PR tree-optimization/46076
17202 * tree-ssa.c (useless_type_conversion_p): Conversions from
17203 unprototyped to empty argument list function types are useless.
17204
17205 2011-01-11 Richard Guenther <rguenther@suse.de>
17206
17207 PR middle-end/45235
17208 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17209 volatile MEMs as MEM_READONLY_P.
17210
17211 2011-01-11 Richard Guenther <rguenther@suse.de>
17212
17213 PR tree-optimization/47239
17214 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17215
17216 2011-01-11 Jeff Law <law@redhat.com>
17217
17218 PR tree-optimization/47086
17219 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17220 IVs from statements that might throw.
17221
17222 2011-01-10 Jan Hubicka <jh@suse.cz>
17223
17224 PR lto/45375
17225 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17226
17227 2011-01-10 Jan Hubicka <jh@suse.cz>
17228
17229 PR lto/45375
17230 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17231 when correcting profile.
17232
17233 2011-01-10 Jan Hubicka <jh@suse.cz>
17234
17235 PR lto/46083
17236 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17237 DECL_FINI_PRIORITY.
17238 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17239 Restore DECL_FINI_PRIORITY.
17240
17241 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17242
17243 * doc/gimple.texi: Fix quoting of multi-word return values in
17244 @deftypefn statements. Ensure presence of return value. Wrap
17245 overlong @deftypefn lines.
17246 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17247 descriptions of removed functions.
17248 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17249 of multi-word return value in @deftypefn statement.
17250
17251 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17252
17253 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17254 (Conditional Expressions, Logical Operators)
17255 (Statement and operand traversals): Do not indent smallexample
17256 code. Fix duplicate function argument in example.
17257
17258 2011-01-10 Jeff Law <law@redhat.com>
17259
17260 PR tree-optimization/47141
17261 * ipa-split.c (split_function): Handle case where we are
17262 returning a value and the return block has a virtual operand phi.
17263
17264 2011-01-10 Jan Hubicka <jh@suse.cz>
17265
17266 PR tree-optimization/47234
17267 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17268 (pass_feedback_split_functions): Declare.
17269 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17270 tree-profile.
17271 * ipa-split.c (gate_split_functions): Update comments; disable
17272 split-functions for profile_arc_flag and branch_probabilities.
17273 (gate_feedback_split_functions): New function.
17274 (execute_feedback_split_functions): New function.
17275 (pass_feedback_split_functions): New global var.
17276
17277 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17278
17279 PR lto/46760
17280 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17281 calling gimple_call_set_cannot_inline.
17282
17283 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17284
17285 * config/darwin-sections.def: Remove unused section.
17286
17287 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17288
17289 PR c++/47218
17290 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17291
17292 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17293
17294 PR objc/47232
17295 * c-parser.c (c_parser_declaration_or_fndef): Improved
17296 error message.
17297
17298 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17299
17300 * config/i386/winnt.c (i386_pe_start_function): Make sure
17301 to switch back to function's section.
17302
17303 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17304
17305 PR gcc/46902
17306 PR testsuite/46912
17307 * plugin.c: Move include of dlfcn.h from here...
17308 * system.h: ... to here.
17309
17310 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17311
17312 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17313 file name.
17314 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17315 two extra empty pages in PDF output.
17316
17317 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17318
17319 PR objc/47078
17320 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17321 for error recovery purposes behave as if it was not specified so
17322 that the default type is usd.
17323
17324 2011-01-07 Jan Hubicka <jh@suse.cz>
17325
17326 PR tree-optmization/46469
17327 * ipa.c (function_and_variable_visibility): Clear needed flags on
17328 nodes with external decls; handle weakrefs merging correctly.
17329
17330 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17331
17332 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17333 not false.
17334
17335 2011-01-07 Jan Hubicka <jh@suse.cz>
17336
17337 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17338 and no longer claim that gold is required for linker plugin.
17339 * configure: Regenerate.
17340 * gcc.c (PLUGIN_COND): New macro.
17341 (LINK_COMMAND_SPEC): Use it.
17342 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17343 * config.in (HAVE_LTO_PLUGIN): New.
17344 * configure.ac (--with-lto-plugin): New parameter; autodetect
17345 HAVE_LTO_PLUGIN.
17346
17347 2011-01-07 Jan Hubicka <jh@suse.cz>
17348
17349 PR tree-optimization/46367
17350 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17351 when we can update original.
17352 (cgraph_mark_inline_edge): Sanity check.
17353 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17354
17355 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17356
17357 * config/spu/spu.h (ASM_COMMENT_START): Define.
17358
17359 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17360
17361 PR driver/42445
17362 * gcc.c (%>S): New.
17363 (SWITCH_KEEP_FOR_GCC): Likewise.
17364 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17365 (do_spec_1): Handle "%>".
17366
17367 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17368
17369 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17370
17371 PR target/47201
17372 * config/i386/i386.c (ix86_delegitimize_address): If
17373 simplify_gen_subreg fails, return orig_x.
17374
17375 PR bootstrap/47187
17376 * value-prof.c (gimple_stringop_fixed_value): Handle
17377 lhs of the call properly.
17378
17379 2011-01-07 Jan Hubicka <jh@suse.cz>
17380
17381 PR lto/45375
17382 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17383
17384 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17385
17386 * target.def (function_switched_text_sections): New hook.
17387 * doc/tm.texi: Regenerated.
17388 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17389 * final.c (default_function_switched_text_sections): New.
17390 (final_scan_insn): Call function_switched_text_sections when a
17391 mid-function section change occurs.
17392 * output.h (default_function_switched_text_sections): Declare.
17393 * config/darwin-protos.h (darwin_function_switched_text_sections):
17394 Likewise.
17395 * config/darwin.c (darwin_function_switched_text_sections): New.
17396 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17397
17398 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17399
17400 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17401 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17402 the secondary code fragment when outputting for DWARF == 2.
17403
17404 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17405
17406 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17407 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17408 Remove.
17409 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17410 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17411
17412 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17413
17414 PR debug/46704
17415 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17416 when it is not empty.
17417
17418 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17419
17420 Bobcat Enablement
17421 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17422 (case ${target}): Add btver1.
17423 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17424 -march=native recognize btver1 processors.
17425 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17426 btver1 def_and_undef
17427 * config/i386/i386.c (struct processor_costs btver1_cost): New
17428 btver1 cost table.
17429 (m_BTVER1): New definition.
17430 (m_AMD_MULTIPLE): Includes m_BTVER1.
17431 (initial_ix86_tune_features): Add btver1 tune.
17432 (processor_target_table): Add btver1 entry.
17433 (static const char *const cpu_names): Add btver1 entry.
17434 (software_prefetching_beneficial_p): Add btver1.
17435 (ix86_option_override_internal): Add btver1 instruction sets.
17436 (ix86_issue_rate): Add btver1.
17437 (ix86_adjust_cost): Add btver1.
17438 * config/i386/i386.h (TARGET_BTVER1): New definition.
17439 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17440 (enum processor_type): Add PROCESSOR_BTVER1.
17441 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17442
17443 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17444
17445 PR target/43309
17446 * config/i386/i386.c (legitimize_tls_address)
17447 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17448 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17449 (tls_initial_exec_64_sun): New pattern.
17450
17451 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17452
17453 * doc/invoke.texi (Overall Options): Improve wording and markup
17454 of the description of -wrapper.
17455
17456 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17457
17458 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17459 rdynamic, threads): New Driver options.
17460
17461 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17462
17463 PR target/38118
17464 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17465 if coming from .tdata.
17466 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17467
17468 2011-01-06 Jan Hubicka <jh@suse.cz>
17469
17470 PR lto/47188
17471 * collect2.c (main): Do not enable LTOmode when plugin is active.
17472
17473 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17474
17475 PR other/45915
17476 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17477 --version output if supported.
17478 * configure: Regenerate.
17479
17480 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17481
17482 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17483 Driver options.
17484
17485 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17486
17487 PR c/47150
17488 * c-convert.c (convert): When converting a complex expression
17489 other than COMPLEX_EXPR to a different complex type, ensure
17490 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17491 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17492 when converting COMPLEX_TYPE.
17493
17494 2011-01-06 Ira Rosen <irar@il.ibm.com>
17495
17496 PR tree-optimization/47139
17497 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17498 only the last reduction value is used outside the loop. Update
17499 documentation.
17500
17501 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17502
17503 * config/rtems.opt: New.
17504 * config.gcc (*-*-rtems*): Use rtems.opt.
17505
17506 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17507
17508 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17509 processors do not support 3DNow instructions.
17510
17511 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17512
17513 * config/spu/spu.c (spu_option_override): Set parameter
17514 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17515
17516 2011-01-05 Jan Hubicka <jh@suse.cz>
17517
17518 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17519 at the command line.
17520
17521 2011-01-05 Martin Jambor <mjambor@suse.cz>
17522
17523 PR lto/47162
17524 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17525 deltas on streamed outgoing edges.
17526 (output_node_opt_summary): Output info for outgoing edges only when
17527 the node is in new parameter set.
17528 (output_cgraph_opt_summary): New parameter set, passed to the two
17529 aforementioned functions. Update its forward declaration and its
17530 callee too.
17531
17532 2011-01-05 Tom Tromey <tromey@redhat.com>
17533
17534 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17535 operator to c_finish_omp_atomic.
17536 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17537 (build_unary_op): Update.
17538 (build_modify_expr): Update.
17539 (build_asm_expr): Update.
17540
17541 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17542
17543 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17544 newly inserted insns.
17545 (pad_bb): Likewise.
17546 (spu_emit_branch_hint): Likewise.
17547 (insert_hbrp_for_ilb_runout): Likewise.
17548 (spu_machine_dependent_reorg): Call df_finish_pass after
17549 schedule_insns returns.
17550
17551 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17552
17553 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17554
17555 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17556
17557 PR tree-optimization/47005
17558 * tree-sra.c (struct access): Add 'non_addressable' bit.
17559 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17560 (decide_one_param_reduction): Return 0 if the parameter is passed by
17561 reference and one of the accesses in the group is non_addressable.
17562
17563 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17564
17565 PR tree-optimization/47056
17566 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17567 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17568 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17569
17570 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17571
17572 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17573 initializer. Skip view conversions from aggregate types.
17574
17575 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17576
17577 PR bootstrap/47055
17578 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17579
17580 2011-01-04 Philipp Thomas <pth@suse.de>
17581
17582 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17583 obvious typo.
17584
17585 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17586
17587 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17588 on empty epilogue sequences.
17589
17590 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17591
17592 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17593 non-static): New Driver options.
17594
17595 2011-01-04 Jie Zhang <jie@codesourcery.com>
17596
17597 PR driver/47137
17598 * gcc.c (default_compilers[]): Set combinable field to 0
17599 for all assembly languages.
17600
17601 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17602
17603 * config/mips/loongson3a.md: New file.
17604 * config/mips/mips.md: Include loongson3a.md.
17605 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17606 TUNE_LOONGSON_3A.
17607
17608 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17609
17610 PR middle-end/47017
17611 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17612 instead of convert_memory_address_addr_space on the base expression.
17613
17614 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17615
17616 * config/spu/spu.c (spu_option_override): Update error text
17617 for bad -march= / -mtune= values.
17618
17619 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17620
17621 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17622 if branch-hint optimization will be performed.
17623
17624 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17625
17626 PR tree-optimization/47148
17627 * ipa-split.c (split_function): Convert arguments to
17628 DECL_ARG_TYPE if possible.
17629
17630 PR tree-optimization/47155
17631 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17632 when computing uns.
17633
17634 PR rtl-optimization/47157
17635 * combine.c (try_combine): If undobuf.other_insn becomes
17636 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17637 and set *new_direct_jump_p too.
17638
17639 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17640
17641 PR tree-optimization/47021
17642 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17643
17644 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17645
17646 * gcc.c (process_command): Update copyright notice dates.
17647 * gcov.c (print_version): Likewise.
17648 * gcov-dump.c (print_version): Likewise.
17649 * mips-tfile.c (main): Likewise.
17650 * mips-tdump.c (main): Likewise.
17651
17652 2011-01-03 Martin Jambor <mjambor@suse.cz>
17653
17654 PR tree-optimization/46801
17655 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17656 aggregate fields start at byte boundary instead of the bit-field flag.
17657
17658 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17659
17660 PR driver/47137
17661 * gcc.c (main): Revert revision 168407.
17662
17663 2011-01-03 Martin Jambor <mjambor@suse.cz>
17664
17665 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17666
17667 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17668
17669 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17670 vector optab to expand vector/scalar shift, update gimple to vector.
17671
17672 2011-01-03 Martin Jambor <mjambor@suse.cz>
17673
17674 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17675 a thunk.
17676
17677 2011-01-03 Martin Jambor <mjambor@suse.cz>
17678
17679 PR tree-optimization/46984
17680 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17681 HOST_WIDE_INT.
17682 (cgraph_create_indirect_edge): Fixed line length.
17683 (cgraph_indirect_call_info): Declare.
17684 (cgraph_make_edge_direct) Update declaration.
17685 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17686 (cgraph_create_indirect_edge): Use it.
17687 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17688 callees.
17689 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17690 the new thunk_delta representation.
17691 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17692 HOST_WIDE_INT.
17693 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17694 (ipa_read_indirect_edge_info): Likewise.
17695 * lto-cgraph.c (output_edge_opt_summary): New function.
17696 (output_node_opt_summary): Call it on all outgoing edges.
17697 (input_edge_opt_summary): New function.
17698 (input_node_opt_summary): Call it on all outgoing edges.
17699
17700 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17701
17702 PR driver/47137
17703 * gcc.c (main): Don't check have_o when settting combine_inputs.
17704
17705 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17706
17707 * regrename.c: Add general comment describing the pass.
17708 (struct du_head): Remove 'length' field.
17709 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17710 (regrename_optimize): Do not sort chains. Rework comments, add others.
17711 Force renaming to the preferred class (if any) in the first pass and do
17712 not consider registers that belong to it in the second pass.
17713 (create_new_chain): Do not set 'length' field.
17714 (scan_rtx_reg): Likewise.
17715
17716 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17717
17718 PR tree-optimization/47140
17719 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17720 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17721 to bit_value_binop.
17722
17723 PR rtl-optimization/47028
17724 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17725 parm_birth_insn instead of at the beginning of first bb.
17726
17727 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17728
17729 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17730 Remove the word "see" before "@pxref".
17731 * doc/rtl.texi: Remove the word "see" before "@pxref".
17732
17733 2011-01-01 Jan Hubicka <jh@suse.cz>
17734
17735 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17736 memory.
17737
17738 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17739
17740 PR target/38662
17741 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17742
17743 \f
17744 Copyright (C) 2011 Free Software Foundation, Inc.
17745
17746 Copying and distribution of this file, with or without modification,
17747 are permitted in any medium without royalty provided the copyright
17748 notice and this notice are preserved.