* ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
[gcc.git] / gcc / ChangeLog
1 2011-06-11 Jan Hubicka <jh@suse.cz>
2
3 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4
5 2011-06-11 Jan Hubicka <jh@suse.cz>
6
7 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8 (lto_symtab_resolve_can_prevail_p): Likewise.
9 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10 * cgraph.c (same_body_aliases_done): New global var.
11 (cgraph_same_body_alias_1): Rename to ...
12 (cgraph_create_function_alias): ... this one; reorg to new
13 representation.
14 (cgraph_same_body_alias): Use cgraph_create_function_alias;
15 record references when asked to.
16 (cgraph_add_thunk): Fix formating.
17 (cgraph_get_node): Kill same body alias code.
18 (cgraph_node_for_asm): Likewise.
19 (cgraph_remove_same_body_alias): Remove.
20 (cgraph_remove_node): Kill same body alias code.
21 (cgraph_mark_address_taken_node): Mark also the aliased function
22 as having address taken.
23 (dump_cgraph_node): Dump same body aliases.
24 (cgraph_for_node_thunks_and_aliases): Update for new alias
25 representation.
26 (cgraph_for_node_and_aliases): Likewise.
27 * cgraph.h (same_body): Kll pointer.
28 (same_body_alias): Update comment.
29 (same_body_aliases_done): Declare.
30 (cgraph_remove_same_body_alias): Remove declaration.
31 (cgraph_create_function_alias): Declare.
32 (cgraph_process_same_body_aliases): Declare.
33 (cgraph_function_with_gimple_body_p): Check for alias.
34 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
35 (cgraph_alias_aliased_node): New function.
36 (cgraph_function_node): Update for new aliases.
37 (cgraph_function_or_thunk_node): Likewise.
38 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
39 (inline_call): Remove dead aliases.
40 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler name
41 hack for same body aliases.
42 (clone_of_p): Look through aliases.
43 (verify_cgraph_node): Verify aliases.
44 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
45 (cgraph_process_same_body_aliases): New function.
46 (process_function_and_variable_attributes): Disable weakref warning on
47 alias.
48 (cgraph_analyze_functions): Handle aliases.
49 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
50 (assemble_thunks): Rename to ...
51 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
52 (cgraph_expand_function): Remove alias output code.
53 (cgraph_output_in_order): Skip aliases.
54 (cgraph_preserve_function_body_p): Aliases don't need preserving.
55 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
56 (ipa_record_reference): Do not assert on alias references.
57 (ipa_ref_has_aliases_p): New function.
58 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
59 (ipa_ref_has_aliases_p): Declare.
60 * lto-cgraph.c (lto_output_node): Handle aliases.
61 (input_node): Likewise.
62 * lto-streamer-out.c (lto_output): Skip aliases.
63 (produce_symtab): Kill same_body_alias code.
64 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
65 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
66 * ipa-inline.c (update_caller_keys): Walk aliases.
67 (inline_small_functions): Fix thinko in previous patch.
68 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
69 (function_and_variable_visibility): Do not walk same body aliases.
70 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
71 (ipa_pta_execute): Use it.
72
73 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
74
75 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
76 (*vec_dupv2df): Rename from vec_dupv2df.
77 (vec_dupv2df): New expander.
78
79 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
80
81 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
82
83 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
84
85 * config/i386/i386.md: Use default value in "isa" attribute.
86 * config/i386/sse.md: Ditto.
87 * config/i386/mmx.md: Ditto.
88
89 2011-06-10 Wei Guozhi <carrot@google.com>
90
91 PR target/45335
92 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
93 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
94 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
95 related peephole2.
96 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
97 related peephole2.
98 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
99 (arm_legitimate_ldrd_p): New prototype.
100 (arm_output_ldrd): New prototype.
101 * config/arm/arm.c (arm_check_ldrd_operands): New function.
102 (arm_legitimate_ldrd_p): New function.
103 (arm_output_ldrd): New function.
104
105 2011-06-10 David Li <davidxl@google.com>
106
107 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
108 * passes.c (passr_eq): New function.
109 (create_pass_tab): New function.
110 (pass_traverse): New function.
111 (dump_one_pass): New function.
112 (dump_pass_list): New function.
113 (dump_passes): New function.
114
115 2011-06-10 Jan Hubicka <jh@suse.cz>
116
117 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
118 setting the nothrow flag.
119 * ipa-reference.c (propagate): Skip aliases.
120 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
121 (propagate_nothrow): Skip aliases; do not update cgraph.
122 (local_pure_const): Do not update cgraph.
123 * tree-profile.c (tree_profiling): Do fixup_cfg.
124
125 2011-06-10 Jan Hubicka <jh@suse.cz>
126
127 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
128 (cgraph_local_node_p): ... here; handle aliases.
129 (has_addr_references_p): Break out from ...;
130 (cgraph_remove_unreachable_nodes) ... here.
131
132 2011-06-10 Jan Hubicka <jh@suse.cz>
133
134 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
135 * common.opt (flag_inline_functions_called_once): Do not
136 initialize to 1.
137
138 2011-06-10 Jan Hubicka <jh@suse.cz>
139
140 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
141 (ipcp_initialize_node_lattices): Do not deal with aliases;
142 Do not try to propagate through thunks.
143 (ipcp_change_tops_to_bottom): Do not deal with aliases.
144
145 2011-06-10 Jan Hubicka <jh@suse.cz>
146
147 * ipa-prop.c (ipa_write_node_info): Stream jump functions
148 for indirect calls.
149 (ipa_read_node_info): Likewise.
150
151 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
152
153 PR lto/49302
154 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
155 (build_and_insert_call): Likewise.
156 (build_and_insert_ref): New.
157 (gimple_expand_builtin_pow): Minor cleanup.
158 (gimple_expand_builtin_cabs): New.
159 (execute_cse_sincos): Add case for BUILT_IN_CABS.
160
161 2011-06-10 Jan Hubicka <jh@suse.cz>
162
163 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
164 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
165 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
166 (ipcp_propagate_stage): Skip aliases when propagating.
167 (ipcp_need_redirect_p): Skip aliases.
168 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
169 collect_callers_of_node.
170 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
171 for aliases.
172 (ipa_compute_jump_functions): Look through aliases.
173
174 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
175
176 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
177
178 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
179
180 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
181 Adjust comments.
182 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
183
184 2011-06-10 Jan Hubicka <jh@suse.cz>
185
186 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
187 Update call of gimple_get_virt_method_for_binfo.
188 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
189 refuse_thunks parameter.
190 (gimple_fold_call): Update.
191 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
192
193 2011-06-10 Jan Hubicka <jh@suse.cz>
194
195 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
196 (not_all_callers_have_enough_arguments_p): ... this one; turn into
197 worker for cgraph_for_node_and_aliases.
198 (convert_callers_for_node): Break out from ...
199 (convert_callers): ... here.
200 (modify_function): Use collect_callers_of_node.
201 (ipa_early_sra): Use cgraph_for_node_and_aliases.
202
203 2011-06-10 Richard Guenther <rguenther@suse.de>
204
205 PR tree-optimization/49361
206 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
207 when not already in gimple form.
208
209 2011-06-10 Richard Guenther <rguenther@suse.de>
210
211 PR bootstrap/49344
212 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
213 FOR_EACH_PHI_OR_STMT_USE.
214
215 2011-06-10 Jan Hubicka <jh@suse.cz>
216
217 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
218 (clone_inlined_nodes): ... here.
219 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
220 to real destination prior inlining.
221 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
222 can_early_inline_edge_p, want_early_inline_function_p,
223 want_early_inline_function_p, want_inline_small_function_p,
224 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
225 edge_badness, update_all_callee_keys, lookup_recursive_calls,
226 add_new_edges_to_heap, inline_small_functions, flatten_function,
227 inline_always_inline_functions, early_inline_small_functions): Use
228 cgraph_function_or_thunk_node.
229 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
230 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
231 (do_estimate_edge_growth_1): Break out from ...
232 (do_estimate_growth) ... here; walk aliases.
233 (inline_generate_summary): Skip aliases.
234
235 2011-06-10 Richard Guenther <rguenther@suse.de>
236
237 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
238 forward when combining, visit inserted stmts when a stmt was changed.
239
240 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
241
242 * tree.h (error_operand_p): Add.
243 * dbxout.c (dbxout_type_fields): Use the latter.
244 * c-decl.c (add_stmt): Likewise.
245 * gimplify.c (omp_add_variable, omp_notice_variable,
246 gimplify_scan_omp_clauses): Likewise.
247
248 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
249
250 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
251 when a value is actually passed in regs.
252
253 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
254 Laurent Rougé <laurent.rouge@menta.fr>
255
256 * doc/invoke.texi (SPARC options): Add -mflat.
257 * config/sparc/sparc.opt: Likewise.
258 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
259 (sparc_flat_expand_prologue): Declare.
260 (sparc_flat_expand_epilogue): Likewise.
261 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
262 (CPP_ENDIAN_SPEC): Replace with...
263 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
264 (CPP_SPEC): Adjust to above change.
265 (EXTRA_SPECS): Likewise.
266 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
267 (INCOMING_REGNO): Likewise.
268 (OUTGOING_REGNO): Likewise.
269 (LOCAL_REGNO): Likewise.
270 (SETUP_FRAME_ADDRESSES): Likewise.
271 (FIXED_REGISTERS): Set 0 for %fp.
272 (CALL_USED_REGISTERS): Likewise.
273 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
274 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
275 (RETURN_ADDR_REGNUM): Define.
276 (RETURN_ADDR_RTX): Use it.
277 (INCOMING_RETURN_ADDR_REGNUM): Define.
278 (INCOMING_RETURN_ADDR_RTX): Use it.
279 (DWARF_FRAME_RETURN_COLUMN): Likewise.
280 (EH_RETURN_REGNUM): Define.
281 (EH_RETURN_STACKADJ_RTX): Use it.
282 (EH_RETURN_HANDLER_RTX): Delete.
283 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
284 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
285 Delete.
286 (struct machine_function): Add frame_size, apparent_frame_size,
287 frame_base_reg, frame_base_offset, n_global_fp_regs and
288 save_local_in_regs_p fields.
289 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
290 sparc_frame_base_offset, sparc_n_global_fp_regs,
291 sparc_save_local_in_regs_p): New macros.
292 (sparc_option_override): Error out if -fcall-saved-REG is specified
293 for Out registers.
294 (eligible_for_restore_insn): Fix formatting.
295 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
296 (eligible_for_sibcall_delay): Likewise.
297 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
298 (sparc_legitimate_address_p): Adjust to above change.
299 (save_global_or_fp_reg_p): New predicate.
300 (return_addr_reg_needed_p): Likewise.
301 (save_local_or_in_reg_p): Likewise.
302 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
303 (SORR_SAVE, SORR_RESTORE): Delete.
304 (sorr_pred_t): New typedef.
305 (sorr_act_t): New enum.
306 (save_or_restore_regs): Rename to...
307 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
308 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
309 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
310 mechanism. Add CFI information for double-word saves in 32-bit mode.
311 (emit_adjust_base_to_offset): New function extracted from...
312 (emit_save_or_restore_regs): ...this. Rename the rest to...
313 (emit_save_or_restore_regs_global_fp_regs): ...this.
314 (emit_save_or_restore_regs_local_in_regs): New function.
315 (gen_create_flat_frame_[123]): New functions.
316 (sparc_expand_prologue): Use SIZE local variable. Adjust.
317 (sparc_flat_expand_prologue): New function.
318 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
319 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
320 (sparc_flat_expand_epilogue): New function.
321 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
322 (output_return): Likewise.
323 (output_sibcall): Likewise.
324 (sparc_output_mi_thunk): Likewise.
325 (sparc_frame_pointer_required): Likewise.
326 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
327 function optimization.
328 * config/sparc/sparc.md (flat): New attribute.
329 (prologue): Add TARGET_FLAT handling.
330 (save_register_window): Disable if TARGET_FLAT.
331 (create_flat_frame_[123]): New patterns.
332 (epilogue): Add TARGET_FLAT handling.
333 (sibcall_epilogue): Likewise.
334 (eh_return): New expander.
335 (eh_return_internal): New insn and splitter.
336 (return_internal): Add TARGET_FLAT handling.
337 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
338 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
339 (nonlocal_goto): Add TARGET_FLAT handling.
340 * config/sparc/t-elf: Add -mflat multilib.
341 * config/sparc/t-leon: Likewise.
342
343 2011-06-10 Jan Hubicka <jh@suse.cz>
344
345 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
346 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
347 (self_recursive_p): Use cgraph_function_node.
348 (propagate_pure_const): Likewise.
349 (propagate_nothrow): Likewise.
350 * ipa-reference.c (ipa_reference_get_not_read_global): Use
351 cgraph_function_node.
352 (propagate_bits): Likewise.
353 (propagate): Likewise.
354
355 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
356 Richard Earnshaw <rearnsha@arm.com>
357
358 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
359 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
360 (*thumb2_movdi_vfp): Delete.
361 (*arm_movdi_vfp_cortexa8): Delete.
362 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
363 (*movdi_vfp_cortexa8): Likewise.
364
365 2011-06-10 Richard Guenther <rguenther@suse.de>
366
367 * stor-layout.c (initialize_sizetypes): Give names to all
368 sizetype kinds.
369
370 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
371
372 PR tree-optimization/49318
373 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
374 irrelevant pattern statements.
375
376 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
377
378 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
379
380 PR bootstrap/49354
381 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
382 to last assignment.
383
384 2011-06-09 Jan Hubicka <jh@suse.cz>
385
386 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
387 do not recompute reachable flag.
388 (cgraph_finalize_function, cgraph_analyze_functions): Set
389 redefined_extern_inline here.
390
391 2011-06-09 Jan Hubicka <jh@suse.cz>
392
393 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
394 (cgraph_only_called_directly_p): ... this one; bring offline.
395 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
396 varpool_used_from_object_file_p): Drop names from the declaratoin.
397 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
398 collect_callers_of_node): New.
399 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
400 (cgraph_edge_recursive_p): Use cgraph_function_node.
401 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
402 (cgraph_node_cannot_be_local_p_1): Break out from ...
403 (cgraph_node_can_be_local_p): ... here; walk aliases.
404 (cgraph_for_node_thunks_and_aliases): New function.
405 (cgraph_for_node_and_aliases): New function.
406 (cgraph_make_node_local_1): Break out from ...
407 (cgraph_make_node_local) ... here; use
408 cgraph_for_node_thunks_and_aliases.
409 (cgraph_set_nothrow_flag_1): Break out from ...
410 (cgraph_set_nothrow_flag) ... here;
411 use cgraph_for_node_thunks_and_aliases.
412 (cgraph_set_const_flag_1): Break out from ...
413 (cgraph_set_const_flag) ... here;
414 use cgraph_for_node_thunks_and_aliases.
415 (cgraph_set_pure_flag_1): Break out from ...
416 (cgraph_set_pure_flag) ... here;
417 use cgraph_for_node_thunks_and_aliases.
418 (cgraph_propagate_frequency_1): Break out from ...
419 (cgraph_propagate_frequency) ... here; use
420 cgraph_for_node_thunks_and_aliases.
421 (cgraph_used_from_object_file_p): Do not care about aliases.
422 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
423 New functions.
424 (collect_callers_of_node_1, collect_callers_of_node): New functions.
425
426 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
427
428 PR rtl-optimization/49154
429 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
430 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
431 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
432 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
433 * config/cris/cris.h (cris_register_move_cost): Remove
434 !TARGET_V32 code. Tweak comments.
435
436 2011-06-09 Jan Hubicka <jh@suse.cz>
437
438 * cgraphbuild.c (record_eh_tables): Mark personality function as having
439 address taken.
440
441 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
442
443 PR rtl-optimization/49154
444 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
445 is a matching slot in the hashtable, assign it to classes_ptr.
446
447 PR rtl-optimization/49154
448 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
449 register classes.
450 * doc/tm.texi: Regenerate.
451
452 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
453
454 PR target/49307
455 * config/sh/sh.md (UNSPEC_CHKADD): New.
456 (chk_guard_add): New define_insn_and_split.
457 (symGOT_load): Use chk_guard_add instead of blockage.
458
459 2011-06-09 Kai Tietz <ktietz@redhat.com>
460
461 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
462
463 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
464
465 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
466
467 2011-06-09 Wei Guozhi <carrot@google.com>
468
469 PR target/46975
470 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
471 (peephole2 for conditional move): Generate 16 bit instructions.
472
473 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
474
475 * config/i386/i386.md (*movdi_internal_rex64): Merge
476 alternatives 6 and 8.
477
478 2011-06-09 David Li <davidxl@google.com>
479
480 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
481 * passes.c (passr_eq): New function.
482 (create_pass_tab): New function.
483 (pass_traverse): New function.
484 (dump_one_pass): New function.
485 (dump_pass_list): New function.
486 (dump_passes): New function.
487
488 2011-06-09 David Li <davidxl@google.com>
489
490 * tree-complex.c (tree_lower_complex): Gate cleanup.
491 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
492 (execute_optimize_stdarg): Ditto.
493 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
494 (execute_cleanup_eh_1): Ditto.
495 (execute_cleanup_eh): Ditto.
496 * gcse.c (gate_rtl_pre): Ditto.
497 (execute_rtl_pre): Ditto.
498 * except.c (finish_eh_generation): Ditto.
499 (convert_to_eh_region_ranges): Ditto.
500 * cprop.c (one_cprop_pass): Ditto.
501
502 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
503
504 PR target/48673
505 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
506 in all basic blocks.
507
508 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509
510 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
511 (HAVE_ENABLE_EXECUTE_STACK): Define.
512 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
513 (HAVE_ENABLE_EXECUTE_STACK): Define.
514 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
515 (HAVE_ENABLE_EXECUTE_STACK): Define.
516 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
517 (ENABLE_EXECUTE_STACK): Remove.
518 (HAVE_ENABLE_EXECUTE_STACK): Define.
519 [IN_LIBGCC2]: Don't include <windows.h>.
520 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
521 (HAVE_ENABLE_EXECUTE_STACK): Define.
522 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
523 (HAVE_ENABLE_EXECUTE_STACK): Define.
524 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
525 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
526 (HAVE_ENABLE_EXECUTE_STACK): Define.
527 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
528 (HAVE_ENABLE_EXECUTE_STACK): Define.
529 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
530 (HAVE_ENABLE_EXECUTE_STACK): Define.
531 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
532 (HAVE_ENABLE_EXECUTE_STACK): Define.
533 * config/alpha/alpha.c (alpha_trampoline_init): Test
534 HAVE_ENABLE_EXECUTE_STACK.
535 * config/i386/i386.c (ix86_trampoline_init): Likewise.
536 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
537 (sparc64_initialize_trampoline): Likewise.
538 * libgcc2.c [L_enable_execute_stack]: Remove.
539 * system.h (ENABLE_EXECUTE_STACK): Poison.
540 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
541 * doc/tm.texi: Regenerate.
542 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
543
544 2011-06-09 Jakub Jelinek <jakub@redhat.com>
545
546 PR middle-end/49308
547 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
548 variable. After resetting and rescanning insn continue with previous
549 statement.
550
551 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
552
553 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
554 (gcc_cv_ld_hidden): Likewise.
555 * configure: Regenerate.
556 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
557 (ix86_stack_protect_fail): Mark unused.
558 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
559 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
560 [TARGET_MACHO]: Don't define.
561 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
562 (TARGET_STACK_PROTECT_FAIL): Likewise.
563 (rs6000_stack_protect_fail): Mark unused.
564 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
565 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
566
567 2011-06-08 Andi Kleen <ak@linux.intel.com>
568
569 * varasm.c (get_section): Print location of other conflict
570 for section conflicts.
571
572 2011-06-08 Andi Kleen <ak@linux.intel.com>
573
574 * config/i386/driver-i386.c (host_detect_local_cpu):
575 Add model 0x2d Intel CPU.
576
577 2011-06-08 Andi Kleen <ak@linux.intel.com>
578
579 * reginfo.c (global_regs_decl): Add.
580 (globalize_reg): Add decl parameter. Compute location. Pass location
581 to warnings and add inform. Store decl in global_regs_decl.
582 * rtl.h (globalize_reg): Update prototype.
583 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
584
585 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
586
587 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
588
589 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
590
591 PR target/49305
592 * config/sh/predicates.md (general_movsrc_operand): Check
593 mode for memory with indexed address for QI and HImode.
594 (general_movdst_operand): Likewise.
595
596 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
597
598 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
599
600 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
601
602 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
603 (num_ssa_operands): Likewise.
604 (op_iter_init_phiuse): Forward-declare.
605 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
606
607 2011-06-08 Nick Clifton <nickc@redhat.com>
608
609 * doc/invoke.texi (ARM Options): Update description of
610 -mthumb-interwork.
611
612 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
613
614 * config/i386/driver-i386.c (host_detect_local_cpu): Support
615 unknown Intel family 0x6 CPUs.
616
617 2011-06-08 Martin Jambor <mjambor@suse.cz>
618
619 * tree-sra.c (mark_rw_status): Removed.
620 (analyze_access_subtree): New parameter parent instead of
621 mark_read and mark_write, propagate from that.
622
623 2011-06-08 Julian Brown <julian@codesourcery.com>
624
625 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
626 for double-precision helper functions in hard-float mode if only
627 single-precision arithmetic is supported in hardware.
628
629 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
630
631 PR rtl-optimization/49303
632 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
633 code_motion_path_driver returned 0 or 1.
634 (sel_region_finish): Clear h_d_i_d.
635
636 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
637
638 * config/sh/sh.c (prepare_move_operands): Set pic register
639 appropriately for global and local dynamic tls models even
640 if flag_pic is unset.
641
642 2011-06-07 Jason Merrill <jason@redhat.com>
643
644 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
645
646 2011-06-07 Xinliang David Li <davidxl@google.com>
647 * passes.c (enable_disable_pass): Handle assembler name.
648 (is_pass_explicitly_enabled_or_disabled): Ditto.
649
650 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651
652 PR tree-optimization/48497
653 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
654
655 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
656
657 PR tree-optimization/46728
658 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
659 to use gimple_val_nonnegative_real_p.
660 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
661 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
662
663 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
664
665 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
666
667 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
668
669 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
670 constant vectors.
671
672 2011-06-07 Richard Guenther <rguenther@suse.de>
673
674 * stor-layout.c (initialize_sizetypes): Initialize all
675 sizetypes based on target definitions.
676 (set_sizetype): Remove.
677 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
678 * tree.h (set_sizetype): Remove.
679
680 2011-06-07 Nick Clifton <nickc@redhat.com>
681
682 * config.gcc: Unify V850 architecture options and add support for
683 newer V850 architectures.
684 * config/v850/t-v850e: Delete.
685
686 2011-06-07 Richard Guenther <rguenther@suse.de>
687
688 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
689 Call set_sizetype from here.
690
691 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
692
693 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
694 (*maddhisi4tb, *maddhisi4tt): New define_insns.
695
696 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
697 Andrew Stubbs <ams@codesourcery.com>
698
699 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
700 multiplies.
701 * doc/md.texi (Canonicalization of Instructions): Document widening
702 multiply canonicalization.
703
704 2011-06-07 Jakub Jelinek <jakub@redhat.com>
705
706 PR gcov-profile/49299
707 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
708
709 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
710
711 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
712 a pointer.
713 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
714 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
715 vect_recog_pow_pattern): Likewise.
716 (vect_pattern_recog_1): Remove declaration.
717 (widened_name_p): Remove declaration. Add new argument to specify
718 whether to check that both types are either signed or unsigned.
719 (vect_recog_widen_mult_pattern): Update documentation. Handle
720 unsigned patterns and multiplication by constants.
721 (vect_pattern_recog_1): Update vect_recog_func references. Use
722 statement information from the statement returned from pattern
723 detection functions.
724 (vect_pattern_recog): Update vect_recog_func reference.
725 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
726 multiplication by a constant use the type of the other operand.
727
728 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
729
730 PR rtl-optimization/49145
731 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
732
733 2011-06-06 Jakub Jelinek <jakub@redhat.com>
734
735 PR debug/49262
736 * dwarf2out.c (native_encode_initializer): Decrement count in each
737 iteration.
738
739 PR debug/49294
740 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
741 non-MODE_INT modes.
742
743 PR c++/49264
744 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
745 if stmt folded into nothing.
746 * tree-inline.c (fold_marked_statements): If a builtin at the end of
747 a bb folded into nothing, just update cgraph edges and move to next bb.
748 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
749 to be NULL. Don't compute count and frequency if new_call is NULL.
750
751 2011-06-04 Diego Novillo <dnovillo@google.com>
752
753 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
754 (cgraph.o): Likewise.
755 (cgraphunit.o): Likewise.
756 * cgraphunit.c: Include lto-streamer.h
757 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
758 if LTO is enabled.
759 * lto-streamer-in.c (unpack_value_fields): Call
760 streamer_hooks.unpack_value_fields if set.
761 (lto_materialize_tree): For unhandled nodes, first try to
762 call lto_streamer_hooks.alloc_tree, if it exists.
763 (lto_input_ts_decl_common_tree_pointers): Move reading of
764 DECL_INITIAL to lto_streamer_read_tree.
765 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
766 (lto_streamer_read_tree): New.
767 (lto_reader_init): Rename from lto_init_reader.
768 Move initialization code to lto/lto.c.
769 * lto-streamer-out.c (pack_value_fields): Call
770 streamer_hooks.pack_value_fields if set.
771 (lto_output_tree_ref): For tree nodes that are not normally indexable,
772 call streamer_hooks.indexable_with_decls_p before giving up.
773 (lto_output_ts_decl_common_tree_pointers): Move handling
774 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
775 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
776 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
777 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
778 (lto_streamer_write_tree): New.
779 (lto_output): Call lto_streamer_init directly.
780 (lto_writer_init): Remove.
781 * lto-streamer.c (streamer_hooks): New.
782 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
783 instead of lto_preload_common_nodes.
784 (lto_is_streamable): Move from lto-streamer.h
785 (lto_streamer_hooks_init): New.
786 (streamer_hooks): New.
787 (streamer_hooks_init): New.
788 * lto-streamer.h (struct output_block): Forward declare.
789 (struct lto_input_block): Likewise.
790 (struct data_in): Likewise.
791 (struct bitpack_d): Likewise.
792 (struct streamer_hooks): Declare.
793 (streamer_hooks): Declare.
794 (lto_streamer_hooks_init): Declare.
795 (lto_streamer_write_tree): Declare.
796 (lto_streamer_read_tree): Declare.
797 (streamer_hooks_init): Declare.
798 (lto_is_streamable): Move to lto-streamer.c
799
800 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
801
802 * longlong.h (smul_ppmm): The resulting register pair contains the
803 higher order word first.
804
805 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
806
807 PR tree-optimization/46728
808 * builtins.c (powi_table): Remove.
809 (powi_lookup_cost): Remove.
810 (powi_cost): Remove.
811 (expand_powi_1): Remove.
812 (expand_powi): Remove.
813 (expand_builtin_pow_root): Remove.
814 (expand_builtin_pow): Remove.
815 (expand_builtin_powi): Eliminate handling of constant exponent.
816 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
817
818 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
819
820 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
821
822 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
823
824 * dce.c (reset_unmarked_insns_debug_uses): New.
825 (delete_unmarked_insns): Skip debug insns.
826 (prescan_insns_for_dce): Likewise.
827 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
828 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
829 active reg can be found.
830 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
831 (convert_regs_1): Use it.
832
833 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
834
835 * tree-pretty-print.c (dump_function_header): Add flags.
836 Don't dump decl_uid with nouid.
837 * tree-pretty-print.h (dump_function_header): Adjust.
838 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
839 * passes.c (pass_init_dump_file): Pass dump_flags on.
840 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
841
842 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
843
844 PR bootstrap/49270
845 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
846
847 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
848
849 PR tree-optimization/49243
850 * calls.c (setjmp_call_p): Also check if fndecl has the
851 returns_twice attribute.
852
853 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
854
855 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
856 -ffast-math etc.
857
858 2011-06-06 Richard Henderson <rth@redhat.com>
859 Georg-Johann Lay <avr@gjlay.de>
860
861 PR target/42210
862 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
863 New predicates.
864 * config/avr/avr.md ("insv"): New insn expander.
865 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
866 "*insv.not.io", "*insv.reg"): New insns.
867
868 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
869
870 PR target/49285
871 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
872 to nonimmediate_operand from memory_operand for the operand that is to
873 be forced to memory by the expander. Lose the constraints.
874
875 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
876
877 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
878 EH return when delayed branches are disabled.
879
880 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
881
882 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
883 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
884 calculation.
885 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
886 Simplify MODE_V1DF and MODE_V2SF handling.
887 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
888 Simplify MODE_SF handling.
889
890 2011-06-04 Jan Hubicka <jh@suse.cz>
891
892 PR tree-optimization/48893
893 PR tree-optimization/49091
894 PR tree-optimization/49179
895 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
896 Bounds check.
897
898 2011-06-04 Jan Hubicka <jh@suse.cz>
899
900 PR lto/48954
901 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
902 bitmaps.
903
904 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
905
906 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
907
908 2011-06-04 Jakub Jelinek <jakub@redhat.com>
909
910 PR target/49281
911 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
912 to be strictly smaller than 1 << shiftcount.
913
914 2011-06-04 Jan Hubicka <jh@suse.cz>
915
916 PR tree-optimize/48929
917 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
918 of empty predicate.
919
920 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
921
922 PR debug/48333
923 * calls.c (emit_call_1): Prefer the __builtin declaration of
924 builtin functions.
925
926 2011-06-03 Diego Novillo <dnovillo@google.com>
927
928 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
929 (lto_input_tree_pointers): Likewise.
930 * lto-streamer-out.c (pack_value_fields): Likewise.
931 (lto_output_tree_pointers): Likewise.
932 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
933 and OPTIMIZATION_NODE.
934
935 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936
937 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
938 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
939 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
940 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
941 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
942 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
943 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
944 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
945 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
946 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
947 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
948 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
949 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
950 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
951 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
952 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
953 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
954 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
955 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
956 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
957 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
958 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
959 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
960 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
961 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
962 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
963 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
964 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
965 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
966 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
967 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
968 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
969 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
970 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
971 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
972 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
973 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
974 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
975 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
976 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
977 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
978 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
979 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
980 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
981 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
982 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
983 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
984 * system.h (MD_UNWIND_SUPPORT): Poison.
985 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
986 * doc/tm.texi: Regenerate.
987 * unwind-dw2.c: Include md-unwind-support.h instead of
988 MD_UNWIND_SUPPORT.
989 * config/ia64/unwind-ia64.c: Likewise.
990 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
991
992 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
993
994 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
995
996 2011-06-03 Richard Henderson <rth@redhat.com>
997 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
998
999 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1000 (sigill_hdlr): Correct insn, insn size.
1001 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1002
1003 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1004
1005 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1006 t-slibgcc-dummy.
1007 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1008 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1009 * config/mips/t-iris: Remove.
1010 * config/mips/t-irix6: New file.
1011 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1012
1013 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1014
1015 * Makefile.in (LIB2ADDEHDEP): Remove.
1016 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1017 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1018 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1019 * config/t-darwin (LIB2ADDEHDEP): Remove.
1020 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1021 * config/t-linux (LIB2ADDEHDEP): Remove.
1022
1023 2011-06-03 Diego Novillo <dnovillo@google.com>
1024
1025 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1026 (lto_register_var_decl_in_symtab): Likewise.
1027 (lto_register_function_decl_in_symtab): Likewise.
1028 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1029 logic to uniquify_nodes.
1030
1031 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033 * config/alpha/t-osf5: Remove.
1034 * config/alpha/t-osf-pthread: Remove.
1035 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1036 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1037
1038 2011-06-03 Julian Brown <julian@codesourcery.com>
1039
1040 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1041 (strongarm1110): Use strongarm tuning.
1042 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1043 * config/arm/arm.c (arm_strongarm_tune): New.
1044 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1045 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1046 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1047 setting, using previous defaults or 1 for Cortex-A5.
1048 (arm_option_override): Set max_insns_skipped from current tuning.
1049
1050 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1051
1052 * doc/install.texi (Options specification): Document --with-specs.
1053
1054 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1055
1056 * config/arm/neon.md (orndi3_neon): Actually split it.
1057
1058 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1059
1060 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1061 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1062
1063 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1064
1065 PR debug/47590
1066 * target.def (delay_sched2, delay_vartrack): New.
1067 * doc/tm.texi.in: Update.
1068 * doc/tm.texi: Rebuild.
1069 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1070 * var-tracking.c (gate_handle_var_tracking): Likewise.
1071 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1072 (bfin_flag_var_tracking): Drop.
1073 (output_file_start): Don't save and override flag_var_tracking.
1074 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1075 (bfin_reorg): Test original variables.
1076 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1077 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1078 (ia64_flag_var_tracking): Drop.
1079 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1080 (ia64_file_start): Don't save and override flag_var_tracking.
1081 (ia64_override_options_after_change): Ditto
1082 flag_schedule_insns_after_reload.
1083 (ia64_reorg): Test original variables.
1084 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1085 (picochip_flag_var_tracking): Drop.
1086 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1087 (picochip_option_override): Don't save and override
1088 flag_schedule_insns_after_reload.
1089 (picochip_asm_file_start): Ditto flag_var_tracking.
1090 (picochip_reorg): Test original variables.
1091 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1092 (TARGET_DELAY_VARTRACK): Define.
1093 (spu_var_tracking): New.
1094 (spu_machine_dependent_reorg): Call it.
1095 (asm_file_start): Don't save and override flag_var_tracking.
1096
1097 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1098
1099 PR target/49163
1100 * config/sh/predicates.md (general_movsrc_operand): Return 0
1101 for memory and memory subreg of which address is an invalid
1102 indexed address for QI and HImode.
1103 (general_movdst_operand): Likewise.
1104
1105 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1106
1107 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1108 edges only, when there is a non-local label in the function.
1109 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1110
1111 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1112
1113 * config/i386/constraints.md (Y3): New register constraint.
1114 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1115 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1116 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1117 *sse2_interleave_lowv2df.
1118
1119 2011-06-02 Julian Brown <julian@codesourcery.com>
1120
1121 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1122 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1123 (arm_cortex_a5_tune): New.
1124
1125 2011-06-02 Julian Brown <julian@codesourcery.com>
1126
1127 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1128 * config/arm/arm.c (arm_default_branch_cost): New.
1129 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1130 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1131 (arm_fa726_tune): Set branch_cost field using
1132 arm_default_branch_cost.
1133 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1134 current_tune structure.
1135 * dojump.c (tm_p.h): Include file.
1136
1137 2011-06-02 Julian Brown <julian@codesourcery.com>
1138
1139 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1140 tuning.
1141 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1142 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1143 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1144 field.
1145 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1146 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1147 (arm_fa726te_tune): Add prefer_constant_pool setting.
1148 (arm_v6t2_tune, arm_cortex_tune): New.
1149 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1150 prefer_constant_pool setting.
1151
1152 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1153
1154 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1155 switch statement.
1156 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1157 (*movdf_internal) <case 6,7,8>: Ditto.
1158
1159 * config/i386/constraints.md (Y4): New register constraint.
1160 * config/i386/sse.md (vec_set<mode>_0): Merge with
1161 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1162 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1163 *vec_extractv2di_1_sse.
1164 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1165 and *vec_concatv2di_rex64_sse.
1166
1167 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1168
1169 PR target/48807
1170 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1171 of cgraph_local_info for null before attempting to use it.
1172
1173 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1174
1175 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1176 (current_function_dynamic_alloc_count): Delete.
1177 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1178 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1179 (expand_builtin_update_setjmp_buf): Remove dead code.
1180 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1181 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1182 support.
1183 * function.c (instantiate_virtual_regs): Likewise.
1184 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1185 for a block with a single abnormal incoming edge.
1186 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1187 (SETJMP_VIA_SAVE_AREA): Delete.
1188 * config/sparc/sparc-protos.h (load_got_register): Declare.
1189 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1190 (load_got_register): Make global.
1191 (sparc_frame_pointer_required): Add 'static'.
1192 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1193 (sparc_builtin_setjmp_frame_value): New function.
1194 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1195 (save_stack_nonlocal): New expander.
1196 (restore_stack_nonlocal): Likewise.
1197 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1198 (nonlocal_goto_internal): New insn.
1199 (goto_handler_and_restore): Delete.
1200 (builtin_setjmp_setup): Likewise.
1201 (do_builtin_setjmp_setup): Likewise.
1202 (setjmp): Likewise.
1203 (builtin_setjmp_receiver): New expander.
1204
1205 2011-06-01 David Li <davidxl@google.com>
1206
1207 PR middle-end/49261
1208 * tree-pretty-print.c (dump_function_header): Format cleanup.
1209
1210 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1211
1212 PR target/49238
1213 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1214 needed when original operands are used for msw_skip comparison.
1215
1216 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1217
1218 PR debug/49250
1219 * var-tracking.c (add_uses, add_stores): Don't call
1220 cselib_subst_to_values on ENTRY_VALUE.
1221
1222 2011-06-01 Diego Novillo <dnovillo@google.com>
1223
1224 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1225 output_record_start with LTO_null instead of output_zero.
1226 (lto_output_ts_binfo_tree_pointers): Likewise.
1227 (lto_output_tree): Likewise.
1228 (output_eh_try_list): Likewise.
1229 (output_eh_region): Likewise.
1230 (output_eh_lp): Likewise.
1231 (output_eh_regions): Likewise.
1232 (output_bb): Likewise.
1233 (output_function): Likewise.
1234 (output_unreferenced_globals): Likewise.
1235 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1236 instead of NUM_TREE_CODES.
1237 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1238 (lto_output_int_in_range): Change << to >> when shifting VAL.
1239
1240 2011-06-01 Diego Novillo <dnovillo@google.com>
1241
1242 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1243 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1244
1245 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1246
1247 PR target/45074
1248 * optabs.h (valid_multiword_target_p): Declare.
1249 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1250 doing multi-word operations.
1251 * optabs.c (expand_binop): Likewise.
1252 (expand_doubleword_bswap): Likewise.
1253 (expand_absneg_bit): Likewise.
1254 (expand_unop): Likewise.
1255 (expand_copysign_bit): Likewise.
1256 (multiword_target_p): New function.
1257
1258 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1259
1260 PR rtl-optimization/48830
1261 PR rtl-optimization/48808
1262 PR rtl-optimization/48792
1263 * reload.c (push_reload): Check contains_reg_of_mode.
1264 * reload1.c (strip_paradoxical_subreg): New function.
1265 (gen_reload_chain_without_interm_reg_p): Use it to handle
1266 paradoxical subregs.
1267 (emit_output_reload_insns, gen_reload): Likewise.
1268
1269 2011-06-01 David Li <davidxl@google.com>
1270
1271 * predict.c : Change pass name
1272 * ipa.c: Ditto.
1273 * dce.c: Ditto.
1274 * tree-profile.c: Ditto.
1275 * except.c: Ditto.
1276
1277 2011-06-01 David Li <davidxl@google.com>
1278
1279 * tree-pretty-print.c (dump_function_header): New function.
1280 * final.c (rest_of_clean_state): Use header dumper.
1281 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1282 * passes.c (pass_init_dump_file): Use header dumper.
1283
1284 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1285
1286 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1287 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1288 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1289 New functions.
1290 (mem_loc_descriptor): Use them.
1291
1292 * var-tracking.c (create_entry_value): New function.
1293 (vt_add_function_parameter): Use it.
1294
1295 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1296
1297 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1298 Include <signal.h>, <ucontext.h>.
1299 (sigill_caught): Define.
1300 (sigill_hdlr): New function.
1301 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1302 insns can be executed.
1303 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1304 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1305
1306 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1307
1308 * config/t-slibgcc-darwin: Move to ...
1309 * config/t-slibgcc-dummy: ... this. Clarify comments.
1310 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1311 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1312 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1313 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1314 Remove i386/t-crtstuff from tmake_file.
1315 (i[34567]86-*-solaris2*): Remove t-svr4,
1316 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1317 t-slibgcc-dummy.
1318 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1319 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1320 sparc/t-crtfm from tmake_file.
1321 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1322 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1323 Remove extra_parts.
1324 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1325 * config/i386/t-nwld (SHLIB_LINK): Remove.
1326 * config/i386/t-rtems-i386: Rename to ...
1327 * config/i386/t-rtems: ... this.
1328 ($(T)crti.o, $(T)crtn.o): Remove.
1329 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1330 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1331 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1332 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1333 EXTRA_MULTILIB_PARTS): Remove.
1334 * config/sparc/t-sol2-64: Likewise.
1335 * config/sparc/t-sol2: Remove.
1336 * config/sparc/t-crtin: Remove.
1337 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1338 * config/i386/gmon-sol2.c: Remove.
1339 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1340 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1341 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1342 * config/i386/sol2-gc1.asm: Remove.
1343 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1344 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1345 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1346 * config/t-slibgcc-sld: Remove.
1347
1348 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1349
1350 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1351 base_type_for_mode with op_mode instead of mode.
1352
1353 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1354
1355 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1356 Cortex-A15.
1357 * config/arm/arm-tune.md: Regenerate.
1358 * config/arm/arm-tables.opt: Regenerate.
1359 * config/arm/arm.c (FL_DIV): Rename...
1360 (FL_THUMB_DIV): ... to this.
1361 (FL_ARM_DIV): Define.
1362 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1363 (arm_arch_hwdiv): Remove.
1364 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1365 (arm_issue_rate): Add cortexr5.
1366 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1367 __ARM_ARCH_EXT_IDIV__.
1368 (TARGET_IDIV): Define.
1369 (arm_arch_hwdiv): Remove.
1370 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1371 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1372 (divsi3, udivsi3): New patterns.
1373 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1374 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1375
1376 2011-06-01 Martin Jambor <mjambor@suse.cz>
1377
1378 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1379 * ipa-utils.c (searchc): Set scc_no.
1380
1381 2011-06-01 Martin Jambor <mjambor@suse.cz>
1382
1383 * ipa-utils.c (searchc_env): New field allow_overwritable.
1384 (searchc): do not ignore edges to overwritable nodes if indicated
1385 by env->allow_overwritable.
1386 (ipa_reduced_postorder): Set env.allow_overwritable.
1387
1388 2011-06-01 Richard Guenther <rguenther@suse.de>
1389
1390 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1391 char_type_node.
1392 * lto-streamer.c (lto_record_common_node): Take node pointer,
1393 do not register types.
1394 (lto_preload_common_nodes): Explicitly skip preloading nodes
1395 that differ between frontends.
1396
1397 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1398
1399 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1400 NON_FLOAT_REGS.
1401
1402 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1403
1404 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1405 parameter value for dump. Dump cost on outermost call only.
1406 (rs6000_memory_move_cost): Dump cost on outermost call only.
1407
1408 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1409
1410 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1411 DW_OP_GNU_convert ops.
1412
1413 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1414 cselib_preserve_constants.
1415 (cselib_lookup_1): If cselib_preserve_constants,
1416 a new VALUE is being created for REG and there is a VALUE for the
1417 same register in wider mode, add another loc with lowpart SUBREG of
1418 the wider VALUE.
1419 (cselib_subst_to_values): Handle ENTRY_VALUE.
1420 * var-tracking.c (replace_expr_with_values): Return NULL for
1421 ENTRY_VALUE too.
1422 * dwarf2out.c (convert_descriptor_to_signed): New function.
1423 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1424 instead of two shifts.
1425 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1426 the right mode if needed.
1427 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1428 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1429 convert_descriptor_to_signed.
1430 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1431 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1432
1433 PR target/48688
1434 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1435
1436 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1437
1438 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1439 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1440 (SWI248x): New mode iterator, rename from X87MODEI.
1441 (X87MODEI): Remove mode iterator.
1442 (X87MODEI12): Ditto.
1443 (SSEMODEI24): Ditto.
1444
1445 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1446
1447 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1448 * doc/invoke.texi: Document max-vartrack-expr-depth.
1449 * var-tracking.c (EXPR_DEPTH): New.
1450 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1451
1452 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1453
1454 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1455 * config/i386/sse.md: Add n to negated FMA pattern names.
1456
1457 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1458
1459 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1460
1461 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1462
1463 * gengtype-state.c (read_state_params_structs): Initialize previous.
1464
1465 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1466
1467 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1468 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1469
1470 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1471
1472 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1473 registers. Penalize F*r->o alternative to prevent partial memory
1474 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1475 CONST_DOUBLE immediates when optimizing function for size. Do not move
1476 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1477 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1478 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1479 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1480 alternatives.
1481 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1482
1483 (fp_register_operand splitters): Use fp_register_operand
1484 constraint. Do not use FP_REG_P in insn condition.
1485 (any_fp_register_operand splitters): Use any_fp_register_operand
1486 constraint. Do not use ANY_FP_REG_P in insn condition.
1487
1488 2011-05-31 Jan Hubicka <jh@suse.cz>
1489
1490 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1491 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1492 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1493 (lto_output_edge): Use output_enum and var_len_unsigned.
1494 (lto_output_varpool_node): Likewise.
1495 (input_overwrite_node): Do not take resolution parameter;
1496 extract it from a bitpack.
1497 (input_node): Do not read resolution; use input_enum and
1498 var_len_unsigned.
1499 (input_varpool_node): Likewise.
1500 (input_edge): Likewise.
1501 (input_cgraph_1): Likewise.
1502
1503 2011-05-31 Richard Guenther <rguenther@suse.de>
1504
1505 * gimple.c (gimple_register_canonical_type): Do not register
1506 any types via gimple_register_type.
1507
1508 2011-05-31 Jan Hubicka <jh@suse.cz>
1509
1510 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1511 of thunks.
1512
1513 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1514
1515 PR rtl-optimization/49235
1516 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1517 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1518
1519 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1520
1521 PR tree-optimization/49093
1522 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1523 data references.
1524
1525 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1526
1527 PR debug/49047
1528 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1529 for concrete functions containing the code of cloned functions.
1530
1531 2011-05-31 Richard Guenther <rguenther@suse.de>
1532
1533 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1534 to ...
1535 (forward_propagate_into_comparison_1): ... this.
1536 (forward_propagate_comparison): Rename to ...
1537 (forward_propagate_into_comparison): ... this. Split out
1538 real forward propagation code to ...
1539 (forward_propagate_comparison): ... this.
1540 (forward_propagate_into_gimple_cond): Remove looping.
1541 (forward_propagate_into_cond): Likewise.
1542 (simplify_not_neg_expr): Return whether we have done something.
1543 (simplify_gimple_switch): Likewise.
1544 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1545 (ssa_forward_propagate_and_combine): ... this. Re-structure
1546 to do a forward forward-propagation walk on BBs and a backward
1547 stmt combining walk on BBs. Consistently re-scan changed statements.
1548 (pass_forwprop): Adjust.
1549
1550 2011-05-30 Ian Lance Taylor <iant@google.com>
1551
1552 * godump.c (go_format_type): Correct length of name added to
1553 obstack for anonymous field.
1554
1555 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1556
1557 PR target/49186
1558 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1559 part of the second operand is 0.
1560
1561 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1562
1563 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1564 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1565 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1566 (*movdf_internal_rex64): Do not penalize F->r alternative.
1567 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1568 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1569 when optimizing function for size. Do not move CONST_DOUBLEs
1570 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1571 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1572 SUBREGs. Do not check for MEM_P operands in the insn condition,
1573 check for ANY_FP_REGNO_P instead.
1574 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1575 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1576 function for speed.
1577 * config/i386/i386.c (ix86_option_override_internal): Do not
1578 set TARGET_INTEGER_DFMODE_MOVES here.
1579
1580 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1581
1582 PR target/49168
1583 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1584
1585 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1586
1587 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1588 DW_TAG_rvalue_reference_type even for
1589 -gdwarf-4 -fno-debug-types-section.
1590
1591 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1592
1593 PR tree-optimization/46728
1594 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1595 (build_and_insert_binop): New.
1596 (gimple_expand_builtin_pow): Reorder args for
1597 build_and_insert_call; use build_and_insert_binop; add more
1598 optimizations for fractional exponents.
1599
1600 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1601
1602 PR bootstrap/49190
1603
1604 Revert:
1605 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1606
1607 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1608 tree_common.
1609 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1610 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1611 TS_BASE instead of TS_COMMON.
1612 * varasm.c (assemble_name): Remove assert.
1613
1614 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1615
1616 * config.gcc: Keep obselete list sorted.
1617
1618 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1619 Eric Botcazou <ebotcazou@adacore.com>
1620
1621 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1622 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1623 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1624 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1625 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1626
1627 2011-05-30 Richard Guenther <rguenther@suse.de>
1628
1629 * gimple.c (gimple_types_compatible_p_1): Compare record
1630 and union type members properly.
1631
1632 2011-05-30 Richard Guenther <rguenther@suse.de>
1633
1634 PR tree-optimization/49210
1635 * ipa-split.c (split_function): Care for the case where the call
1636 result is not trivially convertible to the result holding variable.
1637
1638 2011-05-30 Richard Guenther <rguenther@suse.de>
1639
1640 PR tree-optimization/49218
1641 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1642 overflow occured.
1643
1644 2011-05-30 Richard Guenther <rguenther@suse.de>
1645
1646 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1647 New function split out from ...
1648 (forward_propagate_into_gimple_cond): ... here. Adjust.
1649 (forward_propagate_into_cond): Likewise.
1650 (forward_propagate_comparison): Also propagate into
1651 comparisons on assignment RHS. Change return value to
1652 behave similar to forward_propagate_into_cond.
1653 (tree_ssa_forward_propagate_single_use_vars): Handle
1654 strict-overflow warnings properly for forward_propagate_comparison.
1655
1656 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1657
1658 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1659 from plugin linker.
1660 * configure: Regenerate.
1661
1662 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1663
1664 PR tree-optimization/49199
1665 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1666 non-reduction operands are either defined in the loop or by induction.
1667
1668 2011-05-29 Xinliang David Li <davidxl@google.com>
1669
1670 * opts-global.c (handle_common_deferred_options): Handle new options.
1671 * passes.c (register_one_dump_file): Call register_pass_name.
1672 (execute_one_pass): Check explicit enable/disable flag.
1673 (passr_hash): New function.
1674 (passr_eq): Ditto.
1675 (register_pass_name): Ditto.
1676 (get_pass_by_name): Ditto.
1677 (pass_hash): Ditto.
1678 (pass_eq): Ditto.
1679 (enable_pass): Ditto.
1680 (disable_pass): Ditto.
1681 (is_pass_explicitly_enabled_or_disabled): Ditto.
1682
1683 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1684
1685 * config/i386/i386.md (*movoi_internal_avx): Use
1686 standard_sse_constant_opcode for alternative 0.
1687 (*movti_internal_sse): Ditto.
1688 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1689 alternative 2.
1690 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1691 sselog1 type moves.
1692 (*movsi_internal): Ditto.
1693 (*movdi_internal): Ditto. Add ssecvt type moves.
1694
1695 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1696
1697 PR target/48830
1698 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1699
1700 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR rtl-optimization/49095
1703 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1704 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1705
1706 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1707
1708 PR target/43995
1709 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1710 recurse_p argument. Only follow register copies if it is set,
1711 and prevent mips_find_pic_call_symbol from recursing.
1712 (mips_find_pic_call_symbol): Add a recurse_p argument.
1713 Pass it to mips_pic_call_symbol_from_set.
1714 (mips_annotate_pic_calls): Update accordingly.
1715
1716 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1717
1718 * emit-rtl.c (try_split): Use a loop to search for
1719 NOTE_INSN_CALL_ARG_LOCATIONs.
1720
1721 2011-05-29 Richard Guenther <rguenther@suse.de>
1722
1723 PR tree-optimization/49217
1724 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1725
1726 2011-05-28 Jan Hubicka <jh@suse.cz>
1727
1728 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1729 length.
1730 (string_slot_free): Remove
1731 (create_output_block): Initialize obstack.
1732 (destroy_output_block): Free obstack.
1733 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1734 the string unless it needs to be added into the hash.
1735 (lto_output_string_with_length): Add persistent attribute;
1736 handle NULL strings.
1737 (lto_output_string): Add PERSISTENT parameter.
1738 (output_string_cst, output_identifier): Simplify.
1739 (lto_output_location_bitpack): Update.
1740 (lto_output_builtin_tree): Update.
1741 * lto-streamer.h (struct output_block): Add obstack.
1742 (lto_output_string, lto_output_string_with_length): Remove
1743 declarations; functions are static now.
1744
1745 2011-05-28 Jan Hubicka <jh@suse.cz>
1746
1747 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1748 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1749 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1750 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1751 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1752 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1753 unpack_ts_decl_with_vis_value_fields,
1754 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1755 lto_get_builtin_tree): Use enum and variable length i/o.
1756 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1757 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1758 New functions.
1759 (bp_pack_enum, bp_unpack_enum): New macros.
1760
1761 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1762
1763 * genrecog.c: Remove redundant forward declarations.
1764
1765 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1766
1767 * config.gcc: Deprecate mips*-*-openbsd*.
1768
1769 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1770
1771 PR bootstrap/49195
1772 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1773 for match_op_dup.
1774
1775 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1776
1777 PR middle-end/48981
1778 * gengtype.c (vec_prefix_type): New function.
1779 (note_def_vec): Use vec_prefix_type and change the length
1780 attribute to be based on the prefix.
1781 * vec.c: Include coretypes.h before vec.h.
1782 (struct vec_prefix): Remove.
1783 (vec_gc_p_reserve): Change the offsetof to sizeof.
1784 (vec_gc_p_reserve_exact): Likewise.
1785 (vec_heap_p_reserve): Likewise.
1786 (vec_heap_p_reserve_exact): Likewise.
1787 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1788 (vec_stack_p_reserve): Change the offsetof to sizeof.
1789 (vec_stack_p_reserve_exact): Likewise.
1790 * vec.h (struct vec_prefix): New struct definition.
1791 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1792 (VEC_T_GTY(T,B)): Likewise.
1793 (DEF_VEC_FUNC_P(T)): Use prefix field.
1794 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1795 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1796
1797 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1798
1799 PR tree-optimization/46728
1800 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1801 (powi_as_mults): Add gimple_set_location.
1802 (build_and_insert_call): New.
1803 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1804 0.5, 0.25, 0.75, 1./3., or 1./6.
1805
1806 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1807
1808 * doc/contrib.texi: Update copyright years.
1809 (Contributors): Add Zdenek Sojka.
1810
1811 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1812
1813 * c-decl.c (c_push_function_context): Copy the current statement
1814 list stack.
1815 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1816 (finish_struct): Call building_stmt_list_p instead of checking
1817 cur_stmt_list.
1818 * c-parser.c (c_parser_postfix_expression): Likewise.
1819 * c-typeck.c (c_end_compound_stmt): Likewise.
1820 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1821 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1822 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1823 (free_stmt_list): Likewise.
1824 * tree.h (struct tree_statement_list): Include typed_tree instead
1825 of tree_common.
1826 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1827 as TS_TYPED instead of TS_COMMON.
1828
1829 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1830 Uros Bizjak <ubizjak@gmail.com>
1831
1832 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1833 (HAVE_AS_IX86_TLSGDPTL): Define.
1834 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1835 (HAVE_AS_IX86_TLSLDMPLT): Define.
1836 * configure: Regenerate.
1837 * config.in: Regenerate.
1838 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1839 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1840 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1841 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1842 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1843 @tlsldmplt or @plt.
1844 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1845
1846 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1847
1848 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1849 and reverse_cond.
1850 (INSN_COND, INSN_REVERSE_COND): New macros.
1851 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1852 once.
1853 (sched_get_condition_with_rev): Cache the results, and look them up
1854 if possible.
1855 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1856 are clobbered by the current insn.
1857 * target.def (exposed_pipline): New sched data hook.
1858 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1859 * doc/tm.texi: Regenerate.
1860
1861 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1862
1863 PR tree-optimization/49170
1864 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1865 sincos or cexp.
1866
1867 2011-05-27 Richard Guenther <rguenther@suse.de>
1868
1869 PR middle-end/49189
1870 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1871 of comparisons.
1872
1873 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1874
1875 * haifa-sched.c (sched_scan_info): Remove.
1876 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1877 with NULL args.
1878 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1879 Remove functions.
1880 (sched_scan): Remove.
1881 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1882 static. All callers changed.
1883 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1884 static. All callers changed.
1885 (sched_init_luids): Remove all arguments except the first. All
1886 callers changed. Don't use sched_scan.
1887 (haifa_init_h_i_d): Likewise.
1888 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1889 manually rather than using sched_init_luids. Likewise with
1890 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1891 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1892 rather than sched_init_luids with NULL args.
1893 * sel-sched-ir.c (new_insns): Remove variable.
1894 (sched_scan): New static function, previously in haifa-sched.c. Remove
1895 all arguments but the first two; all callers changed.
1896 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1897 rather than sched_init_luids.
1898 (sel_init_bbs): Remove second argument. All callers changed.
1899 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1900 with NULL arguments.
1901 (create_insn_rtx_from_pattern): Likewise.
1902 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1903 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1904 (sched_init_insn_luid, sched_extend_luids): Declare.
1905 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1906 declarations.
1907
1908 2011-05-27 Richard Guenther <rguenther@suse.de>
1909
1910 PR middle-end/49177
1911 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1912 A CMP B ? (T) true : (T) false for non-integral types T again.
1913
1914 2011-05-27 Jan Hubicka <jh@suse.cz>
1915
1916 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1917 so 0 means NULL string.
1918 (lto_output_string_with_length): ... here.
1919 (lto_output_string, output_string_cst, output_identifier): Update
1920 handling of NULL strings.
1921 (lto_output_location_bitpack): New function.
1922 (lto_output_location): Use it.
1923 (lto_output_tree_ref): Use output_record_start.
1924 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1925 len values.
1926 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1927 values by 1.
1928 (input_string_internal): ... here;
1929 (input_string_cst, input_identifier, lto_input_string): Update handling
1930 of NULL strings.
1931 (lto_input_location_bitpack): New function
1932 (lto_input_location): Use it.
1933 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1934 values.
1935 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1936 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1937 (bp_pack_value): Sanity check the value range.
1938 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1939 New functions.
1940 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1941 New functions.
1942
1943 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1944
1945 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1946 call_arg_location instructions down the floor.
1947
1948 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1949
1950 PR rtl-optimization/49154
1951 * ira.c (setup_pressure_classes): Process class without sublcasses
1952 as a candidate for pressure classes.
1953
1954 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1955
1956 PR rtl-optimization/48575
1957 * genrecog.c (position_type): New enum.
1958 (position): New structure.
1959 (decision): Use position structure instead of a string.
1960 (root_pos, peep2_insn_pos_list): New variables.
1961 (next_position, compare_positions): New functions.
1962 (new_decision): Use position structures instead of strings.
1963 (maybe_both_true): Likewise.
1964 (change_state): Likewise.
1965 (write_tree): Likewise.
1966 (make_insn_sequence): Likewise.
1967
1968 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1969
1970 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1971 TS_BASE instead of TS_COMMON.
1972 (find_decls_types_r): Check for TS_TYPED structure before looking at
1973 TREE_TYPE.
1974 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1975 Add chain field.
1976 (BLOCK_CHAIN): Use new chain field.
1977
1978 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1979
1980 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1981 moves expensive on Power7 also.
1982
1983 2011-05-26 Richard Guenther <rguenther@suse.de>
1984
1985 * fold-const.c (fold_unary_loc): Remove bogus code.
1986
1987 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1988
1989 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1990 tree_common.
1991 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1992 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1993 TS_BASE instead of TS_COMMON.
1994 * varasm.c (assemble_name): Remove assert.
1995
1996 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1997
1998 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1999 substituted first.
2000 * libgcc-std.ver: Delete file.
2001
2002 2011-05-26 Richard Guenther <rguenther@suse.de>
2003
2004 PR tree-optimization/48702
2005 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2006 only when we know the base address is within bounds.
2007 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2008 assume the base address of TARGET_MEM_REFs is in bounds.
2009
2010 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2011
2012 PR target/49099
2013 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2014 declaration in TARGET_SOLARIS.
2015
2016 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2017
2018 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2019 The instruction is then expanded explicitly.
2020 (supported_compare): Callable instruction.
2021 (compare): Likewise.
2022
2023 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2024
2025 PR c++/49165
2026 * gimplify.c (shortcut_cond_r): Don't special case
2027 COND_EXPRs if they have void type on one of their arms.
2028
2029 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2030
2031 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2032 to reduce duplication, and to achieve a slightly more logical order
2033 of operations.
2034
2035 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2036
2037 PR tree-optimization/49161
2038 * tree-vrp.c (struct case_info): New type.
2039 (compare_case_labels): Sort case_info structs instead of
2040 trees, and not primarily by CASE_LABEL uids but by
2041 label_for_block indexes.
2042 (find_switch_asserts): Put case labels into struct case_info
2043 array instead of TREE_VEC, adjust sorting, compare label_for_block
2044 values instead of CASE_LABELs.
2045
2046 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2047
2048 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2049 ("orndi3_neon"): Likewise.
2050 ("bic<mode>3_neon"): Likewise.
2051
2052 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2053
2054 PR tree-optimization/49038
2055 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2056 Ensure at least one epilogue iteration if required by data
2057 accesses with gaps.
2058 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2059 to mark loops that require peeling for gaps.
2060 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2061 (vect_get_known_peeling_cost): Take peeling for gaps into
2062 account.
2063 (vect_transform_loop): Generate epilogue if required by data
2064 access with gaps.
2065 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2066 loop as requiring an epilogue if there are gaps in the end of
2067 the strided group.
2068
2069 2011-05-25 Ian Lance Taylor <iant@google.com>
2070
2071 * godump.c (go_format_type): Output the first field with a usable
2072 Go type, if any.
2073
2074 2011-05-25 Ian Lance Taylor <iant@google.com>
2075
2076 * godump.c (go_format_type): Check for invalid type names, pointer
2077 target types, and struct field types.
2078
2079 2011-05-25 Jason Merrill <jason@redhat.com>
2080
2081 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2082
2083 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2084
2085 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2086
2087 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2088
2089 * config/i386/i386.md (*movqi_extv_1)): Put back
2090 "register_operand" check in "type" calculation.
2091 (*movqi_extzv_2): Likewise.
2092
2093 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2096
2097 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2098
2099 PR bootstrap/49160
2100 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2101 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2102 __divxc3, __divtc3): Wrap definitions in #ifndef.
2103
2104 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2105
2106 PR target/49142
2107 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2108 "register_operand" check and replace q_regs_operand with
2109 QIreg_operand in "type" calculation.
2110 (*movqi_extv_1): Likewise.
2111 (*movqi_extzv_2_rex64): Likewise.
2112 (*movqi_extzv_2): Likewise.
2113
2114 * config/i386/predicates.md (QIreg_operand): New.
2115
2116 2011-05-25 Richard Guenther <rguenther@suse.de>
2117
2118 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2119 type-based offset disambiguation, streamline MEM_REF and
2120 TARGET_MEM_REF handling.
2121
2122 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2125 (bdesc_special_args): Add pause intrinsic.
2126
2127 * config/i386/i386.md (UNSPEC_PAUSE): New.
2128 (pause): Likewise.
2129 (*pause): Likewise.
2130 * config/i386/ia32intrin.h (__pause): Likewise.
2131
2132 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2133 pause intrinsic.
2134
2135 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2136
2137 PR tree-optimization/46728
2138 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2139 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2140
2141 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2142
2143 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2144 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2145 instead of TS_COMMON.
2146
2147 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2148
2149 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2150 LIBGCC2_GNU_PREFIX is defined.
2151 (__N): New macro.
2152 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2153 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2154 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2155 __clz_tab): Define using __N.
2156 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2157 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2158 * target.def (libfunc_gnu_prefix): New hook.
2159 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2160 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2161 * doc/tm.texi: Regenerate.
2162 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2163 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2164 account.
2165 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2166 (init_optabs): Likewise for the bswap libfuncs.
2167 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2168 and divide.
2169 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2170 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2171 * libgcc-std.ver: Remove.
2172 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2173 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2174 libgcc-std.ver.
2175 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2176 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2177 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2178 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2179 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2180 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2181 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2182 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2183 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2184 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2185
2186 2011-05-25 Jan Hubicka <jh@suse.cz>
2187
2188 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2189 (lto_output_tree): Use output_record_start.
2190 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2191 (lto_get_pickled_tree): Use input_record_start.
2192 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2193 (lto_value_range_error): New function.
2194 * lto-streamer.h (lto_value_range_error): Declare.
2195 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2196 (lto_output_enum, lto_input_enum): New macros.
2197
2198 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2199
2200 * common.opt (flag_stack_usage_info): New variable.
2201 (-Wstack-usage): New option.
2202 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2203 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2204 <OPT_fstack_usage>: Likewise.
2205 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2206 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2207 of flag_stack_usage.
2208 (emit_library_call_value_1): Likewise.
2209 * explow.c (allocate_dynamic_stack_space): Likewise.
2210 * function.c (instantiate_virtual_regs ): Likewise.
2211 (prepare_function_start): Likewise.
2212 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2213 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2214 * config/arm/arm.c (arm_expand_prologue): Likewise.
2215 (thumb1_expand_prologue): Likewise.
2216 * config/avr/avr.c (expand_prologue): Likewise.
2217 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2218 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2219 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2220 * config/mips/mips.c (mips_expand_prologue): Likewise.
2221 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2222 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2223 * config/s390/s390.c (s390_emit_prologue): Likewise.
2224 * config/sh/sh.c (sh_expand_prologue): Likewise.
2225 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2226 * config/spu/spu.c (spu_expand_prologue): Likewise.
2227
2228 2011-05-25 Richard Guenther <rguenther@suse.de>
2229
2230 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2231 (gimple_canonical_types_compatible_p): Likewise.
2232
2233 2011-05-25 Jan Hubicka <jh@suse.cz>
2234
2235 PR middle-end/49062
2236 * ipa.c (function_and_variable_visibility): Only add to same
2237 comdat group list if DECL_ONE_ONLY.
2238
2239 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2240
2241 PR rtl-optimization/49014
2242 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2243
2244 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2245
2246 PR target/49128
2247 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2248
2249 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2250
2251 PR rtl-optimization/48757
2252 * ira-build.c (loop_with_eh_edge_p): Rename to
2253 loop_with_complex_edge_p, check edges on complexity, make function
2254 conditional.
2255 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2256 conditional.
2257
2258 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2259
2260 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2261 force flag_ira_share_save_slots to 0.
2262
2263 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2264
2265 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2266 (vt_initialize): Set PROLOGUE_BB unconditionally.
2267 Add block comment about CFA_BASE_RTX machinery.
2268 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2269 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2270
2271 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2272
2273 PR objc/48187
2274 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2275 parsing of syntax error in ObjC instance variable lists. In
2276 particular, avoid an infinite loop if there is a stray ']'.
2277 Updated error message.
2278
2279 2011-05-24 Ian Lance Taylor <iant@google.com>
2280
2281 * godump.c (go_define): Don't accept a string immediately after
2282 another operand.
2283
2284 2011-05-24 Ian Lance Taylor <iant@google.com>
2285
2286 * godump.c (struct godump_container): Add invalid_hash field.
2287 (go_format_type): Return false if type is found in invalid_hash.
2288 (go_output_typedef): Add invalid type to invalid_hash.
2289 (go_finish): Create and delete invalid_hash.
2290
2291 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2292
2293 PR tree-optimization/46728
2294 * tree-ssa-math-opts.c (powi_table): New.
2295 (powi_lookup_cost): New.
2296 (powi_cost): New.
2297 (powi_as_mults_1): New.
2298 (powi_as_mults): New.
2299 (gimple_expand_builtin_powi): New.
2300 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2301 (gate_cse_sincos): Remove sincos/cexp restriction.
2302
2303 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2304
2305 PR target/3746
2306 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2307 mips-tdump native.
2308 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2309 * mips-tdump.c: Likewise.
2310
2311 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2312
2313 PR target/49128
2314 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2315 add -mno-XXX. Handle FMA.
2316
2317 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2318
2319 PR rtl-optimization/48633
2320 * ira-build.c (loop_with_eh_edge_p): New function.
2321 (mark_loops_for_removal): Use it.
2322
2323 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2324
2325 PR rtl-optimization/48971
2326 * ira.c (setup_pressure_classes): Don't check register move cost
2327 for classes with one registers. Don't add pressure class if there
2328 is a pressure class with the same available hard registers.
2329 Check contains_reg_of_mode. Fix a typo in collecting
2330 temp_hard_regset. Ignore hard registers not belonging to a class.
2331
2332 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2333
2334 PR target/49133
2335 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2336
2337 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2338 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2339
2340 PR gcov-profile/48845
2341 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2342
2343 2011-05-24 Richard Guenther <rguenther@suse.de>
2344
2345 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2346 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2347 (gimple_types_compatible_p_1): Adjust.
2348 (iterative_hash_canonical_type): Do not bother about complete vs.
2349 incomplete types.
2350 (gimple_canonical_types_compatible_p): Likewise.
2351
2352 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2353
2354 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2355
2356 2011-05-24 Richard Guenther <rguenther@suse.de>
2357
2358 PR bootstrap/49078
2359 * gimple.c (gimple_register_canonical_type): Revert
2360 previous change.
2361 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2362 does not for a tree for the case where it matters. Cache
2363 pointer-type alias-sets.
2364
2365 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2366
2367 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2368 (OBJS): Remove options.o, opts-common.o and prefix.o.
2369 (OBJS-libcommon-target): New.
2370 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2371 (BACKEND): Include libcommon-target.a.
2372 (MOSTLYCLEANFILES): Include libcommon-target.a.
2373 (libcommon-target.a): New.
2374 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2375 prefix.o.
2376
2377 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2378
2379 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2380 parts of output shared with the driver.
2381 * optc-gen.awk: Don't generate parts of output not shared with the
2382 driver.
2383 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2384 * doc/options.texi (SourcerInclude): Mention options-save.c.
2385 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2386 (OBJS): Add options-save.o.
2387 (options-save.c, options-save.o): New.
2388 (options.o): Update dependencies.
2389 (gcc-options.o): Remove.
2390 (mostlyclean): Remove options-save.c.
2391
2392 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2393
2394 PR debug/49032
2395 * dbxout.c: Include cgraph.h.
2396 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2397 and without value expr, return NULL if no varpool node exists for
2398 it or if it is not needed.
2399 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2400
2401 PR c/49120
2402 * c-decl.c (start_decl): Convert expr to void_type_node.
2403
2404 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2405
2406 PR rtl-optimization/48826
2407 * emit-rtl.c (try_split): When splitting a call that is followed
2408 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2409
2410 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2411
2412 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2413 parameters passed in memory prefer using DECL_INCOMING_RTL over
2414 the pseudos it will be copied into.
2415
2416 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2417
2418 PR target/47315
2419 * config/i386/i386.c (ix86_option_override_internal): Save the
2420 initial options after checking vzeroupper.
2421
2422 2011-05-23 David Li <davidxl@google.com>
2423
2424 PR tree-optimization/48988
2425 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2426 Initialize has_valid_pred for each pred chain.
2427
2428 2011-05-23 Richard Guenther <rguenther@suse.de>
2429
2430 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2431 (iterative_hash_gimple_type): Always hash type names.
2432
2433 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2434
2435 * c-typeck.c (build_function_call_vec): Tweak call to
2436 check_function_arguments.
2437
2438 2011-05-23 Richard Guenther <rguenther@suse.de>
2439
2440 PR tree-optimization/49115
2441 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2442 is not necessarily carried out, do not claim it kills the ref.
2443 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2444
2445 2011-05-23 Richard Guenther <rguenther@suse.de>
2446
2447 PR middle-end/15419
2448 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2449 what pointer types we accept for folding.
2450
2451 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2452
2453 * gthr-gnat.c: Remove.
2454 * gthr-gnat.h: Remove.
2455 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2456 * config/t-freebsd (LIB2ADDEH): Likewise.
2457 * config/t-linux (LIB2ADDEH): Likewise.
2458 * config/t-sol2 (LIB2ADDEH): Likewise.
2459 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2460 * configure.ac (target_thread_file): Remove gnat handling.
2461 * configure: Regenerate.
2462 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2463
2464 2011-05-23 Tristan Gingold <gingold@adacore.com>
2465 Eric Botcazou <ebotcazou@adacore.com>
2466
2467 * gcov.c (create_file_names): If no object directory is specified,
2468 keep the directory of the file.
2469
2470 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2471
2472 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2473 * configure: Regenerate.
2474
2475 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2476
2477 PR middle-end/48973
2478 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2479 failed and the comparison has a single bit signed type, use
2480 constm1_rtx instead of const1_rtx for true value.
2481 (do_store_flag): If ops->type is single bit signed type, disable
2482 signel bit test optimization and pass -1 instead of 1 as last
2483 parameter to emit_store_flag_force.
2484
2485 2011-05-23 Tom de Vries <tom@codesourcery.com>
2486
2487 PR target/45098
2488 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2489 function.
2490 (infer_loop_bounds_from_undefined): Use new function.
2491
2492 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2493
2494 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2495 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2496 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2497 and -O0 otherwise.
2498 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2499
2500 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2501
2502 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2503 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2504 returns true.
2505
2506 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2507
2508 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2509
2510 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2511
2512 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2513 UNSPEC_MOVE_PIC pattern.
2514
2515 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2516
2517 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2518 (sparc-*-rtems*): Likewise.
2519 (sparc64-*-elf*): Likewise.
2520 (sparc64-*-rtems*): Likewise.
2521 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2522 * config/sparc/t-crtin: New file.
2523 * config/sparc/t-sol2 (crti.o): Delete rule.
2524 (crtn.o): Likewise.
2525 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2526 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2527 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2528 (ENDFILE_SPEC): Add crtn.o.
2529
2530 2011-05-22 Tom de Vries <tom@codesourcery.com>
2531
2532 PR middle-end/48689
2533 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2534 CODE_CONTAINS_STRUCT (TS_COMMON).
2535
2536 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2537
2538 PR middle-end/49029
2539 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2540 only after deciding which mode to use.
2541
2542 2011-05-22 Tom de Vries <tom@codesourcery.com>
2543
2544 PR target/45098
2545 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2546 for call to get_shiftadd_cost.
2547
2548 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2549
2550 PR target/49104
2551 * config/i386/cpuid.h (bit_MMXEXT): New define.
2552
2553 2011-05-22 Nick Clifton <nickc@redhat.com>
2554
2555 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2556 initialisation of non-existant args[2] element. Use args[] array
2557 not arg[] array to pass arguments to build_function_type_list.
2558
2559 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2560
2561 PR tree-optimization/49087
2562 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2563
2564 2011-05-21 Jason Merrill <jason@redhat.com>
2565
2566 PR c++/49092
2567 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2568 static storage duration.
2569
2570 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2571
2572 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2573 frame pointer.
2574
2575 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2576
2577 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2578 false if there are call-saved registers here...
2579 (sparc_can_use_return_insn_p): ...but here instead.
2580 (save_or_restore_regs): Fix thinko.
2581 (sparc_expand_prologue): Use current_function_is_leaf.
2582 (sparc_frame_pointer_required): Likewise.
2583
2584 2011-05-21 Nick Clifton <nickc@redhat.com>
2585
2586 PR target/49098
2587 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2588
2589 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2590
2591 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2592 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2593
2594 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2595
2596 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2597 * optc-gen.awk: Move common code to opt-read.awk.
2598 * opth-gen.awk: Likewise.
2599 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2600
2601 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2602
2603 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2604
2605 2011-05-20 Tom de Vries <tom@codesourcery.com>
2606
2607 PR target/45098
2608 * tree-ssa-loop-ivopts.c: Include expmed.h.
2609 (get_shiftadd_cost): New function.
2610 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2611
2612 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2613
2614 PR bootstrap/49086
2615 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2616 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2617
2618 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2619
2620 * Makefile.in: Update comment referring to $(OBJS-common).
2621
2622 2011-05-20 Ian Lance Taylor <iant@google.com>
2623
2624 * godump.c (go_output_typedef): Put enum constants in the macro
2625 hash table to avoid duplicate Go const definitions.
2626
2627 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2628
2629 * Makefile.in (LIBDEPS): Add libcommon.a.
2630 (LIBS): Likewise.
2631 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2632 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2633 pretty-print.o and version.o.
2634 (OBJS-libcommon): New.
2635 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2636 (BACKEND): Add libcommon.a.
2637 (MOSTLYCLEANFILES): Likewise.
2638 (libcommon.a): New.
2639 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2640 (cpp$(exeext)): Likewise.
2641 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2642 pretty-print.o and input.o.
2643 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2644 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2645 (errors.o): Remove.
2646 (mips-tfile): Don't explicitly use version.o.
2647 (mips-tdump): Likewise.
2648 (gcov.o): Depend on $(DIAGNOSTIC_H).
2649 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2650 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2651 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2652 * gcov-dump.c: Include intl.h and diagnostic.h.
2653 (main): Initialize diagnostics.
2654 * gcov.c: Include diagnostic.h.
2655 (fnotice): Remove.
2656 (main): Initialize diagnostics.
2657 * lto-wrapper.c: Include diagnostic.h.
2658 (main): Initialize diagnostics.
2659
2660 2011-05-20 Michael Matz <matz@suse.de>
2661
2662 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2663
2664 2011-05-20 Michael Matz <matz@suse.de>
2665 Richard Guenther <rguenther@suse.de>
2666
2667 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2668 use lto_streamer_cache_append directly instead of returning a VEC.
2669 (preload_common_node): Remove.
2670 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2671 track seen nodes.
2672 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2673
2674 2011-05-20 Richard Guenther <rguenther@suse.de>
2675
2676 PR tree-optimization/49079
2677 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2678 MEM_REFs correctly for the trailing array access detection.
2679 Special case constants the same way as decls for overall size
2680 constraining.
2681
2682 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2683
2684 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2685 argument expansion.
2686
2687 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2688
2689 PR tree-optimization/49073
2690 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2691 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2692 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2693
2694 2011-05-20 Richard Guenther <rguenther@suse.de>
2695
2696 PR middle-end/48849
2697 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2698 of pointer types the same way the middle-end does.
2699
2700 2011-05-20 Richard Guenther <rguenther@suse.de>
2701
2702 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2703 or pointer-to chains. Delay all fixup to uniquify_nodes.
2704
2705 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2706
2707 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2708 (fma4_fmaddsub): Likewise
2709
2710 2011-05-19 Jan Hubicka <jh@suse.cz>
2711
2712 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2713 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2714 (type_pair_cache): New static var.
2715 (lookup_type_pair): Use fixed sized custom hash; make inline.
2716 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2717 calls of lookup_type_pair.
2718 (print_gimple_types_stats): Remove cache stats.
2719 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2720 and gtc_ob.
2721
2722 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2723
2724 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2725 when TARGET_RDRND is active.
2726 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2727 Generate dummy SImode target register when target is NULL.
2728
2729 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2730
2731 * config/arm/arm-fpus.def: New.
2732 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2733 arm-fpus.def.
2734 * config/arm/arm-tables.opt: Regenerate.
2735 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2736 (arm_option_override): Don't decode FPU name to string here.
2737 * config/arm/arm.opt (mfpu=): Use Enum.
2738 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2739 Update dependencies.
2740
2741 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2742
2743 * collect2.c: Include diagnostic.h.
2744 (fatal_perror, fatal, error, fancy_abort): Remove.
2745 (main): Set progname. Call xmalloc_set_program_name and
2746 diagnostic_initialize.
2747 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2748 scan_libraries, resolve_lib_name): Call fatal_error instead of
2749 fatal and fatal_perror.
2750 * collect2.h (error, fatal, fatal_perror): Don't declare.
2751 * tlink.c: Include diagnostic-core.h.
2752 (recompile_files): Call fatal_error instead of fatal_perror.
2753 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2754 pretty-print.o and input.o.
2755 (collect2.o, tlink.o): Update dependencies.
2756
2757 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2758
2759 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2760
2761 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2762
2763 PR target/40483
2764 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2765 COMDAT group syntax, both SPARC and x86 variants.
2766 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2767 * configure: Regenerate.
2768 * config/sol2.h (TARGET_SOLARIS): Define.
2769 (PUSHSECTION_FORMAT): Remove.
2770 (SECTION_NAME_FORMAT): Define.
2771 * config/sol2.c: Include hashtab.h.
2772 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2773 expansion, using SECTION_NAME_FORMAT.
2774 (solaris_comdat_htab): New variable.
2775 (struct comdat_entry): Define.
2776 (comdat_hash): New function.
2777 (comdat_eq): New function.
2778 (solaris_elf_asm_comdat_section): New function.
2779 (solaris_define_comdat_signature): New function.
2780 (solaris_code_end): New function.
2781 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2782 (solaris_code_end): Declare.
2783 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2784 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2785 solaris_code_end.
2786 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2787 Remove ATTRIBUTE_UNUSED.
2788 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2789 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2790 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2791 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2792 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2793 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2794 (PUSHSECTION_FORMAT): Remove.
2795 (SECTION_NAME_FORMAT): Redefine.
2796
2797 2011-05-19 Kai Tietz <ktietz@redhat.com>
2798
2799 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2800 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2801 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2802
2803 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2804 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2805
2806 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2807
2808 2011-05-19 Richard Guenther <rguenther@suse.de>
2809
2810 PR middle-end/48985
2811 * tree-object-size.c (addr_object_size): If the pointed-to
2812 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2813
2814 2011-05-19 Richard Guenther <rguenther@suse.de>
2815
2816 * gimple.c (gimple_types_compatible_p_1): Compare names of
2817 the types themselves.
2818 (iterative_hash_gimple_type): And hash them that way.
2819 (gimple_register_type_1): If we register a main variant properly
2820 initialize the leader to ourselves.
2821
2822 2011-05-19 Tom de Vries <tom@codesourcery.com>
2823
2824 PR target/45098
2825 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2826 get_loop_invariant_expr_id.
2827 (get_loop_invariant_expr_id): Use get_expr_id.
2828 (parm_decl_cost): New function.
2829 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2830 Improve bound cost estimation. Use different inv_expr_id for elim and
2831 express cases.
2832
2833 2011-05-19 Tom de Vries <tom@codesourcery.com>
2834
2835 PR target/45098
2836 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2837 cost_base.cost == 0.
2838
2839 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2840
2841 PR target/49002
2842 * config/i386/sse.md
2843 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2844 load cast.
2845
2846 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2847
2848 PR tree-optimization/49039
2849 * tree-vrp.c (extract_range_from_binary_expr): For
2850 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2851 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2852
2853 2011-05-18 Tom de Vries <tom@codesourcery.com>
2854
2855 PR target/45098
2856 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2857
2858 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2859
2860 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2861 (*tls_global_dynamic_64): Ditto.
2862 (*tls_local_dynamic_base_32_gnu): Ditto.
2863 (*tls_local_dynamic_base_64): Ditto.
2864 (tls_initial_exec_64_sun): Ditto.
2865
2866 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2867
2868 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2869 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2870 bf592-none.
2871 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2872 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2873 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2874 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2875 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2876 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2877 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2878
2879 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2880
2881 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2882 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2883 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2884 target_thread_pointer, arm_structure_size_boundary, struct
2885 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2886 struct abi_name, arm_all_abis): Remove.
2887 (arm_option_override) Don't process most enumerated option values here.
2888 Don't process target_fpe_name here. Work with integer not string for
2889 structure size boundary; use separate diagnostics for each case.
2890 * config/arm/arm.h (enum float_abi_type, enum
2891 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2892 to arm-opts.h.
2893 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2894 arm_structure_size_boundary): Remove.
2895 * config/arm/arm.opt (mabi=): Use Enum and Init.
2896 (arm_abi_type): New Enum and EnumValue entries.
2897 (mfloat-abi=): Use Enum and Init.
2898 (float_abi_type): New Enum and EnumValue entries.
2899 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2900 (mfp16-format=): Use Enum and Init.
2901 (arm_fp16_format_type): New Enum and EnumValue entries.
2902 (mstructure-size-boundary=): Use UInteger and Init.
2903 (mtp=): Use Enum and Init.
2904 (arm_tp_type): New Enum and EnumValue entries.
2905
2906 2011-05-18 Richard Guenther <rguenther@suse.de>
2907
2908 PR tree-optimization/49018
2909 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2910 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2911 gimple_has_side_effects.
2912
2913 2011-05-18 Richard Guenther <rguenther@suse.de>
2914
2915 * gimple.c (gimple_register_type_1): New function, split out from ...
2916 (gimple_register_type): ... here. Avoid infinite recursion.
2917
2918 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2919
2920 PR tree-optimization/41881
2921 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2922 reduction_chains along with a macro for its access.
2923 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2924 (destroy_loop_vec_info): Free reduction chains.
2925 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2926 (vect_is_slp_reduction): New function.
2927 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2928 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2929 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2930 definition types for reduction chains.
2931 (vect_supported_load_permutation_p): Don't allow permutations for
2932 reduction chains.
2933 (vect_analyze_slp_instance): Support reduction chains.
2934 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2935 (vect_get_constant_vectors): Handle reduction chains.
2936 (vect_schedule_slp_instance): Mark the first statement of the
2937 reduction chain as reduction.
2938
2939 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2940
2941 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2942 names for group elements access.
2943 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2944 reduction chains as well. Remove data reference and interleaving
2945 related words from the fields names.
2946 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2947 elements access.
2948 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2949 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2950 vect_update_interleaving_chain, vect_same_range_drs,
2951 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2952 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2953 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2954 vect_analyze_group_access, vect_analyze_data_ref_access,
2955 vect_create_data_ref_ptr, vect_transform_strided_load,
2956 vect_record_strided_load_vectors): Likewise.
2957 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2958 vect_model_load_cost, vectorizable_store, vectorizable_load,
2959 vect_remove_stores, new_stmt_vec_info): Likewise.
2960 * tree-vect-slp.c (vect_build_slp_tree,
2961 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2962
2963 2011-05-18 Richard Guenther <rguenther@suse.de>
2964
2965 PR middle-end/48989
2966 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2967 operand verification.
2968 (verify_gimple_assign_binary): Likewise.
2969 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2970 to non-1-precision BOOLEAN_TYPEs.
2971
2972 2011-05-18 Tom de Vries <tom@codesourcery.com>
2973
2974 PR target/45098
2975 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2976
2977 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2978
2979 PR tree-optimization/49000
2980 * tree-ssa.c (execute_update_addresses_taken): Call
2981 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2982 be rewritten and decl has been marked for renaming, reset
2983 the debug stmt.
2984
2985 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2986
2987 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2988 enum_opts_set when testing if attributes have set -mfpmath=.
2989
2990 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2991
2992 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2993
2994 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2995
2996 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2997 info->entry with 0
2998 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2999 id.transform_lang_insert_block with NULL.
3000
3001 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3002
3003 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3004 (output_fp_compare): Change args 3 and 4 to bool.
3005 (ix86_expand_call): Change arg 6 to bool.
3006 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3007 (ix86_attr_length_vex_default): Change arg 3 to bool.
3008 * config/i386/i386.md: Update all uses.
3009 * config/i386/i386.c: Ditto.
3010 (ix86_flags_dependent): Change return type to bool.
3011
3012 2011-05-17 Richard Guenther <rguenther@suse.de>
3013
3014 * gimple.c (type_hash_pair_compare): Fix comparison.
3015
3016 2011-05-17 Richard Guenther <rguenther@suse.de>
3017
3018 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3019 case some more, fix final hash value of the non-singleton case.
3020
3021 2011-05-17 Richard Guenther <rguenther@suse.de>
3022
3023 PR bootstrap/49013
3024 Revert
3025 2011-05-16 Richard Guenther <rguenther@suse.de>
3026
3027 * gimple.c (gimple_types_compatible_p_1): Use names of the
3028 type itself, not its main variant.
3029 (iterative_hash_gimple_type): Likewise.
3030
3031 2011-05-17 Richard Guenther <rguenther@suse.de>
3032
3033 * gimple.c (gimple_register_canonical_type): Use the main-variant
3034 leader for computing the canonical type.
3035
3036 2011-05-17 Nick Clifton <nickc@redhat.com>
3037
3038 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3039 moves.
3040
3041 * config/rx/rx.md: Add peephole to remove redundant extensions
3042 after loads.
3043 (bitset_in_memory): Use rx_restricted_mem_operand.
3044 (bitinvert_in_memory): Likewise.
3045 (bitclr_in_memory): Likewise.
3046
3047 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3048 Nick Clifton <nickc@redhat.com>
3049
3050 * config/rx/rx.md: Add peepholes to match a register move followed
3051 by a comparison of the moved register. Replace these with an
3052 addition of zero that does both actions in one instruction.
3053
3054 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR target/48986
3057 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3058 predicate to allow CONST_INT.
3059 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3060
3061 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3062
3063 * opts-common.c (opt_enum_arg_to_value): New.
3064 * opts.h (opt_enum_arg_to_value): Declare.
3065 * config/i386/i386.opt (fpmath): Remove.
3066 (mfpmath=): Use Enum, Init and Save.
3067 (fpmath_unit): New Enum and EnumValue entries.
3068 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3069 name for function fpmath state.
3070 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3071 * config/i386/i386.c: Include diagnostic.h.
3072 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3073 (ix86_target_string): Take enum fpmath_unit value instead of string.
3074 (ix86_debug_options): Update call to ix86_target_string.
3075 (ix86_option_override_internal): Don't process fpmath strings here.
3076 (x86_function_specific_save, ix86_function_specific_restore):
3077 Don't handle fpmath state specially.
3078 (ix86_function_specific_print): Pass fpmath state to
3079 ix86_target_string instead of printing in this function.
3080 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3081 Handle enum attributes.
3082 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3083 (ix86_valid_target_attribute_tree): Update option_strings
3084 handling. Handle fpmath as enum option.
3085 (ix86_can_inline_p): Update field names for function fpmath state.
3086 (ix86_expand_builtin): Update call to ix86_target_string.
3087 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3088 (ix86_fpmath): Remove.
3089 * config/i386/t-i386 (i386.o): Update dependencies.
3090
3091 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3092
3093 PR preprocessor/48677
3094 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3095 from decoded_options[0], not from itself.
3096
3097 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3098
3099 * config/i386/constraints.md (z): New constraint.
3100 * config/i386/i386.c (c): New mode attribute.
3101 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3102 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3103 constraint for operand 0.
3104 (*call_vzeroupper): Ditto.
3105 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3106 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3107 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3108 Use "lzm" constraint for operand 0.
3109 (*call_pop_vzeroupper): Ditto.
3110 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3111 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3112 constraint for operand 0.
3113 (*sibcall_vzeroupper): Ditto.
3114 (*sibcall_rex64_ms_sysv): Ditto.
3115 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3116 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3117 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3118 (*sibcall_pop_vzeroupper): Ditto.
3119 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3120 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3121 mode iterator. Use "<c>zm" constraint for operand 1.
3122 (*call_value_vzeroupper): Ditto.
3123 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3124 for operand 1.
3125 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3126 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3127 *call_value_pop_1. Use "lzm" constraint for operand 1.
3128 (*call_value_pop_vzeroupper): Ditto.
3129 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3130 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3131 mode iterator. Use "Uz" constraint for operand 1.
3132 (*sibcall_value_vzeroupper): Ditto.
3133 (*sibcall_value_rex64_ms_sysv): Ditto.
3134 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3135 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3136 constraint for operand 1.
3137 (*sibcall_value_pop_vzeroupper): Ditto.
3138 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3139 and "z" constraint for operand 2.
3140 (*tls_global_dynamic_32_gnu): Ditto.
3141 (*tls_local_dynamic_base_32_gnu): Ditto.
3142 (*tls_local_dynamic_base_64): Ditto.
3143 (*tls_local_dynamic_32_once): Ditto.
3144 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3145 Update all callers.
3146 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3147
3148 2011-05-16 Richard Guenther <rguenther@suse.de>
3149
3150 * gimple.c (gimple_types_compatible_p_1): Use names of the
3151 type itself, not its main variant.
3152 (iterative_hash_gimple_type): Likewise.
3153
3154 2011-05-16 Richard Guenther <rguenther@suse.de>
3155
3156 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3157 always visit pointer target and function result and argument types.
3158
3159 2011-05-16 Jason Merrill <jason@redhat.com>
3160
3161 PR c++/48999
3162 * tree-inline.c (copy_statement_list): Put back recursion.
3163
3164 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3165
3166 PR target/27663
3167 PR target/41076
3168 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3169 * config/avr/avr.md ("*ior<mode>qi.byte0",
3170 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3171
3172 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3173
3174 PR target/45099
3175 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3176 register is needed for a function argument.
3177
3178 2011-05-16 Richard Guenther <rguenther@suse.de>
3179
3180 * gimple.c (struct type_hash_pair): New type.
3181 (type_hash_pair_compare): New function.
3182 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3183
3184 2011-05-16 Revital Eres <revital.eres@linaro.org>
3185
3186 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3187
3188 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3189
3190 * config/i386/i386.md (floating point move splitters): Fix
3191 usage of standard_80387_constant_p.
3192 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3193
3194 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3195
3196 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3197
3198 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3199
3200 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3201 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3202 (tree_ssa_lim_finalize): Likewise.
3203
3204 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3205
3206 * config/i386/constraint.md (Yd, Yx): New register constraints.
3207 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3208 Yd conditional register constraint.
3209 (*movtf_internal): Use standard_sse_constant_opcode.
3210 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3211 Yx conditional register constraint.
3212 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3213 Yd conditional register constraint. Use standard_sse_constant_p to
3214 check for valid SSE constants and call standard_sse_constant_opcode to
3215 output SSE insn.
3216 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3217 constants and call standard_sse_constant_opcode to output SSE insn.
3218 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3219 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3220 optimize_size is set.
3221 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3222
3223 2011-05-14 Tobias Burnus <burnus@net-b.de>
3224
3225 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3226
3227 2011-05-13 Martin Jambor <mjambor@suse.cz>
3228
3229 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3230 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3231 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3232 (evaluate_conditions_for_ipcp_clone): Removed.
3233 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3234 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3235 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3236
3237 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3238
3239 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3240 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3241 lieu of MAY_HAVE_DEBUG_STMTS.
3242 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3243 debug statements if !MAY_HAVE_DEBUG_STMTS.
3244
3245 2011-05-13 Martin Thuresson <martint@google.com>
3246
3247 PR gcov-profile/47793
3248 * libgcov.c (gcov_exit): Support relative profile paths.
3249 * doc/invoke.texi (-fprofile-dir): Update for above change.
3250
3251 2011-05-13 Richard Guenther <rguenther@suse.de>
3252
3253 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3254 type-pair caching, do not compare hashes.
3255
3256 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3257
3258 PR middle-end/48965
3259 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3260 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3261
3262 2011-05-13 Kai Tietz <ktietz@redhat.com>
3263
3264 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3265 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3266 compatible type for TRUTH_NOT_EXPR.
3267
3268 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3269
3270 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3271 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3272 can_create_pseudo_p ().
3273
3274 2011-05-13 Richard Guenther <rguenther@suse.de>
3275
3276 PR lto/48978
3277 * gimple.c (iterative_hash_gimple_type): Revert change in
3278 pointer target and function result and argument hashing.
3279
3280 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3281
3282 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3283 (*movxf_internal_nointeger): Ditto.
3284 (*movdf_internal_rex64): Ditto.
3285 (*movdf_internal): Ditto.
3286 (*movdf_internal_nointeger): Ditto.
3287 (*movsf_internal): Ditto.
3288 (sincos splitters): Use can_create_pseudo ().
3289
3290 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3291
3292 * config/i386/i386-opts.h: New.
3293 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3294 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3295 ix86_section_threshold): Remove.
3296 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3297 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3298 OPT_mbranch_cost_.
3299 (ix86_option_override_internal): Don't decode strings for options
3300 other than -march=, -mtune= and -mfpmath=. Don't allow for
3301 __attribute__ uses in remaining diagnostics for options with
3302 string arguments. Don't check for integer arguments being negative.
3303 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3304 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3305 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3306 ix86_branch_cost, ix86_section_threshold): Remove.
3307 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3308 HeaderInclude.
3309 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3310 but not Var.
3311 (masm=): Use Enum and Init.
3312 (asm_dialect): New Enum and EnumValue entries.
3313 (mbranch-cost=): Use UInteger.
3314 (mlarge-data-threshold=): Use UInteger and Init.
3315 (mcmodel=): Use Enum and Init.
3316 (cmodel): New Enum and EnumValue entries.
3317 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3318 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3319 mregparm=): Use UInteger.
3320 (mstringop-strategy=): Use Enum and Init.
3321 (stringop_alg): New Enum and EnumValue entries.
3322 (mtls-dialect=): Use Enum and Init.
3323 (tls_dialect): New Enum and EnumValue entries.
3324 (mabi=): Use Enum and Init.
3325 (calling_abi): New Enum and EnumValue entries.
3326 (mveclibabi=): Use Enum and Init.
3327 (ix86_veclibabi): New Enum and EnumValue entries.
3328
3329 2011-05-13 Nick Clifton <nickc@redhat.com>
3330
3331 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3332 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3333
3334 2011-05-13 Kai Tietz <ktietz@redhat.com>
3335
3336 PR middle-end/48984
3337 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3338 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3339 (gimple_boolify): Check for cast for boolean_type_node instead for
3340 BOOLEAN_TYPE.
3341
3342 2011-05-13 Richard Guenther <rguenther@suse.de>
3343
3344 PR tree-optimization/48172
3345 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3346 multiplying by number of iterations for equal step.
3347 (vect_create_cond_for_alias_checks): Likewise.
3348
3349 2011-05-13 Andreas Schwab <schwab@redhat.com>
3350
3351 * configure.ac: Use AS_HELP_STRING throughout.
3352 * configure: Regenerate.
3353
3354 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3355
3356 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3357 (ix86_emit_restore_regs_using_mov): Likewise.
3358 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3359
3360 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3361
3362 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3363 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3364 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3365 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3366 RTX_OK_FOR_OLO10_P): ...here.
3367 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3368 SYMBOLIC_CONST.
3369
3370 2011-05-12 Kai Tietz <ktietz@redhat.com>
3371
3372 * gimplify.c (gimple_boolify): Re-boolify expression
3373 arguments even if expression type is of kind BOOLEAN_TYPE.
3374 (gimplify_boolean_expr): Removed.
3375 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3376 and XOR. Additional take care that we keep expression's type.
3377 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3378 of TRUTH_AND|OR|XOR_EXPR.
3379
3380 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3381
3382 PR tree-optimization/48975
3383 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3384 on all bbs here and free and clear ifc_bbs at the end.
3385
3386 2011-05-12 Richard Guenther <rguenther@suse.de>
3387
3388 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3389 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3390 until after simple checks.
3391 (gimple_types_compatible_p): Likewise.
3392 (iterative_hash_gimple_type): Always hash pointer targets
3393 and function return and argument types.
3394 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3395 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3396 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3397 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3398 completely in the simple compare section.
3399 (gimple_register_canonical_type): Query the cache again after
3400 registering.
3401
3402 2011-05-12 Richard Guenther <rguenther@suse.de>
3403
3404 PR tree-optimization/48172
3405 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3406 the number of iterations from the segment size calculation.
3407 (vect_create_cond_for_alias_checks): Adjust.
3408
3409 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3410
3411 PR debug/48967
3412 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3413 if validate_subreg fails.
3414
3415 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3416
3417 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3418 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3419 early.
3420
3421 2011-05-12 DJ Delorie <dj@redhat.com>
3422
3423 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3424 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3425 created builtin into rx_builtins array.
3426 (rx_builtin_decl): New function.
3427 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3428
3429 2011-05-12 DJ Delorie <dj@redhat.com>
3430 Nick Clifton <nickc@redhat.com>
3431
3432 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3433 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3434 (rx_is_legitimate_address): Add pre-decrement and post-increment
3435 addressing in HImode and QImode. Fix test for out of range
3436 REG+INT addressing.
3437 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3438 (rx_align_for_label): Test label before extracting its usage count.
3439 (rx_adjust_insn_lengths): Fix selection of insn codes.
3440 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3441
3442 2011-05-11 Jason Merrill <jason@redhat.com>
3443
3444 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3445
3446 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3447
3448 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3449 reindent the subsequent block.
3450
3451 2011-05-11 Satoru Takabayashi <satorux@google.com>
3452 Paul Pluzhnikov <ppluzhnikov@google.com>
3453
3454 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3455 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3456 * config.in: Add LINKER_HASH_STYLE.
3457 * configure.ac: Add --with-linker-hash-style.
3458 * configure: Regenerate.
3459
3460 2011-05-11 Richard Guenther <rguenther@suse.de>
3461
3462 PR middle-end/48964
3463 * gimple.c (iterative_hash_canonical_type): Fix typo.
3464
3465 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3466
3467 * config/i386/i386.c (legitimize_tls_address)
3468 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3469 expanders directly for TARGET_GNU2_TLS. Determine pic and
3470 __tls_get_addr symbol reference here. Update call to
3471 gen_tls_global_dynamic_{32,64} for added arguments.
3472 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3473 expanders directly for TARGET_GNU2_TLS. Determine
3474 __tls_get_addr symbol reference here. Update call to
3475 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3476 unique UNSPEC REG_EQUIV to libcall block.
3477 (ix86_tls_get_addr): Declare static.
3478 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3479 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3480 Do not determine pic and __tls_get_addr symbol reference here. Do not
3481 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3482 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3483 (tls_global_dynamic_64): Add operand 2. Do not determine
3484 __tls_get_addr symbol reference here. Do not call
3485 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3486 (tls_local_dynamic_base64): Ditto for operand 1.
3487
3488 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3489
3490 * function.c (expand_function_start): Initialize stack_check_probe_note
3491 only if the generic stack checking mechanism is used.
3492
3493 2011-05-11 Richard Guenther <rguenther@suse.de>
3494
3495 PR tree-optimization/15256
3496 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3497 (A & B) | C, combine (A op CST1) op CST2.
3498 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3499 visit assigns that have uses.
3500
3501 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3502
3503 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3504 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3505 (unpack_ts_type_common_value_fields): ...this. Update comment.
3506 (unpack_value_fields): Adjust for renaming.
3507 (lto_input_ts_type_tree_pointers): Split into...
3508 (lto_input_ts_type_common_tree_pointer): ...this and...
3509 (lto_input_ts_type_non_common_tree_pointers): ...this.
3510 (lto_input_tree_pointers): Adjust for above split.
3511 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3512 (pack_ts_type_common_value_fields): ...this. Update comment.
3513 (lto_output_ts_type_tree_pointers): Split into...
3514 (lto_output_ts_type_common_tree_pointers): ...this and...
3515 (lto_output_ts_type_non_common_tree_pointers): ...this.
3516 (lto_output_tree_pointers): Adjust for above split.
3517 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3518 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3519 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3520 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3521 Define.
3522 (struct tree_type): Split into...
3523 (struct tree_type_common: ...this and...
3524 (struct tree_type_with_lang_specific): ...this and...
3525 (struct tree_type_non_common): ...this. Adjust accessor macros
3526 accordingly.
3527 (TYPE_VALUES_RAW): Define.
3528 (union tree_node): Update for above changes.
3529 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3530 TS_TYPE_NON_COMMON.
3531 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3532 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3533 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3534 * treestructu.def (TS_TYPE): Remove.
3535 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3536 Define.
3537
3538 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3539
3540 PR debug/48159
3541 * tree-ssa.c (reset_debug_uses): New function.
3542 * tree-flow.h (reset_debug_uses): New prototype.
3543 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3544 * tree-loop-distribution.c (generate_loops_for_partition): Call
3545 reset_debug_uses on the stmts that will be removed. Keep around
3546 all debug stmts, don't count them as bits in partition bitmap.
3547 (generate_builtin): Don't count debug stmts or labels as bits in
3548 partition bitmap.
3549
3550 2011-05-11 Richard Guenther <rguenther@suse.de>
3551
3552 * gimple.c (gimple_type_hash_1): Merge with ...
3553 (gimple_type_hash): ... this.
3554 (gtc_visit): Remove mode parameter and simplify accordingly.
3555 (gimple_types_compatible_p_1): Likewise.
3556 (gimple_types_compatible_p): Likewise.
3557 (iterative_hash_gimple_type): Likewise.
3558 (visit): Likewise.
3559 (gimple_type_eq): Adjust.
3560
3561 2011-05-11 Revital Eres <revital.eres@linaro.org>
3562
3563 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3564 enters the branch create an anti edge in the opposite direction
3565 to prevent the creation of reg-moves.
3566 * modulo-sched.c: Adjust comment to reflect the fact we are
3567 scheduling closing branch.
3568 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3569 (stage_count): New field in struct partial_schedule.
3570 (calculate_stage_count): New function.
3571 (normalize_sched_times): Rename to reset_sched_times and handle
3572 incrementing the sched time of the nodes by a constant value
3573 passed as parameter.
3574 (duplicate_insns_of_cycles): Skip closing branch.
3575 (sms_schedule_by_order): Schedule closing branch.
3576 (ps_insn_find_column): Handle closing branch.
3577 (sms_schedule): Call reset_sched_times and adjust the code to
3578 support scheduling of the closing branch.
3579 (ps_insert_empty_row): Update calls to normalize_sched_times
3580 and rotate_partial_schedule functions.
3581
3582 2011-05-11 Richard Guenther <rguenther@suse.de>
3583
3584 PR middle-end/48953
3585 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3586
3587 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3588
3589 * opts.c (finish_options): Move warning settings from process_options.
3590 * toplev.c (process_options): Move warning settings to finish_options.
3591
3592 2011-05-11 Richard Guenther <rguenther@suse.de>
3593
3594 PR tree-optimization/18041
3595 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3596 (simplify_bitwise_binary): ... this. Handle operand conversions
3597 by applying them to the result instead.
3598 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3599
3600 2011-05-11 Richard Guenther <rguenther@suse.de>
3601
3602 * gimple.c (gimple_canonical_types_compatible_p): Split out
3603 from gimple_types_compatible_p and friends. Do not recurse
3604 to pointed-to types.
3605 (gimple_canonical_type_eq): Use it.
3606 (iterative_hash_canonical_type): Split out from
3607 iterative_hash_gimple_type and friends. Do not recurse
3608 to pointed-to types.
3609 (gimple_canonical_type_hash): Use it, allocate the hash here.
3610
3611 2011-05-11 Revital Eres <revital.eres@linaro.org>
3612
3613 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3614 recognizing doloop.
3615
3616 2011-05-11 Revital Eres <revital.eres@linaro.org>
3617
3618 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3619 instead of PREV_INSN.
3620
3621 2011-05-11 Revital Eres <revital.eres@linaro.org>
3622
3623 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3624 * loop-doloop.c (doloop_condition_get): Likewise.
3625 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3626 (doloop_end): New.
3627 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3628
3629 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3630
3631 * tree.def (CASE_LABEL_EXPR): Add an operand.
3632 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3633
3634 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3635
3636 * c-decl.c (c_override_global_bindings_to_false): Remove.
3637 (global_bindings_p): Don't check
3638 c_override_global_bindings_to_false.
3639 * c-tree.h (c_override_global_bindings_to_false): Remove.
3640 * c-typeck.c (composite_type): Don't set
3641 c_override_global_bindings_to_false.
3642
3643 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3644
3645 PR target/48857, 48495
3646 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3647 (VSX_MODE): Ditto.
3648 (VSX_MOVE_MODE): Ditto.
3649 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3650 VSX vector types. Add V2DImode.
3651 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3652 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3653 (MODES_TIEABLE_P): Ditto.
3654
3655 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3656 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3657 VSX_VECTOR_MODE.
3658 (init_cumulative_args): Ditto.
3659 (rs6000_function_arg_boundary): Ditto.
3660 (rs6000_function_arg_advance_1): Ditto.
3661 (rs6000_function_arg): Ditto.
3662 (rs6000_function_ok_for_sibcall): Ditto.
3663 (emit_frame_save): Ditto.
3664 (rs6000_function_value): Ditto.
3665 (rs6000_libcall_value): Ditto.
3666
3667 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3668
3669 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3670 i386/darwin-lib.h to $libgcc_tm_file.
3671 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3672
3673 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3674
3675 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3676
3677 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3678
3679 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3680 * config/rs6000/rs6000-tables.opt: New file (generated).
3681 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3682 rs6000/rs6000-tables.opt to extra_options.
3683 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3684 * config/rs6000/rs6000.c (rs6000_select): Remove.
3685 (processor_target_table): Move contents to rs6000-cpus.def.
3686 (darwin_rs6000_override_options): Check
3687 global_options_set.x_rs6000_cpu_index instead of
3688 rs6000_select[1].string.
3689 (rs6000_option_override_internal): Likewise.
3690 (rs6000_handle_option): Don't assert that global structures are in
3691 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3692 (rs6000_default_cpu): New variable.
3693 (rs6000_file_start): Set it instead of local default_cpu. Check
3694 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3695 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3696 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3697 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3698 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3699 rs6000_select): Remove.
3700 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3701 Remove.
3702 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3703 * config/rs6000/t-rs6000
3704 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3705 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3706 global_options_set.x_rs6000_cpu_index instead of
3707 rs6000_select[1].string.
3708 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3709 global_options_set.x_rs6000_cpu_index instead of
3710 rs6000_select[1].string.
3711
3712 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3713
3714 * config.gcc (libgcc_tm_file): Define instead of including files
3715 from ../../libgcc/config/ in tm_file.
3716 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3717 * configure: Regenerate.
3718 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3719 libgcc_tm.h, cs-libgcc_tm.h): New.
3720 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3721 (clean): Remove libgcc_tm.h.
3722 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3723 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3724 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3725
3726 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3727
3728 PR target/48896
3729 * config/avr/avr.c (avr_ret_register): Return unsigned int
3730 instead of int.
3731 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3732 it to avr_libcall_value.
3733 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3734 expand_expr.
3735 (avr_expand_binop_builtin): Ditto.
3736 (avr_expand_unop_builtin): Ditto.
3737
3738 2011-05-10 DJ Delorie <dj@redhat.com>
3739
3740 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3741 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3742 * config/rx/rx.c (rx_align_for_label): Add label and
3743 uses_threshold parameters. Do not align when the label is not
3744 used enough.
3745 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3746
3747 2011-05-10 Richard Guenther <rguenther@suse.de>
3748
3749 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3750 a series of conversions and apply foldings similar to what
3751 fold-const does.
3752 (tree_ssa_forward_propagate_single_use_vars): Call it.
3753
3754 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3755
3756 PR tree-optimization/48611
3757 PR tree-optimization/48794
3758 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3759 referenced from RESX or EH_DISPATCH arguments.
3760
3761 PR debug/48928
3762 * dfp.c (decimal_to_decnumber): Handle conversion from
3763 dconst{1,2,m1,half}.
3764
3765 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3766
3767 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3768 for !flag_prefer_avx128.
3769 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3770
3771 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3772
3773 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3774 (fold_ternary_loc): Use expr_location_or.
3775
3776 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3777
3778 PR debug/48853
3779 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3780 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3781 Pmode and mem_mode is not VOIDmode.
3782
3783 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3784
3785 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3786 TYPE_QUAL_RESTRICT): Convert to enum.
3787
3788 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3789
3790 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3791 (const_pow2_1_to_8_operand): Ditto.
3792 (const_pow2_1_to_128_operand): Ditto.
3793 (const_pow2_1_to_32768_operand): Ditto.
3794 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3795 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3796 in insn constraint to check integer value of operand 3.
3797 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3798
3799 (PINSR_MODE): New mode iterator.
3800 (sse2p4_1): New mode attribute.
3801 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3802 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3803 iterator. Use const_int_operand instead of
3804 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3805 exact_log2 in insn constraint to check integer value of operand 3.
3806
3807 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3808
3809 * config/i386/sse.md (blendbits): Remove mode attribute.
3810 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3811 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3812 Check integer value of operand 3 in insn constraint.
3813
3814 2011-05-09 Richard Guenther <rguenther@suse.de>
3815
3816 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3817 for diagnostics.
3818 (lto_symtab_merge): Likewise. Do not register types here.
3819 (lto_symtab_merge_decls_2): Likewise.
3820 (lto_symtab_merge_decls_1): Likewise.
3821 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3822 * gimple.c (enum gtc_mode): Declare.
3823 (gimple_types_compatible_p): Make static.
3824
3825 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3826
3827 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3828 temporary register to match Pmode.
3829
3830 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3831
3832 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3833 and *vec_concatv4si_1_avx.
3834
3835 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3836
3837 PR rtl-optimization/48927
3838 * ira-conflicts.c (commutative_constraint_p): Use
3839 recog_data.alternative_enabled_p to disable alternatives where
3840 "enabled" attribute is false.
3841 (get_dup_num): Ditto.
3842 * ira-lives.c (single_reg_class): Ditto.
3843 (ira_implicitly_set_insn_hard_regs): Ditto.
3844
3845 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3846
3847 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3848 (dataflow_set_preserve_mem_locs): Likewise.
3849
3850 2011-05-09 Philipp Thomas <pth@suse.de>
3851
3852 * config/mep/mep.c (mep_validate_vliw): Syntax description
3853 should not be translated.
3854
3855 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3856
3857 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3858 * config/mips/mips-tables.opt: New file (generated).
3859 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3860 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3861 MIPS_ARCH_OPTION_NATIVE): Define.
3862 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3863 mips-cpus.def.
3864 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3865 mips_parse_cpu): Remove.
3866 (mips_cpu_info_from_opt, mips_default_arch): New.
3867 (mips_handle_option): Don't assert that global structures are in
3868 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3869 (mips_option_override): Use new variables and functions to set
3870 state of these options. Use strcmp to check for individual CPU names.
3871 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3872 definition.
3873 * config/mips/mips.opt (march=): Use ToLower and Enum.
3874 (mips): Use ToLower, Enum and Var.
3875 (mtune=): Use ToLower and Enum.
3876 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3877
3878 2011-05-08 Jan Hubicka <jh@suse.cz>
3879
3880 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3881 Arrange type pairs to be UID ordered.
3882 (gimple_lookup_type_leader): Make inline.
3883
3884 2011-05-09 Nick Clifton <nickc@redhat.com>
3885
3886 PR target/48899
3887 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3888 PROCESSOR_DEFAULT.
3889
3890 PR target/48897
3891 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3892 variable 's'.
3893
3894 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3895
3896 * combine.c (simplify_comparison): Abstract out parts into...
3897 (simplify_compare_const): ... new function.
3898 (try_combine): Generalize parallel arithmetic/compare combining
3899 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3900
3901 2011-05-08 Jan Hubicka <jh@suse.cz>
3902
3903 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3904 (cgraph_create_virtual_clone): Call hooks once virtual clone
3905 is finished.
3906 * cgraph.h (cgraph_clone_node): Update prototype.
3907 * ipa-cp.c (ipcp_estimate_growth): Use
3908 estimate_ipcp_clone_size_and_time.
3909 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3910 * lto-cgraph.c (input_node): Update.
3911 * ipa-inline.c (recursive_inlining): Update.
3912 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3913 (evaluate_conditions_for_known_args): Break out from ...
3914 (evaluate_conditions_for_edge): ... here.
3915 (evaluate_conditions_for_ipcp_clone): New function.
3916 (inline_node_duplication_hook): Update clone summary based
3917 on parameter map.
3918 (estimate_callee_size_and_time): Rename to ...
3919 (estimate_node_size_and_time): take NODE instead of EDGE;
3920 take POSSIBLE_TRUTHS as argument.
3921 (estimate_callee_size_and_time): Update.
3922 (estimate_ipcp_clone_size_and_time): New function.
3923 (do_estimate_edge_time): Update.
3924
3925 2011-05-08 Richard Guenther <rguenther@suse.de>
3926
3927 PR middle-end/48908
3928 PR middle-end/48905
3929 * expmed.c (expand_shift_1): Compute adjusted constant shift
3930 amount manually.
3931
3932 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3933
3934 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3935
3936 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3937
3938 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3939
3940 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3941
3942 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3943
3944 2011-05-07 Jan Hubicka <jh@suse.cz>
3945
3946 * ipa-inline-transform.c (inline_call): Account when program size
3947 decreases.
3948 * ipa-inline.c (relative_time_benefit): New function.
3949 (edge_badness): Reorganize to be power 2 based; fix thinko when
3950 computing badness for negative growth; update comments to match
3951 reality; better dumps.
3952
3953 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3954
3955 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3956 type to bool and adjust comment.
3957 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3958 (fold_mathfn_compare): Remove calls to global_bindings_p.
3959 (fold_inf_compare): Likewise.
3960 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3961 * c-tree.h (global_bindings_p): Adjust prototype.
3962 * c-decl.c (global_bindings_p): Return bool and simplify.
3963
3964 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3965
3966 PR tree-optimization/48837
3967 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3968 when accumulator transformation is performed.
3969
3970 2011-05-06 Jan Hubicka <jh@suse.cz>
3971
3972 * i386.h (ix86_tune_indices): Add
3973 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3974 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3975 * i386.c (initial_ix86_tune_features): Add
3976 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3977 (software_prefetching_beneficial_p): Remove predicate.
3978 (ix86_option_override_internal): Use new macro.
3979
3980 2011-05-06 Jan Hubicka <jh@suse.cz>
3981
3982 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3983
3984 2011-05-06 Jan Hubicka <jh@suse.cz>
3985
3986 * cgraph.c (cgraph_add_thunk): Create real function node instead
3987 of alias node; finalize it and mark needed/reachale; arrange visibility
3988 to be right and add it into the corresponding same comdat group list.
3989 (dump_cgraph_node): Dump thunks.
3990 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3991 cgraph_function_with_gimple_body_p,
3992 cgraph_first_function_with_gimple_body,
3993 cgraph_next_function_with_gimple_body): New functions.
3994 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3995 New macros.
3996 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3997 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3998 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3999 devirtualization when optimizing.
4000 (verify_cgraph_node): Verify thunks.
4001 (cgraph_analyze_function): Analyze thunks.
4002 (cgraph_mark_functions_to_output): Output thunks only in combination
4003 with function they are assigned to.
4004 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4005 alias into normal node.
4006 (assemble_thunks): New functoin.
4007 (cgraph_expand_function): Use it.
4008 * lto-cgraph.c (lto_output_node): Stream thunks.
4009 (input_overwrite_node): Stream in thunks.
4010 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4011 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4012 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4013 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4014 (inline_analyze_function): Do not care about thunk jump functions.
4015 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4016 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4017 cgraph_function_with_gimple_body_p.
4018 * passes.c (do_per_function_toporder): Use
4019 cgraph_function_with_gimple_body_p.
4020 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4021 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4022 (function_called_by_processed_nodes_p): Likewise.
4023
4024 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4025
4026 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4027 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4028 entries.
4029 (mabi=): Replace with separate entries for mabi=altivec,
4030 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4031 mabi=ieeelongdouble and mabi=ibmlongdouble.
4032 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4033 check for -mabi=spe without SPE ABI support here.
4034 (rs6000_handle_option): Replace OPT_mabi_ handling with
4035 OPT_mabi_altivec and OPT_mabi_spe handling.
4036
4037 2011-05-06 Cary Coutant <ccoutant@google.com>
4038
4039 * dwarf2out.c (contains_subprogram_definition): New function.
4040 (should_move_die_to_comdat): Call it.
4041
4042 2011-05-06 Jeff Law <law@redhat.com>
4043
4044 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4045 remove_ctrl_stmt_and_useless_edges.
4046 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4047 (fixup_template_block, thread_single_edge): Likewise.
4048 (mark_threaded_blocks): Use THREAD_TARGET.
4049
4050 2011-05-06 Alan Modra <amodra@gmail.com>
4051
4052 PR target/48900
4053 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4054 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4055
4056 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4057
4058 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4059 constraint modifier to "r".
4060
4061 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4062
4063 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4064 fall through for OPT_mcmodel_.
4065
4066 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4067
4068 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4069 instruction sizes.
4070 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4071
4072 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4073
4074 PR target/47930
4075 * config/arm/arm.opt (marm): Document it.
4076 (mthumb): Reject negative variant.
4077
4078 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4079
4080 PR target/48898
4081 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4082 Fix typo in "ccvt" variable name.
4083
4084 2011-05-06 Tristan Gingold <gingold@adacore.com>
4085
4086 PR target/48895
4087 * config/vms/vms-ar.c (main): Remove cwd variable.
4088
4089 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4090
4091 PR debug/48902
4092 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4093
4094 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4095
4096 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4097 * gimplify.c (gimplify_switch_expr): Likewise.
4098 * omp-low.c (expand_omp_sections): Likewise.
4099 * tree-eh.c (lower_try_finally_switch): Likewise.
4100 (lower_eh_dispatch): Likewise.
4101 * tree.h (build_case_label): Declare.
4102 * tree.c (build_case_label): Define.
4103
4104 2011-05-05 Jason Merrill <jason@redhat.com>
4105
4106 PR c++/40975
4107 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4108 (copy_statement_list): Don't recurse.
4109 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4110 STATEMENT_LIST.
4111
4112 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4113
4114 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4115 through from -mfpu= handling.
4116 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4117
4118 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4119
4120 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4121 POST_MODIFY.
4122
4123 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4124
4125 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4126 for 11.31.
4127 (hppa[12]*-*-hpux11*): Ditto.
4128 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4129 * config/ia64/hpux-unix2003.h: New.
4130 * config/pa/pa-hpux1131.opt: New.
4131 * config/pa/pa-hpux1131.h: New.
4132 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4133 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4134 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4135
4136 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4137
4138 PR debug/48853
4139 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4140 instead of mode as 3rd argument to recursive call.
4141 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4142 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4143 VOIDmode.
4144 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4145 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4146 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4147 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4148
4149 2011-05-05 Julian Brown <julian@codesourcery.com>
4150
4151 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4152 parenthesis in D-register case.
4153
4154 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4155
4156 * opt-functions.awk (var_type_struct): Handle Enum options.
4157 * optc-gen.awk: Don't check range of variables of character type.
4158 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4159 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4160 rs6000_sdata_name, rs6000_explicit_options): Remove.
4161 (rs6000_option_override_internal): Check for -malign-power here.
4162 Use global_options_set instead of rs6000_explicit_options.
4163 (rs6000_parse_fpu_option): Remove.
4164 (rs6000_handle_option): Access variables via opts and opts_set
4165 pointers. Use error_at and warning_at. Add fall-through
4166 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4167 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4168 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4169 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4170 here. Don't use rs6000_parse_fpu_option.
4171 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4172 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4173 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4174 (mrecip=): Use Var.
4175 (mspe): Use Var and Save.
4176 (mtraceback=): Use Enum and Var.
4177 (rs6000_traceback_type): New Enum and EnumValue entries.
4178 (mfloat-gprs=): Use Enum, Var and Save.
4179 (rs6000_float_gprs): New Enum and EnumValue entries.
4180 (mlong-double-): use Var and Save.
4181 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4182 (malign-): Use Enum and Var.
4183 (rs6000_alignment_flags): New Enum and EnumValue entries.
4184 (mfpu=): Use Enum.
4185 (fpu_type_t): New Enum and EnumValue entries.
4186 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4187 global_options_set instead of rs6000_explicit_options.
4188 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4189 global_options_set instead of rs6000_explicit_options.
4190 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4191 global_options_set instead of rs6000_explicit_options.
4192 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4193 global_options_set instead of rs6000_explicit_options.
4194 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4195 global_options_set instead of rs6000_explicit_options.
4196 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4197 global_options_set instead of rs6000_explicit_options.
4198 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4199 definition.
4200 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4201 global_options_set instead of rs6000_explicit_options.
4202 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4203 (rs6000_cmodel): New Enum and EnumValue entries.
4204 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4205 global_options_set instead of rs6000_explicit_options.
4206 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4207 (mtls-size=): Use Enum and Var.
4208 (rs6000_tls_size): New Enum and EnumValue entries.
4209
4210 2011-05-05 Michael Matz <matz@suse.de>
4211
4212 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4213 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4214 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4215 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4216 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4217 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4218 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4219 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4220 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4221 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4222 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4223 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4224 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4225 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4226 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4227 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4228
4229 2011-05-05 Richard Guenther <rguenther@suse.de>
4230
4231 * expmed.c (expand_variable_shift): Rename to ...
4232 (expand_shift_1): ... this. Take an expanded shift amount.
4233 For rotates recurse directly not building trees for the shift amount.
4234 (expand_variable_shift): Wrap around expand_shift_1.
4235 (expand_shift): Adjust.
4236
4237 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4238
4239 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4240
4241 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4242
4243 * tree.h (get_pending_sizes): Remove prototype.
4244 (put_pending_size): Likewise.
4245 (put_pending_sizes): Likewise.
4246 * stor-layout.c (pending_sizes): Delete.
4247 (get_pending_sizes): Likewise.
4248 (put_pending_size): Likewise.
4249 (put_pending_sizes): Likewise.
4250 (variable_size): Do not call put_pending_size and tidy up.
4251 * function.h (struct function): Remove dont_save_pending_sizes_p.
4252 * lto-streamer-in.c (input_function): Do not stream it.
4253 * lto-streamer-out.c (output_function): Likewise.
4254 * tree-inline.c (initialize_cfun): Do not copy it.
4255 * c-decl.c (store_parm_decls): Do not set it.
4256 * omp-low.c (create_task_copyfn): Likewise.
4257 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4258
4259 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4260
4261 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4262 conditions.
4263 (*movdf_internal): Ditto.
4264 (*movdf_internal_nointeger): Ditto.
4265 (*movsf_internal): Ditto.
4266
4267 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4268
4269 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4270 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4271 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4272 (c_variable_size): Remove.
4273 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4274 call put_pending_sizes.
4275 (get_parm_info): Add parameter expr. Use it to set
4276 arg_info->pending_sizes.
4277 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4278 get_pending_sizes.
4279 * c-parser.c (c_parser_parms_declarator): Update call to
4280 c_parser_parms_list_declarator.
4281 (c_parser_parms_list_declarator): Take parameter expr. Update
4282 call to push_parm_decl. Update recursive call. Don't call
4283 get_pending_sizes. Update calls to get_parm_info.
4284 (c_parser_objc_method_definition): Update calls to
4285 c_parser_objc_method_decl and objc_start_method_definition.
4286 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4287 (c_parser_objc_method_decl): Add parameter expr. Update call to
4288 grokparm.
4289 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4290 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4291 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4292
4293 2011-05-05 Michael Hope <michael.hope@linaro.org>
4294
4295 PR pch/45979
4296 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4297 __ARM_EABI__ hosts.
4298
4299 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4300
4301 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4302 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4303 (spu_output_mi_thunk): New function.
4304
4305 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4306
4307 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4308 targetm.asm_out.print_operand.
4309 * config/sol2.c: Include target.h.
4310
4311 2011-05-04 Jan Hubicka <jh@suse.cz>
4312
4313 * ipa-inline.c (reset_edge_caches): New function.
4314 (update_caller_keys): Add check_inlinablity_for; do not
4315 reset edge caches; remove now unnecesary loop.
4316 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4317 (update_all_callee_keys): Likewise.
4318 (inline_small_functions): Sanity check cache; update code
4319 recomputing it.
4320
4321 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4322
4323 PR rtl-optimization/47612
4324 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4325 as the last insn of the sequence to be moved.
4326
4327 2011-05-04 Tobias Burnus <burnus@net-b.de>
4328
4329 PR fortran/48864
4330 * doc/invoke.texi (Ofast): Document that it
4331 enables Fortran's -fno-protect-parens.
4332
4333 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4334
4335 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4336
4337 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4338
4339 * stor-layout.c (variable_size): Do not issue errors.
4340
4341 2011-05-04 Richard Guenther <rguenther@suse.de>
4342
4343 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4344 for array-ref indices.
4345 (tree_coverage_counter_addr): Likewise.
4346 (build_fn_info_type): Use size_int for index types.
4347 (build_gcov_info): Likewise.
4348
4349 2011-05-04 Richard Guenther <rguenther@suse.de>
4350
4351 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4352 to build_int_cst.
4353 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4354 for constructor indices.
4355 (push_init_level): Likewise.
4356
4357 2011-05-04 Richard Guenther <rguenther@suse.de>
4358
4359 * explow.c (promote_mode): Move variable declarations before code.
4360
4361 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4362
4363 * tree.h (build_function_type_array): Declare.
4364 (build_varargs_function_type_array): Declare.
4365 (build_function_type_vec, build_varargs_function_type_vec): Define.
4366 * tree.c (build_function_type_array_1): New function.
4367 (build_function_type_array): New function.
4368 (build_varargs_function_type_array): New function.
4369
4370 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4371
4372 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4373 before setting STMT_VINFO_TYPE.
4374
4375 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4376
4377 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4378 instead of spu_pass_by_reference.
4379
4380 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4381
4382 * calls.c (emit_library_call_value_1): Invoke
4383 promote_function_mode hook on libcall arguments.
4384 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4385 argument being NULL.
4386 * targhooks.c (default_promote_function_mode): Lisewise.
4387 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4388 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4389
4390 * doc/tm.texi: Document that TYPE argument might be NULL.
4391
4392 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4393
4394 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4395
4396 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4397
4398 From Bernd Schmidt
4399 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4400
4401 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4402
4403 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4404 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4405 Move ...
4406 * mips-tfile.c: ... here.
4407 Don't include coretypes.h, tm.h, filenames.h.
4408 (saber_stop): Remove definition and all calls.
4409 [__SABER__]: Remove.
4410 (__LINE__): Remove default.
4411 (Size_t, Ptrdiff_t): Remove definitions.
4412 Replace by size_t, ptrdiff_t.
4413 [!MIPS_DEBUGGING_INFO]: Remove.
4414 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4415 (progname): Add const.
4416 (STATIC): Remove.
4417 Replace all uses by static.
4418 (ALIGN_SYMTABLE_OFFSET): Remove default.
4419 * mips-tdump.c: Don't include coretypes.h, tm.h.
4420 Remove !MIPS_IS_STAB guard.
4421 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4422 $(TM_H), filenames.h dependencies.
4423 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4424
4425 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4426
4427 From Jie Zhang
4428 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4429 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4430
4431 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4432
4433 From Bernd Schmidt
4434 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4435 account and save/restore RETS.
4436 (PROFILE_BEFORE_PROLOGUE): Define.
4437 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4438 the push insn to use predecrement.
4439
4440 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4441
4442 From Jie Zhang
4443 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4444
4445 2011-05-04 Nick Clifton <nickc@redhat.com>
4446
4447 * config/mn10300/mn10300.c: Include cfgloop.h.
4448 (DUMP): New macro.
4449 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4450 Lcc or a FLcc insn into the instruction stream.
4451 (mn10300_block_contains_call): New function. Returns true if the
4452 given basic block contains a CALL insn.
4453 (mn10300_loop_contains_call_insn): New function. Returns true if
4454 the given loop contains a CALL insn.
4455 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4456 to use the SETLB and Lcc or FLcc insns.
4457 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4458 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4459 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4460 disable the SETLB optimization.
4461 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4462 __SETLB__ or __NO_SETLB__.
4463 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4464 (movsf_internal): Handle MDR register.
4465 (cmpsi): Make visible.
4466 (setlb): New pattern.
4467 (Lcc): New pattern.
4468 (FLcc): New pattern.
4469
4470 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4471
4472 PR target/48860
4473 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4474 for reg<->xmm moves.
4475 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4476 (vec_concatv2di_rex64_sse): Ditto.
4477 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4478 (*vec_extractv2di_1_rex64): Ditto.
4479
4480 Revert:
4481 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4482
4483 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4484 reg<->xmm moves.
4485 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4486
4487 2011-05-04 Richard Guenther <rguenther@suse.de>
4488
4489 * tree.h (int_const_binop): Remove notrunc argument.
4490 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4491 create integer constants that are properly truncated.
4492 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4493 (const_binop): Remove zero notrunc argument to int_const_binop.
4494 (size_binop_loc): Likewise.
4495 (fold_div_compare): Likewise.
4496 (maybe_canonicalize_comparison_1): Likewise.
4497 (fold_comparison): Likewise.
4498 (fold_binary_loc): Likewise.
4499 (multiple_of_p): Likewise.
4500 * expr.c (store_constructor): Likewise.
4501 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4502 (maybe_fold_stmt_addition): Likewise.
4503 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4504 * stor-layout.c (layout_type): Likewise.
4505 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4506 * tree-sra.c (build_ref_for_offset): Likewise.
4507 (build_user_friendly_ref_for_offset): Likewise.
4508 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4509 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4510 * tree-ssa-loop-niter.c (inverse): Likewise.
4511 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4512 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4513 * tree-switch-conversion.c (check_range): Likewise.
4514 (build_constructors): Likewise.
4515 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4516 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4517 (extract_range_from_assert): Likewise.
4518 (vrp_int_const_binop): Likewise.
4519 (extract_range_from_binary_expr): Likewise.
4520 (extract_range_from_unary_expr): Likewise.
4521 (check_array_ref): Likewise.
4522 (find_case_label_range): Likewise.
4523 (simplify_div_or_mod_using_ranges): Likewise.
4524 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4525 comparing case labels for merging.
4526
4527 2011-05-03 Mark Wielaard <mjw@redhat.com>
4528
4529 * dwarf2out.c (debug_str_hash_forced): Removed.
4530 (gen_label_for_indirect_string): Removed.
4531 (get_debug_string_label): Removed.
4532 (AT_string_form): Generate label directly.
4533 (output_indirect_string): Test indirect_string_node for
4534 DW_FORM_strp instead of checking label and refcount.
4535 (prune_indirect_string): Removed.
4536 (prune_unused_types): Don't check debug_str_hash_forced or
4537 call prune_indirect_string.
4538
4539 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4540
4541 PR other/48093
4542 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4543
4544 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4545
4546 PR debug/47994
4547 PR debug/47919
4548 * combine.c (try_combine): Skip debug insns at m_split tests.
4549
4550 2011-04-26 Mark Wielaard <mjw@redhat.com>
4551
4552 PR42288
4553 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4554 when info_section_emitted.
4555
4556 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4557
4558 * config/mips/mips-opts.h: New.
4559 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4560 to mips-opts.h.
4561 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4562 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4563 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4564 via opts pointer.
4565 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4566 mips-opts.h.
4567 (mips_abi, mips_code_readable): Don't declare.
4568 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4569 (mabi=): Use Enum and Var.
4570 (mips_abi): New Enum and EnumValue entries.
4571 (mcode-readable=): Use Enum and Var.
4572 (mips_code_readable_setting): New Enum and EnumValue entries.
4573 (mr10k-cache-barrier=): Use Enum and Var.
4574 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4575
4576 2011-05-03 Jan Hubicka <jh@suse.cz>
4577
4578 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4579 replace hash by pointer map.
4580 (cgraph_node_set_element_def, cgraph_node_set_element,
4581 const_cgraph_node_set_element, varpool_node_set_element_def,
4582 varpool_node_set_element, const_varpool_node_set_element): Remove.
4583 (free_cgraph_node_set, free_varpool_node_set): New function.
4584 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4585 * tree-emutls.c: Free varpool node set.
4586 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4587 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4588 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4589 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4590 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4591 Move here from ipa.c; implement using pointer_map
4592 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4593 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4594 debug_cgraph_node_set, varpool_node_set_new,
4595 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4596 dump_varpool_node_set, debug_varpool_node_set):
4597 Move to ipa-uitls.c.
4598 * passes.c (ipa_write_summaries): Update.
4599
4600 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4601
4602 From Mike Frysinger:
4603 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4604 bf542/bf544/bf547/bf548/bf549.
4605
4606 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4607
4608 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4609
4610 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4611
4612 From Bernd Schmidt:
4613 * config/bfin/bfin.md (MOVCC): New mode_macro.
4614 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4615 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4616 comments from generated assembly.
4617
4618 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4619
4620 From Bernd Schmidt
4621 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4622 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4623 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4624 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4625 * config/bfin/lib1funcs.asm (___muldi3): New function.
4626
4627 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4628
4629 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4630 build_function_type_list instead of build_function_type.
4631 Rearrange initialization of `args' to do so.
4632
4633 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4634
4635 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4636 instead of build_function_type.
4637
4638 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4639
4640 * config/rs6000/rs6000.c (spe_init_builtins): Call
4641 build_function_type_list instead of build_function_type.
4642 (paired_init_builtins, altivec_init_builtins): Likewise.
4643 (builtin_function_type): Likewise.
4644
4645 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4646
4647 * config/sh/sh.c (sh_media_init_builtins): Call
4648 build_function_type_list instead of build_function_type.
4649
4650 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4651
4652 * config/sparc/sparc.c (sparc_file_end): Call
4653 build_function_type_list instead of build_function_type.
4654
4655 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4656
4657 * config/alpha/alpha.c (alpha_init_builtins): Call
4658 build_function_type_list instead of build_function_type.
4659
4660 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4661
4662 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4663 build_function_type_list instead of build_function_type.
4664
4665 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4666
4667 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4668 build_function_type_list instead of build_function_type.
4669 Delete `endlink' variable.
4670
4671 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4672
4673 * config/avr/avr.c (avr_init_builtins): Call
4674 build_function_type_list instead of build_function_type.
4675
4676 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4677
4678 * config/picochip/picochip.c (picochip_init_builtins): Call
4679 build_function_type_list instead of build_function_type.
4680 Delete `endlink' variable.
4681
4682 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4683
4684 * config/bfin/bfin.c (bfin_init_builtins): Call
4685 build_function_type_list instead of build_function_type.
4686
4687 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4688
4689 From Bernd Schmidt
4690 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4691 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4692
4693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4694
4695 From Jie Zhang:
4696 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4697 libbffastfp overrides libgcc when -mfast-fp.
4698
4699 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4700
4701 Originally from Bernd Schmidt
4702 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4703 * config/bfin/bfin.c (override_options): Test it and error if
4704 TARGET_FDPIC.
4705
4706 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4707
4708 Originally From Bernd Schmidt
4709 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4710 FD-PIC.
4711
4712 2011-05-03 Jeff Law <law@redhat.com>
4713
4714 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4715 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4716 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4717 than accessing AUX field directly. Free the AUX field before
4718 clearing it.
4719 (thread_block, thread_through_loop_header): Likewise.
4720 (thread_single_edge, mark_threaded_blocks): Likewise.
4721 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4722 (register_jump_thread): Do not attempt to thread to a NULL edge.
4723
4724 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4725
4726 * function.c (init_function_start): Call decide_function_section.
4727 * varasm.c (decide_function_section): New function.
4728 (assemble_start_function): When not using
4729 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4730 or first_function_block_is_cold.
4731 * rtl.h (decide_function_section): Declare.
4732
4733 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4734 Jakub Jelinek <jakub@redhat.com>
4735
4736 PR target/48774
4737 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4738 only succeed if req_mode is the same as set_mode.
4739
4740 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4741
4742 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4743 * genemit.c (gen_exp): Handle RETURN.
4744 * emit-rtl.c (verify_rtx_sharing): Likewise.
4745 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4746 * rtl.c (copy_rtx): RETURN is shared.
4747 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4748 (ret_rtx): New.
4749 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4750 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4751 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4752 * config/cris/cris.c (cris_expand_return): Likewise.
4753 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4754 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4755 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4756 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4757 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4758 Likewise.
4759 * config/v850/v850.c (expand_epilogue): Likewise.
4760 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4761 * config/arm/arm.md (epilogue): Likewise.
4762 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4763 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4764 variable to ret_reg.
4765
4766 2011-05-03 Richard Guenther <rguenther@suse.de>
4767
4768 PR lto/48846
4769 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4770 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4771 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4772
4773 2011-05-03 Richard Guenther <rguenther@suse.de>
4774
4775 * c-decl.c (grokdeclarator): Instead of looking at
4776 TREE_OVERFLOW check if the constant fits in the index type.
4777
4778 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4779
4780 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4781 (vec_store_lanes<mode><mode>): Likewise.
4782
4783 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4784
4785 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4786 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4787 convert_optab_index values.
4788 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4789 * genopinit.c (optabs): Initialize the new optabs.
4790 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4791 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4792 (expand_STORE_LANES): New functions.
4793 * tree.h (build_array_type_nelts): Declare.
4794 * tree.c (build_array_type_nelts): New function.
4795 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4796 (vect_model_load_cost): Likewise.
4797 (vect_store_lanes_supported, vect_load_lanes_supported)
4798 (vect_record_strided_load_vectors): Declare.
4799 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4800 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4801 (vect_transform_strided_load): Split out statement recording into...
4802 (vect_record_strided_load_vectors): ...this new function.
4803 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4804 (write_vector_array, create_array_ref): New functions.
4805 (vect_model_store_cost): Add store_lanes_p argument.
4806 (vect_model_load_cost): Add load_lanes_p argument.
4807 (vectorizable_store): Try to use store-lanes functions for
4808 interleaved stores.
4809 (vectorizable_load): Likewise load-lanes and loads.
4810 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4811 to vect_model_store_cost.
4812 (vect_build_slp_tree): Likewise vect_model_load_cost.
4813
4814 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4815
4816 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4817 * hooks.c (hook_bool_mode_uhwi_false): New function.
4818 * target.def (array_mode_supported_p): New hook.
4819 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4820 * doc/tm.texi: Regenerate.
4821 * stor-layout.c (mode_for_array): New function.
4822 (layout_type): Use it.
4823 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4824 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4825
4826 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4827
4828 PR target/48723
4829 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4830 for -fstack-check if the size to allocate is negative.
4831
4832 2011-05-02 Lawrence Crowl <crowl@google.com>
4833
4834 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4835 (timevar_cond_start): New for starting a timer only when it is not
4836 already running.
4837 (timevar_cond_stop): New for stopping a timer when it was not already
4838 running.
4839
4840 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4841 (timevar_cond_start): New as above.
4842 (timevar_cond_stop): New as above.
4843
4844 * timevar.def: Add start/stop timers for compiler phases,
4845 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4846 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4847 and TV_PHASE_FINALIZE.
4848 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4849 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4850 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4851 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4852 Make unused TV_OVERLOAD into a start/stop timer.
4853
4854 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4855 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4856 to indicate that they are start/stop timers.
4857
4858 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4859 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4860 Move initialization to do_compile.
4861 (do_compile): Add initialization from above.
4862 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4863
4864 * c-decl.c (c_write_global_declarations): Add start/stop of
4865 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4866
4867 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4868 or TV_PARSE_INLINE, as appropriate.
4869 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4870 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4871
4872 2011-05-02 Jason Merrill <jason@redhat.com>
4873
4874 PR c++/40975
4875 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4876
4877 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4878
4879 PR c/35445
4880 * c-decl.c (finish_decl): Only create a composite if the types are
4881 compatible.
4882
4883 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4884
4885 * config/fr30/fr30-protos.h (Mmode): Don't define.
4886 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4887 definition where used.
4888 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4889 define. Expand definitions where used.
4890 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4891 Expand definitions where used.
4892 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4893 rx_function_arg, rx_function_arg_advance,
4894 rx_function_arg_boundary): Expand definitions of those macros.
4895 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4896 definition where used.
4897
4898 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4899
4900 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4901 reg<->xmm moves.
4902 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4903 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4904 with *movv2sf_internal_rex64_avx.
4905 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4906 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4907 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4908 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4909 "vex" in "prefix" attribute calculation.
4910 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4911
4912 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4913
4914 PR target/47951
4915 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4916 inputs match the output.
4917
4918 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4919
4920 PR target/47955
4921 * config/m68k/m68k.c (m68k_expand_prologue): Set
4922 current_function_static_stack_size.
4923
4924 2011-05-02 Jan Hubicka <jh@suse.cz>
4925
4926 * lto-streamer.c (lto_streamer_cache_insert_1,
4927 lto_streamer_cache_lookup, lto_streamer_cache_create,
4928 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4929 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4930
4931 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4932
4933 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4934 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4935 config/m68k/t-opts: New files.
4936 * config/m68k/m68k-tables.opt: New file (generated).
4937 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4938 extra_options and m68k/t-opts to tmake_file.
4939 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4940 (all_isas): Initialize using m68k-isas.def.
4941 (all_microarchs): Initialize using m68k-microarchs.def.
4942 (m68k_find_selection): Remove.
4943 (m68k_handle_option): Don't assert that global structures are in
4944 use. Use error_at. Access variables via opts pointer. Don't
4945 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4946 directly for -m68020-40 and -m68020-60.
4947 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4948 m68k_tune_entry here.
4949 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4950 to m68k-opts.h.
4951 (m68k_library_id_string): Remove declaration.
4952 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4953 (m68k_library_id_string): New Variable.
4954 (march=, mcpu=, mtune=): Use Enum and Var.
4955
4956 2011-05-02 Richard Guenther <rguenther@suse.de>
4957
4958 * varasm.c (output_constructor_regular_field): Compute zero-based
4959 index with double-ints. Make sure to ICE instead of producing
4960 wrong code.
4961 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4962 in asserts. Properly use a signed type.
4963
4964 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4965
4966 * config/i386/sse.md (V): New mode iterator.
4967 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4968 TARGET_SSE2.
4969 (V_256): Rename from AVX256MODE.
4970 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4971 condition to all users.
4972 (VF1): Ditto.
4973 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4974 condition to all users.
4975 (VF_128): Make V4SF mode unconditional.
4976 (VF_256): Rename from AVX256MODEF2P.
4977 (VI4F_128): Rename from SSEMODE4S.
4978 (VI8F_128): Rename from SSEMODE2D.
4979 (VI4F_256): Rename from AVX256MODE8P.
4980 (VI8F_256): Rename from AVX256MODE4P.
4981 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4982 (ssescalarmodesuffix): Remove SF and DF modes.
4983 (SSEMODE124): Remove.
4984 (SSEMODE1248): Ditto.
4985 (SSEMODEF2P): Ditto.
4986 (AVXMODEF2P): Ditto.
4987 (AVXMODEFDP): Ditto.
4988 (AVXMODEFSP): Ditto.
4989 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4990 unconditional.
4991 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4992 unconditional.
4993 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4994 xop_pcmov_<mode>256. Use V mode iterator.
4995
4996 Adjust RTX patterns globally for renamed mode attributes.
4997
4998 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4999
5000 * haifa-sched.c (sched_emit_insn): Emit insn before first
5001 non-scheduled insn. Inform back-end about new insn. Add
5002 new insn to scheduled_insns list.
5003
5004 2011-05-02 Richard Guenther <rguenther@suse.de>
5005
5006 PR tree-optimization/48822
5007 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5008 (process_scc): Indicate which iteration we start.
5009
5010 2011-05-02 Jan Hubicka <jh@suse.cz>
5011
5012 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5013 (lto_section_overrun): New.
5014 * lto-section-out.c (append_block): Rename to ...
5015 (lto_append_block): ... this one; export.
5016 (lto_output_1_stream): Move lto lto-streamer.h
5017 (lto_output_data_stream): Update.
5018 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5019 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5020 functions.
5021
5022 2011-05-02 Richard Guenther <rguenther@suse.de>
5023
5024 * tree.c (tree_code_counts): New global array.
5025 (record_node_allocation_statistics): Count individual tree codes.
5026 (dump_tree_statistics): Dump individual code stats.
5027
5028 2011-05-01 Jan Hubicka <jh@suse.cz>
5029
5030 * ipa-inline.c (caller_growth_limits): Fix thinko when
5031 looking for largest stack frame.
5032 * ipa-inline.h (dump_inline_summary): Declare.
5033 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5034 on stack usage.
5035 (dump_inline_summary): Export.
5036 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5037
5038 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5039
5040 * reginfo.c (memory_move_cost): Change rclass argument type form
5041 'enum reg_class' to reg_class_t.
5042 * reload.h (memory_move_cost): Update prototype.
5043 * postreload.c reload_cse_simplify_set): Change type dclass var to
5044 reg_class_t.
5045 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5046 Update prototype.
5047 (ira_allocate_and_set_costs): Change aclass argument type form
5048 'enum reg_class' to reg_class_t.
5049 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5050 Change aclass argument type to reg_class_t.
5051 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5052 to reg_class_t.
5053 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5054 memory_move_cost call.
5055
5056 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5057 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5058 Change type tmp var to reg_class_t.
5059
5060 2011-04-30 Jan Hubicka <jh@suse.cz>
5061
5062 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5063 inlining into function with flatten attribute.
5064 (want_inline_small_function_p): Be more realistic about inlining
5065 cold calls where callee size grows.
5066
5067 2011-04-30 Jan Hubicka <jh@suse.cz>
5068
5069 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5070 flags.
5071
5072 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5073
5074 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5075 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5076 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5077 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5078 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5079 (print_operand): Rename to...
5080 (sparc_print_operand): ...this. Make static. Adjust
5081 sparc_print_operand function call.
5082 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5083 functions.
5084
5085 2011-04-30 Jan Hubicka <jh@suse.cz>
5086
5087 PR middle-end/48752
5088 * ipa-inline.c (early_inliner): Disable when doing late
5089 addition of function.
5090
5091 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5092
5093 * dwarf2out.c (get_address_mode): New inline.
5094 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5095 if not dwarf_strict emit
5096 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5097 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5098 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5099 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5100 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5101 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5102 mem_loc_descriptor callers.
5103 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5104 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5105 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5106 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5107 (base_types): New variable.
5108 (get_base_type_offset, calc_base_type_die_sizes,
5109 base_type_for_mode, mark_base_types, base_type_cmp,
5110 move_marked_base_types): New functions.
5111 (calc_die_sizes): Assert that die_offset is 0 or equal to
5112 next_die_offset.
5113 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5114 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5115 callers. If not dwarf_strict, call mem_loc_descriptor even for
5116 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5117 (gen_subprogram_die): Don't give up on call site parameters
5118 with non-integral or large integral modes. Adjust
5119 mem_loc_descriptor callers.
5120 (prune_unused_types): Call prune_unused_types_mark on base_types
5121 vector entries.
5122 (resolve_addr): Call mark_base_types.
5123 (dwarf2out_finish): Call move_marked_base_types.
5124
5125 PR tree-optimization/48809
5126 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5127 type.
5128 (gen_inbound_check): Don't compute index_expr - range_min in utype
5129 again, instead reuse SSA_NAME initialized in build_arrays.
5130 Remove two useless gsi_for_stmt calls.
5131
5132 2011-04-29 Jeff Law <law@redhat.com>
5133
5134 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5135
5136 2011-04-29 Martin Jambor <mjambor@suse.cz>
5137
5138 * cgraph.h (cgraph_postorder): Remove declaration.
5139 * ipa-utils.h (ipa_free_postorder_info): Declare.
5140 (ipa_reverse_postorder): Likewise.
5141 * cgraphunit.c: Include ipa-utils.h.
5142 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5143 * ipa-inline.c: Include ipa-utils.h.
5144 (ipa_inline): Update call to ipa_reverse_postorder.
5145 * ipa-pure-const.c (propagate_pure_const): Update call to
5146 ipa_reduced_postorder and ipa_print_order. Call
5147 ipa_free_postorder_info to clean up.
5148 (propagate_nothrow): Likewise.
5149 * ipa-reference.c (propagate): Removed a useless call to
5150 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5151 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5152 * ipa.c: Include ipa-utils.h.
5153 (ipa_profile): Update call to ipa_reverse_postorder.
5154 (cgraph_postorder): Moved to...
5155 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5156 (ipa_utils_print_order): Renamed to ipa_print_order.
5157 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5158 comments.
5159 (ipa_free_postorder_info): New function.
5160 * passes.c: Include ipa-utils.h.
5161 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5162 (ipa_write_summaries): Likewise.
5163 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5164 (cgraphunit.o): Likewise.
5165 (ipa.o): Likewise.
5166 (ipa-inline.o): Likewise.
5167
5168 2011-04-29 Jan Hubicka <jh@suse.cz>
5169
5170 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5171 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5172 * ipa-inline.h (clause_t): Turn into unsigned int.
5173 * ipa-inline-analysis.c (add_clause): Do more simplification.
5174 (and_predicates): Shortcut more cases.
5175 (predicates_equal_p): Move forward; check that clauses are properly
5176 ordered.
5177 (or_predicates): Shortcut more cases.
5178 (edge_execution_predicate): Rewrite as...
5179 (set_cond_stmt_execution_predicate): ... this function; handle
5180 __builtin_constant_p.
5181 (set_switch_stmt_execution_predicate): New .
5182 (compute_bb_predicates): New.
5183 (will_be_nonconstant_predicate): Update TODO.
5184 (estimate_function_body_sizes): Use compute_bb_predicates
5185 and free them later, always try to estimate if stmt is constant.
5186 (estimate_time_after_inlining, estimate_size_after_inlining):
5187 Gracefully handle optimized out edges.
5188 (read_predicate): Fix off by one error.
5189
5190 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5191
5192 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5193
5194 2011-04-27 Xinliang David Li <davidxl@google.com>
5195
5196 * tree-profile.c (init_ic_make_global_vars): Set
5197 tls attribute on ic vars.
5198 * coverage.c (coverage_end_function): Initialize
5199 function_list with zero.
5200
5201 2011-04-29 Richard Guenther <rguenther@suse.de>
5202
5203 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5204 for the type of the result.
5205 (fold_builtin_isascii): Likewise.
5206 (fold_builtin_toascii): Use integer_type_node where appropriate.
5207 (fold_builtin_logb): Likewise.
5208 (fold_builtin_frexp): Likewise.
5209 (fold_builtin_strstr): Likewise.
5210 (fold_builtin_strpbrk): Likewise.
5211 (fold_builtin_fputs): Likewise.
5212 (fold_builtin_sprintf): Likewise.
5213 (fold_builtin_snprintf): Likewise.
5214 (fold_builtin_printf): Likewise.
5215 (do_mpfr_remquo): Use a proper type for the assigned constant.
5216 (do_mpfr_lgamma_r): Likewise.
5217 * dwarf2out.c (resolve_one_addr): Use size_int.
5218 * except.c (init_eh): Likewise.
5219 (assign_filter_values): Use integer_type_node for filter values.
5220 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5221 indices.
5222 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5223 for EH region numbers.
5224 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5225 for the shift amount.
5226
5227 2011-04-29 Richard Guenther <rguenther@suse.de>
5228
5229 * expr.h (expand_shift): Rename to ...
5230 (expand_variable_shift): ... this.
5231 (expand_shift): Take a constant shift amount.
5232 * expmed.c (expand_shift): Rename to ...
5233 (expand_variable_shift): ... this.
5234 (expand_shift): New wrapper around expand_variable_shift.
5235 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5236 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5237 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5238 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5239 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5240 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5241 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5242 emit_store_flag_1, emit_store_flag): Likewise.
5243 * builtins.c (expand_builtin_signbit): Likewise.
5244 * calls.c (load_register_parameters): Likewise.
5245 * function.c (assign_parm_setup_block): Likewise.
5246 * lower-subreg.c (resolve_shift_zext): Likewise.
5247 * optabs.c (widen_bswap, expand_abs_nojump,
5248 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5249 * spu/spu.c (spu_expand_extv): Likewise.
5250 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5251
5252 2011-04-29 Richard Guenther <rguenther@suse.de>
5253
5254 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5255 for the remapped region number.
5256 * predict.c (build_predict_expr): Use integer_type_node for the
5257 predict kind.
5258 * fold-const.c (fold_binary_loc): Use integer_type_node for
5259 the shift amount. Use a proper type for the PLUS_EXPR operand.
5260
5261 2011-04-29 Michael Matz <matz@suse.de>
5262
5263 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5264 other trees that just builtins.
5265 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5266
5267 2011-04-29 Richard Guenther <rguenther@suse.de>
5268
5269 * tree-nested.c (get_trampoline_type): Use size_int.
5270 (get_nl_goto_field): Likewise.
5271 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5272 for all indexes.
5273 (lower_eh_constructs_2): Likewise.
5274 (lower_resx): Likewise.
5275 (lower_eh_dispatch): Likewise.
5276 * tree-mudflap.c (mf_build_string): Use size_int.
5277 (mudflap_register_call): Use integer_type_node for the flag.
5278 (mudflap_enqueue_constant): Use size_int.
5279 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5280 instead of rebuilding it.
5281
5282 2011-04-29 Richard Guenther <rguenther@suse.de>
5283
5284 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5285 Handle OBJ_TYPE_REF.
5286 (find_func_aliases_for_call): Use it more consistently.
5287
5288 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5289
5290 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5291 (rank_for_schedule): Use it.
5292 (schedule_block): Set it.
5293
5294 2011-04-28 David Li <davidxl@google.com>
5295
5296 * tree.c (crc32_string): Use crc32_byte.
5297 (crc32_byte): New function.
5298 * tree.h (crc32_byte): New function.
5299 * gcov.c (read_graph_file): Handle new cfg_cksum.
5300 (read_count_file): Ditto.
5301 * profile.c (instrument_values): Ditto.
5302 (get_exec_counts): Ditto.
5303 (read_profile_edge_counts): Ditto.
5304 (compute_branch_probabilities): Ditto.
5305 (compute_value_histograms): Ditto.
5306 (branch_prob): Ditto.
5307 (end_branch_prob): Ditto.
5308 * coverage.c (read_counts_file): Ditto.
5309 (get_coverage_counts): Ditto.
5310 (tree_coverage_counter_addr): Ditto.
5311 (coverage_checksum_string): Ditto.
5312 (coverage_begin_output): Ditto.
5313 (coverage_end_function): Ditto.
5314 (build_fn_info_type): Ditto.
5315 (build_fn_info_value): Ditto.
5316 * libgcov.c (gcov_exit): Ditto.
5317 * gcov-dump.c (tag_function): Ditto.
5318 (compute_checksum): Remove.
5319
5320 2011-04-29 Alan Modra <amodra@gmail.com>
5321
5322 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5323 unspec plus offset. Tidy macho code.
5324
5325 2011-04-29 Martin Jambor <mjambor@suse.cz>
5326
5327 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5328 node instead of a decl. Update all callers.
5329 * cgraph.h: Update declaration.
5330
5331 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5332
5333 PR tree-optimization/48765
5334 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5335 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5336 to indicate if loop aware SLP is being used. Scan the statements
5337 and update the vectorization factor according to the type of
5338 vectorization before statement analysis.
5339 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5340 pass it to vect_analyze_loop_operations.
5341 (vectorizable_reduction): Set number of copies to 1 in case of pure
5342 SLP statement.
5343 * tree-vect-stmts.c (vectorizable_conversion,
5344 vectorizable_assignment, vectorizable_shift,
5345 vectorizable_operation, vectorizable_type_demotion,
5346 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5347 Likewise.
5348 (vectorizable_condition): Move the check that it is not SLP
5349 vectorization before the number of copies check.
5350 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5351 to vectorize the loop using SLP.
5352
5353 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5354
5355 PR middle-end/48597
5356 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5357 inline asm.
5358
5359 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5360
5361 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5362 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5363 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5364 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5365 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5366 linux*.h headers.
5367 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5368 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5369 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5370 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5371 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5372 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5373 REG_NAME.
5374 * config/i386/linux.h (REG_NAME): Don't define.
5375 * config/i386/linux64.h (REG_NAME): Don't define.
5376 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5377 Undefine before defining.
5378
5379 2011-04-28 Jan Hubicka <jh@suse.cz>
5380
5381 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5382 nonconstant_names array.
5383 (estimate_function_body_sizes): Build nonconstant_names array; handle
5384 BUILT_IN_CONSTANT_P.
5385
5386 2011-04-28 Richard Guenther <rguenther@suse.de>
5387
5388 PR bootstrap/48804
5389 Revert
5390 2011-04-28 Richard Guenther <rguenther@suse.de>
5391
5392 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5393 as late as possible.
5394
5395 2011-04-28 Richard Guenther <rguenther@suse.de>
5396
5397 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5398 (debug_constraint): Do it here.
5399 (dump_constraints): And here.
5400 (rewrite_constraints): And here.
5401 (dump_constraint_edge): Remove.
5402 (dump_constraint_graph): Rewrite to produce DOT output.
5403 (solve_constraints): Build succ graph as late as possible.
5404 Dump constraint graphs before and after solving.
5405
5406 2011-04-28 Richard Guenther <rguenther@suse.de>
5407
5408 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5409 New function split out from ...
5410 (find_func_aliases): ... here. Call it.
5411 (find_func_aliases_for_call): Likewise.
5412
5413 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5414
5415 * internal-fn.h (internal_fn_name_array): Declare.
5416 (internal_fn_flags_array): Likewise.
5417
5418 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5419
5420 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5421 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5422 Move from sse.md.
5423 (ssemodefsuffix): Remove.
5424 (ssevecmodesuffix): New mode attribute.
5425 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5426 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5427 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5428 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5429 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5430 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5431 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5432 ssemodesuffix mode attribute.
5433 (float splitters): Use ssevecmodesuffix mode attribute.
5434 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5435 (sseinsmode): Rename from avxvecmode.
5436 (avxsizesuffix): Rename from avxmodesuffix.
5437 (sseintvecmode): Rename from avxpermvecmode.
5438 (ssedoublevecmode): Rename from ssedoublesizemode.
5439 (ssehalfvecmode): Rename from avxhalfvecmode.
5440 (ssescalarmode): Rename from avxscalarmode.
5441 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5442 templates for ssemodesuffix mode attribute.
5443 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5444 mode attribute.
5445
5446 Adjust RTX patterns globally for renamed mode attributes.
5447
5448 2011-04-27 Jan Hubcika <jh@suse.cz>
5449
5450 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5451 * ipa-inline-analysis.c: Include alloc-pool.h.
5452 (edge_predicate_pool): New.
5453 (trye_predicate_p): New function
5454 (false_predicate_p): New function.
5455 (add_clause): Sanity check that false clauses are "optimized";
5456 never add clauses to predicate that is already known to be false.
5457 (and_predicate): Use flase_predicate_p.
5458 (evaulate_predicate): Rename to ...
5459 (evaluate_predicate): ... this one; update all callers; assert
5460 that false is not listed among possible truths.
5461 (dump_predicate): Use true_predicate_p.
5462 (account_size_time): Use false_predicate_p.
5463 (evaulate_conditions_for_edge): Rename to ...
5464 (evaluate_conditions_for_edge) ... this one.
5465 (edge_set_predicate): New function.
5466 (inline_edge_duplication_hook): Duplicate edge predicates.
5467 (inline_edge_removal_hook): Free edge predicates.
5468 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5469 (dump_inline_summary): Update.
5470 (estimate_function_body_sizes): Set edge predicates.
5471 (estimate_calls_size_and_time): Handle predicates.
5472 (estimate_callee_size_and_time): Update.
5473 (remap_predicate): Add toplev_predicate; update comment.
5474 (remap_edge_predicates): New function.
5475 (inline_merge_summary): Compute toplev predicate; update.
5476 (read_predicate): New function.
5477 (read_inline_edge_summary): Use it.
5478 (inline_read_section): Likewise.
5479 (write_predicate): New function.
5480 (write_inline_edge_summary): Use it.
5481 (inline_write_summary): Likewise.
5482 (inline_free_summary): Free alloc pool and edge summary vec.
5483
5484 2011-04-27 Richard Guenther <rguenther@suse.de>
5485
5486 * tree-ssa-structalias.c (changed_count): Remove.
5487 (changed): Use a bitmap.
5488 (unify_nodes): Adjust.
5489 (do_sd_constraint): Likewise.
5490 (do_ds_constraint): Likewise.
5491 (do_complex_constraint): Likewise.
5492 (solve_graph): Likewise.
5493
5494 2011-04-27 Jan Hubicka <jh@suse.cz>
5495
5496 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5497
5498 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5499
5500 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5501 (avx_vperm2f128_*_operand): Ditto.
5502 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5503 Use avx_vpermilp_parallel in insn condition.
5504 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5505 Use avx_vperm2f128_parallel in insn condition.
5506
5507 2011-04-27 Richard Guenther <rguenther@suse.de>
5508
5509 * Makefile.in (tree-ssa-structalias.o): Remove
5510 gt-tree-ssa-structalias.h dependency.
5511 (GTFILES): Remove tree-ssa-structalias.c.
5512 * tree.c (allocate_decl_uid): New function.
5513 (make_node_stat): Use it.
5514 (copy_node_stat): Likewise.
5515 * tree.h (allocate_decl_uid): Declare.
5516 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5517 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5518 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5519 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5520 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5521 (struct heapvar_map): Likewise.
5522 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5523 heapvar_insert): Likewise.
5524 (make_heapvar_for): Rename to ...
5525 (make_heapvar): ... this. Simplify.
5526 (fake_var_decl_obstack): New global var.
5527 (build_fake_var_decl): New function.
5528 (make_constraint_from_heapvar): Adjust.
5529 (handle_lhs_call): Likewise.
5530 (create_function_info_for): Likewise.
5531 (intra_create_variable_infos): Likewise.
5532 (init_alias_vars): Allocate fake_var_decl_obstack.
5533 (init_alias_heapvars, delete_alias_heapvars): Remove.
5534 (compute_points_to_sets): Do not call init_alias_heapvars.
5535 (ipa_pta_execute): Likewise.
5536 (delete_points_to_sets): Free fake_var_decl_obstack.
5537
5538 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5539
5540 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5541 (si_from_UTItype, si_to_UTItype): New functions.
5542 (__udivmodti4): Use them to implement type-punning.
5543 * config/spu/multi3.c (union qword_TItype): New data type.
5544 (si_from_TItype, si_to_TItype): New functions.
5545 (__multi3): Use them to implement type-punning.
5546
5547 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5548
5549 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5550
5551 2011-04-27 Jan Hubicka <jh@suse.cz>
5552
5553 * ipa-prop.c (function_insertion_hook_holder): New holder.
5554 (ipa_add_new_function): New function.
5555 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5556 Register/deregister holder.
5557
5558 2011-04-27 Richard Guenther <rguenther@suse.de>
5559
5560 PR tree-optimization/48772
5561 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5562
5563 2011-04-27 Richard Guenther <rguenther@suse.de>
5564
5565 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5566 TARGET_MEM_REF handling.
5567
5568 2011-04-27 Nick Clifton <nickc@redhat.com>
5569
5570 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5571 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5572 (REG_CLASS_NAMES): Likewise.
5573 (REG_CLASS_CONTENTS): Likewise.
5574 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5575 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5576 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5577 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5578 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5579 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5580 duplicate register classes.
5581 (frv_class_likely_spilled_p): Likewise.
5582 (frv_register_move_cost): Likewise.
5583
5584 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5585 end of the regno_reg_class array.
5586
5587 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5588
5589 PR c/48742
5590 * c-typeck.c (build_binary_op): Don't wrap arguments if
5591 int_operands is true.
5592
5593 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5594
5595 PR target/48767
5596 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5597 targetm.calls.must_pass_in_stack for void type.
5598
5599 2011-04-26 Jan Hubicka <jh@suse.cz>
5600
5601 * cgraphbuild.c (build_cgraph_edges): Update call
5602 of cgraph_create_edge and cgraph_create_indirect_edge.
5603 * cgraph.c (cgraph_create_edge_including_clones,
5604 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5605 cgraph_update_edges_for_call_stmt_node): Do not take nest
5606 argument; do not initialize call_stmt_size/time.
5607 (dump_cgraph_node): Do not dump nest.
5608 (cgraph_clone_edge): Do not take loop_nest argument;
5609 do not propagate it; do not clone call_stmt_size/time.
5610 (cgraph_clone_node): Likewise.
5611 (cgraph_create_virtual_clone): Update.
5612 * cgraph.h (struct cgraph_edge): Remove
5613 call_stmt_size/call_stmt_time/loop_nest.
5614 (cgraph_create_edge, cgraph_create_indirect_edge,
5615 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5616 prototype.
5617 * tree-emutls.c (gen_emutls_addr): Update.
5618 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5619 loop_nest; handle indirect calls, too.
5620 (clone_inlined_nodes): Do not care about updating inline summaries.
5621 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5622 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5623 stream call_stmt_size/call_stmt_time/loop_nest.
5624 * ipa-inline.c (edge_badness): Update.
5625 (ipa_inline): dump summaries after inlining.
5626 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5627 New.
5628 (inline_edge_summary): New function.
5629 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5630 (inline_edge_removal_hook): Handle edge summaries.
5631 (inline_edge_duplication_hook): New hook.
5632 (inline_summary_alloc): Alloc hooks.
5633 (initialize_growth_caches): Do not register removal hooks.
5634 (free_growth_caches); Do not free removal hook.
5635 (dump_inline_edge_summary): New function.
5636 (dump_inline_summary): Use it.
5637 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5638 (inline_update_callee_summaries): New function.
5639 (inline_merge_summary): Use it.
5640 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5641 (read_inline_edge_summary): New function.
5642 (inline_read_section): Use it.
5643 (write_inline_edge_summary): New function.
5644 (inline_write_summary): Use it.
5645 (inline_free_summary): Free edge new holders.
5646 * tree-inline.c (copy_bb): Update.
5647
5648 2011-04-26 Jason Merrill <jason@redhat.com>
5649
5650 * tree-eh.c (lower_try_finally_switch): Create the label along with
5651 the CASE_LABEL_EXPR.
5652
5653 2011-04-26 David S. Miller <davem@davemloft.net>
5654 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5655
5656 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5657 * configure: Regenerate.
5658
5659 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5660
5661 PR target/48258
5662 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5663 reduction.
5664 (VEC_reduc): New code iterator and splitters for vector reduction.
5665 (VEC_reduc_name): Ditto.
5666 (VEC_reduc_rtx): Ditto.
5667 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5668 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5669
5670 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5671 support for extracting SF on VSX.
5672
5673 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5674 generating xscvspdp.
5675 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5676 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5677 double add, minimum, maximum vector reduction.
5678 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5679 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5680 optimize double vector reduction.
5681 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5682
5683 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5684
5685 * config/fr30/fr30.h (inhibit_libc): Don't define.
5686 * config/m32r/m32r-protos.h: Correct comment.
5687 * config/v850/v850.h (GHS_default_section_names,
5688 GHS_current_section_names): Use tree, not union tree_node *.
5689
5690 2011-04-26 Xinliang David Li <davidxl@google.com>
5691
5692 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5693 * c-family/c-opts.c (c_common_handle_option): Set
5694 warn_maybe_uninitialized.
5695 * opts.c (common_handle_option): Ditto.
5696 * common.opt: New option.
5697 * tree-ssa.c (warn_uninit): Add one more parameter.
5698 (warn_uninitialized_var): Pass warning code.
5699 * tree-flow.h: Interface change.
5700
5701 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5702
5703 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5704 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5705 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5706
5707 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5708
5709 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5710 * config/mips/mips.opt (mmips-tfile): Remove.
5711
5712 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5713 mips-tdump reference to ...
5714 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5715 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5716 reference by Tru64 UNIX.
5717
5718 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5719
5720 PR debug/48768
5721 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5722 is error_mark_node, set value to NULL.
5723
5724 PR tree-optimization/48734
5725 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5726 if return value from maybe_fold_*_comparsions isn't something
5727 the code is prepared to handle.
5728
5729 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5730
5731 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5732 mode check.
5733 (ext_QIreg_nomode_operands): Remove.
5734 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5735 (*andsi_1): Ditto.
5736 (*andhi_1): Ditto.
5737
5738 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5739
5740 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5741
5742 2011-04-26 Richard Guenther <rguenther@suse.de>
5743
5744 * c-typeck.c (build_unary_op): Do not expand array-refs via
5745 pointer arithmetic. Only adjust qualifiers for function types.
5746
5747 2011-04-26 Richard Guenther <rguenther@suse.de>
5748
5749 PR middle-end/48694
5750 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5751 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5752 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5753 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5754
5755 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5756
5757 * doc/extend.texi: Document __underlying_type.
5758
5759 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5760
5761 * config/rs6000/titan.md (automata_option "progress"): Remove.
5762
5763 2011-04-25 Jeff Law <law@redhat.com>
5764
5765 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5766
5767 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5768
5769 * system.h (ENUM_BITFIELD): Remove.
5770
5771 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5772 Eric Botcazou <ebotcazou@adacore.com>
5773
5774 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5775 for STORE_FLAG_VALUE==-1 case.
5776
5777 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5778
5779 PR target/43804
5780 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5781 LEGITIMATE_PIC_OPERAND_P.
5782
5783 2011-04-24 Jan Hubicka <jh@suse.cz>
5784
5785 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5786 WPA hack.
5787 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5788 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5789 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5790 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5791 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5792 Sanity check predicate length.
5793 (remap_predicate): Likewise; sanity check jump functions.
5794 (inline_read_section, inline_write_summary): Sanity check
5795 predicate length.
5796
5797 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5798
5799 PR other/48748
5800 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5801 __is_literal_type, and __is_trivial; update throughout about
5802 possibly cv-qualified void types.
5803
5804 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5805
5806 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5807 testsuite and make it version agnostic.
5808
5809 2011-04-22 Jan Hubicka <jh@suse.cz>
5810
5811 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5812
5813 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5814
5815 PR c/48685
5816 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5817 to VOID_TYPE even around MODIFY_EXPR.
5818
5819 2011-04-22 Mike Stump <mikestump@comcast.net>
5820
5821 * gensupport.c (read_md_rtx): Fix typo in comment.
5822 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5823 comment.
5824
5825 2011-04-22 Jan Hubicka <jh@suse.cz>
5826
5827 * gengtype.c (open_base_files): Add ipa-inline.h include.
5828 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5829 ipa-prop.c; update all uses.
5830 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5831 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5832 merge summary of inlined function into former caller.
5833 * ipa-inline.c (max_benefit): Remove.
5834 (edge_badness): Compensate for removal of benefits.
5835 (update_caller_keys): Use
5836 reset_node_growth_cache/reset_edge_growth_cache.
5837 (update_callee_keys): Likewise.
5838 (update_all_callee_keys): Likewise.
5839 (inline_small_functions): Do not collect max_benefit; do not reset
5840 estimated_growth; call free_growth_caches and initialize_growth_caches.
5841 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5842 struct size_time_entry): New structures.
5843 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5844 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5845 and estimated_growth.
5846 (edge_growth_cache_entry): New structure.
5847 (node_growth_cache, edge_growth_cache): New global vars.
5848 (estimate_growth): Turn into inline.
5849 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5850 initialize_growth_caches, free_growth_caches): Declare.
5851 (estimate_edge_growth): Rewrite.
5852 (estimate_edge_time): Implement as inline cache lookup.
5853 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5854 functions.
5855 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5856 (NUM_CONDITIONS): New constant.
5857 (predicate_conditions): New enum.
5858 (IS_NOT_CONSTANT): New constant.
5859 (edge_removal_hook_holder): New var.
5860 (node_growth_cache, edge_growth_cache): New global vars.
5861 (true_predicate, single_cond_predicate, false_predicate,
5862 not_inlined_predicate, add_condition, add_clause, and_predicates,
5863 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5864 dump_clause, dump_predicate, account_size_time,
5865 evaulate_conditions_for_edge): New functions.
5866 (inline_summary_alloc): Move to heap.
5867 (inline_node_removal_hook): Clear condition and entry vectors.
5868 (inline_edge_removal_hook): New function.
5869 (initialize_growth_caches, free_growth_caches): New function.
5870 (dump_inline_summary): Update.
5871 (edge_execution_predicate): New function.
5872 (will_be_nonconstant_predicate): New function.
5873 (estimate_function_body_sizes): Compute BB and constantness predicates.
5874 (compute_inline_parameters): Do not clear estimated_growth.
5875 (estimate_edge_size_and_time): New function.
5876 (estimate_calls_size_and_time): New function.
5877 (estimate_callee_size_and_time): New function.
5878 (remap_predicate): New function.
5879 (inline_merge_summary): New function.
5880 (do_estimate_edge_time): New function based on...
5881 (estimate_edge_time): ... this one.
5882 (do_estimate_edge_growth): New function.
5883 (do_estimate_growth): New function based on....
5884 (estimate_growth): ... this one.
5885 (inline_analyze_function): Analyze after deciding on jump functions.
5886 (inline_read_section): New function.
5887 (inline_read_summary): Use it.
5888 (inline_write_summary): Write all the new data.
5889 * ipa-prop.c (ipa_get_param_decl_index): Export.
5890 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5891 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5892 Declare.
5893 (ipa_get_lattice): Move here from ipa-cp.c
5894 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5895 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5896 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5897 cgraph_edge_inlinable_p): Remove.
5898 * cgraphunit.c: Include ipainline.h
5899 (cgraph_process_new_functions): Update call of
5900 compute_inline_parameters.
5901
5902 2011-04-22 Richard Guenther <rguenther@suse.de>
5903
5904 * tree.c (build_int_cst): Properly create canonicalized integer
5905 constants.
5906 (build_int_cst_type): Remove scary comments.
5907
5908 2011-04-22 Xinliang David Li <davidxl@google.com>
5909
5910 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5911 by default when -Wno-error is not specified.
5912 * opts-global.c (decode_options): Remove call to
5913 control_warning_options.
5914
5915 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5916
5917 PR tree-optimization/48717
5918 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5919 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5920
5921 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5922
5923 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5924 definition where used.
5925
5926 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5927
5928 PR c/48716
5929 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5930 TREE_STATIC variables declared inside of some OpenMP construct.
5931
5932 2011-04-22 Martin Jambor <mjambor@suse.cz>
5933
5934 PR middle-end/48585
5935 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5936
5937 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5938
5939 PR c/36750
5940 * c-typeck.c (pop_init_level): Do not warn about initializing
5941 with ` = {0}'.
5942
5943 2011-04-22 Alan Modra <amodra@gmail.com>
5944
5945 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5946 when returning call_cookie.
5947 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5948 pointers, to functions with no more vector args than the current
5949 function, and some non-local calls for ABI_V4.
5950 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5951 sibcall_nonlocal_aix64): Combine to ..
5952 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5953 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5954 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5955 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5956 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5957 operand.
5958 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5959 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5960 sibcall_value_symbolic_64): Delete.
5961
5962 2011-04-21 Xinliang David Li <davidxl@google.com>
5963
5964 * cgraph.h: Remove pid.
5965 * cgraph.c: Remove pid.
5966 * value-prof.c (init_node_map): New function.
5967 (del_node_map): New function.
5968 (find_func_by_funcdef_no): New function.
5969 (gimple_ic_transform): Call new function.
5970 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5971 * function.c (get_last_funcdef_no): New function.
5972 * function.h (get_last_funcdef_no): New function.
5973 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5974 to libgcov function.
5975 (tree-profiling): Call node map init and delete function.
5976
5977 2011-04-21 Ian Lance Taylor <iant@google.com>
5978
5979 * godump.c (go_format_type): Use exported Go name for anonymous
5980 field name.
5981
5982 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5983
5984 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5985 Call builtin_function_type_list instead of builtin_function_type.
5986 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5987
5988 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5989
5990 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5991 build_function_type_list instead of build_function_type.
5992 Delete variable `endlink'.
5993
5994 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5995
5996 * config/s390/s390.c (s390_init_builtins): Call
5997 build_function_type_list instead of build_function_type.
5998
5999 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6000
6001 * config/ia64/ia64.c (ia64_init_builtins): Call
6002 build_function_type_list instead of builtin_function_type.
6003
6004 2011-04-21 Easwaran Raman <eraman@google.com>
6005
6006 * cfgexpand.c (stack_var): Remove OFFSET...
6007 (add_stack_var): ...and its reference here...
6008 (expand_stack_vars): ...and here.
6009 (stack_var_cmp): Sort by descending order of size.
6010 (partition_stack_vars): Change heuristic.
6011 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6012 (dump_stack_var_partition): Add newline after each partition.
6013
6014 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6015 Jeff Law <law@redhat.com>
6016
6017 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6018 * gengtype.c (matching_file_name_substitute): Likewise.
6019
6020 2011-04-21 Richard Guenther <rguenther@suse.de>
6021
6022 PR lto/48703
6023 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6024
6025 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6026
6027 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6028
6029 2011-04-21 Richard Guenther <rguenther@suse.de>
6030
6031 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6032 file name.
6033
6034 2011-04-21 Richard Guenther <rguenther@suse.de>
6035
6036 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6037 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6038 Use DECL_P, not SSA_VAR_P.
6039 (ptr_derefs_may_alias_p): Likewise.
6040 (ptr_deref_may_alias_ref_p_1): Likewise.
6041 (decl_refs_may_alias_p): Likewise.
6042 (refs_may_alias_p_1): Likewise.
6043 (ref_maybe_used_by_call_p_1): Likewise.
6044 (call_may_clobber_ref_p_1): Likewise.
6045 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6046 are either MEM_REF or TARGET_MEM_REF.
6047 (indirect_refs_may_alias_p): Likewise.
6048 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6049 for MEM_EXPR of indirect calls.
6050
6051 2011-04-21 Tristan Gingold <gingold@adacore.com>
6052
6053 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6054 (dst_file_info_struct): Remove flen field.
6055 (lookup_filename): Remove code that set flen field.
6056
6057 2011-04-21 Tristan Gingold <gingold@adacore.com>
6058
6059 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6060
6061 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6062
6063 PR target/48708
6064 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6065 vec_extract and vec_concat for non-SSE4_1 targets.
6066
6067 2011-04-21 Richard Guenther <rguenther@suse.de>
6068
6069 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6070 return statements.
6071
6072 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6073
6074 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6075 undefine.
6076 (FILE): Don't undefine.
6077
6078 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6079
6080 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6081 struct rtx_def *.
6082 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6083 struct rtx_def *.
6084 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6085 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6086 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6087 rtx_def *.
6088 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6089 definitions where used.
6090 * config/microblaze/microblaze.h (struct microblaze_args): Use
6091 rtx, not struct rtx_def *.
6092 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6093 rtx_def *.
6094 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6095 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6096 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6097 not struct rtx_def *.
6098 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6099 struct rtx_def *.
6100 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6101 rtx_def *.
6102 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6103
6104 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6105
6106 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6107 operand_equal_p to compare DR_BASE_ADDRESSes.
6108 (vect_check_interleaving): Likewise.
6109
6110 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6111
6112 PR target/46329
6113 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6114 for all Neon struct constants.
6115
6116 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6117
6118 * target.def (legitimate_constant_p): New hook.
6119 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6120 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6121 * doc/tm.texi: Regenerate.
6122 * hooks.h (hook_bool_mode_rtx_true): Declare.
6123 * hooks.c (hook_bool_mode_rtx_true): Define.
6124 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6125 * calls.c (precompute_register_parameters): Replace uses of
6126 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6127 (emit_library_call_value_1): Likewise.
6128 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6129 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6130 * ira-costs.c (scan_one_insn): Likewise.
6131 * recog.c (general_operand, immediate_operand): Likewise.
6132 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6133 * reload1.c (init_eliminable_invariants): Likewise.
6134
6135 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6136 mode argument.
6137 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6138 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6139 argument.
6140 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6141 * config/alpha/predicates.md (input_operand): Update call to
6142 alpha_legitimate_constant_p.
6143
6144 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6145 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6146 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6147 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6148 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6149 (arm_legitimate_constant_p): New functions.
6150 (arm_cannot_force_const_mem): Make static.
6151
6152 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6153
6154 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6155 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6156 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6157 instead of bfin_legitimate_constant_p.
6158 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6159 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6160
6161 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6162
6163 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6164
6165 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6166 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6167 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6168 (frv_legitimate_constant_p): Make static. Add a mode argument.
6169
6170 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6171 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6172 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6173
6174 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6175 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6176 * config/i386/i386.c (legitimate_constant_p): Rename to...
6177 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6178 argument.
6179 (ix86_cannot_force_const_mem): Update accordingly.
6180 (ix86_legitimate_address_p): Likewise.
6181 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6182 * config/i386/i386.md: Update commentary.
6183
6184 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6185 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6186 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6187 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6188
6189 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6190
6191 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6192 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6193 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6194 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6195
6196 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6197 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6198 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6199
6200 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6201 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6202 (m32r_legitimate_constant_p): New function.
6203
6204 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6205 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6206 LEGITIMATE_CONSTANT_P.
6207 (LEGITIMATE_CONSTANT_P): Delete.
6208 * config/m68k/m68k.c (m68k_expand_prologue): Call
6209 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6210 (m68k_legitimate_constant_p): New function.
6211 * config/m68k/m68k.md: Update comments.
6212
6213 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6214 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6215 (mcore_legitimate_constant_p): New function.
6216
6217 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6218 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6219 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6220 Add a mode argument.
6221 (mep_legitimate_address): Update accordingly.
6222 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6223
6224 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6225 Delete.
6226 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6227 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6228 static. Check OP's mode for VOIDmode.
6229 (microblaze_legitimate_constant_p): New function.
6230 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6231
6232 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6233 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6234 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6235 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6236 * config/mips/predicates.md: Update comments.
6237
6238 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6239 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6240 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6241 (mmix_legitimate_constant_p): Make static, return a bool, and take
6242 a mode argument.
6243 (mmix_print_operand_address): Update accordingly.
6244
6245 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6246 Delete.
6247 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6248 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6249 static. Add a mode argument.
6250 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6251
6252 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6253
6254 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6255 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6256 (pa_legitimate_constant_p): New function.
6257
6258 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6259
6260 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6261 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6262 (pdp11_legitimate_constant_p): New function.
6263
6264 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6265 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6266 (rs6000_legitimate_constant_p): New function.
6267
6268 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6269 (rx_legitimate_constant_p): ...this.
6270 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6271 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6272 (rx_legitimate_constant_p): ...this.
6273 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6274 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6275
6276 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6277 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6278 * config/s390/s390.c (legitimate_constant_p): Rename to...
6279 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6280 and add a mode argument.
6281 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6282
6283 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6284
6285 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6286 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6287 (sh_legitimate_constant_p): New function.
6288
6289 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6290 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6291 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6292 (legitimate_constant_p): Rename to...
6293 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6294 argument.
6295 (constant_address_p): Update accordingly.
6296
6297 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6298 argument and return a bool.
6299 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6300 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6301 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6302 (spu_rtx_costs): Update accordingly.
6303 * config/spu/predicates.md (vec_imm_operand): Likewise.
6304
6305 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6306
6307 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6308 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6309 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6310
6311 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6312 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6313 * config/vax/vax.c (legitimate_constant_p): Likewise.
6314
6315 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6316 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6317 (xtensa_legitimate_constant_p): New function.
6318
6319 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6320
6321 * target.def (cannot_force_const_mem): Add a mode argument.
6322 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6323 * doc/tm.texi: Regenerate.
6324 * hooks.h (hook_bool_mode_rtx_false): Declare.
6325 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6326 (hook_bool_mode_const_rtx_true): Likewise.
6327 (hook_bool_mode_rtx_false): New function.
6328 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6329 to be non-VOID. Update call to cannot_force_const_mem.
6330 (find_reloads): Update accordingly.
6331 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6332 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6333 argument.
6334 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6335 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6336 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6337 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6338 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6339 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6340 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6341 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6342 (m68k_cannot_force_const_mem): ...this new function.
6343 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6344 argument.
6345 (mips_const_insns, mips_legitimize_const_move): Update calls.
6346 (mips_secondary_reload_class): Likewise.
6347 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6348 (pa_cannot_force_const_mem): ...this new function.
6349 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6350 (rs6000_cannot_force_const_mem): ...this new function.
6351 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6352 argument.
6353 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6354 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6355 to...
6356 (xtensa_cannot_force_const_mem): ...this new function.
6357
6358 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6359
6360 * config/mips/mips.c (mips16_build_function_stub): Call
6361 build_function_type_list instead of build_function_type.
6362 (mips16_build_call_stub): Likewise.
6363
6364 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6365
6366 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6367 instead of build_function_type.
6368
6369 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6370
6371 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6372 instead of build_function_type.
6373
6374 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6375
6376 PR target/48678
6377 * config/i386/i386.md (insv): Change operand 0 constraint to
6378 "register_operand". Change operand 1 and 2 constraint to
6379 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6380 * config/i386/sse.md (sse4_1_pinsrb): Export.
6381 (sse2_pinsrw): Ditto.
6382 (sse4_1_pinsrd): Ditto.
6383 (sse4_1_pinsrq): Ditto.
6384 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6385 * config/i386/i386.c (ix86_expand_pinsr): New.
6386
6387 2011-04-20 Easwaran Raman <eraman@google.com>
6388
6389 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6390 containing union type only with -fstrict-aliasing.
6391
6392 2011-04-20 Jim Meyering <meyering@redhat.com>
6393
6394 Remove useless if-before-free tests.
6395 * calls.c (expand_call, save_area): Likewise.
6396 * cfgcleanup.c (try_forward_edges): Likewise.
6397 * collect2.c (collect_execute): Likewise.
6398 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6399 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6400 * coverage.c (coverage_checksum_string): Likewise.
6401 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6402 * cselib.c (cselib_init): Likewise.
6403 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6404 (df_set_clean_cfg): Likewise.
6405 * function.c (free_after_compilation): Likewise.
6406 * gcc.c (do_spec_1, main): Likewise.
6407 * gcov.c (create_file_names): Likewise.
6408 * gensupport.c (identify_predicable_attribute): Likewise.
6409 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6410 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6411 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6412 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6413 * ipa-pure-const.c (local_pure_const): Likewise.
6414 * ipa-reference.c (propagate): Likewise.
6415 * ira-costs.c (free_ira_costs): Likewise.
6416 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6417 * matrix-reorg.c (mat_free): Likewise.
6418 * prefix.c (get_key_value): Likewise.
6419 * profile.c (compute_value_histograms): Likewise.
6420 * reload1.c (free_reg_equiv): Likewise.
6421 * sched-deps.c (free_deps): Likewise.
6422 * sel-sched-ir.c (fence_clear): Likewise.
6423 * sese.c (set_rename, if_region_set_false_region): Likewise.
6424 * tree-data-ref.c (free_rdg): Likewise.
6425 * tree-eh.c (lower_try_finally): Likewise.
6426 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6427 * tree-ssa-live.c (delete_var_map): Likewise.
6428 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6429 * tree-ssa-pre.c (phi_trans_add): Likewise.
6430
6431 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6432
6433 PR tree-optimization/48611
6434 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6435 beyond ERT_MUST_NOT_THROW region.
6436
6437 2011-04-20 Catherine Moore <clm@codesourcery.com>
6438
6439 * config/mips/mips.opt (mfix-24k): New.
6440 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6441 * config/mips/mips.md (length): Increase by 4 for stores if
6442 fixing 24K errata.
6443 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6444 all noreorder if fixing 24K errata.
6445 * doc/invoke.texi: Document mfix-24k.
6446
6447 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6448
6449 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6450 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6451
6452 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6453
6454 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6455 (const_ok_for_op): ... to here.
6456
6457 2011-04-20 Kai Tietz <ktietz@redhat.com>
6458
6459 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6460 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6461
6462 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6463
6464 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6465
6466 2011-04-20 Richard Guenther <rguenther@suse.de>
6467
6468 PR tree-optimization/47892
6469 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6470 are if-convertible.
6471
6472 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6473
6474 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6475
6476 2011-04-20 Tristan Gingold <gingold@adacore.com>
6477
6478 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6479
6480 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6481
6482 PR target/18145
6483
6484 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6485 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6486 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6487 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6488 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6489
6490 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6491 New prototype.
6492
6493 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6494 (avr_asm_named_section, avr_asm_output_aligned_common,
6495 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6496 New functions to update...
6497 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6498 (avr_asm_init_sections): Overwrite section callbacks for
6499 data_section, bss_section.
6500 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6501 from here to...
6502 (avr_file_end): ...here.
6503
6504 2011-04-20 Richard Guenther <rguenther@suse.de>
6505
6506 PR middle-end/48695
6507 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6508 objects and types here. Adjust for their offset before comparing.
6509
6510 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6511
6512 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6513 statement per copy.
6514
6515 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6516
6517 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6518 (GIMPLE_H): Include $(INTERNAL_FN_H).
6519 (OBJS-common): Add internal-fn.o.
6520 (internal-fn.o): New rule.
6521 * internal-fn.def: New file.
6522 * internal-fn.h: Likewise.
6523 * internal-fn.c: Likewise.
6524 * gimple.h: Include internal-fn.h.
6525 (GF_CALL_INTERNAL): New gf_mask.
6526 (gimple_statement_call): Put fntype into a union with a new
6527 internal_fn field.
6528 (gimple_build_call_internal): Declare.
6529 (gimple_build_call_internal_vec): Likewise.
6530 (gimple_call_same_target_p): Likewise.
6531 (gimple_call_internal_p): New function.
6532 (gimple_call_internal_fn): Likewise.
6533 (gimple_call_fntype): Return null for internal calls.
6534 (gimple_call_set_fntype): Assert that the function is not internal.
6535 (gimple_call_set_fn): Likewise.
6536 (gimple_call_set_fndecl): Likewise.
6537 (gimple_call_set_internal_fn): New function.
6538 (gimple_call_addr_fndecl): Handle null functions.
6539 (gimple_call_return_type): Likewise null types.
6540 * gimple.c (gimple_build_call_internal_1): New function.
6541 (gimple_build_call_internal): Likewise.
6542 (gimple_build_call_internal_vec): Likewise.
6543 (gimple_call_same_target_p): Likewise.
6544 (gimple_call_flags): Handle calls to internal functions.
6545 (gimple_call_fnspec): New function.
6546 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6547 (gimple_has_side_effects): Handle null functions.
6548 (gimple_rhs_has_side_effects): Likewise.
6549 (gimple_call_copy_skip_args): Handle calls to internal functions.
6550 * cfgexpand.c (expand_call_stmt): Likewise.
6551 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6552 * gimple-fold.c (gimple_fold_call): Handle null functions.
6553 (gimple_fold_stmt_to_constant_1): Don't fold
6554 calls to internal functions.
6555 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6556 functions.
6557 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6558 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6559 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6560 (do_warn_unused_result): Likewise.
6561 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6562 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6563 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6564 the target of a call.
6565 (initialize_hash_element): Update accordingly.
6566 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6567 (iterative_hash_hashable_expr): Handle calls to internal functions.
6568 (print_expr_hash_elt): Likewise.
6569 * tree-ssa-pre.c (can_value_number_call): Likewise.
6570 (eliminate): Handle null functions.
6571 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6572 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6573 (find_func_aliases): Likewise.
6574 * value-prof.c (gimple_ic_transform): Likewise.
6575 (gimple_indirect_call_to_profile): Likewise.
6576 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6577 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6578
6579 2011-04-19 Jan Hubicka <jh@suse.cz>
6580
6581 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6582 * ipa-inline.c (inline_small_functions): Compute summaries first,
6583 populate heap later.
6584
6585 2011-04-19 Jan Hubicka <jh@suse.cz>
6586
6587 * cgraph.h (save_inline_function_body): Remove.
6588 * ipa-inline-transform.c: New file, broke out of...
6589 * ipa-inline.c: ... this one; Update toplevel comment.
6590 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6591 make global.
6592 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6593 (cgraph_mark_inline_edge): Rename to inline_call; move to
6594 ipa-inline-transform.c.
6595 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6596 move to ipa-inline-transform.c
6597 (recursive_inlining, inline_small_functions, flatten_function,
6598 ipa_inline, inline_always_inline_functions,
6599 early_inline_small_functions): Update.
6600 (inline_transform): Move to ipa-inline-transform.c.
6601 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6602 Declare.
6603 * Makefile.in (ipa-inline-transform.o): New file.
6604 * cgraphunit.c (save_inline_function_body): Move to
6605 ipa-inline-transform.c
6606
6607 2011-04-19 DJ Delorie <dj@redhat.com>
6608
6609 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6610 registers if we already know there aren't any.
6611 (m32c_emit_epilogue): Don't emit a barrier here.
6612 (m32c_emit_eh_epilogue): Likewise.
6613 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6614 operands at expand time.
6615 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6616 int" wchar type.
6617 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6618 duplicates. Provide aliases instead.
6619 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6620 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6621 the compiler.
6622
6623 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6624
6625 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6626 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6627 (general_or_i64_p, sparc_register_move_cost): New function.
6628
6629 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6630
6631 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6632 Add lynx, mipssde. Sort table.
6633
6634 2011-04-19 Xinliang David Li <davidxl@google.com>
6635
6636 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6637 not negative.
6638
6639 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6640
6641 PR target/48678
6642 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6643 is a SUBREG with non-MODE_INT mode inside of it.
6644
6645 2011-04-19 Martin Jambor <mjambor@suse.cz>
6646
6647 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6648 also according to actual contants.
6649 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6650 (gimple_fold_call): Use it.
6651 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6652
6653 2011-04-19 Martin Jambor <mjambor@suse.cz>
6654
6655 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6656 non-pointer assignments.
6657
6658 2011-04-19 Martin Jambor <mjambor@suse.cz>
6659
6660 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6661 account anc_offset and otr_type from the indirect edge info.
6662 * ipa-prop.c (get_ancestor_addr_info): New function.
6663 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6664 get_ancestor_addr_info, call it.
6665 (ipa_note_param_call): Do not initialize information about polymorphic
6666 calls, return the indirect call graph edge. Remove the last
6667 parameter, adjust all callers.
6668 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6669 parameters. Initialize polymorphic information in the indirect edge.
6670
6671 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6672
6673 PR lto/48148
6674 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6675 the types if they have different enumeration identifiers.
6676
6677 2011-04-19 Jan Hubicka <jh@suse.cz>
6678
6679 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6680 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6681 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6682 (optimize_function_for_size_p) ... here.
6683
6684 2011-04-19 Richard Guenther <rguenther@suse.de>
6685
6686 PR lto/48207
6687 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6688 langhook.
6689
6690 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6691
6692 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6693 if DECL_NO_INLINE_WARNING_P is set on the function.
6694
6695 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6696
6697 PR fortran/47976
6698 * reload1.c (inc_for_reload): Return void. All callers changed.
6699 (emit_input_reload_insns): Don't try to delete previous output
6700 reloads to a register, or record spill_reg_store for autoincs.
6701
6702 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6703
6704 * gengtype.h: Updated copyright year.
6705 (struct input_file_st): Add inpisplugin field.
6706 (type_fileloc): New function.
6707 * gengtype.c
6708 (write_typed_struct_alloc_def): Add gcc_assert.
6709 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6710 (write_typed_alloc_defns): Don't output for plugin files.
6711 (input_file_by_name): Clear inpisplugin field.
6712 (main): Set inpisplugin field for plugin files.
6713
6714 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6715
6716 * gengtype-state.c (string_eq): New.
6717 (read_state): Use string_eq instead of strcmp when creating the
6718 state_ident_tab.
6719
6720 2011-04-19 Wei Guozhi <carrot@google.com>
6721
6722 PR target/47855
6723 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6724 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6725 linkage.
6726 * config/arm/constraints.md (Uu): New constraint.
6727 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6728
6729 2011-04-19 Tristan Gingold <gingold@adacore.com>
6730
6731 * config.gcc (-*-*-*vms): Added.
6732 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6733 definitions moved.
6734 * config/vms/vms-ld.c: New file.
6735 * config/vms/vms-ar.c: New file.
6736 * config/vms/t-vmsnative: New file.
6737
6738 2011-04-18 Xinliang David Li <davidxl@google.com>
6739
6740 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6741
6742 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6743
6744 PR middle-end/48661
6745 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6746 if TREE_TYPE (v) is non-NULL.
6747
6748 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6749 gimple_get_virt_mehtod_for_binfo.
6750 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6751 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6752 callers.
6753 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6754
6755 2011-04-18 Michael Matz <matz@suse.de>
6756 Steve Ellcey <sje@cup.hp.com>
6757
6758 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6759 use its mode as source mode if it isn't VOIDmode.
6760
6761 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6762
6763 * doc/passes.texi: Fill crossref nodes.
6764
6765 2011-04-18 Jim Meyering <meyering@redhat.com>
6766
6767 Fix doubled-word typos in comments and strings
6768 * config/alpha/vms-unwind.h: s/for for/for/
6769 * config/arm/unwind-arm.h: Likewise.
6770 * config/microblaze/microblaze.c: Likewise.
6771 * config/sh/constraints.md: s/in in/in/
6772 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6773
6774 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6775
6776 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6777 (AVX_FLOAT_MODE_P): Ditto.
6778 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6779 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6780 (AVX_VEC_FLOAT_MODE_P): Ditto.
6781 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6782 (UNSPEC_MASKSTORE): Ditto.
6783 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6784 Merge from <sse>_movmsk<ssemodesuffix> and
6785 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6786 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6787 iterator.
6788 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6789 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6790 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6791
6792 2011-04-18 Jan Hubicka <jh@suse.cz>
6793
6794 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6795
6796 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6797 (want_inline_function_called_once_p): Break out the logic from
6798 ipa_inline.
6799 (edge_badness): Ensure that profile is not misupdated.
6800 (lookup_recursive_calls): Prioritize by call frequencies.
6801 (inline_small_functions): Move program size estimates here;
6802 actually process whole queue even when unit growth has been
6803 met. (to properly compute inline_failed reasons and for the
6804 case unit size decrease.) Revisit comments on recursive inlining.
6805 (ipa_inline): Remove unit summary code; first inline hot calls
6806 of functions called once, cold calls next.
6807 (order, nnodes): Remove unused variables.
6808 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6809 (GTFILES): Remove ipa-inline.c
6810 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6811
6812 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6813
6814 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6815
6816 2011-04-18 Jie Zhang <jie@codesourcery.com>
6817 Richard Earnshaw <rearnsha@arm.com>
6818
6819 * arm.c (neon_builtin_type_bits): Remove.
6820 (typedef enum neon_builtin_mode): New.
6821 (T_MAX): Don't define.
6822 (typedef enum neon_builtin_datum): Remove bits, codes[],
6823 num_vars and base_fcode. Add mode, code and fcode.
6824 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6825 VAR10): Change accordingly.
6826 (neon_builtin_data[]): Change accordingly
6827 (arm_init_neon_builtins): Change accordingly.
6828 (neon_builtin_compare): Remove.
6829 (locate_neon_builtin_icode): Remove.
6830 (arm_expand_neon_builtin): Change accordingly.
6831
6832 * arm.h (enum arm_builtins): Move to ...
6833 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6834
6835 * arm.c (arm_builtin_decl): Declare.
6836 (TARGET_BUILTIN_DECL): Define.
6837 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6838 (arm_builtin_decls[]): New.
6839 (arm_init_neon_builtins): Store builtin declarations in
6840 arm_builtin_decls[].
6841 (arm_init_tls_builtins): Likewise.
6842 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6843 (arm_builtin_decl): New.
6844
6845 2011-04-18 Richard Guenther <rguenther@suse.de>
6846
6847 * tree.c (upper_bound_in_type): Build properly canonicalized
6848 INTEGER_CSTs.
6849 (lower_bound_in_type): Likewise.
6850
6851 2011-04-18 Richard Guenther <rguenther@suse.de>
6852
6853 * gimple.h (gimple_call_addr_fndecl): New function.
6854 (gimple_call_fndecl): Use it.
6855 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6856 for direct calls.
6857 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6858 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6859
6860 2011-04-18 Richard Guenther <rguenther@suse.de>
6861
6862 PR middle-end/48650
6863 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6864
6865 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6866
6867 PR lto/48492
6868 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6869 DECL_IN_CONSTANT_POOL without RTL.
6870
6871 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6872 Ira Rosen <ira.rosen@linaro.org>
6873
6874 PR target/48252
6875 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6876 to match neon_vzip/vuzp/vtrn_internal.
6877 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6878 outputs explicitly dependent on both inputs.
6879 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6880
6881 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6882
6883 PR tree-optimization/48616
6884 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6885 whether the shift is by scalar or vector based on whether all SLP
6886 scalar stmts have the same rhs.
6887
6888 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6889
6890 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6891 memory operands.
6892
6893 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6894
6895 PR target/43700
6896 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6897 registers.
6898
6899 2011-04-17 Jan Hubicka <jh@suse.cz>
6900
6901 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6902 * cgrpahunit.c (cgraph_finalize_function): Do not set
6903 finalized_by_frontend.
6904 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6905 finalized_by_frontend.
6906
6907 2011-04-17 Jan Hubicka <jh@suse.cz>
6908
6909 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6910 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6911 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6912 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6913 method.
6914 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6915 gimple-fold.c
6916 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6917
6918 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6919
6920 PR lto/48538
6921 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6922 is non-null before accessing it.
6923 (input_cgraph): Remove trailing spaces.
6924
6925 2011-04-17 Revital Eres <revital.eres@linaro.org>
6926
6927 * params.def (sms-min-sc): New param flag.
6928 * modulo-sched.c (sms_schedule): Use it.
6929 * doc/invoke.texi (sms-min-sc): Document it.
6930
6931 2011-04-17 Jan Hubicka <jh@suse.cz>
6932
6933 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6934 present, also set gimple_call_set_cannot_inline.
6935 * ipa-inline.c: Update toplevel comment.
6936 (MAX_TIME): Remove.
6937 (cgraph_clone_inlined_nodes): Fix linebreaks.
6938 (cgraph_check_inline_limits): Restructure to ...
6939 (caller_growth_limits): ... this one; be more tolerant
6940 on growth in nested inline chains; add explanatory comment;
6941 fix stack accounting thinko introduced by previous patch.
6942 (cgraph_default_inline_p): Remove.
6943 (report_inline_failed_reason): New function.
6944 (can_inline_edge_p): New function.
6945 (can_early_inline_edge_p): New function.
6946 (leaf_node_p): Move upwards in file.
6947 (want_early_inline_function_p): New function.
6948 (want_inline_small_function_p): New function.
6949 (want_inline_self_recursive_call_p): New function.
6950 (cgraph_edge_badness): Rename to ...
6951 (edge_badness) ... this one; fix linebreaks.
6952 (update_edge_key): Update call of edge_baddness; add
6953 detailed dump about queue updates.
6954 (update_caller_keys): Use can_inline_edge_p and
6955 want_inline_small_function_p.
6956 (cgraph_decide_recursive_inlining): Rename to...
6957 (recursive_inlining): Use can_inline_edge_p and
6958 want_inline_self_recursive_call_p; simplify and remove no longer
6959 valid FIXME.
6960 (cgraph_set_inline_failed): Remove.
6961 (add_new_edges_to_heap): Use can_inline_edge_p and
6962 want_inline_small_function_p.
6963 (cgraph_decide_inlining_of_small_functions): Rename to ...
6964 (inline_small_functions): ... this one; cleanup; use
6965 can/want predicates; cleanup debug ouput; work edges till fibheap
6966 is exhausted and do not stop once unit growth is reached; remove
6967 later loop processing remaining edges.
6968 (cgraph_flatten): Rename to ...
6969 (flatten_function): ... this one; use can_inline_edge_p
6970 and can_early_inline_edge_p predicates.
6971 (cgraph_decide_inlining): Rename to ...
6972 (ipa_inline): ... this one; remove unreachable nodes before
6973 inlining functions called once; simplify the pass.
6974 (cgraph_perform_always_inlining): Rename to ...
6975 (inline_always_inline_functions): ... this one; use
6976 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6977 (cgraph_decide_inlining_incrementally): Rename to ...
6978 (early_inline_small_functions): ... this one; simplify
6979 using new predicates; cleanup; make dumps prettier.
6980 (cgraph_early_inlining): Rename to ...
6981 (early_inliner): newer inline regular functions into always-inlines;
6982 fix updating of call stmt summaries.
6983 (pass_early_inline): Update for new names.
6984 (inline_transform): Fix formating.
6985 (gate_cgraph_decide_inlining): Rename to ...
6986 (pass_ipa_inline): ... this one.
6987 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6988 * ipa-inline-analysis.c (dump_inline_summary): Update.
6989 (compute_inline_parameters): Do not compute disregard_inline_limits;
6990 look for mismatching arguments.
6991 (estimate_growth): Fix handlig of non-trivial self recursion.
6992 (inline_read_summary): Do not read info->disregard_inline_limits.
6993 (inline_write_summary): Do not write info->disregard_inline_limits.
6994 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6995 and move all checks into can_inline_edge_p predicate; re-enable code
6996 comparing optimization levels.
6997 (expand_call_inline): Do not test inline_forbidden_into_p.
6998 * Makefile.in (ipa-inline.o): Update arguments.
6999
7000 2011-04-17 Revital Eres <revital.eres@linaro.org>
7001
7002 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7003
7004 2011-04-17 Revital Eres <revital.eres@linaro.org>
7005
7006 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7007
7008 2011-04-17 Michael Matz <matz@suse.de>
7009
7010 PR tree-optimization/48622
7011 PR lto/48645
7012 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7013 in same order as they're written.
7014
7015 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7016
7017 * config/pa/predicates.md: Reorganize and simplify predicates.
7018 Eliminate duplicate code checks.
7019 (arith_operand): Rename to arith14_operand
7020 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7021 * config/pa/pa.md: Use renamed operands.
7022 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7023 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7024 arith11_operand, adddi3_operand, indexed_memory_operand,
7025 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7026 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7027 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7028 move_dest_operand, move_src_operand, prefetch_cc_operand,
7029 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7030 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7031 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7032 div_operand, int5_operand, movb_comparison_operator,
7033 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7034 arith_double_operand, ireg_operand, lhs_lshift_operand,
7035 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7036 integer_store_memory_operand): Likewise.
7037 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7038 (integer_store_memory_operand, read_only_operand,
7039 function_label_operand, borx_reg_operand,
7040 non_hard_reg_operand): Likewise.
7041 (eq_neq_comparison_operator): Delete unused operator.
7042 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7043 function_label_operand.
7044 (emit_move_sequence): Likewise.
7045
7046 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7047
7048 * config/i386/sse.md (sseunpackmode): New mode attribute.
7049 (ssepackmode): Ditto.
7050 (vec_pack_trunc_<mode>): Macroize expander from
7051 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7052 (vec_unpacks_lo_<mode>): Macroize expander from
7053 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7054 (vec_unpacks_hi_<mode>): Macroize expander from
7055 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7056 (vec_unpacku_lo_<mode>): Macroize expander from
7057 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7058 (vec_unpacku_hi_<mode>): Macroize expander from
7059 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7060 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7061 ix86_expand_sse4_unpack.
7062 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7063
7064 2011-04-16 Jan Hubicka <jh@suse.cz>
7065
7066 * cgraphbuild.c: Include ipa-inline.h.
7067 (reset_inline_failed): Use initialize_inline_failed.
7068 * cgraph.c: Include ipa-inline.h.
7069 (cgraph_create_node_1): Do not initialize estimated_growth.
7070 (initialize_inline_failed): More to ipa-inline-analysis.c
7071 (dump_cgraph_node): Do not dump inline flags.
7072 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7073 and disregard_inline_limits flags.
7074 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7075 time, size, estimated_growth.
7076 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7077 Update.
7078 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7079 DECL_DISREGARD_INLINE_LIMITS.
7080 (cgraph_analyze_function): Do not initialize
7081 node->local.disregard_inline_limits.
7082 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7083 inlinable, versionable and disregard_inline_limits.
7084 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7085 cgraph_check_inline_limits, cgraph_default_inline_p,
7086 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7087 add_new_edges_to_heap): Update.
7088 (cgraph_decide_inlining_of_small_function): Update; set
7089 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7090 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7091 cgraph_decide_inlining_incrementally): Update.
7092 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7093 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7094 time, size and estimated_growth parameters.
7095 (estimate_edge_growth): Update.
7096 (initialize_inline_failed): Declare.
7097 * ipa-split.c: Include ipa-inline.h
7098 (execute_split_functions): Update.
7099 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7100 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7101 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7102 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7103 estimated_growth to INT_MIN.
7104 (inline_node_duplication_hook): Likewise.
7105 (dump_inline_summary): Dump new fields.
7106 (compute_inline_parameters): Update.
7107 (estimate_edge_time, estimate_time_after_inlining,
7108 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7109 inline_write_summary):
7110 (initialize_inline_failed): Move here from cgraph.c.
7111 * tree-sra.c: Include ipa-inline.h.
7112 (ipa_sra_preliminary_function_checks): Update.
7113 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7114 ipa-inline.h.
7115
7116 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7117
7118 * config/i386/sse.md (V16): New mode iterator.
7119 (VI1, VI8): Ditto.
7120 (AVXMODEQI, AVXMODEDI): Remove.
7121 (sse2, sse3): New mode attribute.
7122 (mov<mode>): Use V16 mode iterator.
7123 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7124 (push<mode>1): Use V16 mode iterator.
7125 (movmisalign<mode>): Ditto.
7126 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7127 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7128 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7129 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7130 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7131 avx_movdqu<avxmodesuffix>.
7132 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7133 *avx_movdqu<avxmodesuffix>.
7134 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7135 avx_lddqu<avxmodesuffix>.
7136 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7137 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7138 avx_movnt<AVXMODEDI:mode>.
7139 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7140 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7141
7142 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7143
7144 PR target/48629
7145 * haifa-sched.c (prune_ready_list, schedule_block): Use
7146 sched_pressure_p rather than flag_sched_pressure.
7147
7148 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7149
7150 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7151 cgraph_get_node instead of cgraph_get_create_node.
7152
7153 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7154
7155 * cfgexpand.c (expand_debug_expr): Use
7156 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7157
7158 2011-04-15 Michael Matz <matz@suse.de>
7159
7160 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7161 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7162 * function.c (gimplify_parameters): Ditto.
7163 * gimplify.c (gimplify_vla_decl): Ditto.
7164
7165 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7166 (gimple_call_set_alloca_for_var): New inline function.
7167 (gimple_call_alloca_for_var_p): Ditto.
7168 * gimple.c (gimple_build_call_from_tree): Remember
7169 CALL_ALLOCA_FOR_VAR_P state.
7170 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7171
7172 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7173 calls if they were for VLA objects.
7174
7175 2011-04-15 Martin Jambor <mjambor@suse.cz>
7176
7177 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7178 of ADR_EXPRs.
7179
7180 2011-04-15 Martin Jambor <mjambor@suse.cz>
7181
7182 PR middle-end/48601
7183 * tree-emutls.c (lower_emutls_function_body): Call
7184 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7185 result is non-NULL.
7186
7187 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7188
7189 * c-decl.c (detect_field_duplicates): Call
7190 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7191
7192 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7193
7194 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7195 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7196 * ipa-pure-const.c (check_stmt): Call it.
7197 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7198
7199 2011-04-15 Richard Guenther <rguenther@suse.de>
7200
7201 PR tree-optimization/48290
7202 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7203 Properly decide inhibiting propagation based on the valueized
7204 operand. Do loop-closed SSA form preserving here ...
7205 (init_copy_prop): ... not here.
7206
7207 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7208
7209 PR target/48612
7210 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7211 (*ieee_smax<mode>3): Likewise.
7212
7213 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7214
7215 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7216 Replace match_operand with match_dup for the third operand in
7217 these expanders.
7218
7219 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7220
7221 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7222 to track processing of conditionals. Update all callers.
7223 (try_combine, simplify_if_then_else): Update.
7224
7225 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7226
7227 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7228 -fsched-pressure.
7229
7230 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7231
7232 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7233 instead of match_operand for operand 3.
7234
7235 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7236
7237 * recog.h (insn_operand_data): Add an "allows_mem" field.
7238 * genoutput.c (output_operand_data): Initialize it.
7239 * optabs.c (maybe_legitimize_operand_same_code): New function.
7240 (maybe_legitimize_operand): Use it when matching the original
7241 op->value.
7242
7243 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7244
7245 * gimplify.c: Fix issues in comments throughout.
7246 (voidify_wrapper_expr): Fix long line.
7247 (build_stack_save_restore): Likewise.
7248 (gimplify_loop_expr): Likewise.
7249 (gimplify_compound_lval): Likewise.
7250 (gimplify_init_ctor_eval): Likewise.
7251 (gimplify_modify_expr_rhs): Likewise.
7252 (omp_notice_threadprivate_variable): Likewise.
7253
7254 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7255
7256 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7257 original one if this is not a builtin function.
7258
7259 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7260
7261 PR target/48605
7262 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7263 offset it as needed based on top 2 bits in operands[3], change
7264 MEM mode to SFmode and mask those 2 bits away from operands[3].
7265
7266 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7267
7268 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7269 change from objc_declare_protocols() to objc_declare_protocol().
7270
7271 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7272
7273 * config/i386/sse.md (sse4_1): New mode attribute.
7274 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7275 avx_blend<ssemodesuffix><avxmodesuffix> and
7276 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7277 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7278 avx_blendv<ssemodesuffix><avxmodesuffix> and
7279 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7280 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7281 avx_dp<ssemodesuffix><avxmodesuffix> and
7282 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7283 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7284 (sse4_1_packusdw): Merge with *avx_packusdw.
7285 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7286 (sse4_1_pblendw): Merge with *avx_pblendw.
7287 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7288 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7289 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7290 VF mode iterator.
7291 (sse4_1_round<ssescalarmodesuffix>): Merge with
7292 *avx_round<ssescalarmodesuffix>.
7293 (aesenc): Merge with *avx_aesenc.
7294 (aesenclast): Merge with *avx_aesenclast.
7295 (aesdec): Merge with *avx_aesdec.
7296 (aesdeclast): Merge with *avx_aesdeclast.
7297 (pclmulqdq): Merge with *pclmulqdq.
7298 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7299 New predicate.
7300 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7301
7302 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7303
7304 PR middle-end/48608
7305 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7306 (align_local_variable): This. Update DECL_ALIGN.
7307 (add_stack_var): Updated.
7308 (expand_one_stack_var): Likewise.
7309
7310 2011-04-14 Richard Guenther <rguenther@suse.de>
7311
7312 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7313 Remove.
7314 (dse_initialize_block_local_data, dse_leave_block,
7315 record_voperand_set, get_stmt_uid): Likewise.
7316 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7317 (dse_optimize_stmt): Remove voperand set handling code.
7318 Simplify and improve to handle any kind of killing stmt.
7319 (dse_record_phi): Remove.
7320 (dse_enter_block): Simplify.
7321 (tree_ssa_dse): Likewise.
7322 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7323
7324 2011-04-14 Jan Hubicka <jh@suse.cz>
7325
7326 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7327 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7328 (cgraph_local_info): Remove inline_summary.
7329 * ipa-cp.c: Include ipa-inline.h.
7330 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7331 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7332 accesor.
7333 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7334 (input_overwrite_node): Do not set inline summary.
7335 (input_node): Do not stream inline summary.
7336 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7337 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7338 growth; we do not have inline parameters computed for that anyway.
7339 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7340 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7341 (inline_summary_t): New type and VECtor.
7342 (debug_inline_summary, dump_inline_summaries): Declare.
7343 (inline_summary): Use VOCtor.
7344 (estimate_edge_growth): Kill hack computing call stmt size directly.
7345 * lto-section-in.c (lto_section_name): Add inline section.
7346 * ipa-inline-analysis.c: Include lto-streamer.h
7347 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7348 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7349 (inline_summary_vec): Define.
7350 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7351 dump_inline_summaries): New functions.
7352 (estimate_function_body_sizes): Properly compute size/time of outgoing
7353 calls.
7354 (compute_inline_parameters): Alloc inline_summary; do not compute
7355 size/time of incomming calls.
7356 (estimate_edge_time): Avoid missing time summary hack.
7357 (inline_read_summary): Read inline summary info.
7358 (inline_write_summary): Write inline summary info.
7359 (inline_free_summary): Free all hooks and inline summary vector.
7360 * lto-streamer.h: Add LTO_section_inline_summary section.
7361 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7362 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7363
7364 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7365
7366 * tree-vectorizer.h (vect_strided_store_supported): Add a
7367 HOST_WIDE_INT argument.
7368 (vect_strided_load_supported): Likewise.
7369 (vect_permute_store_chain): Return void.
7370 (vect_transform_strided_load): Likewise.
7371 (vect_permute_load_chain): Delete.
7372 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7373 count argument. Check that the count is a power of two.
7374 (vect_strided_load_supported): Likewise.
7375 (vect_permute_store_chain): Return void. Update after above changes.
7376 Assert that the access is supported.
7377 (vect_permute_load_chain): Likewise.
7378 (vect_transform_strided_load): Return void.
7379 * tree-vect-stmts.c (vectorizable_store): Update calls after
7380 above interface changes.
7381 (vectorizable_load): Likewise.
7382 (vect_analyze_stmt): Don't check for strided powers of two here.
7383
7384 2011-04-14 Richard Guenther <rguenther@suse.de>
7385
7386 PR tree-optimization/48590
7387 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7388 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7389 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7390 BUILT_IN_STACK_SAVE.
7391 * tree-ssa-dce.c (propagate_necessity): Handle
7392 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7393
7394 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7395
7396 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7397 objc_declare_class.
7398
7399 2011-04-14 Richard Guenther <rguenther@suse.de>
7400
7401 * tree.h (get_object_alignment_1): Declare.
7402 * builtins.c (get_object_alignment_1): Split out worker from ...
7403 (get_object_alignment): ... here.
7404 * fold-const.c (get_pointer_modulus_and_residue): Use
7405 get_object_alignment_1.
7406
7407 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7408
7409 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7410 type parameter.
7411 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7412 parameter. Generalise code to handle arrays as well as vectors.
7413 (vect_setup_realignment): Update accordingly.
7414 * tree-vect-stmts.c (vectorizable_store): Likewise.
7415 (vectorizable_load): Likewise.
7416
7417 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7418
7419 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7420 within the per-copy loop.
7421
7422 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7423
7424 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7425 in the dump file.
7426
7427 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7428
7429 * doc/options.texi (Negative): Explicitly mention that the
7430 Negative chain must be circular.
7431
7432 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7433
7434 * function.h (block_chainon): Declare.
7435 * function.c (block_chainon): Define.
7436
7437 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7438 Eric Weddington <eric.weddington@atmel.com>
7439 Georg-Johann Lay <avr@gjlay.de>
7440
7441 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7442 New Includes
7443 (avr_init_builtins, avr_expand_builtin,
7444 avr_expand_delay_cycles, avr_expand_unop_builtin,
7445 avr_expand_binop_builtin ): New functions.
7446 (avr_builtin_id): New enum
7447 (struct avr_builtin_description): New struct
7448 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7449 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7450
7451 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7452 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7453 UNSPECV_DELAY_CYCLES): new enumeration values
7454 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7455 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7456 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7457 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7458 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7459 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7460 "fmulsu"): New insns
7461
7462 * config/avr/avr-c.c: fix line endings
7463 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7464 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7465 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7466 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7467 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7468
7469 * doc/extend.texi (AVR Built-in Functions): New node
7470 (Target Builtins): Add documentation of AVR
7471 built-in functions.
7472
7473 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7474
7475 PR target/44643
7476 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7477 alone. Error if non-const data has attribute progmem.
7478
7479 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7480
7481 * tree.h (struct tree_constructor): Include tree_typed instead of
7482 tree_common.
7483 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7484 TS_TYPED instead of TS_COMMON.
7485
7486 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7487
7488 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7489 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7490 (sse2_psadbw): Merge with *avx_psadbw.
7491 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7492 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7493 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7494 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7495 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7496 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7497 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7498 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7499 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7500 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7501 (ssse3_palignrti): Merge with *avx_palignrti.
7502
7503 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7504
7505 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7506 * tree-ssanames.c (fini_ssanames): VEC_free it.
7507 (make_ssa_name_fn): Update for VECness of free_ssanames.
7508 (release_ssa_name, release_dead_ssa_names): Likewise.
7509 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7510 tree_common.
7511 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7512 TS_TYPED instead of TS_COMMON.
7513
7514 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7515
7516 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7517 statistics_counter_event.
7518 * tree-ssa-copyrename.c (stats): Define.
7519 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7520 statistics_counter_event.
7521 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7522 (bswap_stats, widen_mul_stats): Define.
7523 (insert_reciprocals): Increment rdivs_inserted.
7524 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7525 rfuncs_inserted. Add calls to statistics_counter_event.
7526 (execute_cse_sincos_1): Increment inserted.
7527 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7528 statistics_counter_event.
7529 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7530 of bswap_stats. Add calls to statistics_counter_event.
7531 (convert_mult_to_widen): Increment widen_mults_inserted.
7532 (convert_plusminus_to_widen): Increment maccs_inserted.
7533 (convert_mult_to_fma): Increment fmas_inserted.
7534 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7535 calls to statistics_counter_event.
7536
7537 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7538
7539 PR rtl-optimization/48455
7540 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7541 `temp_costs->mem_cost'.
7542
7543 2011-04-13 Jan Hubicka <jh@suse.cz>
7544
7545 * ipa-inline.h: New file.
7546 * ipa-inline-analysis.c: New file. Broken out of ...
7547 * ipa-inline.c: ... this file; update toplevel comment;
7548 include ipa-inline.h
7549 (inline_summary): Move to ipa-inline.h
7550 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7551 ipa-inline-analysis.c.
7552 (cgraph_estimate_time_after_inlining): Rename to
7553 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7554 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7555 to estimate_edge_growth.
7556 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7557 rename to estimate_size_after_inlining.
7558 (cgraph_mark_inline_edge): Update for new naming convention.
7559 (cgraph_check_inline_limits): Likewise.
7560 (cgraph_edge_badness): Likewise.
7561 (cgraph_decide_recursive_inlining): Likewise.
7562 (cgraph_decide_inlining_of_small_functions): Likewise.
7563 (cgraph_decide_inlining_incrementally): Likewise.
7564 (cgraph_estimate_growth): Rename to estimate_growth; move to
7565 ipa-inline-analysis.c.
7566 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7567 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7568 (compute_inline_parameters): Likewise.
7569 (compute_inline_parameters_for_current): Likewise.
7570 (pass_inline_parameters): Likewise.
7571 (inline_indirect_intraprocedural_analysis): Likewise.
7572 (analyze_function): Rename to inline_analyze_function; likewise.
7573 (add_new_function): Move to ipa-inline-analysis.c.
7574 (inline_generate_summary): Likewise.
7575 (inline_read_summary): Likewise.
7576 (inline_write_summary): Likewise.
7577 * Makefile.in (ipa-inline-analysis.c): New file.
7578
7579 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7580
7581 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7582 * configure: Regenerate.
7583
7584 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7585
7586 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7587 instead of tree_common.
7588 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7589 Likewise.
7590 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7591 TS_TYPED rather than TS_COMMON.
7592 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7593
7594 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7595
7596 PR target/45263
7597 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7598 r20 around calls of __tablejump_elpm__
7599
7600 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7601
7602 PR middle-end/48591
7603 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7604 NULL.
7605 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7606
7607 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7608
7609 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7610 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7611 (cfi_vec): New typedef.
7612 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7613 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7614 (cie_cfi_vec): New static variable.
7615 (cie_cfi_head): Delete.
7616 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7617 declaration changed. Use vector rather than list operations.
7618 (new_cfi): Don't initialize the dw_cfi_next field.
7619 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7620 rather than list operations.
7621 (lookup_cfa): Use vector rather than list operations.
7622 (output_cfis): New argument upto. Accept a cfi_vec rather than
7623 a dw_cfi_ref list head as argument. All callers changed.
7624 Iterate over the vector using upto as a maximum index.
7625 (output_all_cfis): New static function.
7626 (output_fde): Use vector rather than list operations. Use the
7627 new upto argument for output_cfis rather than manipulating a
7628 list.
7629 (dwarf2out_begin_prologue): Change initializations to match
7630 new struct members.
7631 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7632 from the vector length rather than searching for the end of a list.
7633 Use output_all_cfis.
7634 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7635
7636 2011-04-13 Nick Clifton <nickc@redhat.com>
7637
7638 * config/rx/rx.md (movmemsi): Do not use this pattern when
7639 volatile pointers are involved.
7640
7641 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7642
7643 * config/i386/sse.md (pinsrbits): Remove.
7644 (sse2_packsswb): Merge with *avx_packsswb.
7645 (sse2_packssdw): Merge with *avx_packssdw.
7646 (sse2_packuswb): Merge with *avx_packuswb.
7647 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7648 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7649 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7650 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7651 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7652 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7653 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7654 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7655 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7656 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7657 (sse2_loadld): Merge with *avx_loadld.
7658 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7659 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7660 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7661 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7662 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7663
7664 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7665
7666 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7667 calling TREE_CHAIN.
7668 * print-tree.c (print_node): Likewise.
7669 * tree-inline.c (copy_tree_r): Likewise.
7670 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7671 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7672 instead of TS_COMMON.
7673 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7674 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7675 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7676 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7677 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7678 ...and these...
7679 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7680 * tree.h: ...here.
7681 (TREE_CHAIN): Check for a TS_COMMON structure.
7682 (TREE_TYPE): Check for a TS_TYPED structure.
7683
7684 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7685
7686 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7687 cgraph_get_create_node instead of cgraph_node.
7688
7689 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7690
7691 * c-parser.c (c_parser_initelt): Updated call to
7692 objc_build_message_expr.
7693 (c_parser_postfix_expression): Likewise.
7694
7695 2011-04-12 Kai Tietz <ktietz@redhat.com>
7696
7697 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7698 MASK_MS_BITFIELD_LAYOUT bit.
7699
7700 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7701
7702 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7703 assert it is always true.
7704 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7705 moves.
7706
7707 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7708
7709 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7710 compiling Objective-C to be more efficient.
7711
7712 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7713
7714 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7715 argv_copied.
7716
7717 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7718
7719 * recog.h, genoutput.c, optabs.c: Revert last patch.
7720
7721 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7722
7723 PR target/48090
7724 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7725
7726 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7727
7728 * recog.h (insn_operand_data): Add an "allows_mem" field.
7729 * genoutput.c (output_operand_data): Initialize it.
7730 * optabs.c (maybe_legitimize_operand_same_code): New function.
7731 (maybe_legitimize_operand): Use it when matching the original
7732 op->value.
7733
7734 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7735
7736 * genpreds.c (process_define_predicate): Move most processing
7737 to gensupport.c. Continue to validate the expression.
7738 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7739 (process_define_predicate): Move processing to gensupport.c.
7740 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7741 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7742 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7743 argument.
7744 (valid_predicate_name_p): New function, split out from old
7745 genpreds.c:process_define_predicate.
7746 (process_define_predicate): New function, combining code from
7747 old genpreds.c and genrecog.c functions.
7748 (process_rtx): Call it for DEFINE_PREDICATE and
7749 DEFINE_SPECIAL_PREDICATE.
7750
7751 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7752
7753 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7754 size of a '%A' memory reference.
7755 (T_DREG, T_QREG): New neon_builtin_type_bits.
7756 (arm_init_neon_builtins): Assert that the load and store operands
7757 are neon_struct_operands.
7758 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7759 (NEON_ARG_MEMORY): New builtin_arg.
7760 (neon_dereference_pointer): New function.
7761 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7762 Handle NEON_ARG_MEMORY.
7763 (arm_expand_neon_builtin): Update after above interface changes.
7764 Use NEON_ARG_MEMORY for loads and stores.
7765 * config/arm/predicates.md (neon_struct_operand): New predicate.
7766 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7767 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7768 (V_four_elem): Tweak formatting.
7769 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7770 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7771 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7772 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7773 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7774 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7775 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7776 Use %A in the output template.
7777 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7778 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7779 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7780 the width of the memory access. Remove post-increment.
7781 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7782
7783 2011-04-12 Nick Clifton <nickc@redhat.com>
7784
7785 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7786 instruction for interrupt handlers if the target is the basic V850
7787 architecture.
7788 (expand_epilogue): Likewise.
7789
7790 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7791
7792 PR rtl-optimization/48549
7793 * combine.c (propagate_for_debug): Also stop after BB_END of
7794 this_basic_block. Process LAST and just stop processing after it.
7795 (combine_instructions): If last_combined_insn has been deleted,
7796 set last_combined_insn to its PREV_INSN.
7797
7798 2011-04-12 Richard Guenther <rguenther@suse.de>
7799
7800 PR tree-optimization/46076
7801 * gimple.h (struct gimple_statement_call): Add fntype field.
7802 (gimple_call_fntype): Adjust.
7803 (gimple_call_set_fntype): New function.
7804 * gimple.c (gimple_build_call_1): Set the call function type.
7805 * gimplify.c (gimplify_call_expr): Preserve the function
7806 type the frontend used for the call.
7807 (gimplify_modify_expr): Likewise.
7808 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7809 function type.
7810 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7811 function type.
7812 * tree-ssa.c (useless_type_conversion_p): Function pointer
7813 conversions are useless.
7814
7815 2011-04-12 Martin Jambor <mjambor@suse.cz>
7816
7817 * cgraph.h (cgraph_node): Remove function declaration.
7818 (cgraph_create_node): Declare.
7819 (cgraph_get_create_node): Likewise.
7820 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7821 Updated all callers.
7822 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7823 the decl does not already exist. Call cgraph_get_create_node instead
7824 of cgraph_node.
7825 (cgraph_get_create_node): New function.
7826 (cgraph_same_body_alias): Update comment.
7827 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7828 assert it does not return NULL.
7829 (cgraph_update_edges_for_call_stmt): Likewise.
7830 (cgraph_clone_edge): Likewise.
7831 (cgraph_create_virtual_clone): Likewise.
7832 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7833 instead of cgraph_node.
7834 (cgraph_add_new_function): Call cgraph_create_node or
7835 cgraph_get_create_node instead of cgraph_node.
7836 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7837 instead of cgraph_node.
7838 (record_eh_tables): Likewise.
7839 (mark_address): Likewise.
7840 (mark_load): Likewise.
7841 (build_cgraph_edges): Call cgraph_get_create_node instead
7842 of cgraph_node.
7843 (rebuild_cgraph_edges): Likewise.
7844 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7845 instead of cgraph_node.
7846 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7847 cgraph_node.
7848 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7849 cgraph_create_node instead of cgraph_node.
7850 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7851 of cgraph_node.
7852 * lto-cgraph.c (input_node): Likewise.
7853 * lto-streamer-in.c (input_function): Likewise.
7854 * varasm.c (mark_decl_referenced): Likewise.
7855 (assemble_alias): Likewise.
7856
7857 2011-04-12 Martin Jambor <mjambor@suse.cz>
7858
7859 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7860 instead of cgraph_node and assert it does not return NULL.
7861 * lto-streamer-in.c (lto_read_body): Likewise.
7862 * omp-low.c (new_omp_context): Likewise.
7863 (create_task_copyfn): Likewise.
7864 * tree-emutls.c (lower_emutls_function_body): Likewise.
7865 * matrix-reorg.c (transform_allocation_sites): Likewise.
7866
7867 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7868
7869 PR c/48552
7870 * c-typeck.c (build_asm_expr): Error out on attempts to use
7871 void type outputs or inputs for constraints that allow reg or
7872 don't allow memory.
7873
7874 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7875 Richard Earnshaw <rearnsha@arm.com>
7876
7877 PR target/48250
7878 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7879 to use sign-magnitude offsets. Reject unsupported unaligned
7880 cases. Add detailed description in comments.
7881 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7882 condition from TARGET_32BIT to TARGET_ARM.
7883
7884 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7885
7886 * tree.h (struct typed_tree): New.
7887 (struct tree_common): Include it instead of tree_base.
7888 (TREE_TYPE): Update for new location of type field.
7889 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7890 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7891 (union tree_node): Add typed field.
7892 * treestruct.def (TS_TYPED): New.
7893 * lto-streamer.c (check_handled_ts_structures): Handle it.
7894 * tree.c (MARK_TS_TYPED): New macro.
7895 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7896
7897 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7898
7899 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7900 (force_nonfallthru): Do not alter the loop nest if no basic block
7901 was created.
7902
7903 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7904
7905 * config/i386/sse.md (VI): New mode iterator.
7906 (SSEMODEI): Remove.
7907 (AVX256MODEI): Ditto.
7908 (AVXMODEF4P): Ditto.
7909 (avxvecpsmode): Ditto.
7910 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7911 (sse2_andnot<mode>3): New expander.
7912 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7913 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7914 (<any_logic:code><mode>3): Use VI mode iterator.
7915 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7916 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7917 (*andnottf3): Handle AVX three-operand constraints.
7918 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7919
7920 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7921 Robert Millan <rmh@gnu.org>
7922
7923 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7924 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7925 GNU_USER_DYNAMIC_LINKER64): Define.
7926 (REG_NAME): Don't undefine.
7927 (MD_UNWIND_SUPPORT): Undefine.
7928 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7929 (REG_NAME): Don't undefine.
7930 (MD_UNWIND_SUPPORT): Undefine.
7931 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7932
7933 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7934
7935 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7936 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7937
7938 2011-04-11 Xinliang David Li <davidxl@google.com>
7939
7940 * value-profile.c (check_ic_target): New function.
7941 (gimple_ic_transform): Sanity check indirect call target.
7942 * gimple-low.c (gimple_check_call_args): Interface change.
7943 (gimple_check_call_matching_types): New function.
7944 * tree-inline.c (tree_can_inline_p): Call new function.
7945
7946 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7947
7948 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7949 tree-pretty-print.h & realmpfr.h.
7950
7951 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7952
7953 PR middle-end/48464
7954 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7955 (setup_allocno_and_important_classes): Ditto.
7956
7957 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7958
7959 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7960 GNU_USER_DYNAMIC_LINKER.
7961 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7962 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7963 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7964 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7965 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7966 GNU_USER_TARGET_OS_CPP_BUILTINS.
7967 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7968 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7969 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7970 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7971 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7972 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7973 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7974 GNU_USER_TARGET_OS_CPP_BUILTINS.
7975 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7976 GNU_USER_DYNAMIC_LINKER.
7977 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7978 GNU_USER_TARGET_OS_CPP_BUILTINS.
7979 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7980 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7981 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7983 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7984 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7985 GNU_USER_DYNAMIC_LINKER64): Remove.
7986 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7987 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7988 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7989 GNU_USER_DYNAMIC_LINKER.
7990 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7991 GNU_USER_TARGET_OS_CPP_BUILTINS.
7992 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7993 GNU_USER_TARGET_OS_CPP_BUILTINS.
7994 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7995 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7996 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7997 GNU_USER_TARGET_OS_CPP_BUILTINS.
7998 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7999 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8000 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8001 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8002 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8003 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8004 GNU_USER_DYNAMIC_LINKER.
8005 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8006 GNU_USER_TARGET_OS_CPP_BUILTINS.
8007 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8010 GNU_USER_DYNAMIC_LINKER.
8011 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8013 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8015 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8016 GNU_USER_DYNAMIC_LINKER.
8017 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8018 GNU_USER_DYNAMIC_LINKERN32.
8019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8020 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8021 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8022 GNU_USER_DYNAMIC_LINKER32.
8023 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8025 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8026 GNU_USER_DYNAMIC_LINKER.
8027 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8029 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8031 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8032 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8033 GNU_USER_DYNAMIC_LINKER32.
8034 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8035 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8036 GNU_USER_DYNAMIC_LINKER.
8037 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8039 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8040 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8041 GNU_USER_DYNAMIC_LINKER64.
8042 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8044 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8045 GNU_USER_DYNAMIC_LINKER.
8046 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8047 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8048 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8049 GNU_USER_DYNAMIC_LINKER.
8050 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8052 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8053 GNU_USER_DYNAMIC_LINKER32.
8054 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8055 GNU_USER_DYNAMIC_LINKER64.
8056 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8057 GNU_USER_DYNAMIC_LINKER64.
8058 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8059 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8060 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8062 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8063
8064 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8065
8066 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8067 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8068 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8069 GNU_USER_DYNAMIC_LINKER.
8070 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8071 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8072 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8073 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8074 GNU_USER_DYNAMIC_LINKER64.
8075 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8076 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8077 GNU_USER_LINK_EMULATION.
8078 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8079 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8080 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8081 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8082 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8083 CPP_SPEC, CC1_SPEC): Remove.
8084 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8085 (GNU_USER_DYNAMIC_LINKER): Define.
8086 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8087 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8088 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8089 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8090 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8091 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8092 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8093 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8094 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8095 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8096 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8097 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8098 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8099 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8100 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8101 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8102 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8103 GNU_USER_DYNAMIC_LINKER.
8104 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8105 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8106 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8107 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8108 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8109 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8110 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8111 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8112 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8113 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8114
8115 2011-04-11 Kai Tietz <ktietz@redhat.com>
8116
8117 PR target/9601
8118 PR target/11772
8119 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8120 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8121 comment.
8122 (ix86_is_msabi_thiscall): Removed.
8123 (ix86_is_type_thiscall): Likewise.
8124 (ix86_get_callcvt): New function.
8125 (ix86_comp_type_attributes): Simplify check.
8126 (ix86_function_regparm): Use ix86_get_callcvt for calling
8127 convention attribute checks.
8128 (ix86_return_pops_args): Likewise.
8129 (ix86_static_chain): Likewise.
8130 (x86_this_parameter): Likewise.
8131 (x86_output_mi_thunk): Likewise.
8132 (ix86_function_type_abi): Optimize check for types without attributes.
8133 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8134 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8135 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8136 by flag-values.
8137 (IX86_BASE_CALLCVT): Helper macro.
8138 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8139 Use ix86_get_callcvt for calling convention attribute checks and avoid
8140 symbol-decoration for stdcall in TARGET_RTD case.
8141 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8142 Likewise.
8143 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8144 for declaration.
8145
8146 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8147
8148 * config/i386/sse.md (VI_128): New mode iterator.
8149 (VI12_128): Rename from SSEMODE12.
8150 (VI14_128): Rename from SSEMODE14.
8151 (VI124_128): New mode iterator.
8152 (VI24_128): Rename from SSEMODE248.
8153 (VI248_128): Rename from SSEMODE248.
8154 (SSEMODE124C8): Remove.
8155 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8156 (*sse2_<plusminus_insn><mode>3): Merge with
8157 *avx_<plusminus_insn><mode>3.
8158 (*mulv8hi3): Merge with *avx_mulv8hi3.
8159 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8160 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8161 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8162 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8163 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8164 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8165 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8166 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8167 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8168 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8169 (*<smaxmin:code>v8hi3): Ditto.
8170 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8171 (*<smaxmin:code>v16qi3): Ditto.
8172 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8173 (*sse2_eq<mode>3): Ditto.
8174 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8175 (*sse2_gt<mode>3): Ditto.
8176 (vcondv2di): Split out of vcond<mode>.
8177 (vconduv2di): Split out of vcondu<mode>.
8178
8179 2011-04-11 Richard Guenther <rguenther@suse.de>
8180
8181 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8182 before calling tree_low_cst.
8183
8184 2011-04-11 Richard Guenther <rguenther@suse.de>
8185
8186 * stor-layout.c (layout_type): Compute all array index size operations
8187 in the original type.
8188 (initialize_sizetypes): Add comment.
8189 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8190
8191 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8192
8193 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8194
8195 2011-04-11 Martin Jambor <mjambor@suse.cz>
8196
8197 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8198 of cgraph_node, handle NULL return value.
8199 (cgraph_global_info): Likewise.
8200 (cgraph_rtl_info): Likewise.
8201 * tree-inline.c (estimate_num_insns): Likewise.
8202 * gimplify.c (unshare_body): Likewise.
8203 (unvisit_body): Likewise.
8204 (gimplify_body): Likewise.
8205 * predict.c (optimize_function_for_size_p): Likewise.
8206 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8207 (call_may_clobber_ref_p_1): Likewise.
8208 * varasm.c (function_section_1): Likewise.
8209 (assemble_start_function): Likewise.
8210
8211 2011-04-11 Martin Jambor <mjambor@suse.cz>
8212
8213 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8214 of cgraph_node.
8215 * final.c (rest_of_clean_state): Likewise.
8216 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8217 * passes.c (pass_init_dump_file): Likewise.
8218 (execute_all_ipa_transforms): Likewise.
8219 (function_called_by_processed_nodes_p): Likewise.
8220 * predict.c (maybe_hot_frequency_p): Likewise.
8221 (probably_never_executed_bb_p): Likewise.
8222 (compute_function_frequency): Likewise.
8223 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8224 (unnest_nesting_tree_1): Likewise.
8225 (lower_nested_functions): Likewise.
8226 * tree-optimize.c (execute_fixup_cfg): Likewise.
8227 (tree_rest_of_compilation): Likewise.
8228 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8229 * tree-sra.c (ipa_early_sra): Likewise.
8230 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8231 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8232 * ipa.c (record_cdtor_fn): Likewise.
8233 * ipa-inline.c (cgraph_early_inlining): Likewise.
8234 (compute_inline_parameters_for_current): Likewise.
8235 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8236 * ipa-pure-const.c (local_pure_const): Likewise.
8237 * ipa-split.c (split_function): Likewise.
8238 (execute_split_functions): Likewise.
8239 * cgraphbuild.c (build_cgraph_edges): Likewise.
8240 (rebuild_cgraph_edges): Likewise.
8241 (cgraph_rebuild_references): Likewise.
8242 (remove_cgraph_callee_edges): Likewise.
8243 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8244 (verify_cgraph_node): Likewise.
8245 (cgraph_analyze_functions): Likewise.
8246 (cgraph_preserve_function_body_p): Likewise.
8247 (save_inline_function_body): Likewise.
8248 (save_inline_function_body): Likewise.
8249 * tree-inline.c (copy_bb): Likewise.
8250 (optimize_inline_calls): Likewise.
8251
8252 2011-04-11 Martin Jambor <mjambor@suse.cz>
8253
8254 PR tree-optimization/48195
8255 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8256 ipa_check_create_edge_args.
8257 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8258 ipa_check_create_edge_args.
8259 * ipa-inline.c (inline_generate_summary): Do not call
8260 ipa_check_create_node_params and ipa_check_create_edge_args.
8261 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8262 ipa_check_create_edge_args.
8263
8264 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8265
8266 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8267 instead of loop.
8268 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8269 * function.c (record_hard_reg_sets): Likewise.
8270 * ira.c (compute_regs_asm_clobbered): Likewise.
8271 * sched-deps.c (sched_analyze_1): Likewise.
8272 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8273
8274 2011-04-09 Xinliang David Li <davidxl@google.com>
8275
8276 PR tree-optimization/PR48484
8277 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8278 has_valid_pred lazily
8279
8280 2011-04-09 Duncan Sands <baldrick@free.fr>
8281
8282 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8283
8284 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8285
8286 * combine.c (combine_validate_cost): Adjust comments. Set registered
8287 cost of I0 to zero at the end, if any.
8288
8289 2011-04-08 Xinliang David Li <davidxl@google.com>
8290
8291 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8292 to insane profile data.
8293
8294 2011-04-08 Xinliang David Li <davidxl@google.com>
8295
8296 * ipa-cp.c (ipcp_update_profiling): Correct
8297 negative scale factor due to insane profile data.
8298
8299 2011-04-08 Xinliang David Li <davidxl@google.com>
8300
8301 * final.c (dump_basic_block_info): New function.
8302 (final): Dump basic block.
8303 (final_scan_insn): Remove old dump.
8304
8305 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8306
8307 PR target/47829
8308 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8309 crtbegin/crtend.
8310
8311 2011-04-08 Michael Matz <matz@suse.de>
8312
8313 PR middle-end/48389
8314 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8315 functions.
8316 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8317 * rtl.h (rebuild_jump_labels_chain): Declare.
8318 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8319 insns inserted on edges.
8320
8321 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8322
8323 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8324 * config/arm/arm-arches.def: New.
8325 * config/arm/arm-opts.h: New.
8326 * config/arm/genopt.sh: New.
8327 * config/arm/arm-tables.opt: New (generated).
8328 * config/arm/arm.c (arm_handle_option, arm_target_help,
8329 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8330 (all_architectures): Get most table contents from arm-arches.def.
8331 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8332 arm_selected_tune here.
8333 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8334 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8335 (march=, mcpu=, mtune=): Use Enum and Var.
8336 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8337 (arm.o): Update dependencies.
8338
8339 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8340
8341 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8342 of header_file.
8343 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8344 (write_typed_alloc_defns): Likewise.
8345 (main): Calls write_typed_alloc_defns with output_header.
8346
8347 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8348
8349 PR inline-asm/48435
8350 * ira-color.c (setup_profitable_hard_regs): Add comments.
8351 Don't take prohibited hard regs into account.
8352 (setup_conflict_profitable_regs): Rename to
8353 get_conflict_profitable_regs.
8354 (check_hard_reg_p): Check prohibited hard regs.
8355
8356 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8357
8358 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8359 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8360 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8361
8362 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8363
8364 PR target/48366
8365 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8366 move from floating point to shift amount register.
8367 (emit_move_sequence): Remove secondary reload support for floating
8368 point to shift amount amount register copies.
8369 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8370 amount register copies.
8371 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8372 register, return false if mode isn't a scalar integer mode.
8373 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8374
8375 2011-04-08 Richard Guenther <rguenther@suse.de>
8376
8377 * gimple.c (gimple_call_flags): Remove kludge.
8378
8379 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8380
8381 * sel-sched.c (sel_region_init): Move call to
8382 sel_setup_region_sched_flags after setup_current_loop_nest.
8383
8384 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8385
8386 PR rtl-optimization/48272
8387 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8388 init_insn_reg_pressure_info. Adjust a caller.
8389 * sched-int.h (init_insn_reg_pressure_info): Declare.
8390 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8391 when sched-pressure is enabled.
8392
8393 2011-04-08 Richard Guenther <rguenther@suse.de>
8394
8395 * gimple.c (gimple_set_modified): Do not queue calls to
8396 MODIFIED_NORETURN_CALLS here ...
8397 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8398
8399 2011-04-08 Richard Guenther <rguenther@suse.de>
8400
8401 PR lto/48467
8402 * toplev.c (lang_dependent_init): Do not open asm_out_file
8403 in WPA mode, nor perform debug machinery initialization.
8404 (finalize): Do not unlink asm_out_file in WPA mode.
8405
8406 2011-04-08 Richard Guenther <rguenther@suse.de>
8407
8408 * gimple.h (gimple_call_fntype): New function.
8409 (gimple_call_return_type): Use it.
8410 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8411 * gimple-low.c (gimple_check_call_args): Likewise.
8412 * gimple.c (gimple_call_flags): Likewise.
8413 (gimple_call_arg_flags): Likewise.
8414 (gimple_call_return_flags): Likewise.
8415 * tree-cfg.c (verify_gimple_call): Likewise.
8416 (do_warn_unused_result): Likewise.
8417 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8418 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8419
8420 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8421
8422 PR rtl-optimization/48235
8423 * sel-sched.c (code_motion_process_successors): Recompute the last
8424 insn in basic block if control flow changed.
8425 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8426 Update condition for ilist_remove.
8427
8428 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8429
8430 PR rtl-optimization/48302
8431 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8432 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8433 it to record added preheader blocks.
8434 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8435 on to sel_add_loop_preheaders.
8436 (sel_region_init): Move call to setup_current_loop_nest after
8437 sel_init_bbs.
8438
8439 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8440
8441 PR target/48273
8442 * cfgloop.h (loop_has_exit_edges): New helper.
8443 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8444 non-clonable.
8445 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8446 that have no exit edges.
8447
8448 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8449
8450 PR rtl-optimization/48442
8451 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8452 all callers. Adjust assert.
8453
8454 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8455
8456 PR tree-optimization/48377
8457 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8458 is_packed to true even for types with smaller TYPE_ALIGN than
8459 TYPE_SIZE.
8460
8461 2011-04-08 Richard Guenther <rguenther@suse.de>
8462
8463 PR bootstrap/48513
8464 * doc/tm.texi: Re-generate.
8465
8466 2011-04-08 Wei Guozhi <carrot@google.com>
8467
8468 PR target/47855
8469 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8470 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8471 * config/arm/arm.md (*push_multi): Change the length computation to
8472 call a C function.
8473
8474 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8475
8476 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8477 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8478 * doc/tm.texi: Regenerate.
8479 * system.h (ASM_OUTPUT_BSS): Poison.
8480 * varasm.c (asm_output_bss): Remove function.
8481 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8482
8483 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8484 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8485 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8486 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8487 Likewise.
8488 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8489 Likewise.
8490 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8491 Likewise.
8492 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8493
8494 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8495
8496 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8497 EnumValue lines.
8498
8499 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8500
8501 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8502 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8503 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8504 OPT_mcpu32.
8505 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8506 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8507 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8508 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8509 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8510 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8511 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8512 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8513 options. Don't map other m68k options manually. Don't handle
8514 old-style options as canonical.
8515 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8516 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8517
8518 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8519
8520 * basic-block.h (force_nonfallthru): Move to...
8521 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8522 (force_nonfallthru): ...here.
8523 * cfghooks.c (force_nonfallthru): New function.
8524 * cfgrtl.c (force_nonfallthru): Rename into...
8525 (rtl_force_nonfallthru): ...this.
8526 (commit_one_edge_insertion): Do not set AUX field.
8527 (commit_edge_insertions): Do not discover new basic blocks.
8528 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8529 (cfg_layout_rtl_cfg_hooks): Likewise.
8530 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8531 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8532 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8533
8534 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8535
8536 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8537 Remove macros.
8538
8539 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8540
8541 * config/i386/sse.md: Update copyright year.
8542 (avxcvtvecmode): Remove.
8543 (sse_movhlps): Merge with *avx_movhlps.
8544 (sse_movlhps): Merge with *avx_movlhps.
8545 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8546 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8547 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8548 (sse_loadhps): Merge with *avx_loadhps.
8549 (sse_storelps): Merge with *avx_storelps.
8550 (sse_loadlps): Merge with *avx_loadlps.
8551 (sse_movss): Merge with *avx_movss.
8552 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8553 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8554 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8555 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8556 (vec_set<mode>_0): Ditto.
8557 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8558 (sse4_1_insertps): Merge with *avx_insertps.
8559 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8560 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8561 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8562 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8563 (sse2_storehpd): Merge with *avx_storehpd.
8564 (sse2_loadhpd): Merge with *avx_loadhpd.
8565 (sse2_loadlpd): Merge with *avx_loadlpd.
8566 (sse2_movsd): Merge with *avx_movsd.
8567 (*vec_concatv2df): Merge with *vec_concatv2df.
8568
8569 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8570
8571 PR debug/48343
8572 * combine.c (combine_instructions): Add last_combined_insn,
8573 update it if insn is after it, pass it to all try_combine calls.
8574 (try_combine): Add last_combined_insn parameter, pass it instead of
8575 i3 to propagate_for_debug.
8576
8577 2011-04-07 Nick Clifton <nickc@redhat.com>
8578
8579 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8580 to handle MDR <-> data register transfers.
8581 (movhi_internal): Likewise.
8582
8583 2011-04-07 Alan Modra <amodra@gmail.com>
8584
8585 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8586 previous stack info.
8587
8588 2011-04-07 Tom de Vries <tom@codesourcery.com>
8589
8590 PR target/43920
8591 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8592 flow_find_cross_jump. Swap variables to implement backward replacement.
8593 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8594
8595 2011-04-07 Tom de Vries <tom@codesourcery.com>
8596
8597 PR target/43920
8598 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8599 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8600 and bb2.
8601 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8602 src1 or src2. Redirect edges to the last basic block. Update
8603 frequency and count on multiple basic blocks in case of fallthru.
8604
8605 2011-04-07 Tom de Vries <tom@codesourcery.com>
8606
8607 PR target/43920
8608 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8609 function.
8610 (old_insns_match_p): Change return type. Replace return false/true
8611 with return dir_none/dir_both. Use can_replace_by.
8612 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8613 direction from dir_p. Register replacement direction in dir, last_dir
8614 and afterlast_dir. Handle new return type of old_insns_match_p using
8615 merge_dir. Return replacement direction in dir_p.
8616 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8617 return type of old_insns_match_p.
8618 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8619 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8620 flow_find_cross_jump.
8621 * basic-block.h (enum replace_direction): New type.
8622 (flow_find_cross_jump): Add parameter to declaration.
8623
8624 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8625
8626 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8627 (AVXMODEDCVTPS2DQ): Ditto.
8628 (VEC_FLOAT_MODE): Ditto.
8629 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8630 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8631 (<any_logic:code><mode>3): Use VF mode iterator.
8632 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8633 Use VF mode iterator.
8634 (copysign<mode>3): Use VF mode iterator.
8635 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8636 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8637 (*<any_logic:code><MODEF:mode>3): Merge with
8638 *avx_<any_logic:code><MODEF:mode>3.
8639 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8640 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8641 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8642 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8643 (sse2_cvtdq2ps): Use %v modifier.
8644 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8645 (avx_cvtps2dq<avxmodesuffix>): Remove.
8646 (sse2_cvtps2dq): Use %v modifier.
8647 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8648 (avx_cvttps2dq<avxmodesuffix>): Remove.
8649 (sse2_cvttps2dq): Use %v modifier.
8650 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8651 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8652 (sse2_cvtsd2siq): Fix insn template.
8653 (sse2_cvtsd2siq_2): Ditto.
8654 (sse2_cvttsd2siq): Ditto.
8655 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8656 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8657
8658 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8659
8660 * gcov-io.c: Use GCC Runtime Library Exception.
8661
8662 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8663
8664 PR debug/48466
8665 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8666 as base_reg whatever register reg has been eliminated to, instead
8667 of hardcoding STACK_POINTER_REGNUM.
8668
8669 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8670
8671 * doc/tm.texi.in: Document C target hooks as separate from general
8672 target hooks.
8673 * doc/tm.texi: Regenerate.
8674 * genhooks.c (struct hook_desc): Add docname field.
8675 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8676 docname field.
8677 (hook_array): Include c-target.def.
8678 (emit_documentation): Use docname field in output.
8679 (emit_init_macros): Take docname argument. Only emit definitions
8680 for hooks matching docname.
8681 (main): Expect additional arguments in all cases. Pass argument
8682 to emit_init_macros.
8683 * target.def: Move initial macro definitions and comments to
8684 target-hooks-macros.h.
8685 (gcc_targetcm): Move to c-family/c-target.def.
8686 * target.h (targetcm): Move declaration to c-family/c-target.h.
8687 * targhooks.c (default_handle_c_option): Move to
8688 c-family/c-opts.c.
8689 * targhooks.h (default_handle_c_option): Move declaration to
8690 c-family/c-common.h.
8691 * target-hooks-macros.h: New file.
8692 * config.gcc (target_has_targetcm): Define and use to add to
8693 c_target_objs and cxx_target_objs.
8694 * config/default-c.c: New file.
8695 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8696 of target.h and target-def.h.
8697 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8698 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8699 darwin_check_cfstring_format_arg): Make static.
8700 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8701 TARGET_STRING_OBJECT_REF_TYPE_P,
8702 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8703 * config/darwin-protos.h (darwin_objc_construct_string,
8704 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8705 declare.
8706 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8707 TARGET_STRING_OBJECT_REF_TYPE_P,
8708 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8709 * config/t-darwin (darwin-c.o): Update dependencies.
8710 * system.h (TARGET_HAS_TARGETCM): Poison.
8711 * Makefile.in (TARGET_H): Update.
8712 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8713 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8714 (default-c.o): New target.
8715 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8716 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8717 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8718 c-target.def.
8719 (build/genhooks.o): Update dependencies.
8720
8721 2011-04-06 Richard Guenther <rguenther@suse.de>
8722
8723 * ipa-inline.c (enum inlining_mode): Remove.
8724 (cgraph_flatten): Use some other token.
8725 (cgraph_edge_early_inlinable_p): New function, split out from ...
8726 (cgraph_perform_always_inlining): New function, split out from ...
8727 (cgraph_decide_inlining_incrementally): ... here.
8728 (cgraph_mark_inline_edge): Adjust.
8729 (cgraph_early_inlining): Re-structure.
8730 (pass_early_inline): Require SSA form.
8731
8732 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8733 Julian Brown <julian@codesourcery.com>
8734 Mark Shinwell <shinwell@codesourcery.com>
8735
8736 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8737 LO_REGS only for Thumb-1.
8738 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8739 be used in short instructions when optimising for size on Thumb-2.
8740
8741 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8742
8743 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8744 associated with user returns to be preserved.
8745
8746 2011-04-06 Tristan Gingold <gingold@adacore.com>
8747
8748 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8749 symbol_queue_size, DBXOUT_DECR_NESTING,
8750 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8751 if XCOFF_DEBUGGING_INFO.
8752
8753 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8754
8755 * config/i386/i386.md (attribute isa): New.
8756 (attribute enabled): New.
8757 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8758 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8759 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8760 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8761 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8762 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8763 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8764 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8765
8766 * config/i386/sse.md (VF): New mode iterator.
8767 (VF1): Ditto.
8768 (VF2): Ditto.
8769 (VF_128): Ditto.
8770 (SSEMODEF4): Remove.
8771 (attribute sse): Handle V8SF and V4DF modes.
8772 (<absneg:code><mode>2): Use VF mode iterator.
8773 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8774 mode iterator.
8775 (<plusminus_insn><mode>3): Use VF mode iterator.
8776 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8777 Use VF mode iterator.
8778 (<sse>_vm<plusminus_insn><mode>3): Merge with
8779 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8780 (mul<mode>3): Use VF mode iterator.
8781 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8782 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8783 mode iterator.
8784 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8785 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8786 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8787 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8788 mode iterator.
8789 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8790 Use VF1 mode iterator.
8791 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8792 (sqrt<VF2:mode>2): New expander.
8793 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8794 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8795 and sqrtv2df2. Use VF mode iterator.
8796 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8797 mode iterator.
8798 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8799 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8800 Use VF1 mode iterator.
8801 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8802 (<smaxmin:code><mode>3): Use VF mode iterator.
8803 (*<smaxmin:code><mode>3_finite): Merge with
8804 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8805 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8806 (<sse>_vm<smaxmin:code><mode>2): Merge with
8807 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8808 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8809 mode iterator.
8810 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8811 mode iterator.
8812 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8813 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8814 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8815 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8816 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8817 VF mode iterator.
8818 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8819 Use VF_128 mode iterator.
8820 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8821 mode iterator.
8822 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8823 VF_128 mode iterator.
8824 (vcond<mode>): Use VF mode iterator.
8825 * config/i386/predicates.md (sse_comparison_operator): Merge with
8826 avx_comparison_float_operator. Do not declare as special_predicate.
8827 * config/i386/i386.c (struct builtin_description): Update for renamed
8828 compare patterns.
8829 (ix86_expand_args_builtin): Ditto.
8830 (ix86_expand_sse_compare_mask): Ditto.
8831
8832 2011-04-06 Richard Guenther <rguenther@suse.de>
8833
8834 * tree-inline.c (estimate_num_insns): For calls simply account
8835 for all passed arguments and a used return value.
8836
8837 2011-04-06 Richard Guenther <rguenther@suse.de>
8838
8839 PR tree-optimization/47663
8840 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8841 call_stmt_time fields.
8842 (cgraph_edge_inlinable_p): Declare.
8843 (cgraph_edge_recursive_p): New inline function.
8844 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8845 (cgraph_clone_edge): Copy it.
8846 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8847 Account for call stmt time.
8848 (cgraph_estimate_time_after_inlining): Take edge argument.
8849 (cgraph_estimate_edge_growth): Account call stmt size.
8850 (cgraph_estimate_size_after_inlining): Take edge argument.
8851 (cgraph_mark_inline_edge): Adjust.
8852 (cgraph_check_inline_limits): Likewise.
8853 (cgraph_recursive_inlining_p): Remove.
8854 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8855 (cgraph_decide_recursive_inlining): Take edge argument and
8856 adjust.
8857 (cgraph_decide_inlining_of_small_functions): Do not avoid
8858 diags for recursive inlining here.
8859 (cgraph_flatten): Adjust.
8860 (cgraph_decide_inlining_incrementally): Likewise.
8861 (estimate_function_body_sizes): Remove call cost handling.
8862 (compute_inline_parameters): Initialize caller edge call costs.
8863 (cgraph_estimate_edge_growth): New function.
8864 (cgraph_estimate_growth): Use it.
8865 (cgraph_edge_badness): Likewise.
8866 (cgraph_check_inline_limits): Take an edge argument.
8867 (cgraph_decide_inlining_of_small_functions): Adjust.
8868 (cgraph_decide_inlining): Likewise.
8869 * tree-inline.c (estimate_num_insns): Only account for call
8870 return value if it is used.
8871 (expand_call_inline): Avoid diagnostics on recursive inline
8872 functions here.
8873 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8874 (input_edge): Input edge call costs.
8875
8876 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8877
8878 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8879
8880 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8881
8882 * doc/invoke.texi (Spec Files): Fix typo.
8883
8884 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8885
8886 * profile.c (branch_prob): Move declaration of local variable. Remove
8887 obsolete ??? comment. Expand the location explicitly instead of using
8888 the LOCATION_FILE and LOCATION_LINE macros.
8889
8890 2011-04-06 Wei Guozhi <carrot@google.com>
8891
8892 PR target/47855
8893 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8894 (arm_cond_branch): Likewise.
8895 (arm_cond_branch_reversed): Likewise.
8896 (arm_jump): Likewise.
8897 (push_multi): Likewise.
8898 * config/arm/constraints.md (Py): New constraint.
8899
8900 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8901
8902 PR bootstrap/48471
8903 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8904 Move these...
8905 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8906 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8907 #ifdef DBX_DEBUGGING_INFO.
8908
8909 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8910
8911 PR bootstrap/48403
8912 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8913 if old and new states differ.
8914
8915 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8916
8917 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8918 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8919 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8920 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8921 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8922 mcfv4e): Use Alias.
8923 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8924 ColdFire options to -mcpu= options.
8925
8926 2011-04-05 Jeff Law <law@redhat.com>
8927
8928 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8929 check if BB is a successor of LOOP->header and return
8930 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8931
8932 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8933
8934 * cprop.c (struct reg_use): Remove.
8935 (reg_use_table): Make an array of RTX.
8936 (find_used_regs, constprop_register, local_cprop_pass,
8937 bypass_block): Simplify users of reg_use_table.
8938 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8939 on one of the uses found by find_used_regs.
8940
8941 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8942
8943 PR bootstrap/48469
8944 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8945 declaration.
8946
8947 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8948
8949 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8950 as an rtx.
8951 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8952
8953 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8954
8955 PR middle-end/48441
8956 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8957
8958 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8959
8960 * combine.c: Include obstack.h.
8961 (struct insn_link): Define.
8962 (uid_log_links): Adjust type.
8963 (FOR_EACH_LOG_LINK): New macro.
8964 (insn_link_obstack): Declare.
8965 (alloc_insn_link): Define.
8966 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8967 type of link variables.
8968 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8969 (try_combine, record_promoted_values, distribute_notes): Likewise.
8970 (distribute_links): Likewise. Tweak prototype.
8971 (clear_log_links): Delete.
8972 (adjust_for_new_dest): Call alloc_insn_link.
8973 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8974
8975 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8976
8977 * gcse.c (modify_mem_list): Convert to an array of VECs.
8978 (canon_modify_mem_list, compute_transp): Tweak formatting.
8979 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8980 (load_killed_in_block_p): Likewise.
8981 (record_last_mem_set_info): Likewise.
8982 (clear_modify_mem_tables): Likewise.
8983
8984 2011-04-05 Tom de Vries <tom@codesourcery.com>
8985
8986 PR middle-end/48461
8987 * function.c (emit_use_return_register_into_block): Only define if
8988 HAVE_return.
8989
8990 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8991
8992 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8993
8994 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8995
8996 * config/rx/rx-opts.h: New.
8997 * config/rx/rx.c (rx_cpu_type): Remove.
8998 (rx_handle_option): Don't assert that global structures are in
8999 use. Access variables via opts pointer. Defer most handling of
9000 OPT_mint_register_. Use error_at.
9001 (rx_option_override): Handle deferred OPT_mint_register_ here.
9002 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9003 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9004 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9005 (rx_cpu_types): New Enum and EnumValue entries.
9006 (mint-register=): Use Defer and use Var accordingly.
9007
9008 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9009
9010 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9011 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9012 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9013 Move these...
9014 (debug_free_queue, debug_nesting, symbol_queue_index):
9015 ...and these...
9016 * dbxout.c: ...to here. Make static.
9017
9018 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9019
9020 * gcse.c (modify_pair): Define. Define a VEC of it.
9021 (canon_modify_mem_list): Convert to an array of VECs.
9022 (free_insn_expr_list_list): Delete.
9023 (clear_modify_mem_tables): Call VEC_free instead.
9024 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9025 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9026 (canon_list_insert, compute_transp): Likewise.
9027
9028 2011-04-05 Tom de Vries <tom@codesourcery.com>
9029
9030 PR target/43920
9031 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9032 for size.
9033
9034 2011-04-05 Tom de Vries <tom@codesourcery.com>
9035
9036 PR target/43920
9037 * function.c (emit_use_return_register_into_block): New function.
9038 (thread_prologue_and_epilogue_insns): Use
9039 emit_use_return_register_into_block.
9040
9041 2011-04-05 Tom de Vries <tom@codesourcery.com>
9042
9043 PR target/43920
9044 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9045 insn.
9046
9047 2011-04-05 Tom de Vries <tom@codesourcery.com>
9048
9049 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9050
9051 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9052
9053 * config/arm/arm.md (define_constants for unspec): Replace with
9054 define_c_enum.
9055 (define_constants for unspecv): Replace with define_c_enum.
9056 * config/arm/neon.md (define_constants for unspec): Replace with
9057 define_c_enum.
9058
9059 2011-04-04 Richard Henderson <rth@redhat.com>
9060
9061 PR bootstrap/48400
9062 * dwarf2out.c (output_line_info): Always emit line info from
9063 at least one section.
9064 (dwarf2out_init): Create text_section_line_info here ...
9065 (set_cur_line_info_table): ... not here.
9066
9067 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9068
9069 PR target/48380
9070 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9071 not called.
9072
9073 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9074
9075 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9076
9077 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9078 (expr_equiv_p): Remove.
9079 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9080 (hash_scan_set): Update call to insert_set_in_table.
9081 (dump_hash_table): Dump <dest, src> pair.
9082 (lookup_set): Simplify. Lookup <dest, src> pair.
9083 (compute_transp): Remove, fold heavily simplified code into...
9084 (compute_local_properties): ...here. Expect COMP and TRANSP
9085 unconditionally.
9086 (find_avail_set): Take set directly from struct expr.
9087 (find_bypass-set): Likewise.
9088 (bypass_block): Likewise.
9089 (cprop_insn): Likewise. Remove redundant INSN_P test.
9090
9091 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9092 checks on form of COND from find_implicit_sets to here.
9093 (find_implicit_sets): Cleanup control flow. Split critical edges
9094 if it exposes implicit sets. Allocate/resize implicit_sets as
9095 necessary.
9096 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9097 changed something. Run df_analyze after find_implicit_sets if any
9098 edges were split. Do not allocate implicit_sets here.
9099
9100 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9101 (gcse_obstack): Renamed to cprop_obstack.
9102 (GNEW, GNEWVEC, GNEWVAR): Remove.
9103 (gmalloc): Remove.
9104 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9105 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9106 (gcse_alloc): Likewise, and rename to cprop_alloc.
9107 (alloc_gcse_men, free_gcse_mem): Remove.
9108 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9109 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9110 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9111
9112 * cprop.c (oprs_not_set_p): Remove.
9113 (mark_set, mark_clobber): Remove.
9114 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9115 (reg_not_set_p): New function.
9116 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9117 (cprop_insn): Likewise.
9118 (cprop_jump): Use FOR_EACH_EDGE.
9119
9120 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9121
9122 PR bootstrap/48403
9123 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9124 (rank_for_schedule): Use scheduled_insns vector instead of
9125 last_scheduled_insn.
9126 (ok_for_early_queue_removal): Likewise.
9127 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9128 we have a dbg_cnt.
9129 (choose_ready): Likewise.
9130 (commit_schedule): Use VEC_iterate.
9131 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9132 a dbg_cnt, use it and ensure the first insn is in the ready list.
9133 (haifa_sched_init): Allocate scheduled_insns.
9134 (sched_extend_ready_list): Don't allocate it; reserve space.
9135 (haifa_sched_finish): Free it.
9136
9137 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9138
9139 * optc-gen.awk: Always remove type from Variable entry before
9140 recording in var_seen.
9141
9142 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9143
9144 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9145 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9146 call to tidy_fallthru_edges.
9147
9148 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9149
9150 * doc/options.texi (ToLower): Document.
9151 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9152 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9153 * opts.h (cl_option): Add cl_tolower field.
9154 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9155 arguments with lowercase strings.
9156 * config/rx/rx.opt (mcpu=): Add ToLower.
9157 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9158 argument.
9159
9160 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9161
9162 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9163
9164 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9165
9166 * config/vax/vax.c: Include reload.h.
9167
9168 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9169
9170 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9171 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9172 (sparc_preferred_reload_class): New function.
9173
9174 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9175
9176 PR debug/48401
9177 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9178 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9179
9180 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9181
9182 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9183 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9184
9185 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9186
9187 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9188 (ASM_OUTPUT_ALIGNED_BSS): Define.
9189
9190 2011-04-03 Michael Matz <matz@suse.de>
9191
9192 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9193 and next_slot members.
9194 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9195 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9196 (lto_streamer_cache_append): Declare.
9197 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9198 unsigned index, remove offset parameter, ensure that we append
9199 or update existing entries.
9200 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9201 parameter, update next_slot for append.
9202 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9203 parameter.
9204 (lto_streamer_cache_insert_at): Likewise.
9205 (lto_streamer_cache_append): New function.
9206 (lto_streamer_cache_lookup): Use unsigned index.
9207 (lto_streamer_cache_get): Likewise.
9208 (lto_record_common_node): Don't test tree_node_can_be_shared.
9209 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9210 (lto_streamer_cache_delete): Don't free offsets member.
9211 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9212 (lto_output_string_with_length): Use lto_output_data_stream.
9213 (lto_output_tree_header): Remove ix parameter, don't write it.
9214 (lto_output_builtin_tree): Likewise.
9215 (lto_write_tree): Adjust callers to above, don't track and write
9216 offset, write unsigned index.
9217 (output_unreferenced_globals): Don't emit all global vars.
9218 (write_global_references): Use unsigned indices.
9219 (lto_output_decl_state_refs): Likewise.
9220 (write_symbol): Likewise.
9221 * lto-streamer-in.c (lto_input_chain): Move earlier.
9222 (input_function): Use unsigned index.
9223 (input_alias_pairs): Don't read and then ignore all global vars.
9224 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9225 don't pass it back, use lto_streamer_cache_append.
9226 (lto_register_var_decl_in_symtab): Use unsigned index.
9227 (lto_register_function_decl_in_symtab): Likewise.
9228 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9229 index.
9230 (lto_get_builtin_tree): Don't read index, use
9231 lto_streamer_cache_append.
9232 (lto_read_tree): Adjust call to lto_materialize_tree.
9233
9234 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9235 don't use function calls in arguments to MIN.
9236
9237 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9238 twice.
9239
9240 * gimple.c (gimple_type_leader_entry): Mark deletable.
9241
9242 2011-04-03 Alan Modra <amodra@gmail.com>
9243
9244 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9245
9246 2011-04-03 Michael Matz <matz@suse.de>
9247
9248 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9249 an integer.
9250 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9251
9252 2011-04-03 Michael Matz <matz@suse.de>
9253
9254 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9255 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9256 without function context.
9257 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9258 current_function_decl and cfun.
9259
9260 2011-04-03 Michael Matz <matz@suse.de>
9261
9262 * tree.c (decl_init_priority_insert): Don't create entry for
9263 default priority.
9264 (decl_fini_priority_insert): Ditto.
9265 (fields_compatible_p, find_compatible_field): Remove.
9266 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9267 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9268
9269 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9270
9271 * combine.c (try_combine): Remove useless local variable.
9272
9273 2011-04-03 Richard Guenther <rguenther@suse.de>
9274 Ira Rosen <ira.rosen@linaro.org>
9275
9276 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9277 non-variable offsets and compare the remaining bases of the two
9278 accesses instead of looking for exact same data-ref.
9279
9280 2011-04-02 Kai Tietz <ktietz@redhat.com>
9281
9282 PR target/48416
9283 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9284
9285 * i386.c (ix86_is_msabi_thiscall): New helper function.
9286 (ix86_is_type_thiscall): New helper function.
9287 (ix86_comp_type_attributes): Handle thiscall for method-functions
9288 special.
9289 (init_cumulative_args): Likewise.
9290 (find_drap_reg): Likewise.
9291 (ix86_static_chain): Likewise.
9292 (x86_this_parameter): Likewise.
9293 (x86_output_mi_thunk): Likewise.
9294
9295 2011-04-01 Olivier Hainque <hainque@adacore.com>
9296 Nicolas Setton <setton@adacore.com>
9297 Eric Botcazou <ebotcazou@adacore.com>
9298
9299 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9300 (add_gnat_descriptive_type_attribute): New function.
9301 (gen_array_type_die): Call it.
9302 (gen_enumeration_type_die): Likewise.
9303 (gen_struct_or_union_type_die): Likewise.
9304 (modified_type_die): Likewise.
9305 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9306 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9307 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9308
9309 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9310
9311 PR bootstrap/48148
9312 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9313 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9314
9315 Revert:
9316 2011-03-17 Richard Guenther <rguenther@suse.de>
9317
9318 PR bootstrap/48148
9319 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9320 origin for decls in other ltrans units.
9321 (input_varpool_node): Likewise.
9322
9323 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9324
9325 PR middle-end/48335
9326 * expr.c (expand_assignment): Handle all possibilities
9327 if TO_RTX is CONCAT.
9328 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9329 (store_split_bit_field): If SUBREG_REG (op0) or
9330 op0 itself has smaller mode than word, return it
9331 for offset 0 and const0_rtx for out-of-bounds stores.
9332 If word is const0_rtx, skip it.
9333
9334 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9335
9336 * config/h8300/h8300.c (print_operand_address): Rename to...
9337 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9338 Call h8300_print_operand and h8300_print_operand_address instead of
9339 print_operand and print_operand_address. Declare.
9340 (print_operand): Renake to...
9341 (h8300_print_operand): ...this. Make static. Adjust comments.
9342 Call h8300_print_operand instead of print_operand. Declare.
9343 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9344 (h8300_register_move_cost): Likewise.
9345 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9346 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9347 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9348 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9349 * config/h8300/h8300-protos.h (print_operand): Delete.
9350 (print_operand_address): Delete.
9351
9352 2011-04-01 Richard Henderson <rth@redhat.com>
9353
9354 PR 48400
9355 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9356 in strict mode before dwarf4. Re-order tests to early out
9357 before switching sections.
9358
9359 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9360
9361 * config/h8300/constraints.md: New file.
9362 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9363 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9364 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9365 * config/h8300/predicates.md (bit_operand): Likewise.
9366 (incdec_operand): Use satisfies_constraint_M and
9367 satisfies_constraint_O. Don't use C code block.
9368 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9369 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9370 (compute_mov_length): Use satisfies_constraint_G.
9371 (fix_bit_operand): Use satisfies_constraint_U.
9372 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9373 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9374 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9375 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9376 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9377 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9378 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9379 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9380 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9381 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9382 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9383 (EXTRA_MEMORY_CONSTRAINT): Delete.
9384
9385 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9386 Michael Meissner <meissner@linux.vnet.ibm.com>
9387
9388 PR target/48262
9389 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9390 operands, as per the specifications.
9391
9392 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9393 (vec_extract_evenv4sf): Ditto.
9394 (vec_extract_evenv8hi): Ditto.
9395 (vec_extract_evenv16qi): Ditto.
9396 (vec_extract_oddv4si): Ditto.
9397
9398 2011-03-31 Mark Wielaard <mjw@redhat.com>
9399
9400 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9401 high_pc attribute if the CU has no associated code. Only output
9402 DW_AT_entry_pc for CU if not generating strict dwarf and
9403 dwarf_version < 4.
9404
9405 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9406
9407 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9408 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9409 out of ...
9410 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9411 * final.c (final_start_function): Call the new function rather
9412 than using a NULL argument for dwarf2out_frame_debug.
9413
9414 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9415 that contains the prologue.
9416
9417 * haifa-sched.c (queue_insn): New arg REASON. All callers
9418 changed. Print it in debugging output.
9419
9420 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9421
9422 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9423 Split most of the code into...
9424 (begin_move_insn): ... here. New function.
9425 (ebb_sched_info): Add a pointer to it.
9426 * haifa-sched.c (scheduled_insns): New static variable.
9427 (sched_extend_ready_list): Allocate it.
9428 (schedule_block): Use it to record the order of scheduled insns.
9429 Perform RTL changes to move insns only after all scheduling
9430 decisions have been made.
9431 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9432 begin_move_insn field.
9433 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9434 * sched-int.h (struct haifa_sched_info): Remove second argument
9435 from begin_schedule_ready hook. Add new member begin_move_insn.
9436 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9437 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9438
9439 * haifa-sched.c (prune_ready_list): New function, broken out of
9440 schedule_block.
9441 (schedule_block): Use it.
9442
9443 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9444
9445 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9446
9447 2011-04-01 Kai Tietz <ktietz@redhat.com>
9448
9449 * config.gcc (*-*-mingw*): Allow as option the
9450 posix threading model.
9451 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9452 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9453 definition.
9454 (CPP_SPEC): Add pthread/no-pthread handling.
9455 (LIB_SPEC): Likewise.
9456 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9457 (LIB_SPEC): Likewise.
9458 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9459 flag to pass -pthread option for shared libgcc build.
9460 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9461 for shared libgcc build.
9462 * config/i386/t-mingw-pthread: New file.
9463 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9464 New define to enable use of library pthread by default.
9465 * config/i386/mingw.opt (pthread): New driver option.
9466 (no-pthread): New driver option.
9467 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9468 * config/i386/mingw-w64.opt: Likewise.
9469
9470 2011-04-01 Gary Funck <gary@intrepid.com>
9471
9472 * c-decl.c (grokdeclarator): Fix formatting.
9473
9474 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9475
9476 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9477 instead of n_operands.
9478 (set_storage_via_setmem): Likewise.
9479 * optabs.c (maybe_gen_insn): Likewise.
9480 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9481 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9482 (mips_expand_builtin_direct): Likewise.
9483 * config/spu/spu.c (expand_builtin_args): Likewise.
9484
9485 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9486
9487 * recog.h (insn_data_d): Add n_generator_args.
9488 * genoutput.c (data): Likewise.
9489 (output_insn_data): Print it.
9490 (max_opno, num_dups): Delete.
9491 (scan_operands): Just fill in "d->operand[...]".
9492 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9493
9494 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9495
9496 * gensupport.h (pattern_stats): New structure.
9497 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9498 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9499 (max_operand_1, max_operand_vec): Delete.
9500 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9501
9502 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9503
9504 * emit-rtl.c (emit_pattern_after_setloc): New function.
9505 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9506 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9507 (emit_pattern_after): New function.
9508 (emit_insn_after, emit_jump_insn_after): Call it.
9509 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9510 (emit_pattern_before_setloc): New function.
9511 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9512 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9513 Likewise.
9514 (emit_pattern_before): New function.
9515 (emit_insn_before, emit_jump_insn_before): Call it.
9516 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9517
9518 2011-03-31 Richard Henderson <rth@redhat.com>
9519
9520 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9521 (dw_separate_line_info_entry): Remove.
9522 (enum dw_line_info_opcode): New.
9523 (dw_line_info_entry): Use it.
9524 (dw_line_info_table, dw_line_info_table_p): New.
9525 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9526 (line_info_table, line_info_label_num): Remove.
9527 (line_info_table_in_use): Remove.
9528 (separate_line_info_table): Remove.
9529 (separate_line_info_table_allocated): Remove.
9530 (separate_line_info_table_in_use): Remove.
9531 (LINE_INFO_TABLE_INCREMENT): Remove.
9532 (line_info_label_num): New.
9533 (cur_line_info_table): New.
9534 (text_section_line_info, cold_text_section_line_info): New.
9535 (separate_line_info): New.
9536 (SEPARATE_LINE_CODE_LABEL): Remove.
9537 (print_dwarf_line_table): Remove.
9538 (debug_dwarf): Don't dump it.
9539 (output_one_line_info_table): New.
9540 (output_line_info): Use it.
9541 (new_line_info_table): New.
9542 (set_cur_line_info_table): New.
9543 (dwarf2out_switch_text_section): Use it.
9544 (dwarf2out_begin_function): Likewise.
9545 (push_dw_line_info_entry): New.
9546 (dwarf2out_source_line): Rewrite for new line info tables.
9547 (dwarf2out_init): Remove dead initailizations.
9548
9549 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9550
9551 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9552 various flags.
9553 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9554 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9555 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9556 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9557 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9558 * opt-functions.awk (flag_init, switch_bit_fields): New.
9559 (switch_flags): Don't handle flags moved to bit-fields. Don't
9560 generate CL_MISSING_OK or CL_SAVE.
9561 * optc-gen.awk: Update to generate bit-field output as well as
9562 flags field.
9563 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9564 bit-field instead of CL_REJECT_DRIVER flag.
9565 * opts-common.c (generate_canonical_option,
9566 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9567 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9568 instead of CL_REJECT_NEGATIVE flag.
9569 * toplev.c (print_switch_values): Use cl_report bit-field instead
9570 of CL_REPORT flag.
9571
9572 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9573
9574 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9575 a zero minimum index only if it is redundant.
9576
9577 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9578
9579 PR rtl-optimization/48381
9580 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9581 instead of ira_class_hard_reg_index for calculating conflicting
9582 hard registers.
9583
9584 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9585
9586 * cprop.c: Clean up hash table building.
9587 (reg_avail_info): Remove.
9588 (oprs_available_p): Remove.
9589 (record_last_reg_set_info): Remove.
9590 (record_last_set_info): Remove.
9591 (reg_available_p): New function.
9592 (gcse_constant_p): Do not treat unfolded conditions as constants.
9593 (make_set_regs_unavailable): New function.
9594 (hash_scan_set): Simplify with new reg_available_p.
9595 (compute_hash_table_work): Traverse insns stream only once.
9596 Do not compute reg_avail_info. Traverse insns in reverse order.
9597 Record implicit sets after recording explicit sets from the block.
9598
9599 2011-03-31 Michael Matz <matz@suse.de>
9600
9601 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9602
9603 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9604
9605 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9606 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9607 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9608 (h8300_mode_dependent_address_p): New function.
9609 (h8300_get_index): Make static.
9610
9611 2011-03-31 Jeff Law <law@redhat.com>
9612
9613 * reload1.c (elimination_effects): Fix typo in recent change.
9614
9615 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9616 typo potentially leading to null pointer dereference.
9617
9618 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9619 (setup_save_areas): Corresponding changes to avoid useless
9620 assignments.
9621
9622 * jump.c (reversed_comparison_code_parts): Avoid successive return
9623 statements when REVERSE_CONDITION is defined.
9624
9625 * expr.c (expand_assignment): Avoid useless assignments.
9626 (expand_expr_real_1): Likewise.
9627 (expand_expr_real_2): Avoid useless statements.
9628
9629 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9630
9631 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9632
9633 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9634 statements.
9635
9636 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9637
9638 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9639
9640 PR target/47109
9641 * doc/tm.texi.in (TARGET_VERSION): Remove.
9642 * doc/tm.texi: Regenerate.
9643 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9644 * collect2.c (main): Don't use TARGET_VERSION.
9645 * mips-tdump.c (main): Don't use TARGET_VERSION.
9646 * mips-tfile.c (main): Don't use TARGET_VERSION.
9647 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9648 * config/rs6000/vxworksae.h: Remove.
9649 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9650 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9651 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9652 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9653 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9654 * config/arm/arm.h (TARGET_VERSION): Remove.
9655 * config/arm/coff.h (TARGET_VERSION): Remove.
9656 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9657 * config/arm/elf.h (TARGET_VERSION): Remove.
9658 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9659 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9660 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9661 * config/arm/pe.h (TARGET_VERSION): Remove.
9662 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9663 * config/arm/semi.h (TARGET_VERSION): Remove.
9664 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9665 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9666 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9667 * config/avr/avr.h (TARGET_VERSION): Remove.
9668 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9669 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9670 * config/frv/frv.h (TARGET_VERSION): Remove.
9671 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9672 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9673 * config/i386/darwin.h (TARGET_VERSION): Remove.
9674 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9675 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9676 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9677 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9678 * config/i386/gnu.h (TARGET_VERSION): Remove.
9679 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9680 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9681 * config/i386/linux.h (TARGET_VERSION): Remove.
9682 * config/i386/linux64.h (TARGET_VERSION): Remove.
9683 * config/i386/lynx.h (TARGET_VERSION): Remove.
9684 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9685 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9686 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9687 * config/i386/netware.h (TARGET_VERSION): Remove.
9688 * config/i386/nto.h (TARGET_VERSION): Remove.
9689 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9690 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9691 * config/ia64/elf.h (TARGET_VERSION): Remove.
9692 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9693 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9694 * config/ia64/linux.h (TARGET_VERSION): Remove.
9695 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9696 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9697 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9698 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9699 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9700 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9701 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9702 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9703 * config/m68k/linux.h (TARGET_VERSION): Remove.
9704 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9705 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9706 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9707 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9708 * config/mep/mep.h (TARGET_VERSION): Remove.
9709 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9710 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9711 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9712 * config/mips/linux.h (TARGET_VERSION): Remove.
9713 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9714 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9715 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9716 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9717 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9718 * config/pa/pa.h (TARGET_VERSION): Remove.
9719 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9720 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9721 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9722 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9723 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9724 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9725 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9726 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9727 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9728 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9729 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9730 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9731 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9732 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9733 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9734 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9735 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9736 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9737 * config/s390/linux.h (TARGET_VERSION): Remove.
9738 * config/s390/s390.h (TARGET_VERSION): Remove.
9739 * config/s390/tpf.h (TARGET_VERSION): Remove.
9740 * config/score/score.h (TARGET_VERSION): Remove.
9741 * config/sh/linux.h (TARGET_VERSION): Remove.
9742 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9743 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9744 * config/sh/sh.h (TARGET_VERSION): Remove.
9745 * config/sh/sh64.h (TARGET_VERSION): Remove.
9746 * config/sh/superh.h (TARGET_VERSION): Remove.
9747 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9748 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9749 * config/sparc/linux.h (TARGET_VERSION): Remove.
9750 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9751 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9752 TARGET_NAME32, TARGET_NAME): Remove.
9753 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9754 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9755 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9756 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9757 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9758 * config/spu/spu.h (TARGET_VERSION): Remove.
9759 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9760 * config/v850/v850.h (TARGET_VERSION): Remove.
9761 * config/vax/linux.h (TARGET_VERSION): Remove.
9762 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9763 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9764 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9765
9766 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9767
9768 PR target/48142
9769 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9770 frame-related from frame-unrelated adjustments to the stack pointer.
9771
9772 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9773
9774 * common.opt (fdebug-types-section): Move earlier.
9775 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9776
9777 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9778
9779 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9780 var.
9781
9782 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9783
9784 * tree.h (CASE_CHAIN): Define.
9785 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9786 (gimple_redirect_edge_and_branch): Likewise.
9787
9788 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9789
9790 PR middle-end/48367
9791 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9792 calculation.
9793
9794 2011-03-30 Jeff Law <law@redhat.com>
9795
9796 * PR bootstrap/48371
9797 * reload1.c (reload): Fix botch in last change.
9798
9799 * reload.h (struct reload): Fix typo introduced in last change.
9800
9801 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9802
9803 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9804 Undocumented. Remove help text.
9805 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9806 -mhard-float.
9807
9808 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9809
9810 * doc/options.texi (NegativeAlias): Document.
9811 (Alias): Mention NegativeAlias.
9812 * opt-functions.awk: Handle NegativeAlias.
9813 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9814 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9815 * opts.h (CL_NEGATIVE_ALIAS): Define.
9816 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9817 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9818 OPT_mspe_.
9819 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9820 Alias entries.
9821 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9822 mno-spe and mno-isel instead of mspe=no and -misel=no.
9823
9824 2011-03-29 Mark Wielaard <mjw@redhat.com>
9825
9826 * common.opt (fdebug-types-section): New flag.
9827 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9828 * dwarf2out.c (use_debug_types): New define.
9829 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9830 (print_die): Guard output of type unit signatures using
9831 use_debug_types.
9832 (build_abbrev_table): Replace assert of dwarf_version >= 4
9833 with assert on use_debug_types.
9834 (size_of_die): Likewise.
9835 (unmark_dies): Likewise.
9836 (value_format): Decide AT_ref_external form on use_debug_types.
9837 (output_die): Replace dwarf_version version check guard with
9838 use_debug_types where appropriate.
9839 (modified_type_die): Likewise.
9840 (gen_reference_type_die): Likewise.
9841 (dwarf2out_start_source_file): Likewise.
9842 (dwarf2out_end_source_file): Likewise.
9843 (prune_unused_types_walk_attribs): Likewise.
9844 (dwarf2out_finish): Likewise.
9845
9846 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9847
9848 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9849
9850 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9851
9852 PR rtl-optimization/48332
9853 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9854 mode of input operand N and modeN to its actual mode.
9855
9856 2011-03-30 Jeff Law <law@redhat.com>
9857
9858 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9859 define accessor macro.
9860 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9861 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9862 (reg_equiv_init): Likewise.
9863 (reg_equivs_size): New variable.
9864 (reg_equiv_init_size): Remove.
9865 (allocate_initial_values): Move prototype to here from....
9866 * integrate.h (allocate_initial_values): Remove prototype.
9867 * integrate.c: Include reload.h.
9868 (allocate_initial_values): Corresponding changes.
9869 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9870 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9871 (update_equiv_regs): Corresponding changes.
9872 (ira): Corresponding changes.
9873 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9874 (push_secondary_reload): Corresponding changes.
9875 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9876 (make_memloc, find_reloads_address): Corresponding changes.
9877 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9878 (find_reloads_address_1): Corresponding changes.
9879 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9880 (refers_to_regno_for_reload_p): Corresponding changes.
9881 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9882 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9883 * reload1.c: Include ggc.h.
9884 (grow_reg_equivs): New function.
9885 (replace_pseudos_in, reload): Corresponding changes.
9886 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9887 (eliminate_regs_1, elimination_effects): Corresponding changes.
9888 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9889 (delete_output_reload): Likewise.
9890 * caller-save.c (mark_referenced_regs): Corresponding changes.
9891 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9892 * frv/predicates.md (frv_load_operand): Corresponding changes.
9893 * microblaze/microblaze.c (double_memory_operand): Corresponding
9894 changes.
9895 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9896 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9897 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9898 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9899 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9900 changes.
9901 * pa/pa.c (emit_move_sequence): Corresponding changes.
9902 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9903
9904 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9905
9906 PR target/47551
9907 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9908 structure modes. Don't check neon_vector_mem_operand for
9909 vector or structure modes.
9910
9911 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9912 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9913
9914 PR target/43590
9915 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9916 operand 1 and reshuffle the operands to match.
9917 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9918
9919 2011-03-30 Christian SchĂĽler <cschueler@gmx.de>
9920
9921 PR driver/48208
9922 * config/c.opt (F): Added 'Driver' to -F option.
9923
9924 PR driver/48260
9925 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9926 handler function.
9927 * config/darwin.opt: Added '-arch' option.
9928
9929 2011-03-30 Nick Clifton <nickc@redhat.com>
9930
9931 * config/rx/rx.md: Add peepholes and patterns to combine
9932 extending loads and simple arithmetic instructions.
9933 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9934 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9935 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9936 modes to use pre-decrement and post-increment addressing.
9937 (rx_is_restricted_memory_address): Add range checking of REG+INT
9938 addresses.
9939 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9940 (rx_memory_move_cost): Adjust cost of stores.
9941 (rx_adjust_insn_length): New function.
9942
9943 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9944
9945 PR c/48305
9946 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9947 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9948 matching arg00/arg01 types.
9949
9950 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9951
9952 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9953 last_location to UNKNOWN_LOCATION.
9954
9955 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9956
9957 PR target/48349
9958 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9959 FLOAT_SSE_REGS.
9960
9961 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9962 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9963
9964 PR bootstrap/48337
9965 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9966 Init(PROCESSOR_V7).
9967 (sparc_cpu): Likewise.
9968 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9969 PROCESSOR_V7.
9970
9971 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9972
9973 PR target/48336
9974 PR middle-end/48342
9975 PR rtl-optimization/48345
9976 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9977 hard regs for given mode from profitable regs when doing secondary
9978 allocation.
9979
9980 2011-03-29 Jeff Law <law@redhat.com>
9981
9982 PR bootstrap/48327
9983 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9984 do_not_duplicate field.
9985 (lookup_redirection_data): Corresponding changes.
9986 (create_duplicates): Always create a template block.
9987 (redirect_edges): Remove code which reused the original block
9988 when it was going to become unreachable code.
9989 (thread_block): Don't set do_not_duplicate field.
9990
9991 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9992
9993 * lto-opts.c (register_user_option_p, lto_register_user_option):
9994 Make type argument unsigned.
9995 * lto-streamer.h (lto_register_user_option): Make type argument
9996 unsigned.
9997 * opth-gen.awk: Make CL_* macros unsigned.
9998 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9999 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10000 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10001 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10002 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10003 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10004 (find_opt): Make lang_mask argument unsigned.
10005
10006 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10007
10008 PR rtl-optimization/48331
10009 PR rtl-optimization/48334
10010 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10011 for any used algorithm.
10012
10013 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10014
10015 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10016 to parent_max.
10017
10018 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10019
10020 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10021 (alpha_option_override): Don't set alpha_sr_alias_set.
10022 (emit_frame_store_1): Use gen_frame_mem rather than calling
10023 set_mem_alias_set.
10024 (alpha_expand_epilogue): Ditto.
10025
10026 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10027
10028 PR tree-optimization/48290
10029 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10030 vectorization, check that relevant phis in the basic block after
10031 the inner loop are really inner loop's exit phis.
10032
10033 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10034
10035 PR debug/48190
10036 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10037 (cached_dw_loc_list_def): New structure.
10038 (cached_dw_loc_list): New typedef.
10039 (cached_dw_loc_list_table): New variable.
10040 (cached_dw_loc_list_table_hash): New function.
10041 (cached_dw_loc_list_table_eq): Likewise.
10042 (add_location_or_const_value_attribute): Take a bool cache_p.
10043 Cache the list when the parameter is true.
10044 (gen_formal_parameter_die): Update caller.
10045 (gen_variable_die): Likewise.
10046 (dwarf2out_finish): Likewise.
10047 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10048 while generating debug info for the decl.
10049 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10050 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10051 (resolve_addr): Cache the result of resolving a chain of
10052 location lists.
10053
10054 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10055
10056 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10057 conflict object hard regset nodes have intersecting hard reg sets.
10058
10059 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10060 after regstat_init_n_sets_and_refs.
10061
10062 * ira.c: Add more comments at the top.
10063 (setup_stack_reg_pressure_class, setup_pressure_classes):
10064 Add comments how we compute the register pressure classes.
10065 (setup_allocno_and_important_classes): Add more comments.
10066 (setup_class_translate_array, reorder_important_classes)
10067 (setup_reg_class_relations): Add comments.
10068
10069 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10070 start of the file.
10071
10072 * ira-color.c: Add 2011 to the Copyright line.
10073 (assign_hard_reg): Add more comments.
10074 (improve_allocation): Ditto.
10075
10076 * ira-costs.c: Add 2011 to the Copyright line.
10077 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10078 comments.
10079 (setup_regno_cost_classes_by_mode): Ditto.
10080
10081 Initial patches from ira-improv branch:
10082
10083 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10084
10085 * ira-build.c (ira_create_object): Remove initialization of
10086 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10087 (ira_create_allocno): Remove initialization of
10088 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10089 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10090 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10091 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10092 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10093 Initialize ALLOCNO_ADD_DATA.
10094 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10095 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10096 ALLOCNO_REG.
10097 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10098 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10099
10100 * ira.c (ira_reallocate): Remove.
10101 (setup_pressure_classes): Call
10102 ira_init_register_move_cost_if_necessary. Use
10103 ira_register_move_cost instead of ira_get_register_move_cost.
10104 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10105 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10106
10107 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10108 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10109 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10110 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10111 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10112 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10113 Fix formatting.
10114 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10115 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10116 (struct allocno_color_data): New.
10117 (allocno_color_data_t): New typedef.
10118 (allocno_color_data): New definition.
10119 (ALLOCNO_COLOR_DATA): New macro.
10120 (struct object_color_data): New.
10121 (object_color_data_t): New typedef.
10122 (object_color_data): New definition.
10123 (OBJECT_COLOR_DATA): New macro.
10124 (update_copy_costs, calculate_allocno_spill_cost): Call
10125 ira_init_register_move_cost_if_necessary. Use
10126 ira_register_move_cost instead of ira_get_register_move_cost.
10127 (move_spill_restore, update_curr_costs): Ditto.
10128 (allocno_spill_priority): Make it inline.
10129 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10130 (struct coalesce_data, coalesce_data_t): New.
10131 (allocno_coalesce_data): New definition.
10132 (ALLOCNO_COALESCE_DATA): New macro.
10133 (merge_allocnos, coalesced_allocno_conflict_p): Use
10134 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10135 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10136 (coalesce_allocnos): Ditto.
10137 (setup_coalesced_allocno_costs_and_nums): Ditto.
10138 (collect_spilled_coalesced_allocnos): Ditto.
10139 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10140 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10141 (coalesce_spill_slots): Ditto.
10142 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10143 free allocno_coalesce_data.
10144
10145 * ira-conflicts.c: Fix formatting.
10146 (process_regs_for_copy): Call
10147 ira_init_register_move_cost_if_necessary. Use
10148 ira_register_move_cost instead of ira_get_register_move_cost.
10149 (build_object_conflicts): Optimize.
10150
10151 * ira-costs.c (record_reg_classes): Optimize. Call
10152 ira_init_register_move_cost_if_necessary. Use
10153 ira_register_move_cost, ira_may_move_in_cost, and
10154 ira_may_move_out_cost instead of ira_get_register_move_cost and
10155 ira_get_may_move_cost.
10156 (record_address_regs): Ditto.
10157 (scan_one_insn): Optimize.
10158 (find_costs_and_classes): Optimize.
10159 (process_bb_node_for_hard_reg_moves): Call
10160 ira_init_register_move_cost_if_necessary. Use
10161 ira_register_move_cost instead of ira_get_register_move_cost.
10162
10163 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10164 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10165 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10166 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10167 definitions.
10168 (ira_initiate_emit_data, ira_finish_emit_data)
10169 (create_new_allocno): New functions.
10170 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10171 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10172 Use ira_register_move_cost instead of ira_get_register_move_cost.
10173
10174 * ira-int.h: Fix some comments.
10175 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10176 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10177 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10178 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10179 add_data.
10180 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10181 bitfield after mode. Make hard_regno a short int. Make
10182 hard_regno short. Remove first_coalesced_allocno and
10183 next_coalesced_allocno. Move mem_optimized_dest_p,
10184 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10185 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10186 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10187 temp, colorable_p. Add new member add_data.
10188 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10189 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10190 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10191 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10192 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10193 (ALLOCNO_ADD_DATA): New macro.
10194 (ira_emit_data_t): New typedef.
10195 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10196 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10197 from struct ira_allocno.
10198 (ALLOCNO_EMIT_DATA): New macro.
10199 (ira_allocno_emit_data, allocno_emit_reg): New.
10200 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10201 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10202 (OBJECT_ADD_DATA): New macro.
10203 (ira_reallocate): Remove.
10204 (ira_initiate_emit_data, ira_finish_emit_data): New.
10205 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10206 (ira_init_register_move_cost_if_necessary): New.
10207 (ira_object_conflict_iter_next): Merge into
10208 ira_object_conflict_iter_cond.
10209 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10210
10211 * ira-live.c (process_single_reg_class_operands): Call
10212 ira_init_register_move_cost_if_necessary. Use
10213 ira_register_move_cost instead of ira_get_register_move_cost.
10214
10215 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10216
10217 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10218
10219 * ira-costs.c: Fix formatting.
10220 (cost_classes, cost_classes_num): Remove.
10221 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10222 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10223 (cost_classes_del, cost_classes_htab): New.
10224 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10225 (initiate_regno_cost_classes, setup_cost_classes): New.
10226 (setup_regno_cost_classes_by_aclass): New.
10227 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10228 (record_reg_classes): Use regno_cost_classes instead of
10229 cost_classes. Move checking opposite operand up.
10230 (record_address_regs): Use regno_cost_classes
10231 instead of cost_classes.
10232 (scan_one_insn): Ditto. Use always general register.
10233 (print_allocno_costs): Use regno_cost_classes instead of
10234 cost_classes.
10235 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10236 (find_costs_and_classes): Set up cost classes for each registers.
10237 Use also their mode for this. Use regno_cost_classes instead of
10238 cost_classes.
10239 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10240 cost_classes.
10241 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10242 (ira_costs, ira_set_pseudo_classes): Call
10243 initiate_regno_cost_classes and finish_regno_cost_classes.
10244
10245 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10246
10247 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10248
10249 * target.def (ira_cover_classes): Remove.
10250
10251 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10252
10253 * doc/tm.texi.in: Ditto.
10254
10255 * ira-conflicts.c: Remove mentioning cover classes from the file.
10256 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10257 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10258
10259 * targhooks.c (default_ira_cover_classes): Remove.
10260
10261 * targhooks.h (default_ira_cover_classes): Ditto.
10262
10263 * haifa-sched.c: Remove mentioning cover classes from the file.
10264 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10265 ira_pressure_classes and ira_pressure_classes_num instead of
10266 ira_reg_class_cover_size and ira_reg_class_cover. Use
10267 sched_regno_pressure_class instead of sched_regno_cover_class.
10268 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10269 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10270
10271 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10272 classes from the file.
10273 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10274 (struct object_hard_regs, struct object_hard_regs_node): New.
10275 (struct ira_object): New members profitable_hard_regs,
10276 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10277 (struct ira_allocno): Rename cover_class to aclass. Rename
10278 cover_class_cost and updated_cover_class_cost to class_cost and
10279 updated_class_cost. Remove splay_removed_p and
10280 left_conflict_size. Add new members colorable_p.
10281 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10282 (ALLOCNO_COLORABLE_P): New macro.
10283 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10284 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10285 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10286 (OBJECT_...): Rename parameter C to O.
10287 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10288 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10289 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10290 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10291 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10292 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10293 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10294 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10295 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10296 x_ira_reg_class_subunion.
10297 (ira_max_memory_move_cost, ira_max_register_move_cost)
10298 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10299 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10300 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10301 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10302 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10303 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10304 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10305 (ira_tune_allocno_costs_and_cover_classes): Rename to
10306 ira_tune_allocno_costs.
10307 (ira_debug_hard_regs_forest): New.
10308 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10309 (ira_object_conflict_iter_next): Fix comments.
10310 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10311 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10312 cover_class to aclass.
10313 (ira_allocate_and_accumulate_costs): Ditto.
10314 (ira_allocate_and_set_or_copy_costs): Ditto.
10315
10316 * opts.c (decode_options): Remove ira_cover_class check.
10317
10318 * ira-color.c: Remove mentioning cover classes from the file. Use
10319 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10320 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10321 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10322 (splay-tree.h): Remove include.
10323 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10324 before copy_freq_compare_func.
10325 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10326 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10327 New definitions.
10328 (hard_regs_roots, hard_regs_node_vec): Ditto.
10329 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10330 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10331 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10332 (create_new_object_hard_regs_node): Ditto.
10333 (add_new_object_hard_regs_node_to_forest): Ditto.
10334 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10335 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10336 Ditto.
10337 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10338 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10339 (remove_unused_object_hard_regs_nodes): Ditto.
10340 (enumerate_object_hard_regs_nodes): Ditto.
10341 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10342 (object_hard_regs_subnode_t): Ditto.
10343 (struct object_hard_regs_subnode): Ditto.
10344 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10345 (setup_object_hard_regs_subnode_index): Ditto.
10346 (get_object_hard_regs_subnodes_num): Ditto.
10347 (form_object_hard_regs_nodes_forest): Ditto.
10348 (finish_object_hard_regs_nodes_tree): Ditto.
10349 (finish_object_hard_regs_nodes_forest): Ditto.
10350 (allocnos_have_intersected_live_ranges_p): Rename to
10351 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10352 (pseudos_have_intersected_live_ranges_p): Rename to
10353 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10354 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10355 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10356 (update_copy_costs): Remove assert. Skip cost update if the hard
10357 reg does not belong the class.
10358 (assign_hard_reg): Process only profitable hard regs.
10359 (uncolorable_allocnos_num): Make it scalar.
10360 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10361 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10362 and ira_reg_class_max_nregs.
10363 (bucket_allocno_compare_func): Check frequency first.
10364 (sort_bucket): Add compare function as a parameter.
10365 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10366 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10367 (push_allocno_to_stack): Rewrite for checking new allocno
10368 colorability.
10369 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10370 (push_only_colorable): Pass new parameter to sort_bucket.
10371 (push_allocno_to_spill): Remove.
10372 (allocno_spill_priority_compare): Make it inline and rewrite.
10373 (splay_tree_allocate, splay_tree_free): Remove.
10374 (allocno_spill_sort_compare): New function.
10375 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10376 build and use splay tree. Choose first allocno in uncolorable
10377 allocno bucket to spill. Remove setting spill cost.
10378 (all_conflicting_hard_regs): Remove.
10379 (setup_allocno_available_regs_num): Check only profitable hard
10380 regs. Print info about hard regs nodes.
10381 (setup_allocno_left_conflicts_size): Remove.
10382 (put_allocno_into_bucket): Don't call
10383 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10384 (improve_allocation): New.
10385 (color_allocnos): Call setup_profitable_hard_regs,
10386 form_object_hard_regs_nodes_forest, improve_allocation,
10387 finish_object_hard_regs_nodes_forest. Setup spill cost.
10388 (print_loop_title): Use pressure classes.
10389 (color_allocnso): Ditto.
10390 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10391 and allocnos_for_spilling.
10392 (ira_sort_regnos_for_alter_reg): Don't setup members
10393 {first,next}_coalesced_allocno.
10394 (color): Remove allocating and freeing removed_splay_allocno_vec.
10395 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10396 prohibited_class_mode_regs.
10397
10398 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10399 formatting.
10400 (update_allocno_pressure_excess_length): Use pressure classes.
10401 (inc_register_pressure, dec_register_pressure): Check for pressure
10402 class.
10403 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10404 pressure class. Use ira_reg_class_nregs instead of
10405 ira_reg_class_max_nregs.
10406 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10407 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10408 (single_reg_class): Use ira_reg_class_nregs instead of
10409 ira_reg_class_max_nregs.
10410 (process_bb_node_lives): Use pressure classes.
10411
10412 * ira-emit.c: Remove mentioning cover classes from the file. Use
10413 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10414 (change_loop): Use pressure classes.
10415 (modify_move_list): Call ira_set_allocno_class instead of
10416 ira_set_allocno_cover_class.
10417
10418 * ira-build.c: Remove mentioning cover classes from the file. Use
10419 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10420 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10421 ALLOCNO_UPDATED_CLASS_COST instead of
10422 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10423 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10424 (ira_create_allocno): Remove initialization of
10425 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10426 ALLOCNO_COLORABLE_P.
10427 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10428 Update conflict regs for the objects.
10429 (create_cap_allocno): Remove assert. Don't propagate
10430 ALLOCNO_AVAILABLE_REGS_NUM.
10431 (ira_free_allocno_costs): New function.
10432 (finish_allocno): Change a part of code into call of
10433 ira_free_allocno_costs.
10434 (low_pressure_loop_node_p): Use pressure classes.
10435 (object_range_compare_func): Don't compare classes.
10436 (setup_min_max_conflict_allocno_ids): Ditto.
10437
10438 * loop-invariant.c: Remove mentioning cover classes from the file.
10439 Use ira_pressure_classes and ira_pressure_classes_num instead of
10440 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10441 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10442 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10443 Use reg_allocno_class instead of reg_cover_class.
10444 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10445 STACK_REG_COVER_CLASS.
10446 (get_regno_cover_class): Rename to get_regno_pressure_class.
10447 (move_loop_invariants): Initialize and finalize regstat.
10448
10449 * ira.c: Remove mentioning cover classes from the file. Add
10450 comments about coloring without cover classes. Use ALLOCNO_CLASS
10451 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10452 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10453 setup_class_subset_and_memory_move_costs.
10454 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10455 (setup_cover_and_important_classes): Rename to
10456 setup_allocno_and_important_classes.
10457 (setup_class_translate_array): New.
10458 (setup_class_translate): Call it for allocno and pressure classes.
10459 (cover_class_order): Rename to allocno_class_order.
10460 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10461 of ira_class_translate.
10462 (reorder_important_classes): Set up ira_important_class_nums.
10463 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10464 (print_class_cover): Rename to print_classes. Add parameter.
10465 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10466 Print pressure classes too.
10467 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10468 setup_reg_subclasses.
10469 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10470 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10471 (setup_prohibited_class_mode_regs): Use
10472 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10473 (clarify_prohibited_class_mode_regs): New function.
10474 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10475 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10476 (ira_init_once): Initialize them.
10477 (free_register_move_costs): Process them.
10478 (ira_init): Move calls of find_reg_classes and
10479 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10480 Call clarify_prohibited_class_mode_regs.
10481 (ira_no_alloc_reg): Remove.
10482 (too_high_register_pressure_p): Use pressure classes.
10483
10484 * sched-deps.c: Remove mentioning cover classes from the file.
10485 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10486 ira_pressure_classes and ira_pressure_classes_num instead of
10487 ira_reg_class_cover_size and ira_reg_class_cover.
10488 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10489 sched_regno_pressure_class instead of sched_regno_cover_class.
10490 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10491 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10492
10493 * ira.h: Add 2010 to Copyright.
10494 (ira_no_alloc_reg): Remove external.
10495 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10496 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10497 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10498 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10499 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10500 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10501 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10502 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10503 x_ira_no_alloc_regs.
10504 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10505 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10506 ira_allocno_classes_num and ira_allocno_classes.
10507 (ira_class_translate): Rename to ira_allocno_class_translate.
10508 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10509 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10510 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10511 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10512 (ira_no_alloc_regs): New.
10513
10514 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10515 classes from the file. Use ALLOCNO_CLASS instead of
10516 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10517 ALLOCNO_COVER_CLASS_COST.
10518 (regno_cover_class): Rename to regno_aclass.
10519 (record_reg_classes): Use ira_reg_class_subunion instead of
10520 ira_reg_class_union.
10521 (record_address_regs): Check overflow.
10522 (scan_one_insn): Ditto.
10523 (print_allocno_costs): Print total mem cost fore regional allocation.
10524 (print_pseudo_costs): Use REG_N_REFS.
10525 (find_costs_and_classes): Use classes intersected with them on the
10526 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10527 ira_reg_class_union. Use ira_allocno_class_translate and
10528 regno_aclass instead of ira_class_translate and regno_cover_class.
10529 Modify code for finding regno_aclass. Setup preferred classes for
10530 the next pass.
10531 (setup_allocno_cover_class_and_costs): Rename to
10532 setup_allocno_class_and_costs. Use regno_aclass instead of
10533 regno_cover_class. Use ira_set_allocno_class instead of
10534 ira_set_allocno_cover_class.
10535 (init_costs, finish_costs): Use regno_aclass instead of
10536 regno_cover_class.
10537 (ira_costs): Use setup_allocno_class_and_costs instead of
10538 setup_allocno_cover_class_and_costs.
10539 (ira_tune_allocno_costs_and_cover_classes): Rename to
10540 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10541 by processing objects. Use ira_reg_class_max_nregs instead of
10542 ira_reg_class_nregs.
10543
10544 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10545
10546 * sched-int.h: Remove mentioning cover classes from the file.
10547 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10548
10549 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10550 classes from the file.
10551 (struct reg_pref): Rename coverclass into allocnoclass.
10552 (reg_cover_class): Rename to reg_allocno_class.
10553
10554 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10555
10556 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10557
10558 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10559
10560 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10561
10562 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10563
10564 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10565
10566 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10567
10568 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10569
10570 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10571
10572 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10573
10574 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10575 (i386_ira_cover_classes): Ditto.
10576
10577 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10578
10579 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10580
10581 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10582
10583 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10584
10585 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10586
10587 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10588
10589 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10590 (mips_ira_cover_classes): Ditto.
10591
10592 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10593
10594 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10595
10596 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10597
10598 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10599
10600 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10601
10602 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10603 (IRA_COVER_CLASSES_VSX): Ditto.
10604
10605 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10606 (rs6000_ira_cover_classes): Ditto.
10607
10608 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10609
10610 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10611
10612 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10613
10614 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10615
10616 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10617
10618 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10619
10620 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10621
10622 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10623
10624 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10625
10626 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10627
10628 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10629
10630 PR debug/48253
10631 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10632 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10633 dw_fde_unlikely_section_end_label, cold_in_std_section,
10634 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10635 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10636 fields.
10637 (output_fde): Use dw_fde_second_{begin,end} if second is
10638 true, otherwise dw_fde_{begin,end}.
10639 (output_call_frame_info): Test dw_fde_second_begin != NULL
10640 instead of dw_fde_switched_sections.
10641 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10642 fields, initialize new fields. Initialize in_std_section
10643 unconditionally from the first partition.
10644 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10645 dw_fde_second_begin is non-NULL.
10646 (dwarf2out_switch_text_section): Stop initializing removed
10647 dw_fde_struct fields, initialize new fields, initialize
10648 also dw_fde_end here. Set dw_fde_switch_cfi even when
10649 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10650 (struct var_loc_list_def): Add last_before_switch field.
10651 (arange_table, arange_table_allocated, arange_table_in_use,
10652 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10653 (size_of_aranges): Count !in_std_section and !second_in_std_section
10654 hunks in fdes, instead of looking at arange_table_in_use.
10655 (output_aranges): Add aranges_length argument, don't call
10656 size_of_aranges here. Instead of using aranges_table*
10657 emit ranges for fdes when !in_std_section resp.
10658 !second_in_std_section.
10659 (dw_loc_list): Break ranges crossing section switch.
10660 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10661 use dw_fde_second_end instead of dw_fde_end as end of last range.
10662 (gen_subprogram_die): Don't call add_arange. Use
10663 dw_fde_{begin,end} for first partition and if switched
10664 section dw_fde_second_{begin,end} for the second.
10665 (var_location_switch_text_section_1,
10666 var_location_switch_text_section): New functions.
10667 (dwarf2out_begin_function): Initialize cold_text_section even
10668 when function_section () isn't text_section.
10669 (prune_unused_types): Don't walk arange_table.
10670 (dwarf2out_finish): Don't needlessly test
10671 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10672 If info_section_emitted, call size_of_aranges and if it indicates
10673 non-empty .debug_aranges, call output_aranges with the computed
10674 size. Stop using removed dw_fde_struct fields, use
10675 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10676 for second.
10677
10678 PR debug/48203
10679 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10680 create ENTRY_VALUE if incoming or address of incoming's MEM
10681 is a hard REG.
10682 * dwarf2out.c (mem_loc_descriptor): Don't emit
10683 DW_OP_GNU_entry_value of DW_OP_fbreg.
10684 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10685 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10686 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10687 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10688 ENTRY_VALUE_EXPs.
10689 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10690 is a REG_P or MEM_P with REG_P address, compute hash directly
10691 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10692 (preserve_only_constants): Don't clear VALUES forwaring
10693 ENTRY_VALUE to some other VALUE.
10694
10695 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10696
10697 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10698 instead of GEN_INT.
10699
10700 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10701
10702 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10703 block before expanding the statement.
10704 (expand_gimple_stmt_1): Likewise. Set them here...
10705 (expand_gimple_stmt): ...and not here. Tidy.
10706 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10707 unknown.
10708
10709 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10710
10711 * Makefile.in: New rule for cprop.o.
10712 * gcse.c: Move constant/copy propagation to cprop.c.
10713 (compute_local_properties): Only handle expression tables.
10714 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10715 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10716 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10717 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10718 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10719 compute_cprop_data, find_used_regs, try_replace_reg,
10720 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10721 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10722 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10723 find_bypass_set, reg_killed_on_edge, bypass_block,
10724 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10725 execute_rtl_cprop, pass_rtl_cprop): Move to...
10726 * cprop.c: ...here. New file, constant/copy propagation for RTL
10727 moved from gcse.c to here with minor cleanups in duplicated code.
10728
10729 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10730
10731 * config/i386/i386.c (flag_opts): Fix a typo in
10732 -mavx256-split-unaligned-store.
10733
10734 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10735
10736 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10737 LIBCALL_VALUE): Remove macros.
10738 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10739 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10740 (h8300_function_value, h8300_libcall_value,
10741 h8300_function_value_regno_p): New functions.
10742
10743 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10744
10745 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10746
10747 2011-03-28 Jeff Law <law@redhat.com>
10748
10749 * tree-ssa-threadupdate.c (redirect_edges): Call
10750 create_edge_and_update_destination_phis as needed.
10751 (create_edge_and_update_destination_phis): Accept new BB argument.
10752 All callers updated.
10753 (thread_block): Do not update the profile when threading around
10754 intermediate blocks.
10755 (thread_single_edge): Likewise.
10756 (determine_bb_domination_status): If BB is not a successor of the
10757 loop header, return NONDOMINATING.
10758 (register_jump_thread): Note when we register a jump thread around
10759 an intermediate block.
10760 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10761 (thread_across_edge): Use it.
10762
10763 2011-03-28 Tristan Gingold <gingold@adacore.com>
10764
10765 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10766 when for_return is 2.
10767
10768 2011-03-28 Jeff Law <law@redhat.com>
10769
10770 * var-tracking.c (canonicalize_values_mark): Delete unused
10771 lhs assignment.
10772 (canonicalize_values_star, set_variable_part): Likewise.
10773 (clobber_variable_part, delete_variable_part): Likewise.
10774
10775 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10776
10777 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10778
10779 2011-03-28 Martin Jambor <mjambor@suse.cz>
10780
10781 * tree-inline.c (expand_call_inline): Do not check that destination
10782 node is analyzed.
10783 (optimize_inline_calls): Assert that destination node is analyzed.
10784 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10785 not call tree_lowering_passes.
10786 * cgraph.h (cgraph_analyze_function): Declare.
10787 * cgraphunit.c (cgraph_analyze_function): Make public.
10788
10789 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10790
10791 * config/sparc/sparc-opts.h: New.
10792 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10793 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10794 (sparc_option_override): Store processor_type enumeration rather
10795 than string in cpu_default. Remove name and enumeration from
10796 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10797 without using sparc_select. Use target_flags_explicit instead of
10798 fpu_option_set.
10799 * config/sparc/sparc.h (enum processor_type): Move to
10800 sparc-opts.h.
10801 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10802 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10803 HeaderInclude entry.
10804 (mcpu=, mtune=): Use Var and Enum.
10805 (sparc_processor_type): New Enum and EnumValue entries.
10806
10807 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10808 Iain Sandoe <iains@gcc.gnu.org>
10809
10810 PR target/48245
10811 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10812
10813 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10814
10815 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10816 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10817 Insert new statements at it in lieu of STMT.
10818 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10819 * tree-vect-stmts.c (vectorizable_store): Likewise.
10820 (vectorizable_load): Likewise.
10821
10822 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10823
10824 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10825 (divtf3): Ditto.
10826 (multf3): Ditto.
10827 (subtf3): Ditto.
10828
10829 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10830
10831 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10832 unaligned 256bit load/store.
10833 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10834 (*avx_movdqu<avxmodesuffix>): Likewise.
10835
10836 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10837
10838 PR target/48288
10839 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10840 * config/pa/pa.md (iordi3): Use new predicate in expander.
10841 (iorsi3): Likewise.
10842
10843 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10844
10845 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10846 FUNCTION_VALUE_REGNO_P): Remove macros.
10847 * config/mips/mips-protos.h (mips_function_value): Remove.
10848 * config/mips/mips.c (mips_function_value): Rename to...
10849 (mips_function_value_1): ... this. Make static. Handle receiving
10850 the function type in 'fn_decl_or_type' argument.
10851 (mips_function_value, mips_libcall_value,
10852 mips_function_value_regno_p): New function.
10853 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10854 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10855
10856 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10857
10858 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10859 and -mavx256-split-unaligned-store.
10860 (ix86_option_override_internal): Split 32-byte AVX unaligned
10861 load/store by default.
10862 (ix86_avx256_split_vector_move_misalign): New.
10863 (ix86_expand_vector_move_misalign): Use it.
10864
10865 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10866 -mavx256-split-unaligned-store.
10867
10868 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10869 256bit load/store. Generate unaligned store on misaligned memory
10870 operand.
10871 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10872 256bit load/store.
10873 (*avx_movdqu<avxmodesuffix>): Likewise.
10874
10875 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10876 -mavx256-split-unaligned-store.
10877
10878 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10879
10880 PR target/38598
10881 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10882 Update commentary.
10883
10884 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10885
10886 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10887 opno arguments with an expand_operand. Use create_input_operand.
10888 (mips_prepare_builtin_target): Delete.
10889 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10890 functions.
10891 (mips_expand_builtin_direct): Use create_output_operand and
10892 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10893 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10894 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10895
10896 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10897
10898 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10899 function.
10900 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10901
10902 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10903
10904 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10905 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10906 basic blocks and call commit_edge_insertions directly.
10907 (fixup_abnormal_edges): Move from here to...
10908 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10909 on the edges and return whether some have actually been inserted.
10910 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10911 compensation code.
10912
10913 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10914
10915 PR rtl-optimization/48144
10916 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10917 (merge_expr_data): ... here.
10918 (av_set_intersect): Rename to av_set_code_motion_filter.
10919 Update all callers. Call merge_history_vect when an expression
10920 is found in both sets.
10921 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10922
10923 2011-03-26 Alan Modra <amodra@gmail.com>
10924
10925 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10926 cmodel medium addresses.
10927 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10928 64-bit gpr loads and stores.
10929 (rs6000_secondary_reload_ppc64): New function.
10930 * config/rs6000/rs6000-protos.h: Declare it.
10931 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10932
10933 2011-03-26 Alan Modra <amodra@gmail.com>
10934
10935 PR target/47487
10936 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10937 GNU Go in traceback table.
10938
10939 2011-03-25 Richard Henderson <rth@redhat.com>
10940
10941 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10942 if there are exactly 6 operands.
10943 (set_storage_via_setmem): Similarly.
10944
10945 2011-03-25 Kai Tietz <ktietz@redhat.com>
10946
10947 * collect2.c (write_c_file_stat): Handle backslash
10948 as right-hand directory separator.
10949 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10950 checking just for slash.
10951 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10952 instead of checking for trailing slash.
10953 * gcc.c (record_temp_file): Use filename_cmp instead
10954 of strcmp.
10955 (do_spec_1): Likewise.
10956 (replace_outfile_spec_function): Likewise.
10957 (is_directory): Use filename_ncmp instead of strncmp.
10958 (print_multilib_info): Likewise.
10959 * gcov.c (find_source): Use filename_cmp instead
10960 instead of strcmp.
10961 (make_gcov_file_name): Fix order of slash/backslash
10962 checks.
10963 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10964 (add_standard_paths): Likewise.
10965 * mips-tfile.c (saber_stop): Handle backslash.
10966 * prefix.c (update_path): Use filename_ncmp instead of
10967 strncmp.
10968 * profile.c (output_location): Use filename_cmp instead
10969 of strcmp.
10970 * read-md.c (handle_toplevel_file): Handle backslash.
10971 * tlink.c (frob_extension): Likewise.
10972 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10973 strcmp.
10974 * tree-dump.c (dequeue_and_dump): Handle backslash.
10975 * tree.c (get_file_function_name): Likewise.
10976 * gengtype.c (read_input_list): Likewise.
10977 (get_file_realbasename): Likewise.
10978 (get_output_file_with_visibility): Use filename_cmp
10979 instead of strcmp.
10980
10981 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10982
10983 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10984 case to VFPv1.
10985
10986 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10987
10988 * fold-const.c (expr_location_or): New function.
10989 (fold_truth_not_expr): Call it.
10990
10991 2011-03-25 Jeff Law <law@redhat.com>
10992
10993 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10994 va_end.
10995 * c-family/c-common.c (def_fn_type): Likewise.
10996 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10997 * emit-rtl.c (gen_rtvec): Likewise.
10998 * lto/lto-lang.c (def_fn_type): Likewise.
10999
11000 2011-03-25 Richard Guenther <rguenther@suse.de>
11001
11002 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11003 also generate copies.
11004 (fini_copy_prop): Handle constant values properly.
11005
11006 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11007
11008 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11009 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11010 (hash_loc_operands, compare_loc_operands): Handle
11011 DW_OP_GNU_entry_value.
11012
11013 2011-03-25 Kai Tietz <ktietz@redhat.com>
11014
11015 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11016 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11017 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11018 comment and use macro TARGET_64BIT_MS_ABI instead.
11019 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11020 and change default behavior for 32-bit MS_ABI.
11021 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11022 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11023 32-bit, too.
11024 (ix86_cfun_abi): Likewise.
11025 (ix86_maybe_switch_abi): Adjust comment.
11026 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11027 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11028 instead of checking for SYSV_ABI.
11029 (ix86_nsaved_sseregs): Likewise.
11030 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11031 to 16 bytes.
11032 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11033 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11034 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11035 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11036 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11037
11038 2011-03-25 Richard Guenther <rguenther@suse.de>
11039
11040 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11041 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11042 (verify_gimple): Remove.
11043 * tree-cfg.c (verify_gimple_call): Merge verification
11044 from verify_stmts.
11045 (verify_gimple_phi): Merge verification from verify_stmts.
11046 (verify_gimple_label): New function.
11047 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11048 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11049 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11050 (verify_stmts): Rename to verify_gimple_in_cfg.
11051 (verify_gimple_in_cfg): New function.
11052 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11053 * tree-ssa.c (verify_ssa): Likewise.
11054 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11055
11056 2011-03-25 Richard Guenther <rguenther@suse.de>
11057
11058 * passes.c (init_optimization_passes): Add FRE pass after
11059 early SRA.
11060
11061 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11062 Andrew Stubbs <ams@codesourcery.com>
11063
11064 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11065 for Cortex-A8.
11066 (arm_movdi_vfp_cortexa8): New pattern.
11067 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11068 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11069 instructions when tuning for Cortex-A8. Set attribute "arch".
11070 * config/arm/arm.md: Move include arm-tune.md up a bit.
11071 (define_attr "arch"): Add "onlya8" and "nota8" values.
11072 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11073
11074 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11075
11076 PR bootstrap/48282
11077 Revert:
11078 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11079
11080 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11081 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11082 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11083 * passes.c (init_optimization_passes): Move
11084 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11085
11086 2011-03-25 Kai Tietz <ktietz@redhat.com>
11087
11088 * c-typeck.c (comptypes_internal): Replace target
11089 hook call of comp_type_attributes by version in tree.c file.
11090 * gimple.c (gimple_types_compatible_p_1): Likewise.
11091 * tree-ssa.c (useless_type_conversion_p): Likewise.
11092 * tree.c (build_type_attribute_qual_variant): Likewise.
11093 (attribute_value_equal): New static helper function.
11094 (comp_type_attributes): New function.
11095 (merge_attributes): Use attribute_value_equal for comparison.
11096 (attribute_list_contained): Likewise.
11097 * tree.h (comp_type_attributes): New prototype.
11098
11099 2011-03-25 Richard Guenther <rguenther@suse.de>
11100
11101 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11102 of complex types at -O0.
11103 (verify_gimple_assign_binary): Likewise.
11104 (verify_gimple_assign_ternary): Likewise.
11105
11106 2011-03-24 Mark Wielaard <mjw@redhat.com>
11107
11108 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11109 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11110
11111 2011-03-24 Mark Wielaard <mjw@redhat.com>
11112
11113 PR debug/48041
11114 * dwarf2out.c (output_abbrev_section): Only write table when
11115 abbrev_die_table_in_use > 1.
11116
11117 2011-02-24 Richard Henderson <rth@redhat.com>
11118
11119 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11120 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11121 (alpha_expand_unaligned_load_words): Use extql.
11122 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11123 (emit_insxl): Handle all modes for consistency.
11124
11125 2011-02-24 Richard Henderson <rth@redhat.com>
11126
11127 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11128 (alpha_expand_unaligned_load): Likewise.
11129 (alpha_expand_unaligned_store): Likewise.
11130 (alpha_expand_unaligned_load_words): Likewise.
11131 (alpha_expand_unaligned_store_words): Likewise.
11132 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11133 (alpha_split_lock_test_and_set_12): Likewise.
11134 (print_operand, alpha_fold_builtin_extxx): Likewise.
11135 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11136 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11137 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11138 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11139 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11140 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11141 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11142 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11143 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11144 (extwl, extll, extql): Similarly.
11145 (inswh, inslh, insqh): Similarly.
11146 (mskbl, mskwl, mskll, mskql): Similarly.
11147 (mskwh, msklh, mskqh): Similarly.
11148
11149 2011-02-24 Richard Henderson <rth@redhat.com>
11150
11151 * config/alpha/alpha.md (attribute isa): Add er, ner.
11152 (attribute enabled): Handle them.
11153 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11154
11155 2011-02-24 Richard Henderson <rth@redhat.com>
11156
11157 * config/alpha/alpha.md (attribute isa): Add vms.
11158 (attribute enabled): Handle it.
11159 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11160 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11161 (*movtf): Rename from *movtf_internal for consistency.
11162 (*movsi): Merge with *movsi_nt_vms.
11163 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11164 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11165 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11166 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11167
11168 2011-02-24 Richard Henderson <rth@redhat.com>
11169
11170 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11171 (extendqisi2, extendhisi2): Likewise.
11172 (extendqidi2): Simplify BWX/non-BWX expansions.
11173 (extendhidi2): Similarly.
11174
11175 2011-02-24 Richard Henderson <rth@redhat.com>
11176
11177 * config/alpha/alpha.md (attribute isa): New.
11178 (attribute enabled): New.
11179 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11180 (zero_extendqisi2, zero_extendqidi2): Similarly.
11181 (zero_extendhisi2, zero_extendhidi2): Similarly.
11182 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11183
11184 2011-02-24 Richard Henderson <rth@redhat.com>
11185
11186 * config/alpha/predicates.md (input_operand): Revert last change;
11187 update comment to mention 32-bit VMS rather than Windows.
11188
11189 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11190
11191 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11192 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11193 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11194 * passes.c (init_optimization_passes): Move
11195 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11196
11197 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11198
11199 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11200
11201 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11202
11203 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11204 correctly.
11205
11206 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11207
11208 PR debug/48204
11209 * simplify-rtx.c (simplify_const_unary_operation): Call
11210 real_convert when changing mode class with FLOAT_EXTEND.
11211
11212 2011-03-24 Nick Clifton <nickc@redhat.com>
11213
11214 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11215 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11216 * config/rx/rx.c (rx_option_override): Set align_jumps,
11217 align_loops and align_labels if not set by the user.
11218 (rx_align_for_label): New function.
11219 (rx_max_skip_for_label): New function.
11220 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11221 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11222 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11223 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11224 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11225
11226 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11227
11228 PR rtl-optimization/48263
11229 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11230 and original commutative_p handling. Use maybe_gen_insn.
11231
11232 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11233
11234 * reload.c (find_reloads_subreg_address): Add address_reloaded
11235 parameter and return true there if the full address has been
11236 reloaded.
11237 (find_reloads_toplev): Pass address_reloaded flag.
11238 (find_reloads_address_1): Don't use address_reloaded parameter.
11239
11240 2011-03-24 Jeff Law <law@redhat.com>
11241
11242 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11243 unused variable "ann".
11244 (remove_unused_locals): Likewise.
11245
11246 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11247 statement.
11248
11249 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11250 after it is freed.
11251
11252 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11253
11254 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11255 for invalid symbolic addresses.
11256 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11257 larl operands.
11258
11259 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11260
11261 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11262 the argument in calls to fold_truth_not_expr.
11263
11264 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11265
11266 * tree.c (record_node_allocation_statistics): New function.
11267 (make_node_stat, copy_node_stat, build_string): Call it.
11268 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11269 (build1_stat, build_omp_clause): Likewise.
11270
11271 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11272
11273 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11274 last commit.
11275
11276 2011-03-24 Richard Guenther <rguenther@suse.de>
11277
11278 PR tree-optimization/48271
11279 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11280 blocks that still exist.
11281
11282 2011-03-24 Richard Guenther <rguenther@suse.de>
11283
11284 PR tree-optimization/48270
11285 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11286 not free datarefs before ddrs.
11287
11288 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11289
11290 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11291 from the address built for a reference with variable offset.
11292
11293 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11294
11295 PR target/48237
11296 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11297 alternatives that can be handled with movq or movabsq insn.
11298 (*movdf_internal): Disable for !TARGET_64BIT.
11299 (*movdf_internal_nointeger): Ditto.
11300 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11301
11302 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11303
11304 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11305 (FUNCTION_ARG_ADVANCE): Likewise.
11306 * tm.texi.in: Change references to them to hook references.
11307 * tm.texi: Regenerate.
11308 * targhooks.c (default_function_arg): Eliminate check for target macro.
11309 (default_function_incoming_arg): Likewise.
11310 (default_function_arg_advance): Likewise.
11311 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11312 (function_arg_advance): Likewise.
11313 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11314
11315 2011-03-24 Richard Guenther <rguenther@suse.de>
11316
11317 PR middle-end/48269
11318 * tree-object-size.c (addr_object_size): Do not double-account
11319 for MEM_REF offsets.
11320
11321 2011-03-24 Diego Novillo <dnovillo@google.com>
11322
11323 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11324 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11325 (lto_input_data_block): Move from lto-opts.c. Make extern.
11326 Update all users.
11327 (lto_input_string): Rename from input_string. Make extern.
11328 Update all users.
11329 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11330 output_string_with_length.
11331 Output 0 to indicate a non-NULL string. Update all callers to
11332 not emit 0.
11333 (lto_output_string): Rename from output_string. Make extern.
11334 Update all users.
11335 (lto_output_decl_state_streams): Make extern.
11336 (lto_output_decl_state_refs): Make extern.
11337 * lto-streamer.h (lto_input_string): Declare.
11338 (lto_input_data_block): Declare.
11339 (lto_output_string): Declare.
11340 (lto_output_string_with_length): Declare.
11341 (lto_output_decl_state_streams): Declare.
11342 (lto_output_decl_state_refs): Declare.
11343
11344 2011-03-24 Richard Guenther <rguenther@suse.de>
11345
11346 PR tree-optimization/46562
11347 * tree.c (build_invariant_address): New function.
11348 * tree.h (build_invariant_address): Declare.
11349 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11350 a renamed function moved ...
11351 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11352 Take valueization callback parameter.
11353 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11354 * gimple-fold.h: New file.
11355 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11356 (ccp_fold, fold_const_aggregate_ref,
11357 fold_ctor_reference, fold_nonarray_ctor_reference,
11358 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11359 get_base_constructor): Move ...
11360 * gimple-fold.c: ... here.
11361 (gimple_fold_stmt_to_constant_1): New function
11362 split out from ccp_fold. Take a valueization callback parameter.
11363 Valueize all operands.
11364 (gimple_fold_stmt_to_constant): New wrapper function.
11365 (fold_const_aggregate_ref_1): New function split out from
11366 fold_const_aggregate_ref. Take a valueization callback parameter.
11367 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11368 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11369 invariant POINTER_PLUS_EXPRs to invariant form.
11370 (vn_valueize): New function.
11371 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11372 * tree-vrp.c (vrp_valueize): New function.
11373 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11374 to fold statements to constants.
11375 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11376 function declarations.
11377 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11378 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11379
11380 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11381
11382 * config/h8300/predicates.md (jump_address_operand): Fix register
11383 mode check.
11384
11385 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11386
11387 * doc/invoke.texi (max-stores-to-sink): Document.
11388 * params.h (MAX_STORES_TO_SINK): Define.
11389 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11390 if either vectorization or if-conversion is disabled.
11391 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11392 tree-vect-data-refs.c vect_equal_offsets.
11393 (dr_equal_offsets_p): New function.
11394 (find_data_references_in_bb): Remove static.
11395 * tree-data-ref.h (find_data_references_in_bb): Declare.
11396 (dr_equal_offsets_p): Likewise.
11397 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11398 (vect_drs_dependent_in_basic_block): Update calls to
11399 vect_equal_offsets.
11400 (vect_check_interleaving): Likewise.
11401 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11402 (cond_if_else_store_replacement): Rename to...
11403 (cond_if_else_store_replacement_1): ... this. Change arguments and
11404 documentation.
11405 (cond_if_else_store_replacement): New function.
11406 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11407 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11408
11409 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11410
11411 PR target/46934
11412 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11413 to subtract lower bound instead of GEN_INT().
11414
11415 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11416
11417 PR other/48179
11418 PR other/48221
11419 PR other/48234
11420 * doc/extend.texi (Alignment): Move section to match order in TOC.
11421 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11422 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11423
11424 2011-03-23 Jeff Law <law@redhat.com>
11425
11426 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11427 before removing the edge.
11428
11429 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11430 it may have been freed by redirect_branch_edge or
11431 redirect_edge_succ_nodup.
11432
11433 2011-03-23 Richard Guenther <rguenther@suse.de>
11434
11435 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11436 (check_va_list_escapes): Likewise.
11437 (check_all_va_list_escapes): Likewise.
11438
11439 2011-03-23 Richard Guenther <rguenther@suse.de>
11440
11441 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11442 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11443 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11444 (alias.o): Likewise.
11445 (ipa-type-escape.o): Remove.
11446 (ipa-struct-reorg.o): Likewise.
11447 (GTFILES): Remove ipa-struct-reorg.c.
11448 * alias.c: Do not include ipa-type-escape.h.
11449 * tree-ssa-alias.c: Likewise.
11450 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11451 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11452 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11453 and ipa-type-escape passes.
11454 * tree-pass.h (pass_ipa_type_escape): Remove.
11455 (pass_ipa_struct_reorg): Likewise.
11456 * ipa-struct-reorg.h: Remove.
11457 * ipa-struct-reorg.c: Likewise.
11458 * ipa-type-escape.h: Likewise.
11459 * ipa-type-escape.c: Likewise.
11460 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11461 (--param struct-reorg-cold-struct-ratio): Likewise.
11462 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11463 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11464 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11465
11466 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11467
11468 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11469 cpu attribute value.
11470 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11471 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11472 * config/s390/s390.c (processor_flags_table): New constant array.
11473 (s390_handle_arch_option): Remove.
11474 (s390_handle_option): Remove s390_handle_arch_option invocations
11475 and OPT_mwarn_framesize_ handling.
11476 (s390_option_override): Remove s390_handle_arch_option invocation.
11477 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11478 warnings.
11479 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11480 * config/s390/s390.opt (s390_tune, s390_arch)
11481 (march=): Replace s390_arch_option enum and values with
11482 processor_type. Set variable name to s390_arch. Set
11483 initialization value.
11484 (mtune=): Replace s390_arch_option with processor_type. Set
11485 variable name to s390_tune. Set initialization value.
11486
11487 2011-03-23 Julian Brown <julian@codesourcery.com>
11488
11489 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11490 accesses which are not naturally aligned.
11491
11492 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11493
11494 PR target/47553
11495 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11496
11497 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11498
11499 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11500 parameter from "int" to "enum insn_code".
11501 (expand_operand_type): New enum.
11502 (expand_operand): New structure.
11503 (create_expand_operand): New function.
11504 (create_fixed_operand, create_output_operand): Likewise
11505 (create_input_operand, create_convert_operand_to): Likewise.
11506 (create_convert_operand_from, create_address_operand): Likewise.
11507 (create_integer_operand): Likewise.
11508 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11509 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11510 (expand_insn, expand_jump_insn): Likewise.
11511 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11512 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11513 (expand_movstr, expand_builtin___clear_cache): Likewise.
11514 (expand_builtin_lock_release): Likewise.
11515 * explow.c (allocate_dynamic_stack_space): Likewise.
11516 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11517 and use the default handling in that case.
11518 * expmed.c (check_predicate_volatile_ok): Delete.
11519 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11520 (emit_cstore): Likewise.
11521 * expr.c (emit_block_move_via_movmem): Likewise.
11522 (set_storage_via_setmem, expand_assignment): Likewise.
11523 (emit_storent_insn, try_casesi): Likewise.
11524 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11525 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11526 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11527 (expand_twoval_unop, expand_twoval_binop): Likewise.
11528 (expand_unop_direct, emit_indirect_jump): Likewise.
11529 (emit_conditional_move, vector_compare_rtx): Likewise.
11530 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11531 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11532 (expand_sync_lock_test_and_set): Likewise.
11533 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11534 (emit_unop_insn): Likewise.
11535 (expand_copysign_absneg): Change icode to an insn_code.
11536 (create_convert_operand_from_type): New function.
11537 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11538 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11539 (expand_insn, expand_jump_insn): Likewise.
11540 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11541 than const_int_operand for operand 2.
11542
11543 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11544
11545 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11546 if possible.
11547
11548 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11549
11550 * emit-rtl.c (emit_pattern_before_noloc): New function.
11551 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11552 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11553 (emit_pattern_after_noloc): New function.
11554 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11555 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11556
11557 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11558
11559 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11560 (__ffsDI2): Likewise.
11561
11562 2011-03-22 Richard Henderson <rth@redhat.com>
11563
11564 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11565 of !TARGET_ABI_OPEN_VMS.
11566 (alpha_trampoline_init, alpha_start_function): Likewise.
11567 (alpha_expand_epilogue, alpha_file_start): Likewise.
11568 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11569 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11570 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11571 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11572 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11573
11574 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11575
11576 * config/s390/s390-opts.h: New.
11577 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11578 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11579 s390_stack_guard): Remove.
11580 (s390_handle_arch_option): Return void. Take enum
11581 s390_arch_option value instead of string and searching array.
11582 (s390_handle_option): Don't assert that global structures are in
11583 use. Access variables via opts pointer. Use error_at. Don't use
11584 sscanf for -mstack-guard= or -mstack-size=. Update call to
11585 s390_handle_arch_option.
11586 (s390_option_override): Update call to s390_handle_arch_option.
11587 (s390_emit_prologue): Use %d format for s390_stack_size in
11588 diagnostic. Use %wd for HOST_WIDE_INT.
11589 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11590 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11591 * config/s390/s390.opt (config/s390/s390-opts.h): New
11592 HeaderInclude entry.
11593 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11594 s390_arch_flags, s390_warn_framesize): New Variable entries.
11595 (s390_arch_option): New Enum and EnumValue entries.
11596 (march=): Use Enum instead of Var.
11597 (mstack-guard=, mstack-size=): Use UInteger and Var.
11598 (mtune=): Use Enum.
11599
11600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11601
11602 * config/score/score.c (score_handle_option): Don't assert that
11603 global structures are in use. Access target_flags via opts
11604 pointer. Use value of -march= option to determine target_flags
11605 settings.
11606 * config/score/score.opt (march=): Use Enum.
11607 (score_arch): New Enum and EnumValue entries.
11608
11609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11610
11611 * config/mep/mep.c (option_mtiny_specified): Remove.
11612 (mep_option_override): Move register handling for -mivc2 from
11613 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11614 instead of option_mtiny_specified.
11615 (mep_handle_option): Access target_flags via opts pointer. Don't
11616 assert that global structures are in use. Defer part of -mivc2
11617 handling and move it to mep_option_override.
11618 * config/mep/mep.opt (IVC2): New Mask entry.
11619 (mivc2): Use Var and Defer instead of Mask.
11620
11621 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11622
11623 * config/v850/v850-opts.h: New.
11624 * config/v850/v850.c (small_memory): Replace with
11625 small_memory_physical_max array. Make that array static const.
11626 (v850_handle_memory_option): Take integer value of argument. Take
11627 gcc_options pointer, option text and location. Return void.
11628 Update for changes to small memory structures.
11629 (v850_handle_option): Access target_flags via opts pointer. Don't
11630 assert that global structures are in use. Update calls to
11631 v850_handle_memory_option.
11632 (v850_encode_data_area): Update references to small memory settings.
11633 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11634 (enum small_memory_type): Move to v850-opts.h.
11635 * config/v850/v850.opt (config/v850/v850-opts.h): New
11636 HeaderInclude entry.
11637 (small_memory_max): New Variable entry.
11638 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11639 (mtda, mzda): Likewise.
11640
11641 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11642
11643 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11644 pointer. Don't assert that global structures are in use.
11645
11646 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11647
11648 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11649 via opts pointer. Don't assert that global structures are in use.
11650
11651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11652
11653 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11654 (munix=93): Use Var.
11655 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11656 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11657 * config/pa/pa-opts.h: New.
11658 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11659 (pa_handle_option): Don't assert that global structures are in
11660 use. Access target_flags via opts pointer. Don't handle
11661 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11662 OPT_munix_98 here.
11663 (pa_option_override): Handle deferred OPT_mfixed_range_.
11664
11665 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11666
11667 * config/mn10300/mn10300-opts.h: New.
11668 * config/mn10300/mn10300.c (mn10300_processor,
11669 mn10300_tune_string): Remove.
11670 (mn10300_handle_option): Don't assert that global structures are
11671 in use. Access mn10300_processor via opts pointer. Don't handle
11672 OPT_mtune_ here.
11673 * config/mn10300/mn10300.h (enum processor_type): Move to
11674 mn10300-opts.h.
11675 (mn10300_processor): Remove.
11676 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11677 HeaderInclude entry.
11678 (mn10300_processor): New Variable entry.
11679 (mtune=): Use Var.
11680
11681 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11682
11683 * config/microblaze/microblaze.c: Don't include opts.h.
11684 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11685 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11686 (mno-clearbss): Use Var and Warn.
11687
11688 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11689
11690 * config/m32r/m32r-opts.h: New.
11691 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11692 (m32r_handle_option): Don't assert that global structures are in
11693 use. Access target_flags and m32r_cache_flush_func via opts
11694 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11695 OPT_mno_flush_trap here.
11696 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11697 include of m32r-opts.h.
11698 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11699 HeaderInclude entry.
11700 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11701 (mmodel=): Use Enum and Var.
11702 (m32r_model): New Enum and EnumValue entries.
11703 (mno-flush-trap): Use Var.
11704 (msdata=): Use Enum and Var.
11705 (m32r_sdata): New Enum and EnumValue entries.
11706
11707 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11708
11709 * config/m32c/m32c.c: Don't include opts.h.
11710 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11711 m32c_handle_option): Remove.
11712 (m32c_option_override): Check global_options_set.x_target_memregs
11713 instead of target_memregs_set.
11714 * config/m32c/m32c.h (target_memregs): Remove.
11715 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11716 variable.
11717
11718 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11719
11720 * config/iq2000/iq2000-opts.h: New.
11721 * config/iq2000/iq2000.c: Don't include opts.h.
11722 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11723 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11724 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11725 HeaderInclude entry.
11726 (iq2000_tune): New Variable entry.
11727 (march=): Add comment. Use Enum.
11728 (iq2000_arch): New Enum and EnumValue entries.
11729 (mcpu=): Use Enum and Var.
11730 (iq2000_tune): New Enum and EnumValue entries.
11731
11732 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11733
11734 * config/ia64/ia64-opts.h: New.
11735 * config/ia64/ia64.c (ia64_tune): Remove.
11736 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11737 here. Use error_at.
11738 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11739 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11740 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11741 HeaderInclude entry.
11742 (ia64_tune): New Variable entry.
11743 (mfixed-range=): Use Defer and Var.
11744 (mtune=): Use Enum and Var.
11745 (ia64_tune): New Enum and EnumValue entries.
11746
11747 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11748
11749 * config/frv/frv-opts.h: New.
11750 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11751 frv-opts.h.
11752 (frv_cpu_type): Remove.
11753 * config/frv/frv.c: Don't include opts.h.
11754 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11755 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11756 (frv_cpu_type): New Variable entry.
11757 (frv_cpu): New Enum and EnumValue entries.
11758
11759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11760
11761 * config/cris/cris.c (cris_handle_option): Access target_flags via
11762 opts pointer. Don't assert that global structures are in use.
11763 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11764 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11765
11766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11767
11768 * config/bfin/bfin-opts.h: New.
11769 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11770 bfin_si_revision, bfin_workarounds): Remove.
11771 (bfin_cpus): Make static const.
11772 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11773 not bfin_lib_id_given.
11774 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11775 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11776 pointer. Use error_at. Don't assert that global structures are in use.
11777 * config/bfin/bfin.h: Include bfin-opts.h.
11778 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11779 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11780 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11781 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11782 entries.
11783
11784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11785
11786 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11787 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11788 or -msoft-float here.
11789 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11790 -msoft-float and -mhard-float.
11791 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11792 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11793 msoft-float.
11794 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11795 -msoft-float.
11796 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11797 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11798 not mhard-float.
11799 (LIBGCC_SPEC): Don't handle -msoft-float.
11800 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11801 -mhard-float.
11802 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11803 msoft-float.
11804 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11805 -mfloat-abi=*, not -msoft-float and -mhard-float.
11806 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11807 -msoft-float.
11808 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11809 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11810 mhard-float and msoft-float.
11811 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11812 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11813 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11814 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11815 mhard-float.
11816 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11817 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11818 msoft-float.
11819 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11820 not mhard-float.
11821 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11822 not msoft-float.
11823
11824 2011-03-22 Richard Henderson <rth@redhat.com>
11825
11826 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11827 TARGET_ABI_WINDOWS_NT.
11828 (alpha_output_function_end_prologue): Likewise.
11829 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11830 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11831 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11832 (trap, *movsi_nt_vms): Likewise.
11833 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11834 (*tablejump_osf_nt_internal): Remove.
11835 * config/alpha/predicates.md (input_operand): Only test Pmode.
11836
11837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11838
11839 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11840 via opts pointer. Use error_at. Don't assert that global
11841 structures are in use.
11842
11843 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11844
11845 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11846 (ix86_handle_option): Access ix86_isa_flags and
11847 ix86_isa_flags_explicit via opts pointer. Don't assert that
11848 global structures are in use.
11849 (ix86_function_specific_save, ix86_function_specific_restore):
11850 Update ix86_isa_flags_explicit field name.
11851 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11852 (ix86_isa_flags_explicit): Rename TargetSave entry to
11853 x_ix86_isa_flags_explicit.
11854
11855 2011-03-22 Richard Henderson <rth@redhat.com>
11856
11857 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11858 (alpha_option_override, direct_return): Likewise.
11859 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11860 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11861 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11862 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11863 (alpha_expand_epilogue, alpha_end_function): Likewise.
11864 (alpha_init_libfuncs): Likewise.
11865 (struct machine_function): Remove unicosmk members.
11866 (print_operand) ['t']: Remove.
11867 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11868 unicosmk_output_module_name, unicosmk_output_common,
11869 current_section_align, unicosmk_output_text_section_asm_op,
11870 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11871 unicosmk_section_type_flags, unicosmk_unique_section,
11872 unicosmk_asm_named_section, unicosmk_insert_attributes,
11873 unicosmk_output_align, unicosmk_defer_case_vector,
11874 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11875 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11876 unicosmk_output_ssib, unicosmk_add_call_info_word,
11877 unicosmk_extern_head, unicosmk_output_default_externs,
11878 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11879 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11880 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11881 * config/alpha/alpha-protos.h: Update.
11882 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11883 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11884 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11885 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11886 (*mulsi_se, mulvsi3): Likewise.
11887 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11888 (*divmodsi_internal, call, call_value, realign): Likewise.
11889 (moddi3, umoddi3): Likewise; remove duplicate expander.
11890 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11891 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11892 (*movdi_nofix): Remove r/U alternative.
11893 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11894 * config/alpha/constraints.md ("U"): Remove.
11895 * config/alpha/predicates.md (call_operand"): Don't test
11896 TARGET_ABI_UNICOSMK.
11897
11898 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11899
11900 * target.def (handle_option): Take gcc_options and
11901 cl_decoded_option pointers and location_t.
11902 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11903 * doc/tm.texi: Regenerate.
11904 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11905 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11906 * lto-opts.c (lto_reissue_options): Generate option structure for
11907 targetm.handle_option call.
11908 * opts.c (target_handle_option): Update call to
11909 targetm.handle_option. Remove assertions about values now passed
11910 down to hook.
11911 * targhooks.c (default_target_handle_option): New.
11912 * targhooks.h (default_target_handle_option): Declare.
11913 * config/alpha/alpha.c: Include opts.h.
11914 (alpha_handle_option): Update to new hook interface.
11915 * config/arm/arm.c: Include opts.h.
11916 (arm_handle_option): Update to new hook interface.
11917 * config/arm/t-arm (arm.o): Update dependencies.
11918 * config/bfin/bfin.c: Include opts.h.
11919 (bfin_handle_option): Update to new hook interface.
11920 * config/cris/cris.c: Include opts.h.
11921 (cris_handle_option): Update to new hook interface.
11922 * config/frv/frv.c: Include opts.h.
11923 (frv_handle_option): Update to new hook interface.
11924 * config/i386/i386.c: Include opts.h.
11925 (ix86_handle_option): Update to new hook interface.
11926 (ix86_valid_target_attribute_inner_p): Generate option structure
11927 for call to ix86_handle_option.
11928 * config/i386/t-i386 (i386.o): Update dependencies.
11929 * config/ia64/ia64.c: Include opts.h.
11930 (ia64_handle_option): Update to new hook interface.
11931 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11932 * config/iq2000/iq2000.c: Include opts.h.
11933 (iq2000_handle_option): Update to new hook interface.
11934 * config/m32c/m32c.c: Include opts.h.
11935 (m32c_handle_option): Update to new hook interface.
11936 * config/m32r/m32r.c: Include opts.h.
11937 (m32r_handle_option): Update to new hook interface.
11938 * config/m68k/m68k.c: Include opts.h.
11939 (m68k_handle_option): Update to new hook interface.
11940 * config/mep/mep.c: Include opts.h.
11941 (mep_handle_option): Update to new hook interface.
11942 * config/microblaze/microblaze.c: Include opts.h.
11943 (microblaze_handle_option): Update to new hook interface.
11944 * config/mips/mips.c: Include opts.h.
11945 (mips_handle_option): Update to new hook interface.
11946 * config/mn10300/mn10300.c: Include opts.h.
11947 (mn10300_handle_option): Update to new hook interface.
11948 * config/pa/pa.c: Include opts.h.
11949 (pa_handle_option): Update to new hook interface.
11950 * config/pdp11/pdp11.c: Include opts.h.
11951 (pdp11_handle_option): Update to new hook interface.
11952 * config/rs6000/rs6000.c: Include opts.h.
11953 (rs6000_handle_option): Update to new hook interface.
11954 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11955 * config/rx/rx.c: Include opts.h.
11956 (rx_handle_option): Update to new hook interface.
11957 * config/s390/s390.c: Include opts.h.
11958 (s390_handle_option): Update to new hook interface.
11959 * config/score/score.c: Include opts.h.
11960 (score_handle_option): Update to new hook interface.
11961 * config/sh/sh.c: Include opts.h.
11962 (sh_handle_option): Update to new hook interface.
11963 * config/sparc/sparc.c: Include opts.h.
11964 (sparc_handle_option): Update to new hook interface.
11965 * config/v850/v850.c: Include opts.h.
11966 (v850_handle_option): Update to new hook interface.
11967
11968 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11969
11970 * gcc.c (driver_unknown_option_callback): Only permit and save
11971 unknown -Wno- options.
11972 (driver_wrong_lang_callback): Save options directly instead of via
11973 driver_unknown_option_callback.
11974
11975 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11976
11977 * combine.c (simplify_set): Try harder to find the best CC mode when
11978 simplifying a nested COMPARE on the RHS.
11979
11980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11981
11982 * config/alpha/gnu.h: Remove.
11983 * config/arc: Remove directory.
11984 * config/arm/netbsd.h: Remove.
11985 * config/arm/t-pe: Remove.
11986 * config/crx: Remove directory.
11987 * config/i386/netbsd.h: Remove.
11988 * config/m68hc11: Remove directory.
11989 * config/m68k/uclinux-oldabi.h: Remove.
11990 * config/mcore/mcore-pe.h: Remove.
11991 * config/mcore/t-mcore-pe: Remove.
11992 * config/netbsd-aout.h: Remove.
11993 * config/rs6000/gnu.h: Remove.
11994 * config/sh/sh-symbian.h: Remove.
11995 * config/sh/symbian-base.c: Remove.
11996 * config/sh/symbian-c.c: Remove.
11997 * config/sh/symbian-cxx.c: Remove.
11998 * config/sh/symbian-post.h: Remove.
11999 * config/sh/symbian-pre.h: Remove.
12000 * config/sh/t-symbian: Remove.
12001 * config/svr3.h: Remove.
12002 * config/vax/netbsd.h: Remove.
12003 * config.build: Don't handle i[34567]86-*-pe.
12004 * config.gcc: Remove handling of deprecations for most deprecated
12005 targets.
12006 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12007 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12008 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12009 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12010 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12011 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12012 Remove cases.
12013 * config.host: Don't handle i[34567]86-*-pe.
12014 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12015 (ASM_SPEC32): Don't handle -mcall-gnu.
12016 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12017 -mcall-gnu.
12018 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12019 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12020 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12021 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12022 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12023 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12024 conditional on SYMBIAN.
12025 * configure.ac: Don't handle powerpc*-*-gnu*.
12026 * configure: Regenerate.
12027 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12028 * doc/install-old.texi (m6811, m6812): Don't mention.
12029 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12030 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12031 (m68k-uclinuxoldabi): Don't mention.
12032 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12033 Remove.
12034 (-mcall-gnu): Remove.
12035 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12036 families): Remove constraint documentation.
12037
12038 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12039
12040 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12041 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12042 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12043
12044 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12045
12046 PR target/48226
12047 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12048 vector when peeking at the next token for vector, don't expand the
12049 keywords.
12050
12051 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12052
12053 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12054 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12055 * config/avr/avr.c (init_cumulative_args)
12056 (avr_function_arg_advance): Use it.
12057 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12058 sibcall epilogues.
12059 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12060 (avr_function_ok_for_sibcall): ...this new function.
12061 (avr_lookup_function_attribute1): New static Function.
12062 (avr_naked_function_p, interrupt_function_p)
12063 (signal_function_p, avr_OS_task_function_p)
12064 (avr_OS_main_function_p): Use it.
12065 * config/avr/avr.md ("sibcall", "sibcall_value")
12066 ("sibcall_epilogue"): New expander.
12067 ("*call_insn", "*call_value_insn"): New insn.
12068 ("call_insn", "call_value_insn"): Remove
12069 ("call", "call_value", "epilogue"): Change expander to handle
12070 sibling calls.
12071
12072 2011-03-21 Nick Clifton <nickc@redhat.com>
12073
12074 * doc/invoke.texi (Overall Options): Move closing brace to end of
12075 options list.
12076 (Optimization Options): Add missing @gol.
12077 (Directory Options): Likewise.
12078 (i386 and x86-64 Options): Likewise.
12079 (RS6000 and PowerPC Options): Likewise.
12080 (i386 and x86-64 Windows Options): Likewise.
12081 (V850 Options): Add text missing from descriptions.
12082
12083 2011-03-22 Richard Henderson <rth@redhat.com>
12084
12085 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12086 (avr_incoming_return_addr_rtx): New.
12087 (emit_push_byte): New.
12088 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12089 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12090 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12091 (emit_pop_byte): New.
12092 (expand_epilogue): Use it. Pop frame pointer by bytes.
12093 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12094 (INCOMING_RETURN_ADDR_RTX): New.
12095 (INCOMING_FRAME_SP_OFFSET): New.
12096 (ARG_POINTER_CFA_OFFSET): New.
12097 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12098 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12099 (pophi): Remove.
12100
12101 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12102
12103 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12104
12105 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12106 (FUNCTION_ARG_ADVANCE): Likewise.
12107 * tm.texi.in: Change references to them to hook references.
12108 * tm.texi: Regenerate.
12109 * targhooks.c (default_function_arg): Eliminate check for target
12110 macro.
12111 (default_function_incoming_arg): Likewise.
12112 (default_function_arg_advance): Likewise.
12113 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12114 (function_arg_advance): Likewise.
12115 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12116
12117 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12118
12119 * tree.c (build_call_1): New function.
12120 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12121
12122 2011-03-22 Richard Guenther <rguenther@suse.de>
12123
12124 PR tree-optimization/48228
12125 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12126 for single-arg PHIs.
12127
12128 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12129
12130 PR rtl-optimization/48143
12131 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12132 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12133 sse2_cvtps2pd): Likewise.
12134
12135 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12136
12137 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12138
12139 2011-03-22 Richard Guenther <rguenther@suse.de>
12140
12141 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12142 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12143 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12144 and REALIGN_LOAD_EXPR.
12145 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12146 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12147 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12148 DOT_PROD_EXPR case ...
12149 (expand_expr_real_2): ... here.
12150 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12151 and REALIGN_LOAD_EXPR.
12152 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12153 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12154 (vect_create_epilog_for_reduction): Likewise.
12155 (vectorizable_reduction): Likewise.
12156 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12157 * tree-vect-stmts.c (vectorizable_load): Likewise.
12158
12159 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12160
12161 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12162
12163 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12164
12165 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12166 handling for PLTOFF/GOTOFF.
12167
12168 2011-03-22 Nick Clifton <nickc@redhat.com>
12169
12170 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12171 trailing backslash from the end of the macro definition.
12172
12173 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12174
12175 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12176 and PLT unspecs.
12177
12178 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12179
12180 * expr.h (prepare_operand): Move to...
12181 * optabs.h (prepare_operand): ...here and change the insn code
12182 parameter from "int" to "enum insn_code".
12183 (insn_operand_matches): Declare.
12184 * expr.c (init_expr_target): Use insn_operand_matches.
12185 (compress_float_constant): Likewise.
12186 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12187 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12188 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12189 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12190 Likewise.
12191 (gen_cond_trap): Likewise.
12192 (prepare_operand): Likewise. Change icode to an insn_code.
12193 (insn_operand_matches): New function.
12194 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12195 * reload1.c (gen_reload): Likewise.
12196 * targhooks.c (default_secondary_reload): Likewise.
12197
12198 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12199
12200 * config/alpha/alpha.md (unspec): New define_c_enum.
12201 (unspecv): Ditto.
12202
12203 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12204
12205 PR debug/48214
12206 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12207 between a call and its CALL_ARG_LOCATION note.
12208
12209 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12210
12211 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12212
12213 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12214
12215 PR c/42544
12216 PR c/48197
12217 * c-common.c (shorten_compare): If primopN is first sign-extended
12218 to opN and then zero-extended to result type, set primopN to opN.
12219
12220 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12221
12222 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12223 for barrier handlers.
12224
12225 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12226
12227 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12228 UNSPEC constants to be in the unspec enumeration, and redefine
12229 all UNSPECV constants to be in the unspecv enumeration, so that
12230 dumps print which unspec/unspec_volatile this is.
12231 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12232 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12233 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12234 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12235 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12236
12237 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12238 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12239 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12240 * config/rs6000/sync.md (isync, lwsync): Ditto.
12241
12242 2011-03-21 Richard Guenther <rguenther@suse.de>
12243
12244 * params.def (lto-min-partition): Fix typo.
12245
12246 2011-03-21 Richard Guenther <rguenther@suse.de>
12247
12248 PR c/47939
12249 * c-decl.c (grokdeclarator): Drop to the main variant only
12250 for array types. Drop flag_gen_aux_info check.
12251
12252 2011-03-21 Richard Guenther <rguenther@suse.de>
12253
12254 PR translation/47911
12255 * params.def (lto-partitions): Fix typo.
12256 (lto-min-partition): Fix wording.
12257
12258 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12259
12260 * config/rs6000/t-freebsd: Remove duplication from file.
12261
12262 2011-03-21 Richard Guenther <rguenther@suse.de>
12263
12264 PR middle-end/47661
12265 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12266
12267 2011-03-21 Richard Guenther <rguenther@suse.de>
12268
12269 PR lto/48210
12270 * params.def (lto-partitions): Require at least 1 partition.
12271
12272 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12273
12274 * gthr-solaris.h: Remove.
12275 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12276 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12277 (LIB_SPEC): Likewise.
12278 * config/sol2.opt (threads): Remove.
12279 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12280 (sparc*-*-solaris2*): Likewise.
12281 * configure.ac (enable_threads): Enable solaris support.
12282 * configure: Regenerate.
12283 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12284 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12285 solaris.
12286
12287 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12288
12289 * config.gcc: Obsolete *-*-solaris2.8*.
12290 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12291
12292 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12293
12294 PR bootstrap/48135
12295 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12296 reference. Solaris 8 perl works.
12297
12298 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12299
12300 PR bootstrap/48135
12301 * doc/install.texi (Prerequisites): Move jar etc. up.
12302 Explain support library version requirements.
12303
12304 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12305
12306 PR bootstrap/48135
12307 * doc/install.texi (Prerequisites): Move Perl to build
12308 requirements. Always necessary on Solaris 2 with Sun ld.
12309
12310 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12311
12312 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12313 binutils 2.21.
12314 (Specific, i?86-*-solaris2.[89]): Likewise.
12315 (Specific, i?86-*-solaris2.10): Likewise.
12316 (Specific, mips-sgi-irix6): Likewise.
12317 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12318 Update for binutils 2.21.
12319
12320 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12321
12322 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12323 Allow -fuse-linker-plugin for non-default plugin linker.
12324 * configure: Regenerate.
12325
12326 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12327
12328 PR bootstrap/48167
12329 * gengtype.c (files_rules): Added rule for cp/parser.h.
12330
12331 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12332
12333 PR target/48213
12334 * config/s390/s390.c (s390_delegitimize_address): Don't call
12335 lowpart_subreg if orig_x has BLKmode.
12336
12337 2011-03-21 Kai Tietz <ktietz@redhat.com>
12338
12339 PR target/12171
12340 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12341 * tree.h (attribute_spec): Add new member affects_type_identity.
12342 * attribs.c (empty_attribute_table): Adjust attribute_spec
12343 initializers.
12344 * config/alpha/alpha.c: Likewise.
12345 * config/arc/arc.c: Likewise.
12346 * config/arm/arm.c: Likewise.
12347 * config/avr/avr.c: Likewise.
12348 * config/bfin/bfin.c: Likewise.
12349 * config/crx/crx.c: Likewise.
12350 * config/darwin.h: Likewise.
12351 * config/h8300/h8300.c: Likewise.
12352 * config/i386/cygming.h: Likewise.
12353 * config/i386/i386.c: Likewise.
12354 * config/ia64/ia64.c: Likewise.
12355 * config/m32c/m32c.c: Likewise.
12356 * config/m32r/m32r.c: Likewise.
12357 * config/m68hc11/m68hc11.c: Likewise.
12358 * config/m68k/m68k.c: Likewise.
12359 * config/mcore/mcore.c: Likewise.
12360 * config/mep/mep.c: Likewise.
12361 * config/microblaze/microblaze.c: Likewise.
12362 * config/mips/mips.c: Likewise.
12363 * config/rs6000/rs6000.c: Likewise.
12364 * config/rx/rx.c: Likewise.
12365 * config/sh/sh.c: Likewise.
12366 * config/sol2.h: Likewise.
12367 * config/sparc/sparc.c: Likewise.
12368 * config/spu/spu.c: Likewise.
12369 * config/stormy16/stormy16.c: Likewise.
12370 * config/v850/v850.c: Likewise.
12371
12372 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12373
12374 * simplify-rtx.c (simplify_binary_operation_1): Handle
12375 (xor (and A B) C) case when B and C are both constants.
12376
12377 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12378
12379 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12380
12381 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12382
12383 PR bootstrap/48168
12384 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12385
12386 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12387
12388 PR rtl-optimization/48156
12389 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12390 assume df and df_lr are not NULL.
12391
12392 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12393
12394 PR debug/48023
12395 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12396 between a call and its CALL_ARG_LOCATION note.
12397
12398 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12399
12400 PR debug/48178
12401 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12402 between a call and its corresponding CALL_ARG_LOCATION note.
12403
12404 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12405
12406 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12407 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12408 * haifa-sched.c (setup_ref_regs): Ditto.
12409 * caller-save.c (add_used_regs_1): Ditto.
12410 * dse.c (look_for_hardregs): Ditto.
12411 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12412 * sched-rgn.c (check_live_1): Ditto.
12413
12414 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12415
12416 * c-decl.c (diagnose_mismatched_decls): Give an error for
12417 redefining a typedef with variably modified type.
12418
12419 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12420
12421 * c-decl.c (grokfield): Don't allow typedefs for structures or
12422 unions with no tag by default.
12423 * doc/extend.texi (Unnamed Fields): Update.
12424
12425 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12426
12427 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12428 Rewrite using indirect functions.
12429 (lwp_slwpcb): Ditto.
12430 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12431 (avx_vinsertf128<mode>): Ditto.
12432
12433 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12434
12435 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12436 unspecs.
12437
12438 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12439
12440 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12441 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12442
12443 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12444
12445 PR rtl-optimization/48170
12446 * gcse.c (hoist_code): Remove bogus asserts.
12447
12448 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12449
12450 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12451 computation for prologue/epilogue.
12452
12453 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12454
12455 * Makefile.in (check-consistency): Remove.
12456
12457 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12458
12459 PR debug/48176
12460 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12461 arange_table_in_use is 0, but either text_section_used or
12462 cold_text_section_used is true. Don't call it if
12463 !info_section_emitted.
12464
12465 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12466
12467 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12468 FUNCTION_VALUE_REGNO_P): Remove.
12469 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12470 Remove.
12471 * config/avr/avr.c (avr_ret_register): Make static inline.
12472 (avr_function_value_regno_p): New function.
12473 (avr_libcall_value): Make static. Add 'func' argument.
12474 (avr_function_value): Make static. Rename 'func' argument to
12475 'fn_decl_or_type', forward it to avr_libcall_value. Call
12476 avr_ret_register function instead of RET_REGISTER macro.
12477 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12478
12479 2011-03-18 Jason Merrill <jason@redhat.com>
12480
12481 PR c++/23372
12482 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12483
12484 2011-03-18 Richard Guenther <rguenther@suse.de>
12485
12486 * doc/install.texi (--enable-gold): Remove.
12487 (--with-plugin-ld): Document.
12488 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12489
12490 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12491
12492 PR middle-end/47790
12493 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12494 again after expansion changes.
12495
12496 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12497
12498 * combine.c (try_combine): Do simplification only call of
12499 subst() on i2 even when i1 is present. Update comments.
12500
12501 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12502
12503 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12504 and UNSPEC_PCREL_SYMOFF.
12505
12506 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12507
12508 * config/s390/s390.md: Use define_c_enum for the unspec constant
12509 definitions.
12510
12511 2011-03-18 Richard Henderson <rth@redhat.com>
12512 Jakub Jelinek <jakub@redhat.com>
12513
12514 PR bootstrap/48161
12515 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12516 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12517
12518 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12519
12520 PR middle-end/47725
12521 * combine.c (cant_combine_insn_p): Don't check zero/sign
12522 extended hard registers.
12523
12524 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12525
12526 PR middle-end/47725
12527 * combine.c (cant_combine_insn_p): Check zero/sign extended
12528 hard registers.
12529
12530 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12531
12532 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12533 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12534 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12535 Change return type to bool.
12536 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12537
12538 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12539
12540 PR debug/48163
12541 * var-tracking.c (prepare_call_arguments): If CALL target
12542 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12543 pc instead of looking it up using cselib_lookup and use
12544 Pmode for it if x has VOIDmode.
12545 * dwarf2out.c (gen_subprogram_die): If also both first and
12546 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12547
12548 PR debug/48163
12549 * function.c (assign_parms): For data.passed_pointer parms
12550 use MEM of data.entry_parm instead of data.entry_parm itself
12551 as DECL_INCOMING_RTL.
12552 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12553 also when passed and declared mode is the same, DECL_RTL
12554 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12555 a MEM too.
12556
12557 2011-03-16 Jeff Law <law@redhat.com>
12558
12559 PR rtl-optimization/37273
12560 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12561 handle them like argument loads from stack slots. Do not double
12562 count memory for memory constants and argument loads from stack slots.
12563
12564 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12565
12566 PR debug/48160
12567 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12568
12569 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12570
12571 PR target/48171
12572 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12573
12574 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12575
12576 PR bootstrap/48153
12577 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12578 if dwarf_strict.
12579 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12580 Clear call_arg_locations and call_arg_loc_last always.
12581
12582 PR middle-end/48152
12583 * var-tracking.c (prepare_call_arguments): If argument needs to be
12584 passed by reference, adjust argtype and mode.
12585
12586 2011-03-17 Richard Guenther <rguenther@suse.de>
12587
12588 PR middle-end/48134
12589 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12590 a value make sure to fold the statement.
12591
12592 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12593
12594 PR target/43872
12595 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12596 return condition with !cfun->calls_alloca.
12597
12598 2011-03-17 Richard Guenther <rguenther@suse.de>
12599
12600 PR bootstrap/48148
12601 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12602 origin for decls in other ltrans units.
12603 (input_varpool_node): Likewise.
12604
12605 2011-03-17 Richard Guenther <rguenther@suse.de>
12606
12607 PR middle-end/48165
12608 * tree-object-size.c (compute_object_offset): Properly return
12609 the offset operand of MEM_REFs as sizetype.
12610
12611 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12612
12613 PR rtl-optimization/48141
12614 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12615 * dse.c: Include params.h.
12616 (active_local_stores_len): New variable.
12617 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12618 to NULL.
12619 (record_store, check_mem_read_rtx): Decrease it when removing
12620 from the chain.
12621 (scan_insn): Likewise. Increase it when adding to chain, if it
12622 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12623 set active_local_stores to NULL before the addition.
12624 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12625
12626 PR rtl-optimization/48141
12627 * dse.c (record_store): If no positions are needed in an insn
12628 that cannot be deleted, at least unchain it from active_local_stores.
12629
12630 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12631
12632 PR debug/47510
12633 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12634 (lookup_type_die_strip_naming_typedef): ... here.
12635 (get_context_die): Use it.
12636 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12637 the anonymous struct named by the naming typedef.
12638
12639 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12640
12641 PR target/48154
12642 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12643 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12644
12645 2011-03-16 Jeff Law <law@redhat.com>
12646
12647 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12648 check for operands of conditional. Allow type to be a pointer.
12649
12650 2011-03-16 Richard Guenther <rguenther@suse.de>
12651
12652 PR tree-optimization/48149
12653 * fold-const.c (fold_binary_loc): Fold
12654 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12655
12656 2011-03-16 Richard Guenther <rguenther@suse.de>
12657
12658 PR tree-optimization/26134
12659 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12660 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12661 (non_rewritable_mem_ref_base): Handle complex type component
12662 accesses, constrain offsets for vector and complex extracts
12663 more properly.
12664
12665 2011-03-16 Richard Guenther <rguenther@suse.de>
12666
12667 PR tree-optimization/48146
12668 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12669 operands avoiding the need for renaming.
12670
12671 2011-03-16 Richard Guenther <rguenther@suse.de>
12672
12673 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12674 constant folding. Move MEM_REF canonicalization first.
12675 Rely on fold_const_aggregate_ref for initializer folding.
12676 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12677
12678 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12679
12680 PR middle-end/48136
12681 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12682 arg0/arg1 or their arguments are always fold converted to matching
12683 types.
12684
12685 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12686 to nargs.
12687
12688 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12689
12690 PR lto/46944
12691 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12692 Handle in-tree gold.
12693 (ld_vers): Extract binutils version for gold.
12694 (gcc_cv_ld_hidden): Handle gold here.
12695 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12696 * configure: Regenerate.
12697 * config.in: Regenerate.
12698 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12699 -fuse-linker-plugin otherwise.
12700 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12701 (LINK_COMMAND_SPEC): Use it.
12702 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12703
12704 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12705
12706 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12707 * calls.c: Remove debug.h include.
12708 (emit_call_1): Don't call virtual_call_token debug hook.
12709 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12710 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12711 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12712 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12713 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12714 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12715 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12716 dwarf2out_virtual_call): Remove.
12717 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12718 copy_call_info and virtual_call hooks.
12719 (dwarf2out_init): Don't initialize vcall_insn_table,
12720 debug_dcall_section and debug_vcall_section.
12721 (prune_unused_types): Don't mark nodes from dcall_table.
12722 (dwarf2out_finish): Don't output dcall or vcall tables.
12723 * final.c (final_scan_insn): Don't call direct_call or
12724 virtual_call debug hooks.
12725 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12726 virtual_call_token, copy_call_info and virtual_call hooks.
12727 (debug_nothing_uid): Remove prototype.
12728 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12729 copy_call_info and virtual_call hooks.
12730 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12731 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12732 * debug.c (do_nothing_debug_hooks): Likewise.
12733 (debug_nothing_uid): Remove.
12734 * doc/invoke.texi (-fenable-icf-debug): Remove.
12735 * common.opt (-fenable-icf-debug): Likewise.
12736
12737 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12738 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12739 call's MEM. Handle functions returning aggregate through a hidden
12740 first pointer. For virtual calls add clobbered pc to call arguments
12741 chain.
12742 * dwarf2out.c (gen_subprogram_die): Emit
12743 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12744 can't be emitted.
12745
12746 PR debug/45882
12747 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12748 * rtl.h (ENTRY_VALUE_EXP): Define.
12749 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12750 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12751 * print-rtl.c (print_rtx): Likewise.
12752 * gengtype.c (adjust_field_rtx_def): Likewise.
12753 * var-tracking.c (vt_add_function_parameter): Adjust
12754 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12755 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12756 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12757 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12758 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12759
12760 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12761 Call var_location debug hook even on CALL_INSNs.
12762 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12763 * rtl.def (ENTRY_VALUE): New.
12764 * dwarf2out.c: Include cfglayout.h.
12765 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12766 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12767 (struct call_arg_loc_node): New type.
12768 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12769 tail_call_site_count): New variables.
12770 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12771 DW_TAG_GNU_call_site_parameter.
12772 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12773 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12774 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12775 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12776 and DW_AT_GNU_all_source_call_sites.
12777 (mem_loc_descriptor): Handle ENTRY_VALUE.
12778 (add_src_coords_attributes): Don't add enything if
12779 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12780 (dwarf2out_abstract_function): Save and clear call_arg_location,
12781 call_site_count and tail_call_site_count around dwarf2out_decl call.
12782 (gen_call_site_die): New function.
12783 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12784 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12785 (dwarf2out_function_decl): Clear call_arg_locations,
12786 call_arg_loc_last, set call_site_count and tail_call_site_count
12787 to -1 and free block_map.
12788 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12789 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12790 followed by any real instructions.
12791 (dwarf2out_begin_function): Set call_site_count and
12792 tail_call_site_count to 0.
12793 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12794 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12795 attempt to force a DIE for it and worst case remove the attribute.
12796 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12797 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12798 the decl itself.
12799 * var-tracking.c: Include tm_p.h.
12800 (vt_stack_adjustments): For calls call note_register_arguments.
12801 (argument_reg_set): New variable.
12802 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12803 ensure the VALUE is resolved.
12804 (call_arguments): New variable.
12805 (prepare_call_arguments): New function.
12806 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12807 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12808 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12809 always use the best expression.
12810 (vt_expand_loc): Add ignore_cur_loc argument.
12811 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12812 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12813 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12814 note for all calls.
12815 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12816 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12817 argument. Don't call cselib_preserve_only_values and
12818 cselib_reset_table.
12819 (note_register_arguments): New function.
12820 (vt_initialize): Compute argument_reg_set. Call
12821 vt_add_function_parameters before processing basic blocks instead of
12822 afterwards. For calls call prepare_call_arguments before calling
12823 cselib_process_insn.
12824 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12825 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12826 (var-tracking.o): Depend on $(TM_P_H).
12827 * cfglayout.h (insn_scope): New prototype.
12828 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12829 * cfglayout.c (insn_scope): No longer static.
12830 * insn-notes.def (CALL_ARG_LOCATION): New.
12831 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12832 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12833 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12834 nothing for DECL_EXTERNAL BLOCK_VARS.
12835
12836 2011-03-16 Alan Modra <amodra@gmail.com>
12837
12838 PR target/45844
12839 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12840 create invalid offset address for vsx splat insn.
12841 * config/rs6000/predicates.md (splat_input_operand): New.
12842 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12843
12844 2011-03-15 Xinliang David Li <davidxl@google.com>
12845
12846 PR c/47837
12847 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12848 (normalize_preds): New function.
12849 (is_use_properly_guarded): Normalize def predicates.
12850
12851 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12852
12853 PR target/46788
12854 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12855 in the output template.
12856
12857 2011-03-15 Richard Guenther <rguenther@suse.de>
12858
12859 PR middle-end/47650
12860 * tree-pretty-print.c (dump_function_declaration): Properly
12861 dump unprototyped and varargs function types.
12862
12863 2011-03-15 Richard Guenther <rguenther@suse.de>
12864
12865 PR tree-optimization/13954
12866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12867 and friends.
12868
12869 2011-03-15 Richard Guenther <rguenther@suse.de>
12870
12871 PR tree-optimization/48037
12872 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12873 selects into BIT_FIELD_REFs.
12874 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12875 vector select.
12876
12877 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12878
12879 PR tree-optimization/48129
12880 * builtins.c (fold_builtin_snprintf): Convert to type of
12881 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12882 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12883
12884 2011-03-15 Richard Guenther <rguenther@suse.de>
12885
12886 PR tree-optimization/41490
12887 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12888 value but with VUSE.
12889 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12890 return statements.
12891 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12892 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12893 * tree-tailcall.c (find_tail_calls): Ignore returns.
12894
12895 2011-03-15 Richard Guenther <rguenther@suse.de>
12896
12897 PR middle-end/48031
12898 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12899 or variable-indexed array accesses when in gimple form.
12900
12901 2011-03-15 Richard Guenther <rguenther@suse.de>
12902
12903 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12904
12905 2011-03-15 Alan Modra <amodra@gmail.com>
12906
12907 PR target/48032
12908 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12909 presume symbol_refs without a symbol_ref_decl are suitably
12910 aligned, nor other trees we may see here. Handle anchor symbols.
12911 (legitimate_constant_pool_address_p): Comment. Add mode param.
12912 Check cmodel=medium addresses. Adjust all calls.
12913 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12914 creating cmodel=medium optimized access to locals.
12915 * config/rs6000/constraints.md (R): Pass QImode to
12916 legitimate_constant_pool_address_p.
12917 * config/rs6000/predicates.md (input_operand): Pass mode to
12918 legitimate_constant_pool_address_p.
12919 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12920 Update prototype.
12921
12922 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12923
12924 PR target/48053
12925 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12926 64-bit constants being loaded into registers other than GPRs such
12927 as loading 0 into a VSX register.
12928
12929 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12930
12931 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12932
12933 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12934
12935 PR middle-end/47917
12936 * builtins.c (fold_builtin_snprintf): New function.
12937 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12938 (fold_builtin_4): Likewise.
12939
12940 PR middle-end/38878
12941 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12942 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12943 and C - X == X also strip nops from +/-/p+ operand.
12944 When optimizing -X == C, fold C to arg0's type.
12945
12946 PR debug/47946
12947 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12948 emit it as add_AT_int instead of add_AT_unsigned.
12949
12950 2011-03-14 Tom Tromey <tromey@redhat.com>
12951
12952 * unwind-dw2.c: Include sys/sdt.h if it exists.
12953 (_Unwind_DebugHook): Use STAP_PROBE2.
12954 * config.in, configure: Rebuild.
12955 * configure.ac: Check for sys/sdt.h.
12956
12957 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12958
12959 * config/i386/i386.md (ROUND_FLOOR): New constant.
12960 (ROUND_CEIL): Ditto.
12961 (ROUND_TRUNC): Ditto.
12962 (ROUND_MXCSR): Ditto.
12963 (ROUND_NO_EXC): Ditto.
12964 (rint<mode>2): Use new defines instead of numerical constants.
12965 (floor<mode>2): Ditto.
12966 (ceil<mode>2): Ditto.
12967 (btrunc<mode>2): Ditto.
12968 * config/i386/i386-builtin-types.def: Define ROUND function type
12969 aliases.
12970 * config/i386/i386.c (enum ix86_builtins): Add
12971 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12972 (struct builtin_description): Add
12973 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12974 (ix86_expand_sse_round): New static function.
12975 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12976 function types.
12977 (ix86_builtin_vectorized_function): Handle
12978 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12979
12980 2011-03-14 Tom Tromey <tromey@redhat.com>
12981
12982 * c-parser.c (c_parser_asm_string_literal): Clear
12983 warn_overlength_strings.
12984
12985 2011-03-14 Tom Tromey <tromey@redhat.com>
12986
12987 * c-parser.c (disable_extension_diagnostics): Save
12988 warn_overlength_strings.
12989 (restore_extension_diagnostics): Restore warn_overlength_strings.
12990
12991 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12992
12993 * BASE-VER: Change to 4.7.0.
12994
12995 2011-03-14 Richard Guenther <rguenther@suse.de>
12996
12997 PR middle-end/48098
12998 * tree.c (build_vector_from_val): Adjust assert to requirements
12999 and reality.
13000
13001 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13002
13003 PR bootstrap/48102
13004 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13005
13006 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13007
13008 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13009 terms of target_flags_explicit. Adjust copyright year.
13010
13011 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13012 * config/rs6000/t-freebsd: New file. Add override for
13013 LIB2FUNCS_EXTRA.
13014
13015 2011-03-13 Chris Demetriou <cgd@google.com>
13016
13017 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13018 (-fno-diagnostics-show-option): this, to reflect current default.
13019 (-Werror=): Update text about -fno-diagnostics-show-option.
13020
13021 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13022
13023 PR target/48053
13024 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13025 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13026 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13027 mode is not V2DImode or V2DFmode.
13028 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13029 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13030 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13031 registers to 0.
13032 (movdi_internal64): Likewise.
13033
13034 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13035
13036 PR tree-optimization/47127
13037 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13038 parameter.
13039 (set_cloog_options): Same.
13040 (scop_to_clast): Same.
13041 (print_clast_stmt): Do not call cloog_state_malloc and
13042 cloog_state_free.
13043 (print_generated_program): Same.
13044 (gloog): Same.
13045 * graphite-clast-to-gimple.h (cloog_state): Declared.
13046 (scop_to_clast): Adjust declaration.
13047 * graphite.c (cloog_state): Defined here.
13048 (graphite_initialize): Call cloog_state_malloc.
13049 (graphite_finalize): Call cloog_state_free.
13050
13051 2011-03-11 Jason Merrill <jason@redhat.com>
13052
13053 * attribs.c (lookup_attribute_spec): Take const_tree.
13054 * tree.h: Adjust.
13055
13056 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13057
13058 * config/sparc/sparc.c (sparc_option_override): Use
13059 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13060
13061 2011-03-11 Richard Guenther <rguenther@suse.de>
13062
13063 PR tree-optimization/48067
13064 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13065 multiplication result will be only used once on the target
13066 stmt.
13067
13068 2011-03-11 Richard Guenther <rguenther@suse.de>
13069
13070 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13071
13072 2011-03-11 Richard Guenther <rguenther@suse.de>
13073
13074 PR lto/48073
13075 * tree.c (find_decls_types_r): Do not walk types only reachable
13076 from IDENTIFIER_NODEs.
13077
13078 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13079
13080 PR middle-end/48044
13081 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13082 all vnode->force_output nodes as needed.
13083
13084 2011-03-11 Jason Merrill <jason@redhat.com>
13085
13086 PR c++/48069
13087 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13088 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13089
13090 2011-03-11 Martin Jambor <mjambor@suse.cz>
13091
13092 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13093 cgraph_node.
13094
13095 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13096
13097 PR tree-optimization/48063
13098 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13099 inline functions called once if !tree_can_inline_p (node->callers).
13100
13101 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13102
13103 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13104 extra_objs.
13105 * config/score/score3.c: Delete.
13106 * config/score/score3.h: Delete.
13107 * config/score/mul-div.S: Delete.
13108 * config/score/sfp-machine.h: Add new file.
13109 * config/score/constraints.md: Add new file.
13110 * config/score/t-score-softfp: Add new file.
13111 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13112 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13113 (score7_extra_constraint): Delete.
13114 (score7_option_override): Remove unused code.
13115 * config/score/score.c: Remove score3 and score5 define and code.
13116 * config/score/score.h: Remove score3 and score5 define and code.
13117 * config/score/score.md: Remove score3 template and unusual insn.
13118 * config/score/score.opt: Remove score3 and score5 options.
13119
13120 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13121
13122 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13123 when _HPUX_SOURCE is defined.
13124 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13125
13126 2011-03-10 Jason Merrill <jason@redhat.com>
13127
13128 PR c++/48029
13129 * stor-layout.c (layout_type): Don't set structural equality
13130 on arrays of incomplete type.
13131 * tree.c (type_hash_eq): Handle comparing them properly.
13132
13133 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13134
13135 PR debug/48043
13136 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13137 result mode matches original rtl mode.
13138
13139 2011-03-10 Nick Clifton <nickc@redhat.com>
13140
13141 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13142 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13143
13144 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13145
13146 PR rtl-optimization/47866
13147 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13148 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13149 if target wasn't scalar.
13150 * function.c (assign_stack_temp_for_type): Assert that neither
13151 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13152 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13153 macro.
13154 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13155
13156 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13157
13158 * config/s390/s390-protos.h (s390_label_align): New prototype.
13159 * config/s390/s390.c (s390_label_align): New function.
13160 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13161
13162 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13163
13164 PR target/47755
13165 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13166 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13167 (output_vec_const_move): Ditto.
13168
13169 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13170
13171 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13172 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13173 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13174 Change 'rclass' argument and result type to reg_class_t.
13175 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13176
13177 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13178
13179 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13180 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13181 (TARGET_MEMORY_MOVE_COST): Define.
13182 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13183
13184 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13185
13186 PR debug/47881
13187 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13188 removed anything.
13189
13190 PR tree-optimization/48022
13191 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13192 for EQ/NE_EXPR.
13193
13194 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13195
13196 PR debug/47991
13197 * var-tracking.c (find_use_val): Return NULL for
13198 cui->sets && cui->store_p BLKmode MEMs.
13199
13200 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13201
13202 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13203 Remove.
13204 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13205 xstormy16_print_operand_address): Remove.
13206 * config/stormy16/stormy16.c (xstormy16_print_operand,
13207 xstormy16_print_operand_address): Make static.
13208 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13209
13210 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13211
13212 PR target/47862
13213 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13214 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13215 before definition.
13216
13217 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13218
13219 PR bootstrap/48000
13220 * cfgloopmanip.c (fix_bb_placements): Return immediately
13221 if FROM is BASE_LOOP's header.
13222
13223 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13224
13225 * gimplify.c (gimplify_function_tree): Fix building calls
13226 to __builtin_return_address.
13227
13228 2011-03-07 Alan Modra <amodra@gmail.com>
13229
13230 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13231 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13232 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13233 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13234 return_mode args.
13235 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13236 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13237 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13238 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13239 * config/rs6000/rs6000.c
13240 (rs6000_elf_end_indicate_exec_stack): Rename to..
13241 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13242 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13243 (rs6000_file_start): ..here.
13244 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13245 file scope variables.
13246 (call_ABI_of_interest): New function.
13247 (init_cumulative_args): Set above vars when function return value
13248 is a float, vector, or small struct.
13249 (rs6000_function_arg_advance_1): Likewise for function args.
13250 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13251 references float args.
13252
13253 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13254
13255 * doc/cfg.texi: Remove "See" before @ref.
13256 * doc/invoke.texi: Likewise.
13257
13258 2011-03-05 Jason Merrill <jason@redhat.com>
13259
13260 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13261
13262 2011-03-05 Anthony Green <green@moxielogic.com>
13263
13264 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13265
13266 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13267
13268 PR rtl-optimization/47899
13269 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13270 to flow_loop_nested_p when moving the loop upward.
13271
13272 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13273
13274 PR target/47719
13275 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13276
13277 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR tree-optimization/47967
13280 * ipa-cp.c (build_const_val): Return NULL instead of creating
13281 VIEW_CONVERT_EXPR for mismatching sizes.
13282 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13283 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13284 give up on versioning.
13285
13286 2011-03-05 Alan Modra <amodra@gmail.com>
13287
13288 PR target/47986
13289 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13290 full cmodel medium/large lo_sum + high addresses.
13291
13292 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13293
13294 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13295 pool references in UNSPEC_LTREL_OFFSET.
13296
13297 2011-03-04 Jan Hubicka <jh@suse.cz>
13298
13299 PR lto/47497
13300 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13301 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13302 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13303 Add node pointers.
13304 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13305 cgraph_add_thunk): Add node pointers.
13306 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13307 associated to right node.
13308 (input_node): Update use of cgraph_same_body_alias
13309 and cgraph_add_thunk.
13310
13311 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13312
13313 * config/i386/i386.opt (mprefer-avx128): New flag.
13314 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13315 modes when the flag -mprefer-avx128 is on.
13316
13317 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13318
13319 * dwarf2out.c (compare_loc_operands): Fix address handling.
13320
13321 2011-03-04 Alan Modra <amodra@gmail.com>
13322
13323 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13324
13325 2011-03-04 Richard Guenther <rguenther@suse.de>
13326
13327 PR middle-end/47968
13328 * expmed.c (extract_bit_field_1): Prefer vector modes that
13329 vec_extract patterns can handle.
13330
13331 2011-03-04 Richard Guenther <rguenther@suse.de>
13332
13333 PR middle-end/47975
13334 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13335
13336 2011-03-04 Richard Henderson <rth@redhat.com>
13337
13338 * explow.c (emit_stack_save): Remove 'after' parameter.
13339 (emit_stack_restore): Likewise.
13340 * expr.h: Update to match.
13341 * builtins.c, calls.c, stmt.c: Likewise.
13342 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13343 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13344 * function.c (expand_function_end): Insert the emit_stack_save
13345 sequence before parm_birth_insn instead of after.
13346
13347 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13348
13349 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13350 (ssse3_pmaddubsw128): Ditto.
13351 (ssse3_pmaddubsw): Ditto.
13352
13353 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13354
13355 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13356
13357 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR c/47963
13360 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13361 on TYPE_SIZE_UNIT if it is a DECL.
13362
13363 PR debug/47283
13364 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13365 first operand is not is_gimple_mem_ref_addr, try to fold it.
13366 If the operand still isn't is_gimple_mem_ref_addr, clear
13367 MEM_EXPR on op0.
13368
13369 2011-03-03 Richard Guenther <rguenther@suse.de>
13370
13371 PR middle-end/47283
13372 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13373 match comment.
13374 (refs_may_alias_p_1): For release branches return true if
13375 we are confused by our input.
13376
13377 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13378
13379 * config/s390/s390.c (s390_function_value): Rename to ...
13380 (s390_function_and_libcall_value): ... this.
13381 (s390_function_value): New function.
13382 (s390_libcall_value): New function.
13383 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13384 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13385 target macro definitions.
13386 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13387
13388 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13389
13390 * config/i386/freebsd64.h (CC1_SPEC): Define.
13391 * config/i386/linux64.h (CC1_SPEC): Define.
13392 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13393
13394 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13395
13396 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13397 Remove.
13398 * config/stormy16/stormy16.c: Include reload.h.
13399 (xstormy16_memory_move_cost): New function.
13400 (TARGET_MEMORY_MOVE_COST): Define.
13401
13402 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13403
13404 PR rtl-optimization/47925
13405 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13406 with side effects. Remove the more-specific check for volatile asms.
13407
13408 2011-03-02 Alan Modra <amodra@gmail.com>
13409
13410 PR target/47935
13411 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13412 toc relative addresses for valid offsets.
13413
13414 2011-03-01 Richard Guenther <rguenther@suse.de>
13415
13416 PR tree-optimization/47890
13417 * tree-vect-loop.c (get_initial_def_for_induction): Set
13418 related stmt properly.
13419
13420 2011-03-01 Richard Guenther <rguenther@suse.de>
13421
13422 PR lto/47924
13423 * lto-streamer.c (lto_record_common_node): Also register
13424 the canonical type.
13425
13426 2011-03-01 Richard Guenther <rguenther@suse.de>
13427
13428 PR lto/46911
13429 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13430 Do not stream DECL_ABSTRACT_ORIGIN.
13431 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13432 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13433 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13434 Do not stream DECL_ABSTRACT_ORIGIN.
13435 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13436 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13437
13438 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13439
13440 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13441 FUNCTION_VALUE_REGNO_P): Remove.
13442 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13443 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13444 Add 'outgoing' argument.
13445 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13446 function.
13447 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13448 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13449
13450 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13451
13452 PR debug/28047
13453 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13454 (lookup_filename): Likewise.
13455 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13456
13457 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13458 Jakub Jelinek <jakub@redhat.com>
13459
13460 PR middle-end/47893
13461 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13462 (assign_stack_local_1): Change last argument type to int.
13463 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13464 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13465 don't record padding space into frame_space_list nor use those areas.
13466 (assign_stack_local): Adjust caller.
13467 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13468 of assign_stack_local, pass 0 as last argument.
13469 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13470 callers.
13471
13472 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13473
13474 PR debug/47283
13475 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13476 Use target address_mode and pointer_mode hooks instead of hardcoded
13477 Pmode and ptr_mode. Handle some simple cases of extending if
13478 POINTERS_EXTEND_UNSIGNED < 0.
13479 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13480 Call convert_debug_memory_address.
13481 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13482 convert_debug_memory_address.
13483
13484 PR middle-end/46790
13485 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13486 * configure: Regenerated.
13487 * config.in: Regenerated.
13488 * varasm.c (default_function_section): Return NULL
13489 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13490
13491 2011-02-28 Martin Jambor <mjambor@suse.cz>
13492
13493 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13494 the description to match the printed values.
13495
13496 2011-02-28 Richard Guenther <rguenther@suse.de>
13497
13498 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13499 of the copied scope tree.
13500
13501 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13502
13503 * doc/extend.texi (Function Attributes): Avoid deeply (and
13504 wrongly) nested tables.
13505
13506 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13507
13508 PR middle-end/47903
13509 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13510 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13511 r isn't op0 nor op1.
13512
13513 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13514
13515 * config/avr/avr.md: Remove magic comment for emacs.
13516
13517 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13518
13519 PR target/45261
13520 * config/avr/avr.c (avr_option_override): Use error on bad options.
13521 (avr_help): New function.
13522 (TARGET_HELP): Define.
13523
13524 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13525
13526 PR target/42240
13527 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13528 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13529
13530 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13531
13532 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13533 (ARM Options): Ditto.
13534 (i386 and x86-64 Options): Ditto.
13535 (RX Options): Ditto.
13536 (SPARC Options): Ditto.
13537
13538 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13539
13540 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13541 FreeBSD 6 and later. Generally use cpu generic.
13542
13543 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13544
13545 * doc/cpp.texi: Update copyright years.
13546
13547 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13548
13549 PR target/46898
13550 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13551
13552 2011-02-25 Jon Beniston <jon@beniston.com>
13553
13554 PR target/46898
13555 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13556 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13557 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13558 (lm32_block_move_inline): Add type cast to remove warning.
13559 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13560 (gen_int_relational): Move declarations to start of function.
13561
13562 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13563
13564 PR tree-optimization/45470
13565 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13566 can throw internally only.
13567 * tree-vect-stmts.c (vectorizable_call): Likewise.
13568
13569 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13570
13571 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13572 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13573 * config/stormy16/stormy16-protos.h
13574 (xstormy16_preferred_reload_class): Remove.
13575 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13576 static. Change 'rclass' argument and return type to reg_class_t.
13577 (TARGET_PREFERRED_RELOAD_CLASS,
13578 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13579
13580 2011-02-24 Richard Guenther <rguenther@suse.de>
13581
13582 * lto-streamer-in.c (input_bb): Do not find referenced vars
13583 in debug statements.
13584
13585 2011-02-23 Jason Merrill <jason@redhat.com>
13586
13587 * common.opt (fabi-version): Document v5 and v6.
13588
13589 2011-02-23 Richard Guenther <rguenther@suse.de>
13590
13591 PR tree-optimization/47849
13592 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13593
13594 2011-02-23 Jie Zhang <jie@codesourcery.com>
13595
13596 * opts-common.c (decode_cmdline_option): Print empty string
13597 argument as "" in decoded->orig_option_with_args_text.
13598 * gcc.c (execute): Print empty string argument as ""
13599 in the verbose output.
13600 (do_spec_1): Keep empty string argument.
13601
13602 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13603
13604 * config.gcc: Declare score-* and crx-* obsolete.
13605
13606 2011-02-23 Jie Zhang <jie@codesourcery.com>
13607
13608 PR rtl-optimization/47763
13609 * web.c (web_main): Ignore naked clobber when replacing register.
13610
13611 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13612
13613 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13614 Remove.
13615
13616 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13617
13618 PR doc/47848
13619 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13620
13621 2011-02-22 Mike Stump <mikestump@comcast.net>
13622
13623 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13624 assembler.
13625 * configure: Regenerate.
13626
13627 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13628
13629 PR rtl-optimization/46002
13630 * ira-color.c (update_copy_costs): Change class intersection
13631 test to reg_class_contents[] test of 'hard_regno'.
13632
13633 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13634
13635 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13636 than Driver option.
13637 * config/hpux11.opt (mt): Likewise.
13638 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13639 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13640 * config/vax/elf.opt (mno-asm-pic): Likewise.
13641 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13642
13643 2011-02-21 Mike Stump <mikestump@comcast.net>
13644
13645 PR target/47822
13646 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13647 tree so we can get save the type.
13648 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13649 for CFString instead of trying to use past the end of the builtins.
13650 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13651 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13652 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13653 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13654 Rename to darwin_builtin_cfstring.
13655 (darwin_init_cfstring_builtins): Return the built type.
13656
13657 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13658
13659 PR target/47840
13660 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13661 (_mm256_insert_epi64): Use _mm_insert_epi64.
13662
13663 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13664
13665 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13666 * config/stormy16/stormy16-protos.h
13667 (xstormy16_mode_dependent_address_p): Remove.
13668 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13669 Make static. Change return type to bool. Change argument type to
13670 const_rtx. Remove dead code.
13671 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13672
13673 2011-02-21 Richard Guenther <rguenther@suse.de>
13674
13675 PR lto/47820
13676 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13677 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13678 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13679 TUs context.
13680 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13681 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13682
13683 2011-02-20 Richard Guenther <rguenther@suse.de>
13684
13685 PR lto/47822
13686 * tree.c (free_lang_data_in_decl): Clean builtins from
13687 the TU decl BLOCK_VARS.
13688
13689 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13690
13691 PR debug/47620
13692 PR debug/47630
13693 * haifa-sched.c (fix_tick_ready): Skip tick computation
13694 for debug insns.
13695
13696 2011-02-19 Richard Guenther <rguenther@suse.de>
13697
13698 PR lto/47647
13699 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13700 Remove lazy BLOCK_VARS streaming.
13701 (lto_input_ts_block_tree_pointers): Likewise.
13702 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13703
13704 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13705
13706 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13707
13708 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13709
13710 * config/i386/biarch32.h, config/i386/mach.h,
13711 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13712
13713 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13714
13715 PR target/47800
13716 * config/i386/i386.md (peephole2 for shift and plus): Use
13717 operands[1] original mode in the first insn.
13718
13719 2011-02-18 Mike Stump <mikestump@comcast.net>
13720
13721 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13722
13723 2011-02-18 Jan Hubicka <jh@suse.cz>
13724
13725 PR middle-end/47788
13726 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13727 to zero when the function is not inlinable at all.
13728
13729 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13730
13731 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13732 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13733 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13734 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13735 * config/pa/t-pa64: Likewise.
13736 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13737
13738 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13739
13740 PR driver/47787
13741 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13742
13743 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13744
13745 PR target/47792
13746 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13747
13748 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13749
13750 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13751 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13752 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13753 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13754 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13755 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13756 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13757 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13758 m32r_legitimate_address_p): New functions.
13759 * config/m32r/constraints.md (constraint "S"): Don't use
13760 STORE_PREINC_PREDEC_P.
13761 (constraint "U"): Don't use LOAD_POSTINC_P.
13762
13763 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13764
13765 PR rtl-optimization/46178
13766 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13767 compute ira_hard_regno_cover_class[].
13768
13769 2011-02-18 Richard Guenther <rguenther@suse.de>
13770
13771 PR lto/47798
13772 * lto-streamer.h (lto_global_var_decls): Declare.
13773 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13774 statics for global var processing.
13775
13776 2011-02-18 Richard Guenther <rguenther@suse.de>
13777
13778 PR tree-optimization/47737
13779 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13780 edge dominance check.
13781
13782 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13783
13784 PR debug/47780
13785 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13786 avoid invalid rtx sharing.
13787
13788 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13789
13790 * doc/cpp.texi (Obsolete Features): Add background on the
13791 origin of assertions.
13792
13793 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13794
13795 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13796 objc_abi == 2.
13797 * config/darwin.c (output_objc_section_asm_op): Added support for
13798 ABI v1 and v2.
13799 (is_objc_metadata): New.
13800 (darwin_objc2_section): New.
13801 (darwin_objc1_section): New.
13802 (machopic_select_section): Added support for ABI v1 and v2.
13803 (darwin_emit_objc_zeroed): New.
13804 (darwin_output_aligned_bss): Detect objc metadata and treat it
13805 appropriately.
13806 (darwin_asm_output_aligned_decl_common): Same.
13807 (darwin_asm_output_aligned_decl_local): Same.
13808 * config/darwin-sections.def: Updated for ABI v1 and v2.
13809 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13810 compiling Objective-C code for the NeXT runtime, default to using
13811 ABI version 0 for 32-bit, and version 2 for 64-bit.
13812
13813 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13814
13815 * common.opt (optimize_fast): New Variable.
13816 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13817 instead of local variable ofast.
13818
13819 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13820
13821 * doc/invoke.texi (fobjc-abi-version): Documented.
13822 (fobjc-nilcheck): Documented.
13823 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13824 version.
13825
13826 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13827
13828 PR driver/47390
13829 * common.opt (export-dynamic): New Driver option.
13830 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13831
13832 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13833
13834 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13835
13836 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13837 Jan Hubicka <jh@suse.cz>
13838
13839 PR debug/47106
13840 PR debug/47402
13841 * cfgexpand.c (account_used_vars_for_block): Remove.
13842 (estimated_stack_frame_size): Use referenced vars.
13843 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13844 that were referenced in the original function. Test src_fn
13845 rather than cfun. Drop redundant get_var_ann.
13846 (setup_one_parameter): Drop redundant get_var_ann.
13847 (declare_return_variable): Likewise.
13848 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13849 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13850 * ipa-inline.c (compute_inline_parameters): Do not compute
13851 disregard_inline_limits here.
13852 (compute_inlinable_for_current, pass_inlinable): New.
13853 (pass_inline_parameters): Require PROP_referenced_vars.
13854 * cgraphunit.c (cgraph_process_new_functions): Don't run
13855 compute_inline_parameters explicitly unless function is in SSA form.
13856 (cgraph_analyze_function): Set .disregard_inline_limits.
13857 * tree-sra.c (convert_callers): Compute inliner parameters
13858 only for functions already in SSA form.
13859
13860 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13861
13862 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13863 -mlittle-endian-data.
13864
13865 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13866
13867 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13868 -mno-fpu, not -fpu and -no-fpu.
13869 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13870 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13871
13872 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13873
13874 PR target/43653
13875 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13876 input reload with PLUS RTX.
13877
13878 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13879
13880 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13881 of InverseVar(MDMX).
13882
13883 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13884
13885 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13886 --m4-340.
13887
13888 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13889
13890 * config/mn10300/mn10300.opt (mno-crt0): New.
13891
13892 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13893
13894 * config/m68k/uclinux.opt (static-libc): New Driver option.
13895
13896 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13897
13898 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13899
13900 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13901
13902 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13903 %{muser-extend-enabled}.
13904
13905 2011-02-16 Richard Guenther <rguenther@suse.de>
13906
13907 PR tree-optimization/47738
13908 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13909 the TODO from tree_predictive_commoning.
13910
13911 2011-02-15 Jeff Law <law@redhat.com>
13912
13913 Revert
13914 2011-01-25 Jeff Law <law@redhat.com>
13915
13916 PR rtl-optimization/37273
13917 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13918 handle them like argument loads from stack slots. Do not double
13919 count memory for memory constants and argument loads from stack slots.
13920
13921 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13922
13923 PR middle-end/47725
13924 * combine.c (cant_combine_insn_p): Revert the last change.
13925
13926 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13927
13928 PR target/47755
13929 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13930 mode for vector constants. Remove code that checks for TImode.
13931
13932 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13933
13934 PR debug/47106
13935 PR debug/47402
13936 * cgraph.h (compute_inline_parameters): Return void.
13937 * ipa-inline.c (compute_inline_parameters): Adjust.
13938
13939 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13940
13941 PR debug/47106
13942 PR debug/47402
13943 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13944 rather than decl.
13945 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13946 * ipa-inline.c (compute_inline_parameters): Adjust.
13947
13948 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13949
13950 PR debug/47106
13951 PR debug/47402
13952 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13953 Adjust all users. Pass FN to...
13954 * tree-flow-inline.h (first_referenced_var): ... this. Add
13955 fn argument.
13956 * ipa-struct-reorg.c: Adjust.
13957 * tree-dfa.c: Adjust.
13958 * tree-into-ssa.c: Adjust.
13959 * tree-sra.c: Adjust.
13960 * tree-ssa-alias.c: Adjust.
13961 * tree-ssa-live.c: Adjust.
13962 * tree-ssa.c: Adjust.
13963 * tree-ssanames.c: Adjust.
13964 * tree-tailcall.c: Adjust.
13965
13966 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13967
13968 PR debug/47106
13969 PR debug/47402
13970 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13971 Adjust all callers.
13972 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13973 * tree-flow-inline.h: Adjust.
13974 * gimple-pretty-print.c: Adjust.
13975 * tree-into-ssa.c: Adjust.
13976 * tree-ssa.c: Adjust.
13977 * cfgexpand.c: Adjust.
13978
13979 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13980
13981 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13982 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13983 (EXTRA_CONSTRAINT): Delete.
13984 * config/iq2000/constraints.md: New file.
13985 * config/iq2000/iq2000.md: Include it.
13986 (define_insn ""): Delete.
13987 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13988 unsupported constraint letters from patterns.
13989 (call_value, call_value_internal1): Likewise.
13990 (call_value_multiple_internal1): Likewise.
13991
13992 2011-02-15 Nick Clifton <nickc@redhat.com>
13993
13994 * config/mn10300/mn10300.c: Include tm-constrs.h.
13995 (struct liw_data): New data structure describing an LIW candidate
13996 instruction.
13997 (extract_bundle): Use struct liw_data. Allow small integer
13998 operands for some instructions.
13999 (check_liw_constraints): Use struct liw_data. Remove swapped
14000 parameter. Add comments describing the checks. Fix bug when
14001 assigning the source of liw1 to the source of liw2.
14002 (liw_candidate): Delete. Code moved into extract_bundle.
14003 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14004 before swapping.
14005 * config/mn10300/predicates.md (liw_operand): New predicate.
14006 Allows registers and small integer constants.
14007 * config/mn10300/constraints.md (O): New constraint. Accetps
14008 integers in the range -8 to +7 inclusive.
14009 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14010 for moving a small integer into a register. Give this alternative
14011 LIW attributes.
14012 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14013 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14014 using the J,K,L and M constraints,
14015 (liw): Remove SI mode on second operands to allow for HI and QI
14016 mode values.
14017 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14018 instruction.
14019
14020 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14021
14022 PR middle-end/47725
14023 * combine.c (cant_combine_insn_p): Check zero/sign extended
14024 hard registers.
14025
14026 2011-02-15 Richard Guenther <rguenther@suse.de>
14027
14028 PR tree-optimization/47743
14029 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14030 for a non-type-compatible VN lookup bail out.
14031
14032 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14033
14034 * config/fr30/constraints.md: New file.
14035 * config/fr30/fr30.md: Include it.
14036 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14037 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14038 (EXTRA_CONSTRAINT): Delete.
14039
14040 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14041
14042 * config/frv/constraints.md: New file.
14043 * config/frv/predicates.md: Include it.
14044 * config/frv/frv.c (reg_class_from_letter): Delete.
14045 (frv_option_override): Don't initialize it.
14046 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14047 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14048 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14049 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14050 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14051 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14052 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14053 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14054 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14055 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14056 (REG_CLASS_FROM_CONSTRAINT): Delete.
14057
14058 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14059
14060 PR middle-end/47581
14061 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14062 if frame size is 0 in a leaf function.
14063
14064 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14065
14066 PR pch/14940
14067 * config/alpha/host-osf.c: New file.
14068 * config/alpha/x-osf: New file.
14069 * config.host (alpha*-dec-osf*): Use it.
14070
14071 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14072
14073 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14074 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14075 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14076 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14077 type to const_rtx.
14078 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14079
14080 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14081
14082 * config/stormy16/constraints.md: New file.
14083 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14084 Use satisfies_constraint_Q and satisfies_constraint_R.
14085 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14086 Delete.
14087 (xstormy16_legitiamte_address_p): Declare.
14088 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14089 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14090 (EXTRA_CONSTRAINT): Delete.
14091 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14092 Un-staticize.
14093 (xstormy16_extra_constraint_p): Delete.
14094
14095 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14096
14097 PR tree-optimization/46494
14098 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14099 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14100 (pass_rtl_loop_done): Add TODO_verify_flow.
14101 * fwprop.c (pass_rtl_fwprop): Likewise.
14102 * modulo-sched.c (pass_sms): Likewise.
14103 * tree-ssa-dom.c (pass_dominator): Likewise.
14104 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14105 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14106 (pass_tree_loop_done): Likewise.
14107 * tree-ssa-pre.c (execute_pre): Likewise.
14108 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14109 * tree-ssa-sink.c (pass_sink_code): Likewise.
14110 * tree-vrp.c (pass_vrp): Likewise.
14111
14112 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14113
14114 * config/v850/constraints.md: New file.
14115 * config/v850/v850.md: Include it.
14116 * config/v850/predicates.md (reg_or_0_operand): Use
14117 satisfies_constraint_G.
14118 (special_symbolref_operand): Use satisfies_constraint_K.
14119 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14120 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14121 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14122 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14123 (EXTRA_CONSTRAINT): Delete.
14124 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14125 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14126 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14127
14128 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14129
14130 PR target/47696
14131 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14132 description.
14133
14134 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14135
14136 * config/mcore/constraints.md: New file.
14137 * config/mcore/mcore.md: Include it.
14138 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14139 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14140 (REG_CLASS_FROM_LETTER): Delete.
14141 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14142 insn_const_int_ok_for_constraint.
14143 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14144 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14145 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14146 (EXTRA_CONSTRAINT): Delete.
14147
14148 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14149
14150 PR ada/41929
14151 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14152 (IS_SIGHANDLER): Define.
14153 (sparc64_is_sighandler): New function, split off from
14154 sparc64_fallback_frame_state.
14155 (sparc_is_sighandler): New function, split off from
14156 sparc_fallback_frame_state.
14157 (sparc64_fallback_frame_state): Merge with ...
14158 (sparc_fallback_frame_state): ... this into ...
14159 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14160 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14161 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14162 stack instead of hardcoded offsets.
14163
14164 2011-02-14 Andriy Gapon <avg@freebsd.org>
14165
14166 PR target/45808
14167 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14168
14169 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14170
14171 * configure: Regenerate.
14172
14173 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14174
14175 PR driver/45731
14176 * gcc.c (asm_options): Correct spec matching --target-help.
14177
14178 2011-02-12 Martin Jambor <mjambor@suse.cz>
14179
14180 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14181 to gimple call error.
14182
14183 2011-02-12 Mike Stump <mikestump@comcast.net>
14184
14185 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14186 comments in backslash regions.
14187
14188 2011-02-12 Mike Stump <mikestump@comcast.net>
14189 Jakub Jelinek <jakub@redhat.com>
14190 Iain Sandoe <iains@gcc.gnu.org>
14191
14192 PR target/47324
14193 * dwarf2out.c (output_cfa_loc): When required, apply the
14194 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14195 (output_loc_sequence): Likewise.
14196 (output_loc_operands_raw): Likewise.
14197 (output_loc_sequence_raw): Likewise.
14198 (output_cfa_loc): Likewise.
14199 (output_loc_list): Suppress register number adjustment when
14200 calling output_loc_sequence()
14201 (output_die): Likewise.
14202
14203 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14204
14205 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14206 Remove macros.
14207 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14208 xtensa_memory_move_cost): New functions.
14209 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14210
14211 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14212
14213 PR lto/47225
14214 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14215 in the current directory.
14216 * configure: Rebuilt.
14217
14218 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14219
14220 * config/darwin.c (darwin_override_options): Add a hunk missed
14221 from the commit of r168571. Trim comment line lengths and
14222 correct indents of the preceding block.
14223
14224 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14225
14226 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14227 the switch.
14228
14229 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14230
14231 * common.opt (nostartfiles): New Driver option.
14232
14233 2011-02-11 Xinliang David Li <davidxl@google.com>
14234
14235 PR tree-optimization/47707
14236 * tree-chrec.c (convert_affine_scev): Keep type precision.
14237
14238 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14239
14240 PR tree-optimization/47420
14241 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14242
14243 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14244
14245 PR rtl-optimization/47614
14246 * rtl.h (check_for_inc_dec): Declare.
14247 * dse.c (check_for_inc_dec): Externalize...
14248 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14249 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14250
14251 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14252
14253 PR driver/47678
14254 * gcc.c (main): Do not compile inputs if there were errors in
14255 option handling.
14256 * opts-common.c (read_cmdline_option): Check for wrong language
14257 after other error checks.
14258
14259 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14260
14261 * cgraph.c: Fix comment typos.
14262 * cgraph.h: Likewise.
14263 * cgraphunit.c: Likewise.
14264 * ipa-cp.c: Likewise.
14265 * ipa-inline.c: Likewise.
14266 * ipa-prop.c: Likewise.
14267 * ipa-pure-const.c: Likewise.
14268 * ipa-ref.c: Likewise.
14269 * ipa-reference.c: Likewise.
14270
14271 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14272
14273 PR debug/47684
14274 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14275
14276 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14277
14278 PR testsuite/47400
14279 * doc/sourcebuild.texi (Require Support): Document
14280 dg-require-ascii-locale.
14281
14282 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14283
14284 * doc/lto.texi (Write summary): Fix missing parentheses.
14285
14286 2011-02-10 DJ Delorie <dj@redhat.com>
14287
14288 * config/m32c/m32c.c (m32c_option_override): Disable
14289 -fcombine-stack-adjustments until flag value tracking and compare
14290 optimization can be rewritten.
14291
14292 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14293
14294 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14295 PROCESSOR_POWER7.
14296 (PROCESSOR_DEFAULT64): Likewise.
14297
14298 2011-02-10 Richard Henderson <rth@redhat.com>
14299
14300 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14301 change from 2011-02-03.
14302 * config/rx/rx.c (flags_from_code): Likewise.
14303 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14304 is valid, n/pz otherwise.
14305 (rx_select_cc_mode): Return CCmode if Y is not zero.
14306
14307 2011-02-10 Richard Guenther <rguenther@suse.de>
14308
14309 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14310
14311 2011-02-10 Richard Guenther <rguenther@suse.de>
14312
14313 PR tree-optimization/47677
14314 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14315
14316 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14317
14318 PR target/47665
14319 * combine.c (make_compound_operation): Only change shifts into
14320 multiplication for SCALAR_INT_MODE_P.
14321
14322 2011-02-10 Jie Zhang <jie@codesourcery.com>
14323
14324 PR testsuite/47622
14325 Revert
14326 2011-02-05 Jie Zhang <jie@codesourcery.com>
14327 PR debug/42631
14328 * web.c (entry_register): Don't clobber the number of the
14329 first uninitialized reference in used[].
14330
14331 2011-02-09 Richard Guenther <rguenther@suse.de>
14332
14333 PR tree-optimization/47664
14334 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14335 all edges again.
14336
14337 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14338
14339 PR target/46481
14340 PR target/47032
14341 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14342 PROCESSOR_POWER7.
14343 (PROCESSOR_DEFAULT64): Same.
14344 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14345
14346 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14347
14348 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14349
14350 2011-02-09 Martin Jambor <mjambor@suse.cz>
14351
14352 PR middle-end/45505
14353 * tree-sra.c (struct access): New flags grp_scalar_read and
14354 grp_scalar_write. Changed description of assignment read and write
14355 flags.
14356 (dump_access): Dump new flags, reorder all of them.
14357 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14358 to detect multiple scalar reads.
14359 (analyze_access_subtree): Use the new scalar read write flags instead
14360 of the old flags. Adjusted comments.
14361
14362 2011-02-08 DJ Delorie <dj@redhat.com>
14363
14364 PR target/47548
14365 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14366 patterns.
14367
14368 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14369
14370 * config/m68k/uclinux.opt: New.
14371 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14372
14373 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14374
14375 * config/cris/elf.opt (sim): New Driver option.
14376
14377 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14378
14379 * config/xtensa/elf.opt: New.
14380 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14381
14382 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14383
14384 * config/vax/elf.opt: New.
14385 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14386
14387 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14388
14389 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14390
14391 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14392
14393 * config/gnu-user.opt: New.
14394 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14395 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14396 *-*-uclinux*): Use gnu-user.opt.
14397
14398 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14399
14400 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14401 * config/i386/gnu.h (CPP_SPEC): Likewise.
14402
14403 2011-02-08 Ian Lance Taylor <iant@google.com>
14404
14405 * common.opt (fcx-limited-range): Add SetByCombined flag.
14406 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14407 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14408 (fassociative-math, freciprocal-math): Likewise.
14409 (funsafe-math-optimizations): Likewise.
14410 * opth-gen.awk: Handle SetByCombined.
14411 * optc-gen.awk: Likewise.
14412 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14413 (set_unsafe_math_optimizations_flags): Likewise.
14414 * doc/options.texi (Option properties): Document SetByCombined.
14415
14416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14417
14418 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14419 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14420 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14421 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14422 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14423
14424 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14425
14426 PR tree-optimization/46834
14427 PR tree-optimization/46994
14428 PR tree-optimization/46995
14429 * graphite-sese-to-poly.c (used_outside_reduction): New.
14430 (detect_commutative_reduction): Call used_outside_reduction.
14431 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14432 translate_scalar_reduction_to_array only when at least one
14433 loop-phi/close-phi tuple has been detected.
14434
14435 2011-02-08 Richard Guenther <rguenther@suse.de>
14436
14437 PR middle-end/47639
14438 * tree-vect-generic.c (expand_vector_operations_1): Update
14439 stmts here ...
14440 (expand_vector_operations): ... not here. Cleanup EH info
14441 and the CFG if required.
14442
14443 2011-02-08 Richard Guenther <rguenther@suse.de>
14444
14445 PR tree-optimization/47641
14446 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14447 require type compatibility.
14448
14449 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14450
14451 * gimple-low.c (lower_function_body): Don't remove the location of
14452 the return statement here.
14453 (lower_gimple_return): Do it here instead but only if the return
14454 statement is actually used twice.
14455
14456 2011-02-08 Richard Guenther <rguenther@suse.de>
14457
14458 PR tree-optimization/47632
14459 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14460 unused up_to_stmt parameter, return whether cfg-cleanup is
14461 necessary, remove EH info properly.
14462 (forward_propagate_into_gimple_cond): Adjust caller.
14463 (forward_propagate_into_cond): Likewise.
14464 (forward_propagate_comparison): Likewise.
14465 (tree_ssa_forward_propagate_single_use_vars): Make
14466 forward_propagate_comparison case similar to the two others.
14467
14468 2011-02-08 Nick Clifton <nickc@redhat.com>
14469
14470 * config/mn10300/mn10300.opt (mliw): New command line option.
14471 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14472 (liw_bundling): New automaton.
14473 (liw): New attribute.
14474 (liw_op): New attribute.
14475 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14476 (movsi_internal): Add LIW attributes.
14477 (andsi3): Likewise.
14478 (iorsi3): Likewise.
14479 (xorsi3): Likewise.
14480 (addsi3): Separate register and immediate alternatives.
14481 Add LIW attributes.
14482 (subsi3): Likewise.
14483 (cmpsi): Likewise.
14484 (aslsi3): Likewise.
14485 (lshrsi3): Likewise.
14486 (ashrsi3): Likewise.
14487 (liw): New pattern.
14488 * config/mn10300/mn10300.c (liw_op_names): New
14489 (mn10300_print_operand): Handle 'W' operand descriptor.
14490 (extract_bundle): New function.
14491 (check_liw_constraints): New function.
14492 (liw_candidate): New function.
14493 (mn10300_bundle_liw): New function.
14494 (mn10300_reorg): New function.
14495 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14496 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14497 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14498 __LIW__ or __NO_LIW__.
14499 * doc/invoke.texi: Describe the -mliw command line option.
14500
14501 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14502
14503 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14504 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14505 pthread_mutex_unlock): Remove.
14506 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14507 * config/pa/t-pa64: Likewise.
14508 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14509 shared libc if not linking against libpthread.
14510 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14511
14512 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14513
14514 PR target/47558
14515 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14516 on 10.6 and later to ensure that we always use the unwinder from
14517 the system. Only add -no_compact_unwind when tarteting darwin
14518 10.6 or later.
14519
14520 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14521
14522 PR target/46997
14523 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14524 (vec_interleave_lowv2sf): Ditto.
14525 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14526 (vec_extract_oddv2sf): Ditto.
14527
14528 2011-02-07 Mike Stump <mikestump@comcast.net>
14529
14530 PR target/42333
14531 Add __ieee_divdc3 entry point.
14532 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14533 entry point.
14534 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14535 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14536 * config/darwin.c (darwin_rename_builtins): Add.
14537 * config/darwin-protos.h (darwin_rename_builtins): Add.
14538
14539 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14540
14541 PR target/47636
14542 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14543 for the condition.
14544
14545 2011-02-07 Mike Stump <mikestump@comcast.net>
14546
14547 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14548
14549 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14550
14551 PR target/47534
14552 * config/avr/libgcc.S (exit): Move .endfunc
14553
14554 2011-02-07 Richard Guenther <rguenther@suse.de>
14555
14556 PR tree-optimization/47615
14557 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14558 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14559 (run_scc_vn): Initialize it.
14560 (visit_reference_op_load): Use it.
14561 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14562
14563 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14564
14565 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14566 DImode trapping arithmetic libfuncs.
14567
14568 2011-02-07 Richard Guenther <rguenther@suse.de>
14569
14570 PR tree-optimization/47621
14571 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14572 two duplicates ...
14573 (execute_update_addresses_taken): ... here. Make it more
14574 conservative in what we accept.
14575
14576 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14577
14578 * config/sparc/freebsd.h (ASM_SPEC): Define.
14579 * config/sparc/vxworks.h (ASM_SPEC): Define.
14580
14581 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14582
14583 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14584
14585 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14586
14587 * doc/invoke.texi: Remove reference to compiler internals from
14588 user documentation.
14589
14590 * reg-notes.def: Remove REG_VALUE_PROFILE.
14591 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14592
14593 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14594
14595 PR middle-end/47610
14596 * varasm.c (default_section_type_flags): If decl is NULL,
14597 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14598
14599 2011-02-05 Jie Zhang <jie@codesourcery.com>
14600
14601 PR debug/42631
14602 * web.c (entry_register): Don't clobber the number of the
14603 first uninitialized reference in used[].
14604
14605 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14606
14607 PR tree-optimization/46194
14608 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14609 (build_classic_dist_vector_1): Do not represent classic distance
14610 vectors when the access functions are variating in different loops.
14611
14612 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14613
14614 * config/mips/iris6.opt: New.
14615 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14616
14617 2011-02-04 Richard Henderson <rth@redhat.com>
14618 Steve Ellcey <sje@cup.hp.com>
14619
14620 PR target/46997
14621 * config/ia64/predicates.md (mux1_brcst_element): New.
14622 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14623 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14624 (ia64_unpack_sign): New.
14625 (ia64_expand_unpack): Rewrite using new routines.
14626 (ia64_expand_widen_sum): Ditto.
14627 (ia64_expand_dot_prod_v8qi): Ditto.
14628 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14629 routines, add endian check.
14630 (pmpy2_even): Rename from pmpy2_r, add endian check.
14631 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14632 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14633 (vec_widen_smult_hi_v4hi): Ditto.
14634 (vec_widen_umult_lo_v4hi): Ditto.
14635 (vec_widen_umult_hi_v4hi): Ditto.
14636 (mulv2si3): Change endian checks.
14637 (sdot_prodv4hi): Rewrite with new calls.
14638 (udot_prodv4hi): New.
14639 (vec_pack_ssat_v4hi): Add endian check.
14640 (vec_pack_usat_v4hi): Ditto.
14641 (vec_pack_ssat_v2si): Ditto.
14642 (max1_even): Rename from max1_r, add endian check.
14643 (max1_odd): Rename from max1_l, add endian check.
14644 (*mux1_rev): Format change.
14645 (*mux1_mix): Ditto.
14646 (*mux1_shuf): Ditto.
14647 (*mux1_alt): Ditto.
14648 (*mux1_brcst_v8qi): Use new predicate.
14649 (vec_extract_evenv8qi): Remove endian check.
14650 (vec_extract_oddv8qi): Ditto.
14651 (vec_interleave_lowv4hi): Format change.
14652 (vec_interleave_highv4hi): Ditto.
14653 (mix2_even): Rename from mix2_r, add endian check.
14654 (mix2_odd): Rename from mux2_l, add endian check.
14655 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14656 (vec_extract_evenodd_helper): Format change.
14657 (vec_extract_evenv4hi): Remove endian check.
14658 (vec_extract_oddv4hi): Remove endian check.
14659 (vec_interleave_lowv2si): Format change.
14660 (vec_interleave_highv2si): Format change.
14661 (vec_initv2si): Remove endian check.
14662 (vecinit_v2si): Add endian check.
14663 (reduc_splus_v2sf): Add endian check.
14664 (reduc_smax_v2sf): Ditto.
14665 (reduc_smin_v2sf): Ditto.
14666 (vec_initv2sf): Remove endian check.
14667 (fpack): Add endian check.
14668 (fswap): Add endian check.
14669 (vec_interleave_highv2sf): Add endian check.
14670 (vec_interleave_lowv2sf): Add endian check.
14671 (fmix_lr): Add endian check.
14672 (vec_setv2sf): Format change.
14673 (*vec_extractv2sf_0_be): Use shift to extract operand.
14674 (*vec_extractv2sf_1_be): New.
14675 (vec_pack_trunc_v4hi): Add endian check.
14676 (vec_pack_trunc_v2si): Format change.
14677
14678 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14679
14680 PR inline-asm/23200
14681 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14682 do bb, locus and block comparison and disallow loads if it is not set.
14683 (stmt_is_replaceable_p): New function.
14684 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14685 callers.
14686 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14687 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14688 SSA_NAME_DEF_STMT.
14689 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14690
14691 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14692
14693 * config/rs6000/xilinx.opt: New.
14694 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14695
14696 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14697
14698 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14699
14700 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14701
14702 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14703 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14704 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14705 secondary_reload_info, xtensa_secondary_reload): Remove.
14706 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14707 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14708 (xtensa_preferred_reload_class): Make static. Change return and
14709 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14710 Use CONST_DOUBLE_P predicate.
14711 (xtensa_preferred_output_reload_class): New function.
14712 (xtensa_secondary_reload): Make static.
14713
14714 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14715
14716 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14717 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14718 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14719
14720 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14721
14722 PR middle-end/31490
14723 * output.h (SECTION_RELRO): Define.
14724 (SECTION_MACH_DEP): Adjust.
14725 (get_variable_section): New prototype.
14726 * varpool.c (varpool_finalize_named_section_flags): New function.
14727 (varpool_assemble_pending_decls): Call it.
14728 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14729 * cgraphunit.c (cgraph_output_in_order): Call
14730 varpool_finalize_named_section_flags.
14731 * varasm.c (get_section): Allow section flags conflicts between
14732 relro and read-only sections if the section hasn't been declared yet.
14733 Set SECTION_OVERRIDE after diagnosing section type conflict.
14734 (get_variable_section): No longer static.
14735 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14736 readonly sections that need relocations.
14737 (decl_readonly_section_1): New function.
14738 (decl_readonly_section): Use it.
14739
14740 Revert:
14741 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14742 Steve Ellcey <sje@cup.hp.com>
14743
14744 PR middle-end/31490
14745 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14746 if section attribute used.
14747
14748 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14749
14750 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14751 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14752 (darwin_init_sections): Remove assertion.
14753
14754 2011-02-03 Nick Clifton <nickc@redhat.com>
14755
14756 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14757 lt and ge.
14758 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14759 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14760 instead of "n" and "pz".
14761 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14762 CC_FLAG_S.
14763
14764 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14765
14766 PR target/47312
14767 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14768 fma, expand FMA_EXPR as fma{,f,l} call.
14769
14770 PR lto/47274
14771 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14772 copy them into a unsigned char variable and pass address of it to
14773 lto_output_data_stream.
14774
14775 PR target/47564
14776 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14777 around backend_init_target and lang_dependent_init_target calls.
14778 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14779 (verify_cgraph_node): Don't call set_cfun here. Use
14780 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14781 Set error_found for incorrectly represented calls to thunks.
14782
14783 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14784
14785 PR debug/43092
14786 PR rtl-optimization/43494
14787 * rtl.h (for_each_inc_dec_fn): New type.
14788 (for_each_inc_dec): Declare.
14789 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14790 (for_each_inc_dec_find_inc_dec): New fn.
14791 (for_each_inc_dec_find_mem): New fn.
14792 (for_each_inc_dec): New fn.
14793 * dse.c (struct insn_size): Remove.
14794 (replace_inc_dec, replace_inc_dec_mem): Remove.
14795 (emit_inc_dec_insn_before): New fn.
14796 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14797 (canon_address): Pass mem modes to cselib_lookup.
14798 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14799 (cselib_lookup_from_insn): Likewise.
14800 (cselib_subst_to_values): Likewise.
14801 * cselib.c (find_slot_memmode): New var.
14802 (cselib_find_slot): New fn. Use it instead of
14803 htab_find_slot_with_hash everywhere.
14804 (entry_and_rtx_equal_p): Use find_slot_memmode.
14805 (autoinc_split): New fn.
14806 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14807 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14808 Deal with autoinc. Special-case recursion into MEMs.
14809 (cselib_hash_rtx): Likewise.
14810 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14811 address and MEM modes.
14812 (cselib_subst_to_values): Add memmode, pass it on.
14813 Deal with autoinc.
14814 (cselib_lookup): Add memmode argument, pass it on.
14815 (cselib_lookup_from_insn): Add memmode.
14816 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14817 (struct cselib_record_autoinc_data): New.
14818 (cselib_record_autoinc_cb): New fn.
14819 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14820 mode to cselib_lookup. Reset autoinced REGs here instead of...
14821 (cselib_process_insn): ... here.
14822 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14823 to cselib_lookup.
14824 (add_uses): Likewise, also to cselib_subst_to_values.
14825 (add_stores): Likewise.
14826 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14827 cselib_subst_to_values.
14828 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14829 * gcse.c (do_local_cprop): Adjusted.
14830 * postreload.c (reload_cse_simplify_set): Adjusted.
14831 (reload_cse_simplify_operands): Adjusted.
14832 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14833
14834 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14835
14836 PR tree-optimization/45122
14837 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14838 unsafe assumptions when there's more than one loop exit.
14839
14840 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14841
14842 PR target/47272
14843 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14844 Document using vector double with the load/store builtins, and
14845 that the load/store builtins always use Altivec instructions.
14846
14847 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14848 to use altivec memory instructions, even on VSX.
14849 (vector_altivec_store_<mode>): Ditto.
14850
14851 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14852 function.
14853
14854 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14855 V2DF, V2DI support to load/store overloaded builtins.
14856
14857 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14858 altivec load/store builtins for V2DF/V2DI types.
14859
14860 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14861 set avoid indexed addresses on power6 if -maltivec.
14862 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14863 vector_altivec_load/vector_altivec_store builtins.
14864 (altivec_expand_st_builtin): Ditto.
14865 (altivec_expand_builtin): Add VSX memory builtins.
14866 (rs6000_init_builtins): Add V2DI types to internal types.
14867 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14868 load/store builtins.
14869 (rs6000_address_for_altivec): Insure memory address is appropriate
14870 for Altivec.
14871
14872 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14873 vec_vsx_ld and vec_vsx_st.
14874 (vsx_store_<mode>): Ditto.
14875
14876 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14877 variables to hold long long types for VSX vector memory builtins.
14878 (RS6000_BTI_unsigned_long_long): Ditto.
14879 (long_long_integer_type_internal_node): Ditti.
14880 (long_long_unsigned_type_internal_node): Ditti.
14881
14882 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14883 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14884 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14885
14886 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14887 short cuts.
14888 (vec_vsx_st): Ditto.
14889
14890 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14891
14892 * config/pa/pa-hpux10.opt: New.
14893 * config/hpux11.opt (pthread): New Driver option.
14894 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14895 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14896
14897 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14898
14899 * config/ia64/vms.opt: New.
14900 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14901
14902 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14903
14904 PR target/47580
14905 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14906 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14907 generator functions.
14908 (vsx_floatuns<VSi><mode>2): Ditto.
14909 (vsx_fix_trunc<mode><VSi>2): Ditto.
14910 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14911
14912 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14913
14914 * config/i386/djgpp.opt (posix): New Driver option.
14915
14916 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14917
14918 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14919 Move to the unsupported targets list.
14920
14921 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14922
14923 PR rtl-optimization/47525
14924 * df-scan.c: Update copyright years.
14925 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14926 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14927
14928 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14929
14930 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14931 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14932 (ASM_OUTPUT_ASCII): Remove.
14933 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14934
14935 2011-02-02 Jeff Law <law@redhat.com>
14936
14937 PR middle-end/47543
14938 * reload.c (find_reloads_address): Handle reg+d address where both
14939 components are invalid by reloading the entire address.
14940
14941 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14942 Richard Guenther <rguenther@suse.de>
14943
14944 PR tree-optimization/40979
14945 PR bootstrap/47044
14946 * passes.c (init_optimization_passes): After LIM call copy_prop
14947 and DCE to clean up.
14948 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14949
14950 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14951
14952 PR tree-optimization/47576
14953 PR tree-optimization/47555
14954 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14955 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14956 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14957 * tree-scalar-evolution.c (follow_ssa_edge): Use
14958 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14959
14960 2011-02-02 Richard Guenther <rguenther@suse.de>
14961
14962 PR tree-optimization/47566
14963 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14964
14965 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14966
14967 PR debug/47106
14968 PR debug/47402
14969 * tree-inline.c (declare_return_variable): Remove unused caller
14970 variable.
14971
14972 PR debug/47106
14973 PR debug/47402
14974 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14975 * cfgexpand.c (account_used_vars_for_block): Use them.
14976 * tree-nrv.c (tree_nrv): Likewise.
14977 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14978 (dump_scope_block): Likewise.
14979 (remove_unused_locals): Likewise.
14980
14981 PR debug/47106
14982 PR debug/47402
14983 * tree-inline.c (declare_return_variable): Add result decl to
14984 local decls only once.
14985 * gimple-low.c (record_vars_into): Mark newly-created variables
14986 as referenced.
14987
14988 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14989
14990 PR debug/47498
14991 PR debug/47501
14992 PR debug/45136
14993 PR debug/45130
14994 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14995 debug insns.
14996 (no_real_insns_p, schedule_block, set_priorities): Drop special
14997 treatment of boundary debug insns.
14998 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14999 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15000 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15001 (BOUNDARY_DEBUG_INSN_P): Likewise.
15002 (SCHEDULE_DEBUG_INSN_P): Likewise.
15003 * sched-rgn.c (init_ready_list): Drop special treatment of
15004 boundary debug insns.
15005 * final.c (rest_of_clean_state): Clear notes' BB.
15006
15007 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15008
15009 * config/openbsd.opt (assert=): New Driver option.
15010
15011 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15012
15013 * config/i386/nto.opt: New.
15014 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15015
15016 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15017
15018 * config/i386/netware.opt: New.
15019 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15020
15021 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15022
15023 * config/interix.opt (posix): New Driver option.
15024
15025 2011-02-01 DJ Delorie <dj@redhat.com>
15026
15027 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15028
15029 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15030 class for A0/A1.
15031
15032 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15033
15034 PR tree-optimization/47561
15035 * toplev.c (process_options): Print the Graphite flags. Add
15036 flag_loop_flatten to the list of options requiring Graphite.
15037
15038 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15039
15040 * config/i386/cygming.opt (posix): New Driver option.
15041
15042 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15043
15044 * config/arm/vxworks.opt: New.
15045 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15046
15047 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15048
15049 * config/alpha/elf.opt: New.
15050 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15051 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15052
15053 2011-02-01 Richard Guenther <rguenther@suse.de>
15054
15055 PR tree-optimization/47559
15056 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15057 store-motion on references that can throw.
15058
15059 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15060
15061 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15062 * tree-pass.h (TDF_CSELIB): New macro.
15063 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15064 cselib_lookup): Check for it rather than for TDF_DETAILS.
15065
15066 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15067
15068 PR driver/47547
15069 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15070 is HOST_BIT_BUCKET.
15071
15072 * opts.c (finish_options): Don't add x_aux_base_name if it is
15073 HOST_BIT_BUCKET.
15074
15075 2011-02-01 Richard Guenther <rguenther@suse.de>
15076
15077 PR tree-optimization/47555
15078 Revert
15079 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15080
15081 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15082
15083 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15084
15085 PR gcc/46692
15086 * config/lm32/t-lm32: Add multilib for all CPU options.
15087
15088 2011-02-01 Richard Guenther <rguenther@suse.de>
15089
15090 PR tree-optimization/47541
15091 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15092 sure to have a field at offset zero.
15093
15094 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15095
15096 * config/arc/arc.opt (EB, EL): New Driver options.
15097
15098 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15099
15100 * config/alpha/osf5.opt: New.
15101 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15102
15103 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15104
15105 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15106
15107 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15108
15109 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15110 -floop-interchange.
15111 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15112 is an alias of -floop-interchange and that it requires the
15113 Graphite infrastructure.
15114 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15115 flag_loop_interchange based on the value of flag_tree_loop_linear.
15116
15117 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15118 Richard Guenther <rguenther@suse.de>
15119
15120 PR tree-optimization/47538
15121 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15122 type instead of r1type, except for comparisons. For right
15123 shifts and comparisons punt if there are mismatches in
15124 sizetype vs. non-sizetype types.
15125
15126 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15127
15128 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15129 avx_runtime.
15130
15131 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15132
15133 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15134 version number.
15135 * configure: Regenerate.
15136
15137 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15138
15139 * configure.ac (gcc_cv_ld_static_option): Define.
15140 (gcc_cv_ld_dynamic_option): Define.
15141 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15142 instead.
15143 (HAVE_LD_STATIC_DYNAMIC): Update message.
15144 (LD_STATIC_OPTION): Define.
15145 (LD_DYNAMIC_OPTION): Define.
15146 * configure: Regenerate.
15147 * config.in: Regenerate.
15148 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15149 HAVE_LD_STATIC_DYNAMIC]: Use them.
15150
15151 2011-01-31 Nick Clifton <nickc@redhat.com>
15152
15153 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15154 registers inside interrupt handlers if the handler is not a leaf
15155 function.
15156
15157 2011-01-31 Nick Clifton <nickc@redhat.com>
15158
15159 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15160 reg_renumber returning an INVALID_REGNUM.
15161
15162 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15163
15164 PR libgcj/44341
15165 * doc/install.texi: Document host options discarded when cross
15166 configuring target libraries.
15167
15168 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15169
15170 Reverted:
15171 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15172 PR debug/45136
15173 PR debug/45130
15174 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15175 debug insns.
15176 (no_real_insns_p, schedule_block, set_priorities): Drop special
15177 treatment of boundary debug insns.
15178 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15179 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15180 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15181 (BOUNDARY_DEBUG_INSN_P): Likewise.
15182 (SCHEDULE_DEBUG_INSN_P): Likewise.
15183 * sched-rgn.c (init_ready_list): Drop special treatment of
15184 boundary debug insns.
15185 * final.c (rest_of_clean-state): Clear notes' BB.
15186
15187 2011-01-31 Alan Modra <amodra@gmail.com>
15188
15189 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15190 toc relative expressions as we do in print_operand_address.
15191
15192 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15193
15194 * doc/extend.texi: Follow spelling conventions.
15195 * doc/invoke.texi: Fix a typo.
15196
15197 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15198
15199 * config/hpux11.opt: New.
15200 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15201 ia64*-*-hpux*): Use hpux11.opt.
15202
15203 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15204
15205 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15206 to tmake_file.
15207
15208 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15209
15210 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15211 support sites.
15212
15213 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15214
15215 * doc/install.texi (Binaries): Remove outdated reference for
15216 Motorola 68HC11/68HC12 downloads.
15217
15218 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15219
15220 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15221 Drepper's paper.
15222
15223 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15224
15225 PR bootstrap/47147
15226 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15227 used by NetBSD.
15228
15229 2011-01-28 Ahmad Sharif <asharif@google.com>
15230
15231 * value-prof.c (check_counter): Corrected error message.
15232
15233 2011-01-29 Jie Zhang <jie@codesourcery.com>
15234
15235 * config/arm/arm.c (arm_legitimize_reload_address): New.
15236 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15237 arm_legitimize_reload_address.
15238 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15239
15240 2011-01-28 Ian Lance Taylor <iant@google.com>
15241
15242 * godump.c (go_define): Ignore macros whose definitions include
15243 two adjacent operands.
15244
15245 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15246
15247 PR target/42894
15248 * varasm.c (force_const_mem): Store copy of x in desc->constant
15249 instead of x itself.
15250 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15251 itself into REG_EQUAL note.
15252
15253 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15254
15255 * config/freebsd.opt (posix, rdynamic): New Driver options.
15256
15257 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15258
15259 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15260 -Bstatic/-Bdynamic.
15261 * configure: Regenerate.
15262
15263 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15264
15265 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15266 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15267
15268 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15269
15270 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15271 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15272 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15273 (s390_preferred_reload_class): Make static. Change return and
15274 'rclass' argument type to reg_class_t.
15275
15276 2011-01-27 Jan Hubicka <jh@suse.cz>
15277
15278 PR middle-end/46949
15279 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15280 (process_function_and_variable_attributes): Check defined weakrefs.
15281
15282 2011-01-27 Martin Jambor <mjambor@suse.cz>
15283
15284 PR tree-optimization/47228
15285 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15286 build_ref_for_offset.
15287
15288 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15289
15290 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15291
15292 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15293
15294 PR rtl-optimization/46856
15295 * postreload.c (reload_combine_recognize_const_pattern): Do not
15296 separate cc0 setter and user on cc0 targets.
15297
15298 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15299
15300 PR c/43082
15301 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15302 passed a VOID_TYPE expression, immediately emit an error and
15303 return error_mark_node.
15304
15305 2011-01-26 Jeff Law <law@redhat.com>
15306
15307 PR rtl-optimization/47464
15308 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15309 rather than may_trap_p as needed.
15310
15311 2011-01-26 DJ Delorie <dj@redhat.com>
15312
15313 PR rtl-optimization/46878
15314 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15315 setter/user dependency as well.
15316
15317 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15318
15319 PR rtl-optimization/44469
15320 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15321 after removing trivially dead basic blocks.
15322
15323 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15324
15325 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15326 * config/frv/frv.h (LINK_SPEC): Likewise.
15327 * config/i386/netware.h (LINK_SPEC): Likewise.
15328 * config/m68k/linux.h (ASM_SPEC): Likewise.
15329 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15330 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15331 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15332 * config/sparc/linux.h (ASM_SPEC): Likewise.
15333 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15334 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15335
15336 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15337
15338 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15339 * config/frv/frv.h (ASM_SPEC): Likewise.
15340 * config/m68k/linux.h (ASM_SPEC): Likewise.
15341 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15342 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15343 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15344 * config/sparc/linux.h (ASM_SPEC): Likewise.
15345 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15346 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15347
15348 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15349
15350 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15351 * config/frv/frv.h (LINK_SPEC): Likewise.
15352 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15353
15354 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15355
15356 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15357 * config/frv/frv.h (ASM_SPEC): Likewise.
15358 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15359 * config/m68k/linux.h (ASM_SPEC): Likewise.
15360 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15361 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15362 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15363 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15364 * config/sparc/linux.h (ASM_SPEC): Likewise.
15365 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15366 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15367 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15368
15369 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15370
15371 PR target/46997
15372 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15373 (*mux2): Ditto.
15374 (vec_extract_evenodd_help): Ditto.
15375 (vec_extract_evenv4hi): Ditto.
15376 (vec_extract_oddv4hi): Ditto.
15377 (vec_interleave_lowv2si): Ditto.
15378 (vec_interleave_highv2si): Ditto.
15379 (vec_extract_evenv2si): Ditto.
15380 (vec_extract_oddv2si: Ditto.
15381 (vec_pack_trunc_v2si): Ditto.
15382
15383 2011-01-22 Jan Hubicka <jh@suse.cz>
15384
15385 PR target/47237
15386 * cgraph.h (cgraph_local_info): New field can_change_signature.
15387 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15388 signature can change.
15389 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15390 can change.
15391 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15392 (cgraph_function_versioning): We can not change signature of functions
15393 that don't allow that.
15394 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15395 (lto_input_node): Likewise.
15396 * ipa-inline.c (compute_inline_parameters): Compute
15397 local.can_change_signature.
15398 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15399 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15400 functions that can not change signature.
15401 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15402 init_cumulative_args): Do not use local calling conventions
15403 for functions that can not change signature.
15404
15405 2011-01-22 Jan Hubicka <jh@suse.cz>
15406
15407 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15408
15409 2011-01-26 Richard Guenther <rguenther@suse.de>
15410
15411 PR tree-optimization/47190
15412 * cgraphunit.c (process_common_attributes): New function.
15413 (process_function_and_variable_attributes): Use it.
15414
15415 2011-01-26 Richard Guenther <rguenther@suse.de>
15416
15417 PR lto/47423
15418 * cgraphbuild.c (record_eh_tables): Record reference to personality
15419 function.
15420
15421 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15422
15423 PR debug/45454
15424 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15425 non-debug insns from moving up.
15426
15427 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15428
15429 PR target/40125
15430 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15431 t-dlldir{,-x} fragment for build and add it to tmake_file.
15432 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15433 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15434 * config/i386/t-dlldir: New file.
15435 (SHLIB_DLLDIR): Define.
15436 * config/i386/t-dlldir-x: New file.
15437 (SHLIB_DLLDIR): Define.
15438 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15439 (SHLIB_INSTALL): Use it.
15440
15441 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15442
15443 PR target/47246
15444 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15445 lower bound of the allowed Thumb-2 coprocessor load/store
15446 index range to -256. Add explaining comment.
15447
15448 2011-01-25 Ian Lance Taylor <iant@google.com>
15449
15450 * godump.c (go_define): Improve lexing of macro expansion to only
15451 accept expressions which match Go spec.
15452
15453 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15454
15455 PR c++/43601
15456 * tree.c (handle_dll_attribute): Handle it.
15457 * doc/extend.texi (@item dllexport): Mention it.
15458 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15459
15460 2011-01-25 Ian Lance Taylor <iant@google.com>
15461
15462 PR tree-optimization/26854
15463 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15464 (decl_jump_unsafe): Move higher in file, with no other change.
15465 (bind): Set has_jump_unsafe_decl if appropriate.
15466 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15467 (check_earlier_gotos): Likewise.
15468 (c_check_switch_jump_warnings): Likewise.
15469
15470 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15471
15472 * doc/invoke.texi (Warning Options): Add missing hyphen.
15473 (-fprofile-dir): Minor grammatical fixes.
15474 (-fbranch-probabilities): Likewise.
15475
15476 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15477
15478 PR debug/45136
15479 PR debug/45130
15480 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15481 debug insns.
15482 (no_real_insns_p, schedule_block, set_priorities): Drop special
15483 treatment of boundary debug insns.
15484 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15485 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15486 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15487 (BOUNDARY_DEBUG_INSN_P): Likewise.
15488 (SCHEDULE_DEBUG_INSN_P): Likewise.
15489 * sched-rgn.c (init_ready_list): Drop special treatment of
15490 boundary debug insns.
15491 * final.c (rest_of_clean-state): Clear notes' BB.
15492
15493 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15494
15495 * Makefile.in (LAMBDA_H): Removed.
15496 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15497 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15498 lambda-trans.o, and tree-loop-linear.o.
15499 (lto-symtab.o): Remove dependence on LAMBDA_H.
15500 (tree-loop-linear.o): Remove rule.
15501 (lambda-mat.o): Same.
15502 (lambda-trans.o): Same.
15503 (lambda-code.o): Same.
15504 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15505 (tree-vect-slp.o): Same.
15506 * hwint.h (gcd): Moved here.
15507 (least_common_multiple): Same.
15508 * lambda-code.c: Removed.
15509 * lambda-mat.c: Removed.
15510 * lambda-trans.c: Removed.
15511 * lambda.h: Removed.
15512 * tree-loop-linear.c: Removed.
15513 * lto-symtab.c: Do not include lambda.h.
15514 * omega.c (gcd): Removed.
15515 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15516 * tree-data-ref.c (print_lambda_vector): Moved here.
15517 (lambda_vector_copy): Same.
15518 (lambda_matrix_copy): Same.
15519 (lambda_matrix_id): Same.
15520 (lambda_vector_first_nz): Same.
15521 (lambda_matrix_row_add): Same.
15522 (lambda_matrix_row_exchange): Same.
15523 (lambda_vector_mult_const): Same.
15524 (lambda_vector_negate): Same.
15525 (lambda_matrix_row_negate): Same.
15526 (lambda_vector_equal): Same.
15527 (lambda_matrix_right_hermite): Same.
15528 * tree-data-ref.h: Do not include lambda.h.
15529 (lambda_vector): Moved here.
15530 (lambda_matrix): Same.
15531 (dependence_level): Same.
15532 (lambda_transform_legal_p): Removed declaration.
15533 (lambda_collect_parameters): Same.
15534 (lambda_compute_access_matrices): Same.
15535 (lambda_vector_gcd): Same.
15536 (lambda_vector_new): Same.
15537 (lambda_vector_clear): Same.
15538 (lambda_vector_lexico_pos): Same.
15539 (lambda_vector_zerop): Same.
15540 (lambda_matrix_new): Same.
15541 * tree-flow.h (least_common_multiple): Removed declaration.
15542 * tree-parloops.c (lambda_trans_matrix): Moved here.
15543 (LTM_MATRIX): Same.
15544 (LTM_ROWSIZE): Same.
15545 (LTM_COLSIZE): Same.
15546 (LTM_DENOMINATOR): Same.
15547 (lambda_trans_matrix_new): Same.
15548 (lambda_matrix_vector_mult): Same.
15549 (lambda_transform_legal_p): Same.
15550 * tree-pass.h (pass_linear_transform): Removed declaration.
15551 * tree-ssa-loop.c (tree_linear_transform): Removed.
15552 (gate_tree_linear_transform): Removed.
15553 (pass_linear_transform): Removed.
15554 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15555 flag_loop_interchange.
15556
15557 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15558
15559 PR tree-optimization/47265
15560 PR tree-optimization/47443
15561 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15562 if name still has some uses.
15563
15564 2011-01-25 Martin Jambor <mjambor@suse.cz>
15565
15566 PR tree-optimization/47382
15567 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15568 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15569
15570 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15571
15572 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15573 sjlj_except_unwind_info.
15574
15575 2011-01-25 Richard Guenther <rguenther@suse.de>
15576
15577 PR tree-optimization/47426
15578 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15579 visible functions results escape.
15580
15581 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15582
15583 PR target/45701
15584 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15585 (arm_get_frame_offsets): Use it.
15586
15587 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15588 Jakub Jelinek <jakub@redhat.com>
15589
15590 PR tree-optimization/47271
15591 * tree-if-conv.c (bb_postdominates_preds): New.
15592 (if_convertible_bb_p): Call bb_postdominates_preds.
15593 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15594 (predicate_scalar_phi): Call bb_postdominates_preds.
15595
15596 2011-01-25 Nick Clifton <nickc@redhat.com>
15597
15598 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15599 * config/rx/rx.c (rx_function_value): Likewise.
15600 (rx_promote_function_mode): Likewise.
15601 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15602 in order to make it legitimate.
15603 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15604 make sure that the first operand is the same as the result register.
15605 (addsi3_unspec): Delete.
15606 (subdi3): Do not accept immediate operands.
15607 (subdi3_internal): Likewise.
15608
15609 2011-01-25 Jeff Law <law@redhat.com>
15610
15611 PR rtl-optimization/37273
15612 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15613 handle them like argument loads from stack slots. Do not double
15614 count memory for memory constants and argument loads from stack slots.
15615
15616 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15617
15618 PR tree-optimization/47427
15619 PR tree-optimization/47428
15620 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15621 coalesce if the new root var would be TREE_READONLY.
15622
15623 2011-01-25 Richard Guenther <rguenther@suse.de>
15624
15625 PR middle-end/47414
15626 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15627 correct type for TBAA.
15628
15629 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15630
15631 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15632 (close_phi_written_to_memory): Call for_each_index with
15633 dr_indices_valid_in_loop.
15634
15635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15636
15637 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15638 when it is initialized.
15639
15640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15641
15642 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15643 call to graphite_find_data_references_in_stmt.
15644 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15645 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15646 call to graphite_find_data_references_in_stmt.
15647 (analyze_drs_in_stmts): Same.
15648 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15649 in which the scalar analysis of indices is performed.
15650 (create_data_ref): Same. Update call to dr_analyze_indices.
15651 (find_data_references_in_stmt): Update call to create_data_ref.
15652 (graphite_find_data_references_in_stmt): Same.
15653 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15654 declaration.
15655 (create_data_ref): Same.
15656 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15657 call to create_data_ref.
15658
15659 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15660
15661 * graphite-sese-to-poly.c (build_poly_scop): Move
15662 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15663
15664 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15665
15666 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15667 VAR_DECL, PARM_DECL, and RESULT_DECL.
15668
15669 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15670
15671 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15672 in a reduction PBB.
15673 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15674 that have already been marked as PBB_IS_REDUCTION.
15675
15676 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15677
15678 * graphite-scop-detection.c (same_close_phi_node): New.
15679 (remove_duplicate_close_phi): New.
15680 (make_close_phi_nodes_unique): New.
15681 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15682
15683 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15684
15685 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15686 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15687 of both data references to be the same.
15688
15689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15690
15691 * graphite-dependences.c (build_lexicographical_constraint): Remove
15692 the gdim parameter.
15693 (build_lexicographical_constraint): Adjust call to
15694 ppl_powerset_is_empty.
15695 (dependence_polyhedron): Same.
15696 (graphite_legal_transform_dr): Same.
15697 (graphite_carried_dependence_level_k): Same.
15698 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15699 parameter.
15700 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15701
15702 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15703
15704 * graphite-sese-to-poly.c
15705 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15706 (close_phi_written_to_memory): New.
15707 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15708 and unshare_expr.
15709
15710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15711
15712 * doc/install.texi: Update the expected version number of PPL to 0.11.
15713 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15714 #if PPL_VERSION_MINOR < 11.
15715
15716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15717
15718 * graphite-dependences.c: Include graphite-cloog-util.h.
15719 (new_poly_ddr): Inlined into dependence_polyhedron.
15720 (free_poly_ddr): Moved close by new_poly_ddr.
15721 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15722 Early return NULL when ppl_powerset_is_empty returns true.
15723 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15724 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15725 (graphite_legal_transform_dr): Call new_poly_ddr.
15726 (graphite_carried_dependence_level_k): Same.
15727 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15728 (dot_transformed_deps_stmt_1): Removed.
15729 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15730 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15731 (dot_deps_1): Call dot_deps_2.
15732 * Makefile.in (graphite-dependences.o): Add missing dependence on
15733 graphite-cloog-util.h.
15734
15735 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15736
15737 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15738 (build_lexicographical_constraint): Same.
15739 (dependence_polyhedron_1): Same.
15740 (graphite_legal_transform_dr): Same.
15741 (graphite_carried_dependence_level_k): Same.
15742 * graphite-ppl.c (ppl_powerset_is_empty): New.
15743 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15744 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15745
15746 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15747
15748 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15749 the "a followed by b" relation and document it.
15750
15751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15752
15753 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15754 iteration when the bag of constraints is empty.
15755
15756 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15757
15758 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15759
15760 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15761
15762 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15763 nest and two loop depths as parameters.
15764 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15765 lst_perfect_nestify.
15766
15767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15768
15769 * graphite-dependences.c (print_pddr): Call
15770 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15771
15772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15773
15774 * graphite-ppl.c (debug_gmp_value): New.
15775 * graphite-ppl.h (debug_gmp_value): Declared.
15776
15777 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15778
15779 * doc/install.texi: Document availability of cloog-0.16.
15780
15781 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15782
15783 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15784 invalid postdominance info.
15785
15786 2011-01-24 Jan Hubicka <jh@suse.cz>
15787
15788 PR c/21659
15789 * doc/extend.texi (weak pragma): Drop claim that it must
15790 appear before definition.
15791 * varasm.c (merge_weak, declare_weak): Only sanity check
15792 that DECL is not output at a time it is declared weak.
15793
15794 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15795
15796 * machmode.def: Fixed comments.
15797
15798 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15799
15800 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15801
15802 2011-01-24 Paul Koning <ni1d@arrl.net>
15803
15804 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15805 WORDS_BIG_ENDIAN.
15806
15807 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15808
15809 PR target/46519
15810 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15811 (block_info): Add scanned and prev.
15812 (move_or_delete_vzeroupper_2): Return if the basic block
15813 has been scanned and the upper 128bit state is unchanged
15814 from the last scan.
15815 (move_or_delete_vzeroupper_1): Return true if the exit
15816 state is changed.
15817 (move_or_delete_vzeroupper): Visit basic blocks using the
15818 work-list based algorithm based on vt_find_locations in
15819 var-tracking.c.
15820
15821 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15822
15823 2011-01-24 Nick Clifton <nickc@redhat.com>
15824
15825 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15826 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15827 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15828 then define __v850e1__.
15829 * doc/invoke.texi: Document -mv850es.
15830
15831 2011-01-24 Richard Henderson <rth@redhat.com>
15832
15833 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15834 compound unordered comparisons.
15835 * config/rx/rx.c (rx_split_fp_compare): Remove.
15836 * config/rx/rx-protos.h: Update.
15837 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15838 (cbranchsf4): Don't call rx_split_fp_compare.
15839 (*cbranchsf4): Use rx_split_cbranch.
15840 (*cmpsf): Don't accept "i" constraint.
15841 (*conditional_branch): Only valid after reload.
15842 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15843
15844 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15845
15846 PR target/47385
15847 * config/rs6000/altivec.md (vector constant splitters): Add
15848 support for creating vector single precision constants if -mvsx is
15849 used and we would create the constant using Altivec primitives.
15850
15851 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15852 Richard Sandiford <rdsandiford@googlemail.com>
15853
15854 PR rtl-optimization/47166
15855 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15856 mechanism for PRE_MODIFY and POST_MODIFY.
15857 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15858 reloadreg.
15859
15860 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15861
15862 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15863
15864 2011-01-22 Jan Hubicka <jh@suse.cz>
15865
15866 PR lto/47333
15867 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15868
15869 2011-01-22 Jan Hubicka <jh@suse.cz>
15870
15871 PR tree-optimization/43884
15872 PR lto/44334
15873 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15874 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15875
15876 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15877
15878 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15879 * config/s390/s390.c (s390_register_move_cost,
15880 s390_memory_move_cost): New.
15881 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15882
15883 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15884
15885 PR middle-end/47401
15886 * except.c (sjlj_assign_call_site_values): Move setting the
15887 crtl->uses_eh_lsda flag to ...
15888 (sjlj_mark_call_sites): ... here.
15889 (sjlj_emit_function_enter): Support NULL dispatch label.
15890 (sjlj_build_landing_pads): In a function with no landing pads
15891 that still has must-not-throw regions, generate code to register
15892 a personality function with empty LSDA.
15893
15894 2011-01-21 Richard Henderson <rth@redhat.com>
15895
15896 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15897
15898 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15899
15900 * compare-elim.c: New file.
15901 * Makefile.in (OBJS-common): Add it.
15902 (compare-elim.o): New.
15903 * common.opt (fcompare-elim): New.
15904 * opts.c (default_options_table): Add OPT_fcompare_elim.
15905 * tree-pass.h (pass_compare_elim_after_reload): New.
15906 * passes.c (init_optimization_passes): Add it.
15907 * recog.h: Protect against re-inclusion.
15908 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15909 * doc/invoke.texi (-fcompare-elim): Document it.
15910 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15911 * doc/tm.texi: Rebuild.
15912
15913 2011-01-22 Nick Clifton <nickc@redhat.com>
15914
15915 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15916 rx_split_fp_compare.
15917
15918 2011-01-22 Nick Clifton <nickc@redhat.com>
15919
15920 * config/rx/rx.md (UNSPEC_CONST): New.
15921 (deallocate_and_return): Wrap the amount popped off the stack in
15922 an UNSPEC_CONST in order to stop it being rejected by
15923 -mmax-constant-size.
15924 (pop_and_return): Add a "(return)" rtx.
15925 (call): Drop the immediate operand.
15926 (call_internal): Likewise.
15927 (call_value): Likewise.
15928 (call_value_internal): Likewise.
15929 (sibcall_internal): Likewise.
15930 (sibcall_value_internal): Likewise.
15931 (sibcall): Likewise. Generate an explicit call using
15932 sibcall_internal.
15933 (sibcall_value): Likewise.
15934 (mov<>): FAIL if a constant operand is not legitimate.
15935 (addsi3_unpsec): New pattern.
15936
15937 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15938 (ok_for_max_constant): New function.
15939 (gen_safe_add): New function.
15940 (rx_expand_prologue): Use gen_safe_add.
15941 (rx_expand_epilogue): Likewise.
15942 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15943 UNSPEC CONSTs.
15944
15945 2011-01-21 Jeff Law <law@redhat.com>
15946
15947 PR tree-optimization/47053
15948 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15949 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15950 statements are deleted.
15951 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15952 is nonempty, then purge dead edges and cleanup the CFG.
15953
15954 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15955
15956 PR debug/47402
15957 Temporarily revert:
15958 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15959 PR debug/47106
15960 * tree-dfa.c (create_var_ann): Mark variable as used.
15961
15962 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15963
15964 PR middle-end/45566
15965 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15966 notes from other section in hot/cold partitioning even if
15967 last_action is -3. Increment call_site_base.
15968
15969 PR rtl-optimization/47366
15970 * fwprop.c (forward_propagate_into): Return bool. If
15971 any changes are made, -fnon-call-exceptions is used and
15972 REG_EH_REGION note is present, call purge_dead_edges
15973 and return true if it purged anything.
15974 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15975 any EH edges were purged.
15976
15977 2011-01-21 Jeff Law <law@redhat.com>
15978
15979 PR rtl-optimization/41619
15980 * caller-save.c (setup_save_areas): Break out code to determine
15981 which hard regs are live across calls by examining the reload chains
15982 so that it is always used.
15983 Eliminate code which checked REG_N_CALLS_CROSSED.
15984
15985 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15986
15987 PR tree-optimization/47355
15988 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15989 NOP has non-debug uses beyond PHIs in new_bb.
15990
15991 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15992
15993 PR debug/47106
15994 * cfgexpand.c (account_used_vars_for_block): Only account vars
15995 that are annotated as used.
15996 (estimated_stack_frame_size): Don't set TREE_USED.
15997 * tree-dfa.c (create_var_ann): Mark variable as used.
15998
15999 2011-01-21 Richard Guenther <rguenther@suse.de>
16000
16001 PR middle-end/47395
16002 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16003
16004 2011-01-21 Richard Guenther <rguenther@suse.de>
16005
16006 PR tree-optimization/47365
16007 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16008 (vn_reference_lookup_pieces): Adjust.
16009 (vn_reference_lookup): Likewise.
16010 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16011 (vn_reference_lookup_3): Only look through kills if in
16012 VN_WALKREWRITE mode.
16013 (vn_reference_lookup_pieces): Adjust.
16014 (vn_reference_lookup): Likewise.
16015 (visit_reference_op_load): Likewise.
16016 (visit_reference_op_store): Likewise.
16017 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16018 (compute_avail): Likewise.
16019 (eliminate): Likewise.
16020
16021 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16022
16023 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16024 DECL_IGNORED_P non-reg vars if they are used.
16025
16026 PR tree-optimization/47391
16027 * varpool.c (const_value_known_p): Return false if
16028 decl is volatile.
16029
16030 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16031
16032 PR bootstrap/47215
16033 * config/i386/i386.c (ix86_local_alignment): Handle
16034 case for va_list_type_node is nil.
16035 (ix86_canonical_va_list_type): Likewise.
16036
16037 2011-01-21 Alan Modra <amodra@gmail.com>
16038
16039 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16040 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16041
16042 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16043
16044 * config/arm/arm.md (define_attr type): Rename f_load
16045 and f_store to f_fpa_load and f_fpa_store. Update.
16046 (write_conflict): Deal with rename fallout.
16047 (*push_fp_multi): Likewise.
16048 * config/arm/fpa.md (f_load): Use f_fpa_load.
16049 (f_store): Use f_fpa_store.
16050 (*movsf_fpa): Likewise.
16051 (*movdf_fpa): Likewise.
16052 (*movxf_fpa): Likewise.
16053 (*thumb2_movsf_fpa): Likewise.
16054 (*thumb2_movdf_fpa): Likewise.
16055 (*thumb2_movxf_fpa): Likewise.
16056 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16057 f_loadd and f_stored.
16058 (*thumb2_movdi_vfp): Likewise.
16059 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16060 (*thumb2_movsi_vfp): Likewise.
16061 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16062 Use f_loads instead of f_load.
16063 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16064
16065 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16066
16067 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16068 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16069 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16070 (xtensa_mode_dependent_address_p): New function.
16071 (constantpool_address_p): Make static. Change return type to bool.
16072 Change argument type to const_rtx. Use CONST_INT_P predicate.
16073
16074 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16075
16076 PR debug/46583
16077 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16078
16079 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16080
16081 PR debug/47283
16082 * cfgexpand.c (expand_debug_expr): Instead of generating
16083 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16084 etc. handling.
16085
16086 2011-01-20 Richard Guenther <rguenther@suse.de>
16087
16088 PR middle-end/47370
16089 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16090 the pointer operand of MEM_REFs.
16091
16092 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16093
16094 PR tree-optimization/46130
16095 * ipa-split.c (consider_split): If return_bb contains non-virtual
16096 PHIs other than for retval or if split_function would not adjust it,
16097 refuse to split.
16098
16099 2011-01-20 Richard Guenther <rguenther@suse.de>
16100
16101 PR tree-optimization/47167
16102 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16103 Revert previous change, only avoid enumeral type changes.
16104
16105 2011-01-19 Mike Stump <mikestump@comcast.net>
16106
16107 * doc/tm.texi.in (BRANCH_COST): Englishify.
16108 * doc/tm.texi (BRANCH_COST): Likewise.
16109
16110 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16111
16112 PR c++/47291
16113 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16114 (gen_scheduled_generic_parms_dies): New functions.
16115 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16116 generation for the end of CU compilation.
16117 (dwarf2out_finish): Generate template parameters DIEs here.
16118
16119 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16120
16121 PR debug/46240
16122 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16123 debug bind stmt on merge edges.
16124
16125 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16126
16127 PR debug/47079
16128 PR debug/46724
16129 * function.c (instantiate_expr): Instantiate incoming rtl of
16130 implicit arguments, and recurse on VALUE_EXPRs.
16131 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16132 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16133
16134 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16135
16136 * c-parser.c (c_parser_for_statement): Initialize
16137 collection_expression.
16138
16139 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16140
16141 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16142
16143 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16144
16145 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16146 (LINK_SHLIB_SPEC): Don't use %(link_path).
16147 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16148
16149 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16150
16151 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16152 (NO_SHARED_LIB_SUPPORT): Remove.
16153 (LINK_SHLIB_SPEC): Remove one conditional definition.
16154
16155 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16156
16157 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16158 %{call_shared}.
16159 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16160 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16161 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16162 %{call_shared} and conditionals on these options not being passed.
16163 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16164 %{call_shared}.
16165
16166 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16167
16168 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16169 simplify.
16170
16171 * ipa-split.c: Spelling fixes.
16172
16173 2011-01-19 Richard Henderson <rth@redhat.com>
16174
16175 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16176 (*mulsi3): Likewise.
16177
16178 * longlong.h [__mn10300__] (count_leading_zeros): New.
16179 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16180 [__mn10300__] (add_ssaaaa, subddmmss): New.
16181 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16182 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16183
16184 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16185
16186 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16187
16188 2011-01-19 Richard Henderson <rth@redhat.com>
16189
16190 * config/mn10300/mn10300.md (addsi3_flags): New.
16191 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16192 (subsi3_flags, subc_internal, subdi3): New.
16193 (subdi3_internal, *subdi3_degenerate): New.
16194 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16195
16196 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16197 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16198 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16199 * config/mn10300/mn10300-protos.h: Update.
16200 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16201 (return_ret): Likewise. Rename from return_internal_regs.
16202 (return_internal): Remove.
16203
16204 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16205 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16206 (mn10300_legitimate_constant_p): Likewise.
16207 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16208 (mn10300_frame_size): New.
16209 (mn10300_expand_prologue): Use it.
16210 (mn10300_expand_epilogue): Likewise.
16211 (mn10300_initial_offset): Likewise.
16212 * config/mn10300/mn10300-protos.h: Update.
16213 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16214 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16215 (prologue, epilogue, return_internal): Tidy output code.
16216 (mn10300_store_multiple_operation, return): Likewise.
16217 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16218 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16219 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16220 (load_pic, am33_load_pic): New.
16221 (mn10300_load_pic0, mn10300_load_pic1): New.
16222
16223 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16224 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16225 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16226 (cc_flags_for_mode, cc_flags_for_code): New.
16227 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16228 overflow flag is not valid. Validate that the flags we need
16229 for the comparison are valid.
16230 (mn10300_output_cmp): Remove.
16231 (mn10300_output_add): New.
16232 (mn10300_select_cc_mode): Use cc_flags_for_code.
16233 (mn10300_split_cbranch): New.
16234 (mn10300_match_ccmode): New.
16235 (mn10300_split_and_operand_count): New.
16236 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16237 to the function.
16238 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16239 (addsi3): ... here. Use mn10300_output_add.
16240 (*addsi3_flags): New.
16241 (*am33_subsi3, *mn10300_subsi3): Merge...
16242 (subsi3): ... here. Use attribute isa.
16243 (*subsi3_flags): New.
16244 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16245 when possible.
16246 (*am33_andsi3, *mn10300_andsi3): Merge...
16247 (andsi3): ... here.
16248 (*andsi3_flags): New.
16249 (andsi3 splitters): New.
16250 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16251 (iorsi3): ... here.
16252 (*iorsi3_flags): New.
16253 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16254 (xorsi3): ... here.
16255 (*xorsi3_flags): New.
16256 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16257 (one_cmplsi2): ... here.
16258 (*one_cmplsi2_flags): New.
16259 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16260 instead of "dax" in constraints. Use mn10300_split_cbranch.
16261 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16262 use matching constraints to eliminate a self-comparison.
16263 (*integer_conditional_branch): Rename from integer_conditional_branch.
16264 Use int_mode_flags to match CC_REG.
16265 (*cbranchsi4_btst, *btstsi): New.
16266 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16267 mn10300_split_cbranch.
16268 (*am33_cmpsf): Rename from am33_cmpsf.
16269 (*float_conditional_branch): Rename from float_conditional_branch.
16270 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16271 (zero_extendqisi2): ... here.
16272 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16273 (zero_extendhisi2): ... here.
16274 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16275 (extendqisi2): ... here.
16276 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16277 (extendhisi2): ... here.
16278 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16279 (ashlsi3): ... here.
16280 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16281 (lshrsi3): ... here.
16282 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16283 (ashrsi3): ... here.
16284 (consecutive add peephole): Remove.
16285 * config/mn10300/predicates.md (label_ref_operand): New.
16286 (int_mode_flags): New.
16287 (CCZN_comparison_operator): New.
16288
16289 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16290 (throughput_42_latency_43): New reservation.
16291 (mulsidi3, umulsidi3): New expanders.
16292 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16293 the MDR register to allocation; separately allocate the low and
16294 high parts of the DImode result.
16295 (umulsidi3_internal): Similarly.
16296 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16297 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16298 (udivsi3, umodsi3): Remove.
16299 (udivmodsi4, divmodsi4): New expanders.
16300 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16301 (*divmodsi4): Simiarly.
16302 (ext_internal): New.
16303
16304 * config/mn10300/constraints.md ("z"): New constraint.
16305 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16306 (FIXED_REGISTERS): Don't fix MDR.
16307 (CALL_USED_REGSITERS): Reformat nicely.
16308 (REG_ALLOC_ORDER): Add MDR.
16309 (enum regclass): Add MDR_REGS.
16310 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16311 (IRA_COVER_CLASSES): Add MDR_REGS.
16312 (REGNO_REG_CLASS): Handle MDR_REG.
16313 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16314 (mn10300_register_move_cost): Likewise.
16315 * config/mn10300/mn10300.md (MDR_REG): New.
16316 (*movsi_internal): Handle moves to/from MDR_REGS.
16317
16318 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16319 POST_MODIFY.
16320 (mn10300_secondary_reload): Tidy combination reload classes.
16321 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16322 addresses for AM33. Allow symbolic offsets for reg+imm.
16323 (mn10300_regno_in_class_p): New.
16324 (mn10300_legitimize_reload_address): New.
16325 * config/mn10300/mn10300.h (enum reg_class): Remove
16326 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16327 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16328 SP_OR_GENERAL_REGS.
16329 (REG_CLASS_NAMES): Update to match.
16330 (REG_CLASS_CONTENTS): Likewise.
16331 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16332 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16333 (REGNO_IN_RANGE_P): Remove.
16334 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16335 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16336 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16337 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16338 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16339 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16340 (REGNO_GENERAL_P): New.
16341 (HAVE_POST_MODIFY_DISP): New.
16342 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16343 (LEGITIMIZE_RELOAD_ADDRESS): New.
16344 * config/mn10300/mn10300-protos.h: Update.
16345
16346 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16347 DATA_REGS for AM33 stack-pointer destination.
16348 (mn10300_preferred_output_reload_class): Likewise.
16349 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16350 into a form appropriate for ...
16351 (TARGET_SECONDARY_RELOAD): New.
16352 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16353 * config/mn10300/mn10300-protos.h: Update.
16354 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16355 reload_insi; use the "A" constraint for the scratch; handle AM33
16356 moves of sp to non-address registers.
16357
16358 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16359 (*movqi_internal): ... here.
16360 (*am33_movhi, *mn10300_movhi): Merge into...
16361 (*movhi_internal): ... here.
16362 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16363 as the source/destination of moves from/to SP.
16364 (movsf): Only allow for AM33-2.
16365 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16366 any integer constant constraint. Only allow for AM33-2. Tidy
16367 all of the alternative outputs.
16368 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16369 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16370 for MN103.
16371 (udivsi3, umodsi3): New patterns for MN103 only.
16372
16373 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16374
16375 * doc/tm.texi.in: Spell out that a lack of register class unions
16376 can lead to ICEs.
16377 * doc/tm.texi: Regenerate.
16378
16379 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16380
16381 PR rtl-optimization/47337
16382 * dce.c (check_argument_store): New function.
16383 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16384
16385 PR tree-optimization/47290
16386 * tree-eh.c (infinite_empty_loop_p): New function.
16387 (cleanup_empty_eh): Use it.
16388
16389 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16390
16391 PR target/46997
16392 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16393 (a64_expand_widen_sum): Ditto.
16394 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16395 (vec_extract_evenodd_help): Ditto.
16396 (vec_extract_evenv4hi): Ditto.
16397 (vec_extract_oddv4hi): Ditto.
16398 (vec_extract_evenv2si): Ditto.
16399 (vec_extract_oddv2si): Ditto.
16400 (vec_extract_evenv2sf): Ditto.
16401 (vec_extract_oddv2sf): Ditto.
16402 (vec_pack_trunc_v4hi: Ditto.
16403 (vec_pack_trunc_v2si): Ditto.
16404 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16405 (vec_interleave_highv8qi): Ditto.
16406 (mix1_r): Ditto.
16407 (vec_extract_oddv8qi): Ditto.
16408 (vec_interleave_lowv4hi): Ditto.
16409 (vec_interleave_highv4hi): Ditto.
16410 (vec_interleave_lowv2si): Ditto.
16411 (vec_interleave_highv2si): Ditto.
16412
16413 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16414
16415 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16416 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16417 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16418 (pa_c_mode_for_suffix): New.
16419 (TARGET_EXPAND_BUILTIN): Define.
16420 (TARGET_C_MODE_FOR_SUFFIX): Define.
16421 (pa_builtins): Define.
16422 (pa_init_builtins): Register __float128 type and init new support
16423 builtins.
16424 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16425 * config/pa/quadlib.c (_U_Qfcopysign): New.
16426
16427 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16428
16429 PR middle-end/46894
16430 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16431 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16432 are defined.
16433
16434 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16435
16436 PR tree-optimization/47179
16437 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16438 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16439
16440 2011-01-18 Richard Guenther <rguenther@suse.de>
16441
16442 PR rtl-optimization/47216
16443 * emit-rtl.c: Include tree-flow.h.
16444 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16445 of replicating it with different semantics.
16446 * Makefile.in (emit-rtl.o): Adjust.
16447
16448 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16449
16450 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16451 (cortex_a9_dp): Handle neon types correctly.
16452
16453 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16454
16455 PR rtl-optimization/47299
16456 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16457 subtarget. Use normal multiplication if both operands are constants.
16458 * expmed.c (expand_widening_mult): Don't try to optimize constant
16459 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16460 before using it.
16461
16462 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16463
16464 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16465 spacing after 'e.g.', typos, comma, hyphenation.
16466
16467 2011-01-17 Richard Henderson <rth@redhat.com>
16468
16469 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16470 (rx_restricted_mem_operand): New.
16471 (rx_shift_operand): Use register_operand.
16472 (rx_source_operand, rx_compare_operand): Likewise.
16473 * config/rx/rx.md (addsi3_flags): New expander.
16474 (adddi3): Rewrite as expander.
16475 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16476 (subsi3_flags): New expander.
16477 (subdi3): Rewrite as expander.
16478 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16479
16480 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16481 (rx_init_builtins): Remove sat builtin.
16482 (rx_expand_builtin): Likewise.
16483 * config/rx/rx.md (ssaddsi3): New.
16484 (*sat): Rename from sat. Represent the CC_REG input.
16485
16486 * config/rx/predicates.md (rshift_operator): New.
16487 * config/rx/rx.c (rx_expand_insv): Remove.
16488 * config/rx/rx-protos.h: Update.
16489 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16490 operand to the canonical position.
16491 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16492 (*bitclr, *bitclr_in_memory): Similarly.
16493 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16494 (insv): Retain the zero_extract in the expansion.
16495
16496 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16497 (bswaphi2, bitinvert, revw): Likewise.
16498
16499 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16500 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16501 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16502 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16503 (bitset, bitset_in_memory): Likewise.
16504 (bitinvert, bitinvert_in_memory): Likewise.
16505 (bitclr, bitclr_in_memory): Likewise.
16506 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16507 (rx_strend, rx_cmpstrn): Likewise.
16508 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16509 (bitop peep2 patterns): Remove.
16510
16511 * config/rx/rx.c (rx_match_ccmode): New.
16512 * config/rx/rx-protos.h: Update.
16513 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16514 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16515 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16516 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16517 (fix_truncsfsi2, floatsisf2): Likewise.
16518 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16519 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16520 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16521 (*subsi3_flags, *xorsi3_flags): New.
16522
16523 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16524
16525 * config/rx/rx.c (rx_print_operand): Remove workaround for
16526 unsplit comparison operations.
16527
16528 * config/rx/rx.md (movsicc): Split after reload.
16529 (*movsicc): Merge *movsieq and *movsine via match_operator.
16530 (*stcc): New pattern.
16531
16532 * config/rx/rx.c (rx_float_compare_mode): Remove.
16533 * config/rx/rx.h (rx_float_compare_mode): Remove.
16534 * config/rx/rx.md (cstoresi4): Split after reload.
16535 (*sccc): New pattern.
16536
16537 * config/rx/predicates.md (label_ref_operand): New.
16538 (rx_z_comparison_operator): New.
16539 (rx_zs_comparison_operator): New.
16540 (rx_fp_comparison_operator): New.
16541 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16542 Validate that the flags are set properly for the comparison.
16543 (rx_gen_cond_branch_template): Remove.
16544 (rx_cc_modes_compatible): Remove.
16545 (mode_from_flags): New.
16546 (flags_from_code): Rename from flags_needed_for_conditional.
16547 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16548 (rx_select_cc_mode): Likewise.
16549 (rx_split_fp_compare): New.
16550 (rx_split_cbranch): New.
16551 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16552 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16553 (*cbranchsf4): Similarly.
16554 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16555 match_operator and rx_split_cbranch.
16556 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16557 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16558 (*cmpsi): Rename from cmpsi.
16559 (*tstsi): Rename from tstsi.
16560 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16561 (*conditional_branch): Rename from conditional_branch.
16562 (*reveresed_conditional_branch): Remove.
16563 (b<code>): Remove expander.
16564 * config/rx/rx-protos.h: Update.
16565
16566 * config/rx/rx.c (rx_compare_redundant): Remove.
16567 * config/rx/rx.md (cmpsi): Don't use it.
16568 * config/rx/rx-protos.h: Update.
16569
16570 * config/rx/rx-modes.def (CC_F): New mode.
16571 * config/rx/rx.c (rx_select_cc_mode): New.
16572 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16573 * config/rx/rx-protos.h: Update.
16574
16575 2011-01-17 Richard Henderson <rth@redhat.com>
16576
16577 * except.c (dump_eh_tree): Fix stray ; after for statement.
16578
16579 2011-01-17 Richard Guenther <rguenther@suse.de>
16580
16581 PR tree-optimization/47313
16582 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16583 handling before copying the body. Properly deal with
16584 by-reference result in SSA form.
16585
16586 2011-01-17 Ian Lance Taylor <iant@google.com>
16587
16588 PR target/47219
16589 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16590 (struct_value_alias_set): Don't define.
16591 (sparc_option_override): Don't set sparc_sr_alias_set and
16592 struct_value_alias_set.
16593 (save_or_restore_regs): Use gen_frame_mem rather than calling
16594 set_mem_alias_set.
16595 (sparc_struct_value_rtx): Likewise.
16596
16597 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16598
16599 PR target/47318
16600 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16601 (_mm_maskstore_pd): Likewise.
16602 (_mm_maskload_ps): Likewise.
16603 (_mm_maskstore_ps): Likewise.
16604 (_mm256_maskload_pd): Change mask to __m256i.
16605 (_mm256_maskstore_pd): Likewise.
16606 (_mm256_maskload_ps): Likewise.
16607 (_mm256_maskstore_ps): Likewise.
16608
16609 * config/i386/i386-builtin-types.def: Updated.
16610 (ix86_expand_special_args_builtin): Likewise.
16611
16612 * config/i386/i386.c (bdesc_special_args): Update
16613 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16614 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16615 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16616 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16617
16618 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16619 Use <avxpermvecmode> on mask register.
16620 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16621
16622 2011-01-17 Olivier Hainque <hainque@adacore.com>
16623 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16624 Eric Botcazou <ebotcazou@adacore.com>
16625
16626 PR target/46655
16627 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16628 if <= USHRT_MAX in 32-bit mode.
16629
16630 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16631
16632 * doc/install.texi (Configuration, Specific): Wrap long
16633 lines in examples. Allow line wrapping in long options
16634 and URLs where beneficial for PDF output.
16635
16636 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16637
16638 * config/mips/mips.c (mips_classify_symbol): Don't return
16639 SYMBOL_PC_RELATIVE for nonlocal labels.
16640
16641 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16642
16643 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16644
16645 2011-01-15 Jan Hubicka <jh@suse.cz>
16646
16647 PR tree-optimization/47276
16648 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16649 declarations as needed.
16650
16651 2011-01-15 Martin Jambor <mjambor@suse.cz>
16652
16653 * common.opt (fdevirtualize): New flag.
16654 * doc/invoke.texi (Option Summary): Document it.
16655 * opts.c (default_options_table): Add devirtualize flag.
16656 * ipa-prop.c (detect_type_change): Return immediately if
16657 devirtualize flag is not set.
16658 (detect_type_change_ssa): Likewise.
16659 (compute_known_type_jump_func): Likewise.
16660 (ipa_analyze_virtual_call_uses): Likewise.
16661
16662 2011-01-14 Martin Jambor <mjambor@suse.cz>
16663
16664 PR tree-optimization/45934
16665 PR tree-optimization/46302
16666 * ipa-prop.c (type_change_info): New type.
16667 (stmt_may_be_vtbl_ptr_store): New function.
16668 (check_stmt_for_type_change): Likewise.
16669 (detect_type_change): Likewise.
16670 (detect_type_change_ssa): Likewise.
16671 (compute_complex_assign_jump_func): Check for dynamic type change.
16672 (compute_complex_ancestor_jump_func): Likewise.
16673 (compute_known_type_jump_func): Likewise.
16674 (compute_scalar_jump_functions): Likewise.
16675 (ipa_analyze_virtual_call_uses): Likewise.
16676 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16677
16678 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16679
16680 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16681 * config/i386/i386.opt (msse5): New Alias.
16682
16683 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16684
16685 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16686 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16687 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16688 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16689
16690 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16691
16692 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16693 -mcpu options.
16694 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16695 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16696 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16697 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16698 Likewise.
16699 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16700
16701 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16702
16703 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16704
16705 2011-01-14 Mike Stump <mikestump@comcast.net>
16706
16707 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16708 * config/fr30/fr30.md: Likweise
16709 (movsi_push): Likewise.
16710 (movsi_pop): Likewise.
16711 (enter_func): Likewise.
16712 * config/moxie/moxie.md (movsi_push): Likewise.
16713 (movsi_pop): Likewise.
16714
16715 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16716
16717 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16718 %{no_archive} %{exact_version}.
16719 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16720 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16721 %{no_archive} %{exact_version}.
16722 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16723 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16724 * config/mips/vxworks.h: Likewise.
16725
16726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16727
16728 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16729
16730 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16731
16732 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16733 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16734
16735 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16736
16737 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16738 -nodefaultlib.
16739
16740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16741
16742 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16743 for mcpu not cpu.
16744 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16745 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16746 not cpu.
16747 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16748 Don't handle -shlib.
16749
16750 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16751
16752 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16753 (CC1_SPEC): Don't handle -profile.
16754
16755 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16756
16757 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16758 * config/mips/mips.h (CC1_SPEC): Likewise.
16759
16760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16761
16762 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16763 * config/mips/mips.h (CC1_SPEC): Likewise.
16764
16765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16766
16767 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16768 * config/m32r/linux.h (LINK_SPEC): Likewise.
16769 * config/mips/linux.h (LINK_SPEC): Likewise.
16770 * config/mips/linux64.h (LINK_SPEC): Likewise.
16771 * config/sparc/linux.h (LINK_SPEC): Likewise.
16772 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16773 LINK_SPEC): Likewise.
16774 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16775
16776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16777
16778 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16779 %{version:-v}.
16780 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16781
16782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16783
16784 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16785 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16786
16787 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16788
16789 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16790
16791 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16792
16793 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16794 supports -Bstatic/-Bdynamic.
16795 * configure: Regenerate.
16796
16797 2011-01-14 Jan Hubicka <jh@suse.cz>
16798 Jack Howarth <howarth@bromo.med.uc.edu>
16799
16800 PR target/46037
16801 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16802 when checking debug_info_level. Test write_symbols instead of
16803 debug_hooks->var_location when setting flag_var_tracking_uninit.
16804
16805 2011-01-14 Richard Guenther <rguenther@suse.de>
16806
16807 PR tree-optimization/47179
16808 * target.def (ref_may_alias_errno): New target hook.
16809 * targhooks.h (default_ref_may_alias_errno): Declare.
16810 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16811 (default_ref_may_alias_errno): New function.
16812 * target.h (struct ao_ref_s): Declare.
16813 * tree-ssa-alias.c: Include target.h.
16814 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16815 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16816 (targhooks.o): Likewise.
16817 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16818 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16819
16820 2011-01-14 Richard Guenther <rguenther@suse.de>
16821
16822 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16823
16824 2011-01-14 Richard Guenther <rguenther@suse.de>
16825
16826 PR tree-optimization/47280
16827 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16828 return CFG changes.
16829 (tree_ssa_forward_propagate_single_use_vars): Deal with
16830 CFG changes from associate_plusminus.
16831
16832 2011-01-14 Richard Guenther <rguenther@suse.de>
16833
16834 PR middle-end/47281
16835 Revert
16836 2011-01-11 Richard Guenther <rguenther@suse.de>
16837
16838 PR tree-optimization/46076
16839 * tree-ssa.c (useless_type_conversion_p): Conversions from
16840 unprototyped to empty argument list function types are useless.
16841
16842 2011-01-14 Richard Guenther <rguenther@suse.de>
16843
16844 PR tree-optimization/47286
16845 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16846
16847 2011-01-14 Martin Jambor <mjambor@suse.cz>
16848
16849 PR middle-end/46823
16850 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16851
16852 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16853
16854 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16855 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16856 * config/xtensa/xtensa.c (xtensa_libcall_value,
16857 xtensa_function_value_regno_p): New functions.
16858 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16859
16860 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16861
16862 PR c++/47213
16863 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16864 PE specific hook.
16865 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16866 New function prototype.
16867 * config/i386/winnt.c (i386_pe_assemble_visibility):
16868 Warn only if attribute was specified by user.
16869
16870 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16871
16872 PR target/47251
16873 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16874 floating point.
16875 (floatunsdidf2_fcfidu): Ditto.
16876
16877 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16878
16879 * config/s390/s390.c (print_operand_address): Replace 'error' with
16880 'output_operand_lossage'.
16881 (print_operand): Likewise.
16882
16883 2011-01-13 Jeff Law <law@redhat.com>
16884
16885 PR rtl-optimization/39077
16886 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16887 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16888 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16889 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16890 * gcse.c (prune_insertions_deletions): New function.
16891 (compute_pre_data): Use it.
16892
16893 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16894
16895 PR debug/PR46973
16896 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16897 static function.
16898 (prune_unused_types_mark): Use it.
16899
16900 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16901
16902 PR rtl-optimization/45352
16903 * sel-sched.c: Update copyright years.
16904 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16905 in the advancing loop when we have issued issue_rate insns.
16906
16907 2011-01-12 Richard Henderson <rth@redhat.com>
16908
16909 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16910 (TARGET_MD_ASM_CLOBBERS): New.
16911
16912 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16913 (TARGET_DELEGITIMIZE_ADDRESS): New.
16914
16915 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16916 (clzsi2, *bsch): New patterns.
16917
16918 * config/mn10300/mn10300.md (INT): New mode iterator.
16919 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16920
16921 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16922 flag_split_wide_types.
16923
16924 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16925 (mn10300_trampoline_init): Rewrite without a template, an immediate
16926 load and a direct branch.
16927 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16928
16929 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16930
16931 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16932 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16933 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16934 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16935
16936 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16937
16938 PR debug/47209
16939 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16940 of type.
16941
16942 2011-01-12 Jan Hubicka <jh@suse.cz>
16943
16944 PR driver/47244
16945 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16946 (PLUGIN_COND_CLOSE): New macro.
16947 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16948
16949 2011-01-12 Richard Guenther <rguenther@suse.de>
16950
16951 PR lto/47259
16952 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16953 register variables in a MEM_REF.
16954
16955 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16956
16957 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16958 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16959 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16960 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16961 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16962 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16963 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16964 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16965 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16966 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16967 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16968 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16969 * config/gnu-user.h: New. Copied from linux.h.
16970 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16971 GNU_USER_TARGET_STARTFILE_SPEC.
16972 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16973 GNU_USER_TARGET_ENDFILE_SPEC.
16974 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16975 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16976 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16977 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16978 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16979 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16980 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16981 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16982 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16983 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16984 * config/arm/linux-eabi.h (CC1_SPEC): Use
16985 GNU_USER_TARGET_CC1_SPEC.
16986 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16987 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16988 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16989 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16990 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16991 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16992 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16993 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16994
16995 2011-01-12 Richard Guenther <rguenther@suse.de>
16996
16997 PR other/46946
16998 * doc/invoke.texi (ffast-math): Document it is turned on
16999 with -Ofast.
17000
17001 2011-01-12 Jan Hubicka <jh@suse.cz>
17002
17003 PR tree-optimization/47233
17004 * opts.c (common_handle_option): Disable ipa-reference with profile
17005 feedback.
17006
17007 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17008
17009 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17010 error message.
17011
17012 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17013
17014 * c-parser.c (c_lex_one_token): Updated and reindented some
17015 comments. No changes in code.
17016
17017 2011-01-11 Ian Lance Taylor <iant@google.com>
17018
17019 * godump.c (go_output_var): Don't output the variable if there is
17020 already a type with the same name.
17021
17022 2011-01-11 Ian Lance Taylor <iant@google.com>
17023
17024 * godump.c (go_format_type): Don't generate float80.
17025
17026 2011-01-11 Richard Henderson <rth@redhat.com>
17027
17028 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17029 declaration. Rewrite for both speed and size.
17030 (mn10300_address_cost_1): Remove.
17031 (mn10300_register_move_cost): New.
17032 (mn10300_memory_move_cost): New.
17033 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17034 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17035 extensions, shifts, BSWAP, CLZ.
17036 (mn10300_wide_const_load_uses_clr): Remove.
17037 (TARGET_REGISTER_MOVE_COST): New.
17038 (TARGET_MEMORY_MOVE_COST): New.
17039 * config/mn10300/mn10300-protos.h: Update.
17040 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17041
17042 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17043 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17044 * config/mn10300/mn10300-protos.h: Update.
17045 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17046 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17047 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17048 (*test_int_bitfield, *test_byte_bitfield): Remove.
17049 (*bit_test, *subreg_bit_test): Remove.
17050 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17051
17052 * config/mn10300/constraints.md ("c"): Rename from "A".
17053 ("A", "D"): New constraint letters.
17054 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17055 (fmssf4, fnmasf4, fnmssf4): Likewise.
17056
17057 * config/mn10300/mn10300.md (isa): New attribute.
17058 (enabled): New attribute.
17059
17060 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17061 (abssf2, negsf2): Define only for hardware fp.
17062 (sqrtsf2): Reformat.
17063 (addsf3, subsf3, mulsf3): Merge expander and insn.
17064
17065 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17066 (DEBUGGER_AUTO_OFFSET): Remove.
17067 (DEBUGGER_ARG_OFFSET): Remove.
17068
17069 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17070 Emit register stores with the same offsets as the hardware.
17071 (mn10300_store_multiple_operation): Don't check that the register
17072 save offsets are monotonic.
17073 * config/mn10300/mn10300-protos.h: Update.
17074
17075 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17076
17077 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17078 in terms of the value on the stack, not the MDR register.
17079
17080 2011-01-11 Jan Hubicka <jh@suse.cz>
17081
17082 PR lto/45721
17083 PR lto/45375
17084 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17085 (symbol_alias_set_destroy, symbol_alias_set_contains,
17086 propagate_aliases_backward): Declare.
17087 * lto-streamer-out.c (struct sets): New sturcture.
17088 (trivally_defined_alias): New function.
17089 (output_alias_pair_p): Rewrite.
17090 (output_unreferenced_globals): Fix output of alias pairs.
17091 (produce_symtab): Likewise.
17092 * ipa.c (function_and_variable_visibility): Set weak alias destination
17093 as needed in lto.
17094 * varasm.c (symbol_alias_set_t): Remove.
17095 (symbol_alias_set_destroy): Export.
17096 (propagate_aliases_forward, propagate_aliases_backward): New functions
17097 based on ...
17098 (compute_visible_aliases): ... this one; remove.
17099 (trivially_visible_alias): New
17100 (trivially_defined_alias): New.
17101 (remove_unreachable_alias_pairs): Rewrite.
17102 (finish_aliases_1): Reorganize code checking if alias is defined.
17103 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17104 in LTO mode.
17105
17106 2011-01-11 Richard Guenther <rguenther@suse.de>
17107
17108 PR tree-optimization/46076
17109 * tree-ssa.c (useless_type_conversion_p): Conversions from
17110 unprototyped to empty argument list function types are useless.
17111
17112 2011-01-11 Richard Guenther <rguenther@suse.de>
17113
17114 PR middle-end/45235
17115 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17116 volatile MEMs as MEM_READONLY_P.
17117
17118 2011-01-11 Richard Guenther <rguenther@suse.de>
17119
17120 PR tree-optimization/47239
17121 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17122
17123 2011-01-11 Jeff Law <law@redhat.com>
17124
17125 PR tree-optimization/47086
17126 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17127 IVs from statements that might throw.
17128
17129 2011-01-10 Jan Hubicka <jh@suse.cz>
17130
17131 PR lto/45375
17132 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17133
17134 2011-01-10 Jan Hubicka <jh@suse.cz>
17135
17136 PR lto/45375
17137 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17138 when correcting profile.
17139
17140 2011-01-10 Jan Hubicka <jh@suse.cz>
17141
17142 PR lto/46083
17143 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17144 DECL_FINI_PRIORITY.
17145 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17146 Restore DECL_FINI_PRIORITY.
17147
17148 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17149
17150 * doc/gimple.texi: Fix quoting of multi-word return values in
17151 @deftypefn statements. Ensure presence of return value. Wrap
17152 overlong @deftypefn lines.
17153 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17154 descriptions of removed functions.
17155 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17156 of multi-word return value in @deftypefn statement.
17157
17158 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17159
17160 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17161 (Conditional Expressions, Logical Operators)
17162 (Statement and operand traversals): Do not indent smallexample
17163 code. Fix duplicate function argument in example.
17164
17165 2011-01-10 Jeff Law <law@redhat.com>
17166
17167 PR tree-optimization/47141
17168 * ipa-split.c (split_function): Handle case where we are
17169 returning a value and the return block has a virtual operand phi.
17170
17171 2011-01-10 Jan Hubicka <jh@suse.cz>
17172
17173 PR tree-optimization/47234
17174 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17175 (pass_feedback_split_functions): Declare.
17176 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17177 tree-profile.
17178 * ipa-split.c (gate_split_functions): Update comments; disable
17179 split-functions for profile_arc_flag and branch_probabilities.
17180 (gate_feedback_split_functions): New function.
17181 (execute_feedback_split_functions): New function.
17182 (pass_feedback_split_functions): New global var.
17183
17184 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17185
17186 PR lto/46760
17187 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17188 calling gimple_call_set_cannot_inline.
17189
17190 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17191
17192 * config/darwin-sections.def: Remove unused section.
17193
17194 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17195
17196 PR c++/47218
17197 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17198
17199 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17200
17201 PR objc/47232
17202 * c-parser.c (c_parser_declaration_or_fndef): Improved
17203 error message.
17204
17205 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17206
17207 * config/i386/winnt.c (i386_pe_start_function): Make sure
17208 to switch back to function's section.
17209
17210 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17211
17212 PR gcc/46902
17213 PR testsuite/46912
17214 * plugin.c: Move include of dlfcn.h from here...
17215 * system.h: ... to here.
17216
17217 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17218
17219 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17220 file name.
17221 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17222 two extra empty pages in PDF output.
17223
17224 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17225
17226 PR objc/47078
17227 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17228 for error recovery purposes behave as if it was not specified so
17229 that the default type is usd.
17230
17231 2011-01-07 Jan Hubicka <jh@suse.cz>
17232
17233 PR tree-optmization/46469
17234 * ipa.c (function_and_variable_visibility): Clear needed flags on
17235 nodes with external decls; handle weakrefs merging correctly.
17236
17237 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17238
17239 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17240 not false.
17241
17242 2011-01-07 Jan Hubicka <jh@suse.cz>
17243
17244 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17245 and no longer claim that gold is required for linker plugin.
17246 * configure: Regenerate.
17247 * gcc.c (PLUGIN_COND): New macro.
17248 (LINK_COMMAND_SPEC): Use it.
17249 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17250 * config.in (HAVE_LTO_PLUGIN): New.
17251 * configure.ac (--with-lto-plugin): New parameter; autodetect
17252 HAVE_LTO_PLUGIN.
17253
17254 2011-01-07 Jan Hubicka <jh@suse.cz>
17255
17256 PR tree-optimization/46367
17257 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17258 when we can update original.
17259 (cgraph_mark_inline_edge): Sanity check.
17260 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17261
17262 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17263
17264 * config/spu/spu.h (ASM_COMMENT_START): Define.
17265
17266 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17267
17268 PR driver/42445
17269 * gcc.c (%>S): New.
17270 (SWITCH_KEEP_FOR_GCC): Likewise.
17271 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17272 (do_spec_1): Handle "%>".
17273
17274 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17275
17276 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17277
17278 PR target/47201
17279 * config/i386/i386.c (ix86_delegitimize_address): If
17280 simplify_gen_subreg fails, return orig_x.
17281
17282 PR bootstrap/47187
17283 * value-prof.c (gimple_stringop_fixed_value): Handle
17284 lhs of the call properly.
17285
17286 2011-01-07 Jan Hubicka <jh@suse.cz>
17287
17288 PR lto/45375
17289 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17290
17291 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17292
17293 * target.def (function_switched_text_sections): New hook.
17294 * doc/tm.texi: Regenerated.
17295 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17296 * final.c (default_function_switched_text_sections): New.
17297 (final_scan_insn): Call function_switched_text_sections when a
17298 mid-function section change occurs.
17299 * output.h (default_function_switched_text_sections): Declare.
17300 * config/darwin-protos.h (darwin_function_switched_text_sections):
17301 Likewise.
17302 * config/darwin.c (darwin_function_switched_text_sections): New.
17303 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17304
17305 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17306
17307 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17308 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17309 the secondary code fragment when outputting for DWARF == 2.
17310
17311 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17312
17313 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17314 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17315 Remove.
17316 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17317 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17318
17319 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17320
17321 PR debug/46704
17322 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17323 when it is not empty.
17324
17325 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17326
17327 Bobcat Enablement
17328 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17329 (case ${target}): Add btver1.
17330 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17331 -march=native recognize btver1 processors.
17332 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17333 btver1 def_and_undef
17334 * config/i386/i386.c (struct processor_costs btver1_cost): New
17335 btver1 cost table.
17336 (m_BTVER1): New definition.
17337 (m_AMD_MULTIPLE): Includes m_BTVER1.
17338 (initial_ix86_tune_features): Add btver1 tune.
17339 (processor_target_table): Add btver1 entry.
17340 (static const char *const cpu_names): Add btver1 entry.
17341 (software_prefetching_beneficial_p): Add btver1.
17342 (ix86_option_override_internal): Add btver1 instruction sets.
17343 (ix86_issue_rate): Add btver1.
17344 (ix86_adjust_cost): Add btver1.
17345 * config/i386/i386.h (TARGET_BTVER1): New definition.
17346 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17347 (enum processor_type): Add PROCESSOR_BTVER1.
17348 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17349
17350 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17351
17352 PR target/43309
17353 * config/i386/i386.c (legitimize_tls_address)
17354 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17355 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17356 (tls_initial_exec_64_sun): New pattern.
17357
17358 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17359
17360 * doc/invoke.texi (Overall Options): Improve wording and markup
17361 of the description of -wrapper.
17362
17363 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17364
17365 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17366 rdynamic, threads): New Driver options.
17367
17368 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17369
17370 PR target/38118
17371 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17372 if coming from .tdata.
17373 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17374
17375 2011-01-06 Jan Hubicka <jh@suse.cz>
17376
17377 PR lto/47188
17378 * collect2.c (main): Do not enable LTOmode when plugin is active.
17379
17380 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17381
17382 PR other/45915
17383 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17384 --version output if supported.
17385 * configure: Regenerate.
17386
17387 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17388
17389 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17390 Driver options.
17391
17392 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17393
17394 PR c/47150
17395 * c-convert.c (convert): When converting a complex expression
17396 other than COMPLEX_EXPR to a different complex type, ensure
17397 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17398 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17399 when converting COMPLEX_TYPE.
17400
17401 2011-01-06 Ira Rosen <irar@il.ibm.com>
17402
17403 PR tree-optimization/47139
17404 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17405 only the last reduction value is used outside the loop. Update
17406 documentation.
17407
17408 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17409
17410 * config/rtems.opt: New.
17411 * config.gcc (*-*-rtems*): Use rtems.opt.
17412
17413 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17414
17415 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17416 processors do not support 3DNow instructions.
17417
17418 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17419
17420 * config/spu/spu.c (spu_option_override): Set parameter
17421 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17422
17423 2011-01-05 Jan Hubicka <jh@suse.cz>
17424
17425 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17426 at the command line.
17427
17428 2011-01-05 Martin Jambor <mjambor@suse.cz>
17429
17430 PR lto/47162
17431 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17432 deltas on streamed outgoing edges.
17433 (output_node_opt_summary): Output info for outgoing edges only when
17434 the node is in new parameter set.
17435 (output_cgraph_opt_summary): New parameter set, passed to the two
17436 aforementioned functions. Update its forward declaration and its
17437 callee too.
17438
17439 2011-01-05 Tom Tromey <tromey@redhat.com>
17440
17441 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17442 operator to c_finish_omp_atomic.
17443 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17444 (build_unary_op): Update.
17445 (build_modify_expr): Update.
17446 (build_asm_expr): Update.
17447
17448 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17449
17450 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17451 newly inserted insns.
17452 (pad_bb): Likewise.
17453 (spu_emit_branch_hint): Likewise.
17454 (insert_hbrp_for_ilb_runout): Likewise.
17455 (spu_machine_dependent_reorg): Call df_finish_pass after
17456 schedule_insns returns.
17457
17458 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17459
17460 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17461
17462 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17463
17464 PR tree-optimization/47005
17465 * tree-sra.c (struct access): Add 'non_addressable' bit.
17466 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17467 (decide_one_param_reduction): Return 0 if the parameter is passed by
17468 reference and one of the accesses in the group is non_addressable.
17469
17470 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17471
17472 PR tree-optimization/47056
17473 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17474 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17475 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17476
17477 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17478
17479 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17480 initializer. Skip view conversions from aggregate types.
17481
17482 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17483
17484 PR bootstrap/47055
17485 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17486
17487 2011-01-04 Philipp Thomas <pth@suse.de>
17488
17489 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17490 obvious typo.
17491
17492 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17493
17494 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17495 on empty epilogue sequences.
17496
17497 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17498
17499 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17500 non-static): New Driver options.
17501
17502 2011-01-04 Jie Zhang <jie@codesourcery.com>
17503
17504 PR driver/47137
17505 * gcc.c (default_compilers[]): Set combinable field to 0
17506 for all assembly languages.
17507
17508 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17509
17510 * config/mips/loongson3a.md: New file.
17511 * config/mips/mips.md: Include loongson3a.md.
17512 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17513 TUNE_LOONGSON_3A.
17514
17515 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17516
17517 PR middle-end/47017
17518 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17519 instead of convert_memory_address_addr_space on the base expression.
17520
17521 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17522
17523 * config/spu/spu.c (spu_option_override): Update error text
17524 for bad -march= / -mtune= values.
17525
17526 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17527
17528 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17529 if branch-hint optimization will be performed.
17530
17531 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17532
17533 PR tree-optimization/47148
17534 * ipa-split.c (split_function): Convert arguments to
17535 DECL_ARG_TYPE if possible.
17536
17537 PR tree-optimization/47155
17538 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17539 when computing uns.
17540
17541 PR rtl-optimization/47157
17542 * combine.c (try_combine): If undobuf.other_insn becomes
17543 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17544 and set *new_direct_jump_p too.
17545
17546 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17547
17548 PR tree-optimization/47021
17549 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17550
17551 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17552
17553 * gcc.c (process_command): Update copyright notice dates.
17554 * gcov.c (print_version): Likewise.
17555 * gcov-dump.c (print_version): Likewise.
17556 * mips-tfile.c (main): Likewise.
17557 * mips-tdump.c (main): Likewise.
17558
17559 2011-01-03 Martin Jambor <mjambor@suse.cz>
17560
17561 PR tree-optimization/46801
17562 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17563 aggregate fields start at byte boundary instead of the bit-field flag.
17564
17565 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17566
17567 PR driver/47137
17568 * gcc.c (main): Revert revision 168407.
17569
17570 2011-01-03 Martin Jambor <mjambor@suse.cz>
17571
17572 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17573
17574 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17575
17576 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17577 vector optab to expand vector/scalar shift, update gimple to vector.
17578
17579 2011-01-03 Martin Jambor <mjambor@suse.cz>
17580
17581 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17582 a thunk.
17583
17584 2011-01-03 Martin Jambor <mjambor@suse.cz>
17585
17586 PR tree-optimization/46984
17587 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17588 HOST_WIDE_INT.
17589 (cgraph_create_indirect_edge): Fixed line length.
17590 (cgraph_indirect_call_info): Declare.
17591 (cgraph_make_edge_direct) Update declaration.
17592 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17593 (cgraph_create_indirect_edge): Use it.
17594 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17595 callees.
17596 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17597 the new thunk_delta representation.
17598 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17599 HOST_WIDE_INT.
17600 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17601 (ipa_read_indirect_edge_info): Likewise.
17602 * lto-cgraph.c (output_edge_opt_summary): New function.
17603 (output_node_opt_summary): Call it on all outgoing edges.
17604 (input_edge_opt_summary): New function.
17605 (input_node_opt_summary): Call it on all outgoing edges.
17606
17607 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17608
17609 PR driver/47137
17610 * gcc.c (main): Don't check have_o when settting combine_inputs.
17611
17612 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17613
17614 * regrename.c: Add general comment describing the pass.
17615 (struct du_head): Remove 'length' field.
17616 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17617 (regrename_optimize): Do not sort chains. Rework comments, add others.
17618 Force renaming to the preferred class (if any) in the first pass and do
17619 not consider registers that belong to it in the second pass.
17620 (create_new_chain): Do not set 'length' field.
17621 (scan_rtx_reg): Likewise.
17622
17623 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17624
17625 PR tree-optimization/47140
17626 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17627 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17628 to bit_value_binop.
17629
17630 PR rtl-optimization/47028
17631 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17632 parm_birth_insn instead of at the beginning of first bb.
17633
17634 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17635
17636 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17637 Remove the word "see" before "@pxref".
17638 * doc/rtl.texi: Remove the word "see" before "@pxref".
17639
17640 2011-01-01 Jan Hubicka <jh@suse.cz>
17641
17642 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17643 memory.
17644
17645 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17646
17647 PR target/38662
17648 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17649
17650 \f
17651 Copyright (C) 2011 Free Software Foundation, Inc.
17652
17653 Copying and distribution of this file, with or without modification,
17654 are permitted in any medium without royalty provided the copyright
17655 notice and this notice are preserved.