re PR debug/48459 (avr: Assertion failure with -gdwarf-2)
[gcc.git] / gcc / ChangeLog
1 2011-06-14 Richard Henderson <rth@redhat.com>
2
3 PR debug/48459
4 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5 (based_loc_descr): Assert it's true.
6 (compute_frame_pointer_to_fb_displacement): Set it, rather than
7 aborting immediately.
8
9 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10 Mingfeng Wu <mingfeng@faraday-tech.com>
11
12 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
13
14 2011-06-13 Jan Hubicka <jh@suse.cz>
15
16 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
17
18 2011-06-13 Jan Hubicka <jh@suse.cz>
19
20 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
21 similarly to DECL_COMDAT.
22 * cgraphunit.c (cgraph_analyze_function): Likewise.
23 * ipa.c (function_and_variable_visibility): Likewise.
24
25 2011-06-13 Jan Hubicka <jh@suse.cz>
26
27 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
28 BINFO_VIRTUALS when streaming for ltrans unit.
29
30 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
31
32 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
33 (movdi_internal64): Same.
34
35 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
36
37 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
38 with a set of similar patterns, where the MATCH_OPERAND for the
39 function argument is replaced with individual references to hardware
40 registers.
41 (save_fpregs_<mode>): Ditto
42 (restore_gpregs_<mode>): Ditto
43 (return_and_restore_gpregs_<mode>): Ditto
44 (return_and_restore_fpregs_<mode>): Ditto
45 (return_and_restore_fpregs_aix_<mode>): Ditto
46
47 2011-06-13 Jan Hubicka <jh@suse.cz>
48
49 * ipa-utils.c (postorder_stack): New structure.
50 (ipa_reverse_postorder): Handle aliases.
51
52 2011-06-13 Jan Hubicka <jh@suse.cz>
53
54 * ipa-inline.c (reset_edge_caches): Walk aliases.
55 (update_caller_keys): Do not test inlinability of aliases.
56 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
57 (do_estimate_growth): Fix typo.
58
59 2011-06-13 Jan Hubicka <jh@suse.cz>
60
61 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
62 (can_remove_node_now_p): ... here; handle same comdat groups.
63 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
64 (inline_call): Update use of can_remove_node_now_p.
65
66 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
67
68 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
69 condition to disallow non-identical memory locations.
70 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
71 preference to bit manipulation instructions.
72
73 2011-06-13 Jan Hubicka <jh@suse.cz>
74
75 * cgraph.c (cgraph_for_node_thunks_and_aliases,
76 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
77 (nonremovable_p): New function.
78 (cgraph_can_remove_if_no_direct_calls_p): New function.
79 (used_from_object_file_p): New functoin.
80 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
81 references from aliases.
82 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
83 * ipa-inline.c (check_caller_edge): New function.
84 (want_inline_function_called_once_p): Use it; accept aliases called
85 once, too.
86 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
87
88 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
89
90 PR target/48454
91 * config/arm/neon.md (vec_pack_trunc): Set the lengths
92 correctly for the case with Quad vectors.
93
94 2011-06-13 Jakub Jelinek <jakub@redhat.com>
95 Ira Rosen <ira.rosen@linaro.org>
96
97 PR tree-optimization/49352
98 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
99 all, make sure loop_use_stmt after the loop is a def stmt of a used
100 SSA_NAME that is the only one defined inside of the loop. Don't
101 check for COND_EXPR and GIMPLE_BINARY_RHS.
102 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
103 check_reduction is true.
104
105 2011-06-11 Jan Hubicka <jh@suse.cz>
106
107 PR middle-end/49373
108 * ipa.c (cgraph_externally_visible_p): Check resolution info.
109
110 2011-06-11 Jan Hubicka <jh@suse.cz>
111
112 PR middle-end/48836
113 * ipa-inline-transform.c: Include tree-pass.h
114 (inline_transform): Set TODO_update_ssa_only_virtuals.
115 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
116
117 2011-06-11 Jan Hubicka <jh@suse.cz>
118
119 PR middle-end/49378
120 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
121 aliases and thunks.
122
123 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
124
125 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
126 Take number of iterations to peel into account for equally frequent
127 misalignment values.
128
129 2011-06-11 Jan Hubicka <jh@suse.cz>
130
131 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
132 aliases.
133
134 2011-06-11 Jan Hubicka <jh@suse.cz>
135
136 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
137 args.
138 (ipa_update_after_lto_read): Likewise.
139 (ipa_write_node_info): Do not sream call_with_var_arguments.
140 (ipa_read_node_info): Likewise.
141
142 2011-06-11 Jan Hubicka <jh@suse.cz>
143
144 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
145
146 2011-06-11 Jan Hubicka <jh@suse.cz>
147
148 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
149 (lto_symtab_resolve_can_prevail_p): Likewise.
150 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
151 * cgraph.c (same_body_aliases_done): New global var.
152 (cgraph_same_body_alias_1): Rename to ...
153 (cgraph_create_function_alias): ... this one; reorg to new
154 representation.
155 (cgraph_same_body_alias): Use cgraph_create_function_alias;
156 record references when asked to.
157 (cgraph_add_thunk): Fix formating.
158 (cgraph_get_node): Kill same body alias code.
159 (cgraph_node_for_asm): Likewise.
160 (cgraph_remove_same_body_alias): Remove.
161 (cgraph_remove_node): Kill same body alias code.
162 (cgraph_mark_address_taken_node): Mark also the aliased function
163 as having address taken.
164 (dump_cgraph_node): Dump same body aliases.
165 (cgraph_for_node_thunks_and_aliases): Update for new alias
166 representation.
167 (cgraph_for_node_and_aliases): Likewise.
168 * cgraph.h (same_body): Kll pointer.
169 (same_body_alias): Update comment.
170 (same_body_aliases_done): Declare.
171 (cgraph_remove_same_body_alias): Remove declaration.
172 (cgraph_create_function_alias): Declare.
173 (cgraph_process_same_body_aliases): Declare.
174 (cgraph_function_with_gimple_body_p): Check for alias.
175 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
176 (cgraph_alias_aliased_node): New function.
177 (cgraph_function_node): Update for new aliases.
178 (cgraph_function_or_thunk_node): Likewise.
179 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
180 (inline_call): Remove dead aliases.
181 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
182 name hack for same body aliases.
183 (clone_of_p): Look through aliases.
184 (verify_cgraph_node): Verify aliases.
185 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
186 (cgraph_process_same_body_aliases): New function.
187 (process_function_and_variable_attributes): Disable weakref warning on
188 alias.
189 (cgraph_analyze_functions): Handle aliases.
190 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
191 (assemble_thunks): Rename to ...
192 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
193 (cgraph_expand_function): Remove alias output code.
194 (cgraph_output_in_order): Skip aliases.
195 (cgraph_preserve_function_body_p): Aliases don't need preserving.
196 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
197 (ipa_record_reference): Do not assert on alias references.
198 (ipa_ref_has_aliases_p): New function.
199 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
200 (ipa_ref_has_aliases_p): Declare.
201 * lto-cgraph.c (lto_output_node): Handle aliases.
202 (input_node): Likewise.
203 * lto-streamer-out.c (lto_output): Skip aliases.
204 (produce_symtab): Kill same_body_alias code.
205 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
206 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
207 * ipa-inline.c (update_caller_keys): Walk aliases.
208 (inline_small_functions): Fix thinko in previous patch.
209 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
210 (function_and_variable_visibility): Do not walk same body aliases.
211 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
212 (ipa_pta_execute): Use it.
213
214 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
215
216 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
217 (*vec_dupv2df): Rename from vec_dupv2df.
218 (vec_dupv2df): New expander.
219
220 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
221
222 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
223
224 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
225
226 * config/i386/i386.md: Use default value in "isa" attribute.
227 * config/i386/sse.md: Ditto.
228 * config/i386/mmx.md: Ditto.
229
230 2011-06-10 Wei Guozhi <carrot@google.com>
231
232 PR target/45335
233 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
234 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
235 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
236 related peephole2.
237 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
238 related peephole2.
239 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
240 (arm_legitimate_ldrd_p): New prototype.
241 (arm_output_ldrd): New prototype.
242 * config/arm/arm.c (arm_check_ldrd_operands): New function.
243 (arm_legitimate_ldrd_p): New function.
244 (arm_output_ldrd): New function.
245
246 2011-06-10 David Li <davidxl@google.com>
247
248 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
249 * passes.c (passr_eq): New function.
250 (create_pass_tab): New function.
251 (pass_traverse): New function.
252 (dump_one_pass): New function.
253 (dump_pass_list): New function.
254 (dump_passes): New function.
255
256 2011-06-10 Jan Hubicka <jh@suse.cz>
257
258 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
259 setting the nothrow flag.
260 * ipa-reference.c (propagate): Skip aliases.
261 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
262 (propagate_nothrow): Skip aliases; do not update cgraph.
263 (local_pure_const): Do not update cgraph.
264 * tree-profile.c (tree_profiling): Do fixup_cfg.
265
266 2011-06-10 Jan Hubicka <jh@suse.cz>
267
268 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
269 (cgraph_local_node_p): ... here; handle aliases.
270 (has_addr_references_p): Break out from ...;
271 (cgraph_remove_unreachable_nodes) ... here.
272
273 2011-06-10 Jan Hubicka <jh@suse.cz>
274
275 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
276 * common.opt (flag_inline_functions_called_once): Do not
277 initialize to 1.
278
279 2011-06-10 Jan Hubicka <jh@suse.cz>
280
281 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
282 (ipcp_initialize_node_lattices): Do not deal with aliases;
283 Do not try to propagate through thunks.
284 (ipcp_change_tops_to_bottom): Do not deal with aliases.
285
286 2011-06-10 Jan Hubicka <jh@suse.cz>
287
288 * ipa-prop.c (ipa_write_node_info): Stream jump functions
289 for indirect calls.
290 (ipa_read_node_info): Likewise.
291
292 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
293
294 PR lto/49302
295 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
296 (build_and_insert_call): Likewise.
297 (build_and_insert_ref): New.
298 (gimple_expand_builtin_pow): Minor cleanup.
299 (gimple_expand_builtin_cabs): New.
300 (execute_cse_sincos): Add case for BUILT_IN_CABS.
301
302 2011-06-10 Jan Hubicka <jh@suse.cz>
303
304 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
305 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
306 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
307 (ipcp_propagate_stage): Skip aliases when propagating.
308 (ipcp_need_redirect_p): Skip aliases.
309 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
310 collect_callers_of_node.
311 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
312 for aliases.
313 (ipa_compute_jump_functions): Look through aliases.
314
315 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
316
317 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
318
319 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
320
321 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
322 Adjust comments.
323 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
324
325 2011-06-10 Jan Hubicka <jh@suse.cz>
326
327 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
328 Update call of gimple_get_virt_method_for_binfo.
329 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
330 refuse_thunks parameter.
331 (gimple_fold_call): Update.
332 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
333
334 2011-06-10 Jan Hubicka <jh@suse.cz>
335
336 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
337 (not_all_callers_have_enough_arguments_p): ... this one; turn into
338 worker for cgraph_for_node_and_aliases.
339 (convert_callers_for_node): Break out from ...
340 (convert_callers): ... here.
341 (modify_function): Use collect_callers_of_node.
342 (ipa_early_sra): Use cgraph_for_node_and_aliases.
343
344 2011-06-10 Richard Guenther <rguenther@suse.de>
345
346 PR tree-optimization/49361
347 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
348 when not already in gimple form.
349
350 2011-06-10 Richard Guenther <rguenther@suse.de>
351
352 PR bootstrap/49344
353 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
354 FOR_EACH_PHI_OR_STMT_USE.
355
356 2011-06-10 Jan Hubicka <jh@suse.cz>
357
358 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
359 (clone_inlined_nodes): ... here.
360 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
361 to real destination prior inlining.
362 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
363 can_early_inline_edge_p, want_early_inline_function_p,
364 want_early_inline_function_p, want_inline_small_function_p,
365 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
366 edge_badness, update_all_callee_keys, lookup_recursive_calls,
367 add_new_edges_to_heap, inline_small_functions, flatten_function,
368 inline_always_inline_functions, early_inline_small_functions): Use
369 cgraph_function_or_thunk_node.
370 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
371 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
372 (do_estimate_edge_growth_1): Break out from ...
373 (do_estimate_growth) ... here; walk aliases.
374 (inline_generate_summary): Skip aliases.
375
376 2011-06-10 Richard Guenther <rguenther@suse.de>
377
378 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
379 forward when combining, visit inserted stmts when a stmt was changed.
380
381 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
382
383 * tree.h (error_operand_p): Add.
384 * dbxout.c (dbxout_type_fields): Use the latter.
385 * c-decl.c (add_stmt): Likewise.
386 * gimplify.c (omp_add_variable, omp_notice_variable,
387 gimplify_scan_omp_clauses): Likewise.
388
389 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
390
391 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
392 when a value is actually passed in regs.
393
394 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
395 Laurent Rougé <laurent.rouge@menta.fr>
396
397 * doc/invoke.texi (SPARC options): Add -mflat.
398 * config/sparc/sparc.opt: Likewise.
399 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
400 (sparc_flat_expand_prologue): Declare.
401 (sparc_flat_expand_epilogue): Likewise.
402 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
403 (CPP_ENDIAN_SPEC): Replace with...
404 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
405 (CPP_SPEC): Adjust to above change.
406 (EXTRA_SPECS): Likewise.
407 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
408 (INCOMING_REGNO): Likewise.
409 (OUTGOING_REGNO): Likewise.
410 (LOCAL_REGNO): Likewise.
411 (SETUP_FRAME_ADDRESSES): Likewise.
412 (FIXED_REGISTERS): Set 0 for %fp.
413 (CALL_USED_REGISTERS): Likewise.
414 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
415 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
416 (RETURN_ADDR_REGNUM): Define.
417 (RETURN_ADDR_RTX): Use it.
418 (INCOMING_RETURN_ADDR_REGNUM): Define.
419 (INCOMING_RETURN_ADDR_RTX): Use it.
420 (DWARF_FRAME_RETURN_COLUMN): Likewise.
421 (EH_RETURN_REGNUM): Define.
422 (EH_RETURN_STACKADJ_RTX): Use it.
423 (EH_RETURN_HANDLER_RTX): Delete.
424 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
425 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
426 Delete.
427 (struct machine_function): Add frame_size, apparent_frame_size,
428 frame_base_reg, frame_base_offset, n_global_fp_regs and
429 save_local_in_regs_p fields.
430 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
431 sparc_frame_base_offset, sparc_n_global_fp_regs,
432 sparc_save_local_in_regs_p): New macros.
433 (sparc_option_override): Error out if -fcall-saved-REG is specified
434 for Out registers.
435 (eligible_for_restore_insn): Fix formatting.
436 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
437 (eligible_for_sibcall_delay): Likewise.
438 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
439 (sparc_legitimate_address_p): Adjust to above change.
440 (save_global_or_fp_reg_p): New predicate.
441 (return_addr_reg_needed_p): Likewise.
442 (save_local_or_in_reg_p): Likewise.
443 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
444 (SORR_SAVE, SORR_RESTORE): Delete.
445 (sorr_pred_t): New typedef.
446 (sorr_act_t): New enum.
447 (save_or_restore_regs): Rename to...
448 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
449 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
450 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
451 mechanism. Add CFI information for double-word saves in 32-bit mode.
452 (emit_adjust_base_to_offset): New function extracted from...
453 (emit_save_or_restore_regs): ...this. Rename the rest to...
454 (emit_save_or_restore_regs_global_fp_regs): ...this.
455 (emit_save_or_restore_regs_local_in_regs): New function.
456 (gen_create_flat_frame_[123]): New functions.
457 (sparc_expand_prologue): Use SIZE local variable. Adjust.
458 (sparc_flat_expand_prologue): New function.
459 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
460 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
461 (sparc_flat_expand_epilogue): New function.
462 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
463 (output_return): Likewise.
464 (output_sibcall): Likewise.
465 (sparc_output_mi_thunk): Likewise.
466 (sparc_frame_pointer_required): Likewise.
467 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
468 function optimization.
469 * config/sparc/sparc.md (flat): New attribute.
470 (prologue): Add TARGET_FLAT handling.
471 (save_register_window): Disable if TARGET_FLAT.
472 (create_flat_frame_[123]): New patterns.
473 (epilogue): Add TARGET_FLAT handling.
474 (sibcall_epilogue): Likewise.
475 (eh_return): New expander.
476 (eh_return_internal): New insn and splitter.
477 (return_internal): Add TARGET_FLAT handling.
478 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
479 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
480 (nonlocal_goto): Add TARGET_FLAT handling.
481 * config/sparc/t-elf: Add -mflat multilib.
482 * config/sparc/t-leon: Likewise.
483
484 2011-06-10 Jan Hubicka <jh@suse.cz>
485
486 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
487 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
488 (self_recursive_p): Use cgraph_function_node.
489 (propagate_pure_const): Likewise.
490 (propagate_nothrow): Likewise.
491 * ipa-reference.c (ipa_reference_get_not_read_global): Use
492 cgraph_function_node.
493 (propagate_bits): Likewise.
494 (propagate): Likewise.
495
496 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
497 Richard Earnshaw <rearnsha@arm.com>
498
499 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
500 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
501 (*thumb2_movdi_vfp): Delete.
502 (*arm_movdi_vfp_cortexa8): Delete.
503 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
504 (*movdi_vfp_cortexa8): Likewise.
505
506 2011-06-10 Richard Guenther <rguenther@suse.de>
507
508 * stor-layout.c (initialize_sizetypes): Give names to all
509 sizetype kinds.
510
511 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
512
513 PR tree-optimization/49318
514 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
515 irrelevant pattern statements.
516
517 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
518
519 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
520
521 PR bootstrap/49354
522 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
523 to last assignment.
524
525 2011-06-09 Jan Hubicka <jh@suse.cz>
526
527 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
528 do not recompute reachable flag.
529 (cgraph_finalize_function, cgraph_analyze_functions): Set
530 redefined_extern_inline here.
531
532 2011-06-09 Jan Hubicka <jh@suse.cz>
533
534 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
535 (cgraph_only_called_directly_p): ... this one; bring offline.
536 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
537 varpool_used_from_object_file_p): Drop names from the declaratoin.
538 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
539 collect_callers_of_node): New.
540 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
541 (cgraph_edge_recursive_p): Use cgraph_function_node.
542 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
543 (cgraph_node_cannot_be_local_p_1): Break out from ...
544 (cgraph_node_can_be_local_p): ... here; walk aliases.
545 (cgraph_for_node_thunks_and_aliases): New function.
546 (cgraph_for_node_and_aliases): New function.
547 (cgraph_make_node_local_1): Break out from ...
548 (cgraph_make_node_local) ... here; use
549 cgraph_for_node_thunks_and_aliases.
550 (cgraph_set_nothrow_flag_1): Break out from ...
551 (cgraph_set_nothrow_flag) ... here;
552 use cgraph_for_node_thunks_and_aliases.
553 (cgraph_set_const_flag_1): Break out from ...
554 (cgraph_set_const_flag) ... here;
555 use cgraph_for_node_thunks_and_aliases.
556 (cgraph_set_pure_flag_1): Break out from ...
557 (cgraph_set_pure_flag) ... here;
558 use cgraph_for_node_thunks_and_aliases.
559 (cgraph_propagate_frequency_1): Break out from ...
560 (cgraph_propagate_frequency) ... here; use
561 cgraph_for_node_thunks_and_aliases.
562 (cgraph_used_from_object_file_p): Do not care about aliases.
563 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
564 New functions.
565 (collect_callers_of_node_1, collect_callers_of_node): New functions.
566
567 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
568
569 PR rtl-optimization/49154
570 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
571 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
572 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
573 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
574 * config/cris/cris.h (cris_register_move_cost): Remove
575 !TARGET_V32 code. Tweak comments.
576
577 2011-06-09 Jan Hubicka <jh@suse.cz>
578
579 * cgraphbuild.c (record_eh_tables): Mark personality function as having
580 address taken.
581
582 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
583
584 PR rtl-optimization/49154
585 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
586 is a matching slot in the hashtable, assign it to classes_ptr.
587
588 PR rtl-optimization/49154
589 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
590 register classes.
591 * doc/tm.texi: Regenerate.
592
593 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
594
595 PR target/49307
596 * config/sh/sh.md (UNSPEC_CHKADD): New.
597 (chk_guard_add): New define_insn_and_split.
598 (symGOT_load): Use chk_guard_add instead of blockage.
599
600 2011-06-09 Kai Tietz <ktietz@redhat.com>
601
602 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
603
604 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
605
606 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
607
608 2011-06-09 Wei Guozhi <carrot@google.com>
609
610 PR target/46975
611 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
612 (peephole2 for conditional move): Generate 16 bit instructions.
613
614 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
615
616 * config/i386/i386.md (*movdi_internal_rex64): Merge
617 alternatives 6 and 8.
618
619 2011-06-09 David Li <davidxl@google.com>
620
621 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
622 * passes.c (passr_eq): New function.
623 (create_pass_tab): New function.
624 (pass_traverse): New function.
625 (dump_one_pass): New function.
626 (dump_pass_list): New function.
627 (dump_passes): New function.
628
629 2011-06-09 David Li <davidxl@google.com>
630
631 * tree-complex.c (tree_lower_complex): Gate cleanup.
632 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
633 (execute_optimize_stdarg): Ditto.
634 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
635 (execute_cleanup_eh_1): Ditto.
636 (execute_cleanup_eh): Ditto.
637 * gcse.c (gate_rtl_pre): Ditto.
638 (execute_rtl_pre): Ditto.
639 * except.c (finish_eh_generation): Ditto.
640 (convert_to_eh_region_ranges): Ditto.
641 * cprop.c (one_cprop_pass): Ditto.
642
643 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
644
645 PR target/48673
646 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
647 in all basic blocks.
648
649 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
650
651 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
652 (HAVE_ENABLE_EXECUTE_STACK): Define.
653 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
654 (HAVE_ENABLE_EXECUTE_STACK): Define.
655 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
656 (HAVE_ENABLE_EXECUTE_STACK): Define.
657 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
658 (ENABLE_EXECUTE_STACK): Remove.
659 (HAVE_ENABLE_EXECUTE_STACK): Define.
660 [IN_LIBGCC2]: Don't include <windows.h>.
661 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
662 (HAVE_ENABLE_EXECUTE_STACK): Define.
663 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
664 (HAVE_ENABLE_EXECUTE_STACK): Define.
665 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
666 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
667 (HAVE_ENABLE_EXECUTE_STACK): Define.
668 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
669 (HAVE_ENABLE_EXECUTE_STACK): Define.
670 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
671 (HAVE_ENABLE_EXECUTE_STACK): Define.
672 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
673 (HAVE_ENABLE_EXECUTE_STACK): Define.
674 * config/alpha/alpha.c (alpha_trampoline_init): Test
675 HAVE_ENABLE_EXECUTE_STACK.
676 * config/i386/i386.c (ix86_trampoline_init): Likewise.
677 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
678 (sparc64_initialize_trampoline): Likewise.
679 * libgcc2.c [L_enable_execute_stack]: Remove.
680 * system.h (ENABLE_EXECUTE_STACK): Poison.
681 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
682 * doc/tm.texi: Regenerate.
683 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
684
685 2011-06-09 Jakub Jelinek <jakub@redhat.com>
686
687 PR middle-end/49308
688 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
689 variable. After resetting and rescanning insn continue with previous
690 statement.
691
692 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693
694 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
695 (gcc_cv_ld_hidden): Likewise.
696 * configure: Regenerate.
697 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
698 (ix86_stack_protect_fail): Mark unused.
699 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
700 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
701 [TARGET_MACHO]: Don't define.
702 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
703 (TARGET_STACK_PROTECT_FAIL): Likewise.
704 (rs6000_stack_protect_fail): Mark unused.
705 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
706 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
707
708 2011-06-08 Andi Kleen <ak@linux.intel.com>
709
710 * varasm.c (get_section): Print location of other conflict
711 for section conflicts.
712
713 2011-06-08 Andi Kleen <ak@linux.intel.com>
714
715 * config/i386/driver-i386.c (host_detect_local_cpu):
716 Add model 0x2d Intel CPU.
717
718 2011-06-08 Andi Kleen <ak@linux.intel.com>
719
720 * reginfo.c (global_regs_decl): Add.
721 (globalize_reg): Add decl parameter. Compute location. Pass location
722 to warnings and add inform. Store decl in global_regs_decl.
723 * rtl.h (globalize_reg): Update prototype.
724 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
725
726 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
727
728 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
729
730 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
731
732 PR target/49305
733 * config/sh/predicates.md (general_movsrc_operand): Check
734 mode for memory with indexed address for QI and HImode.
735 (general_movdst_operand): Likewise.
736
737 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
738
739 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
740
741 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
742
743 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
744 (num_ssa_operands): Likewise.
745 (op_iter_init_phiuse): Forward-declare.
746 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
747
748 2011-06-08 Nick Clifton <nickc@redhat.com>
749
750 * doc/invoke.texi (ARM Options): Update description of
751 -mthumb-interwork.
752
753 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
754
755 * config/i386/driver-i386.c (host_detect_local_cpu): Support
756 unknown Intel family 0x6 CPUs.
757
758 2011-06-08 Martin Jambor <mjambor@suse.cz>
759
760 * tree-sra.c (mark_rw_status): Removed.
761 (analyze_access_subtree): New parameter parent instead of
762 mark_read and mark_write, propagate from that.
763
764 2011-06-08 Julian Brown <julian@codesourcery.com>
765
766 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
767 for double-precision helper functions in hard-float mode if only
768 single-precision arithmetic is supported in hardware.
769
770 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
771
772 PR rtl-optimization/49303
773 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
774 code_motion_path_driver returned 0 or 1.
775 (sel_region_finish): Clear h_d_i_d.
776
777 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
778
779 * config/sh/sh.c (prepare_move_operands): Set pic register
780 appropriately for global and local dynamic tls models even
781 if flag_pic is unset.
782
783 2011-06-07 Jason Merrill <jason@redhat.com>
784
785 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
786
787 2011-06-07 Xinliang David Li <davidxl@google.com>
788 * passes.c (enable_disable_pass): Handle assembler name.
789 (is_pass_explicitly_enabled_or_disabled): Ditto.
790
791 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
792
793 PR tree-optimization/48497
794 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
795
796 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
797
798 PR tree-optimization/46728
799 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
800 to use gimple_val_nonnegative_real_p.
801 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
802 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
803
804 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
805
806 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
807
808 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
809
810 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
811 constant vectors.
812
813 2011-06-07 Richard Guenther <rguenther@suse.de>
814
815 * stor-layout.c (initialize_sizetypes): Initialize all
816 sizetypes based on target definitions.
817 (set_sizetype): Remove.
818 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
819 * tree.h (set_sizetype): Remove.
820
821 2011-06-07 Nick Clifton <nickc@redhat.com>
822
823 * config.gcc: Unify V850 architecture options and add support for
824 newer V850 architectures.
825 * config/v850/t-v850e: Delete.
826
827 2011-06-07 Richard Guenther <rguenther@suse.de>
828
829 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
830 Call set_sizetype from here.
831
832 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
833
834 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
835 (*maddhisi4tb, *maddhisi4tt): New define_insns.
836
837 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
838 Andrew Stubbs <ams@codesourcery.com>
839
840 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
841 multiplies.
842 * doc/md.texi (Canonicalization of Instructions): Document widening
843 multiply canonicalization.
844
845 2011-06-07 Jakub Jelinek <jakub@redhat.com>
846
847 PR gcov-profile/49299
848 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
849
850 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
851
852 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
853 a pointer.
854 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
855 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
856 vect_recog_pow_pattern): Likewise.
857 (vect_pattern_recog_1): Remove declaration.
858 (widened_name_p): Remove declaration. Add new argument to specify
859 whether to check that both types are either signed or unsigned.
860 (vect_recog_widen_mult_pattern): Update documentation. Handle
861 unsigned patterns and multiplication by constants.
862 (vect_pattern_recog_1): Update vect_recog_func references. Use
863 statement information from the statement returned from pattern
864 detection functions.
865 (vect_pattern_recog): Update vect_recog_func reference.
866 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
867 multiplication by a constant use the type of the other operand.
868
869 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
870
871 PR rtl-optimization/49145
872 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
873
874 2011-06-06 Jakub Jelinek <jakub@redhat.com>
875
876 PR debug/49262
877 * dwarf2out.c (native_encode_initializer): Decrement count in each
878 iteration.
879
880 PR debug/49294
881 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
882 non-MODE_INT modes.
883
884 PR c++/49264
885 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
886 if stmt folded into nothing.
887 * tree-inline.c (fold_marked_statements): If a builtin at the end of
888 a bb folded into nothing, just update cgraph edges and move to next bb.
889 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
890 to be NULL. Don't compute count and frequency if new_call is NULL.
891
892 2011-06-04 Diego Novillo <dnovillo@google.com>
893
894 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
895 (cgraph.o): Likewise.
896 (cgraphunit.o): Likewise.
897 * cgraphunit.c: Include lto-streamer.h
898 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
899 if LTO is enabled.
900 * lto-streamer-in.c (unpack_value_fields): Call
901 streamer_hooks.unpack_value_fields if set.
902 (lto_materialize_tree): For unhandled nodes, first try to
903 call lto_streamer_hooks.alloc_tree, if it exists.
904 (lto_input_ts_decl_common_tree_pointers): Move reading of
905 DECL_INITIAL to lto_streamer_read_tree.
906 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
907 (lto_streamer_read_tree): New.
908 (lto_reader_init): Rename from lto_init_reader.
909 Move initialization code to lto/lto.c.
910 * lto-streamer-out.c (pack_value_fields): Call
911 streamer_hooks.pack_value_fields if set.
912 (lto_output_tree_ref): For tree nodes that are not normally indexable,
913 call streamer_hooks.indexable_with_decls_p before giving up.
914 (lto_output_ts_decl_common_tree_pointers): Move handling
915 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
916 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
917 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
918 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
919 (lto_streamer_write_tree): New.
920 (lto_output): Call lto_streamer_init directly.
921 (lto_writer_init): Remove.
922 * lto-streamer.c (streamer_hooks): New.
923 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
924 instead of lto_preload_common_nodes.
925 (lto_is_streamable): Move from lto-streamer.h
926 (lto_streamer_hooks_init): New.
927 (streamer_hooks): New.
928 (streamer_hooks_init): New.
929 * lto-streamer.h (struct output_block): Forward declare.
930 (struct lto_input_block): Likewise.
931 (struct data_in): Likewise.
932 (struct bitpack_d): Likewise.
933 (struct streamer_hooks): Declare.
934 (streamer_hooks): Declare.
935 (lto_streamer_hooks_init): Declare.
936 (lto_streamer_write_tree): Declare.
937 (lto_streamer_read_tree): Declare.
938 (streamer_hooks_init): Declare.
939 (lto_is_streamable): Move to lto-streamer.c
940
941 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
942
943 * longlong.h (smul_ppmm): The resulting register pair contains the
944 higher order word first.
945
946 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
947
948 PR tree-optimization/46728
949 * builtins.c (powi_table): Remove.
950 (powi_lookup_cost): Remove.
951 (powi_cost): Remove.
952 (expand_powi_1): Remove.
953 (expand_powi): Remove.
954 (expand_builtin_pow_root): Remove.
955 (expand_builtin_pow): Remove.
956 (expand_builtin_powi): Eliminate handling of constant exponent.
957 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
958
959 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
960
961 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
962
963 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
964
965 * dce.c (reset_unmarked_insns_debug_uses): New.
966 (delete_unmarked_insns): Skip debug insns.
967 (prescan_insns_for_dce): Likewise.
968 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
969 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
970 active reg can be found.
971 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
972 (convert_regs_1): Use it.
973
974 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
975
976 * tree-pretty-print.c (dump_function_header): Add flags.
977 Don't dump decl_uid with nouid.
978 * tree-pretty-print.h (dump_function_header): Adjust.
979 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
980 * passes.c (pass_init_dump_file): Pass dump_flags on.
981 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
982
983 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
984
985 PR bootstrap/49270
986 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
987
988 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
989
990 PR tree-optimization/49243
991 * calls.c (setjmp_call_p): Also check if fndecl has the
992 returns_twice attribute.
993
994 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
995
996 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
997 -ffast-math etc.
998
999 2011-06-06 Richard Henderson <rth@redhat.com>
1000 Georg-Johann Lay <avr@gjlay.de>
1001
1002 PR target/42210
1003 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1004 New predicates.
1005 * config/avr/avr.md ("insv"): New insn expander.
1006 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1007 "*insv.not.io", "*insv.reg"): New insns.
1008
1009 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1010
1011 PR target/49285
1012 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1013 to nonimmediate_operand from memory_operand for the operand that is to
1014 be forced to memory by the expander. Lose the constraints.
1015
1016 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1017
1018 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1019 EH return when delayed branches are disabled.
1020
1021 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1022
1023 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1024 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1025 calculation.
1026 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1027 Simplify MODE_V1DF and MODE_V2SF handling.
1028 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1029 Simplify MODE_SF handling.
1030
1031 2011-06-04 Jan Hubicka <jh@suse.cz>
1032
1033 PR tree-optimization/48893
1034 PR tree-optimization/49091
1035 PR tree-optimization/49179
1036 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1037 Bounds check.
1038
1039 2011-06-04 Jan Hubicka <jh@suse.cz>
1040
1041 PR lto/48954
1042 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1043 bitmaps.
1044
1045 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1046
1047 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1048
1049 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1050
1051 PR target/49281
1052 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1053 to be strictly smaller than 1 << shiftcount.
1054
1055 2011-06-04 Jan Hubicka <jh@suse.cz>
1056
1057 PR tree-optimize/48929
1058 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1059 of empty predicate.
1060
1061 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1062
1063 PR debug/48333
1064 * calls.c (emit_call_1): Prefer the __builtin declaration of
1065 builtin functions.
1066
1067 2011-06-03 Diego Novillo <dnovillo@google.com>
1068
1069 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1070 (lto_input_tree_pointers): Likewise.
1071 * lto-streamer-out.c (pack_value_fields): Likewise.
1072 (lto_output_tree_pointers): Likewise.
1073 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1074 and OPTIMIZATION_NODE.
1075
1076 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1077
1078 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1079 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1080 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1081 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1082 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1083 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1084 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1085 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1086 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1087 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1088 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1089 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1090 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1091 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1092 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1093 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1094 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1095 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1096 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1097 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1098 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1099 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1100 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1101 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1102 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1103 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1104 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1105 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1106 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1107 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1108 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1109 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1110 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1111 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1112 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1113 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1114 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1115 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1116 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1117 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1118 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1119 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1120 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1121 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1122 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1123 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1124 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1125 * system.h (MD_UNWIND_SUPPORT): Poison.
1126 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1127 * doc/tm.texi: Regenerate.
1128 * unwind-dw2.c: Include md-unwind-support.h instead of
1129 MD_UNWIND_SUPPORT.
1130 * config/ia64/unwind-ia64.c: Likewise.
1131 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1132
1133 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1134
1135 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1136
1137 2011-06-03 Richard Henderson <rth@redhat.com>
1138 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1139
1140 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1141 (sigill_hdlr): Correct insn, insn size.
1142 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1143
1144 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1145
1146 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1147 t-slibgcc-dummy.
1148 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1149 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1150 * config/mips/t-iris: Remove.
1151 * config/mips/t-irix6: New file.
1152 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1153
1154 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1155
1156 * Makefile.in (LIB2ADDEHDEP): Remove.
1157 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1158 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1159 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1160 * config/t-darwin (LIB2ADDEHDEP): Remove.
1161 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1162 * config/t-linux (LIB2ADDEHDEP): Remove.
1163
1164 2011-06-03 Diego Novillo <dnovillo@google.com>
1165
1166 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1167 (lto_register_var_decl_in_symtab): Likewise.
1168 (lto_register_function_decl_in_symtab): Likewise.
1169 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1170 logic to uniquify_nodes.
1171
1172 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1173
1174 * config/alpha/t-osf5: Remove.
1175 * config/alpha/t-osf-pthread: Remove.
1176 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1177 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1178
1179 2011-06-03 Julian Brown <julian@codesourcery.com>
1180
1181 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1182 (strongarm1110): Use strongarm tuning.
1183 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1184 * config/arm/arm.c (arm_strongarm_tune): New.
1185 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1186 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1187 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1188 setting, using previous defaults or 1 for Cortex-A5.
1189 (arm_option_override): Set max_insns_skipped from current tuning.
1190
1191 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1192
1193 * doc/install.texi (Options specification): Document --with-specs.
1194
1195 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1196
1197 * config/arm/neon.md (orndi3_neon): Actually split it.
1198
1199 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1200
1201 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1202 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1203
1204 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1205
1206 PR debug/47590
1207 * target.def (delay_sched2, delay_vartrack): New.
1208 * doc/tm.texi.in: Update.
1209 * doc/tm.texi: Rebuild.
1210 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1211 * var-tracking.c (gate_handle_var_tracking): Likewise.
1212 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1213 (bfin_flag_var_tracking): Drop.
1214 (output_file_start): Don't save and override flag_var_tracking.
1215 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1216 (bfin_reorg): Test original variables.
1217 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1218 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1219 (ia64_flag_var_tracking): Drop.
1220 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1221 (ia64_file_start): Don't save and override flag_var_tracking.
1222 (ia64_override_options_after_change): Ditto
1223 flag_schedule_insns_after_reload.
1224 (ia64_reorg): Test original variables.
1225 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1226 (picochip_flag_var_tracking): Drop.
1227 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1228 (picochip_option_override): Don't save and override
1229 flag_schedule_insns_after_reload.
1230 (picochip_asm_file_start): Ditto flag_var_tracking.
1231 (picochip_reorg): Test original variables.
1232 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1233 (TARGET_DELAY_VARTRACK): Define.
1234 (spu_var_tracking): New.
1235 (spu_machine_dependent_reorg): Call it.
1236 (asm_file_start): Don't save and override flag_var_tracking.
1237
1238 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1239
1240 PR target/49163
1241 * config/sh/predicates.md (general_movsrc_operand): Return 0
1242 for memory and memory subreg of which address is an invalid
1243 indexed address for QI and HImode.
1244 (general_movdst_operand): Likewise.
1245
1246 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1247
1248 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1249 edges only, when there is a non-local label in the function.
1250 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1251
1252 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1253
1254 * config/i386/constraints.md (Y3): New register constraint.
1255 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1256 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1257 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1258 *sse2_interleave_lowv2df.
1259
1260 2011-06-02 Julian Brown <julian@codesourcery.com>
1261
1262 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1263 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1264 (arm_cortex_a5_tune): New.
1265
1266 2011-06-02 Julian Brown <julian@codesourcery.com>
1267
1268 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1269 * config/arm/arm.c (arm_default_branch_cost): New.
1270 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1271 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1272 (arm_fa726_tune): Set branch_cost field using
1273 arm_default_branch_cost.
1274 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1275 current_tune structure.
1276 * dojump.c (tm_p.h): Include file.
1277
1278 2011-06-02 Julian Brown <julian@codesourcery.com>
1279
1280 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1281 tuning.
1282 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1283 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1284 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1285 field.
1286 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1287 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1288 (arm_fa726te_tune): Add prefer_constant_pool setting.
1289 (arm_v6t2_tune, arm_cortex_tune): New.
1290 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1291 prefer_constant_pool setting.
1292
1293 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1294
1295 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1296 switch statement.
1297 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1298 (*movdf_internal) <case 6,7,8>: Ditto.
1299
1300 * config/i386/constraints.md (Y4): New register constraint.
1301 * config/i386/sse.md (vec_set<mode>_0): Merge with
1302 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1303 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1304 *vec_extractv2di_1_sse.
1305 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1306 and *vec_concatv2di_rex64_sse.
1307
1308 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1309
1310 PR target/48807
1311 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1312 of cgraph_local_info for null before attempting to use it.
1313
1314 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1315
1316 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1317 (current_function_dynamic_alloc_count): Delete.
1318 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1319 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1320 (expand_builtin_update_setjmp_buf): Remove dead code.
1321 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1322 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1323 support.
1324 * function.c (instantiate_virtual_regs): Likewise.
1325 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1326 for a block with a single abnormal incoming edge.
1327 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1328 (SETJMP_VIA_SAVE_AREA): Delete.
1329 * config/sparc/sparc-protos.h (load_got_register): Declare.
1330 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1331 (load_got_register): Make global.
1332 (sparc_frame_pointer_required): Add 'static'.
1333 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1334 (sparc_builtin_setjmp_frame_value): New function.
1335 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1336 (save_stack_nonlocal): New expander.
1337 (restore_stack_nonlocal): Likewise.
1338 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1339 (nonlocal_goto_internal): New insn.
1340 (goto_handler_and_restore): Delete.
1341 (builtin_setjmp_setup): Likewise.
1342 (do_builtin_setjmp_setup): Likewise.
1343 (setjmp): Likewise.
1344 (builtin_setjmp_receiver): New expander.
1345
1346 2011-06-01 David Li <davidxl@google.com>
1347
1348 PR middle-end/49261
1349 * tree-pretty-print.c (dump_function_header): Format cleanup.
1350
1351 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1352
1353 PR target/49238
1354 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1355 needed when original operands are used for msw_skip comparison.
1356
1357 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1358
1359 PR debug/49250
1360 * var-tracking.c (add_uses, add_stores): Don't call
1361 cselib_subst_to_values on ENTRY_VALUE.
1362
1363 2011-06-01 Diego Novillo <dnovillo@google.com>
1364
1365 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1366 output_record_start with LTO_null instead of output_zero.
1367 (lto_output_ts_binfo_tree_pointers): Likewise.
1368 (lto_output_tree): Likewise.
1369 (output_eh_try_list): Likewise.
1370 (output_eh_region): Likewise.
1371 (output_eh_lp): Likewise.
1372 (output_eh_regions): Likewise.
1373 (output_bb): Likewise.
1374 (output_function): Likewise.
1375 (output_unreferenced_globals): Likewise.
1376 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1377 instead of NUM_TREE_CODES.
1378 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1379 (lto_output_int_in_range): Change << to >> when shifting VAL.
1380
1381 2011-06-01 Diego Novillo <dnovillo@google.com>
1382
1383 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1384 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1385
1386 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1387
1388 PR target/45074
1389 * optabs.h (valid_multiword_target_p): Declare.
1390 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1391 doing multi-word operations.
1392 * optabs.c (expand_binop): Likewise.
1393 (expand_doubleword_bswap): Likewise.
1394 (expand_absneg_bit): Likewise.
1395 (expand_unop): Likewise.
1396 (expand_copysign_bit): Likewise.
1397 (multiword_target_p): New function.
1398
1399 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1400
1401 PR rtl-optimization/48830
1402 PR rtl-optimization/48808
1403 PR rtl-optimization/48792
1404 * reload.c (push_reload): Check contains_reg_of_mode.
1405 * reload1.c (strip_paradoxical_subreg): New function.
1406 (gen_reload_chain_without_interm_reg_p): Use it to handle
1407 paradoxical subregs.
1408 (emit_output_reload_insns, gen_reload): Likewise.
1409
1410 2011-06-01 David Li <davidxl@google.com>
1411
1412 * predict.c : Change pass name
1413 * ipa.c: Ditto.
1414 * dce.c: Ditto.
1415 * tree-profile.c: Ditto.
1416 * except.c: Ditto.
1417
1418 2011-06-01 David Li <davidxl@google.com>
1419
1420 * tree-pretty-print.c (dump_function_header): New function.
1421 * final.c (rest_of_clean_state): Use header dumper.
1422 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1423 * passes.c (pass_init_dump_file): Use header dumper.
1424
1425 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1426
1427 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1428 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1429 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1430 New functions.
1431 (mem_loc_descriptor): Use them.
1432
1433 * var-tracking.c (create_entry_value): New function.
1434 (vt_add_function_parameter): Use it.
1435
1436 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1437
1438 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1439 Include <signal.h>, <ucontext.h>.
1440 (sigill_caught): Define.
1441 (sigill_hdlr): New function.
1442 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1443 insns can be executed.
1444 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1445 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1446
1447 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1448
1449 * config/t-slibgcc-darwin: Move to ...
1450 * config/t-slibgcc-dummy: ... this. Clarify comments.
1451 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1452 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1453 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1454 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1455 Remove i386/t-crtstuff from tmake_file.
1456 (i[34567]86-*-solaris2*): Remove t-svr4,
1457 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1458 t-slibgcc-dummy.
1459 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1460 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1461 sparc/t-crtfm from tmake_file.
1462 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1463 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1464 Remove extra_parts.
1465 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1466 * config/i386/t-nwld (SHLIB_LINK): Remove.
1467 * config/i386/t-rtems-i386: Rename to ...
1468 * config/i386/t-rtems: ... this.
1469 ($(T)crti.o, $(T)crtn.o): Remove.
1470 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1471 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1472 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1473 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1474 EXTRA_MULTILIB_PARTS): Remove.
1475 * config/sparc/t-sol2-64: Likewise.
1476 * config/sparc/t-sol2: Remove.
1477 * config/sparc/t-crtin: Remove.
1478 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1479 * config/i386/gmon-sol2.c: Remove.
1480 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1481 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1482 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1483 * config/i386/sol2-gc1.asm: Remove.
1484 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1485 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1486 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1487 * config/t-slibgcc-sld: Remove.
1488
1489 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1490
1491 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1492 base_type_for_mode with op_mode instead of mode.
1493
1494 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1495
1496 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1497 Cortex-A15.
1498 * config/arm/arm-tune.md: Regenerate.
1499 * config/arm/arm-tables.opt: Regenerate.
1500 * config/arm/arm.c (FL_DIV): Rename...
1501 (FL_THUMB_DIV): ... to this.
1502 (FL_ARM_DIV): Define.
1503 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1504 (arm_arch_hwdiv): Remove.
1505 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1506 (arm_issue_rate): Add cortexr5.
1507 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1508 __ARM_ARCH_EXT_IDIV__.
1509 (TARGET_IDIV): Define.
1510 (arm_arch_hwdiv): Remove.
1511 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1512 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1513 (divsi3, udivsi3): New patterns.
1514 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1515 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1516
1517 2011-06-01 Martin Jambor <mjambor@suse.cz>
1518
1519 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1520 * ipa-utils.c (searchc): Set scc_no.
1521
1522 2011-06-01 Martin Jambor <mjambor@suse.cz>
1523
1524 * ipa-utils.c (searchc_env): New field allow_overwritable.
1525 (searchc): do not ignore edges to overwritable nodes if indicated
1526 by env->allow_overwritable.
1527 (ipa_reduced_postorder): Set env.allow_overwritable.
1528
1529 2011-06-01 Richard Guenther <rguenther@suse.de>
1530
1531 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1532 char_type_node.
1533 * lto-streamer.c (lto_record_common_node): Take node pointer,
1534 do not register types.
1535 (lto_preload_common_nodes): Explicitly skip preloading nodes
1536 that differ between frontends.
1537
1538 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1539
1540 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1541 NON_FLOAT_REGS.
1542
1543 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1544
1545 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1546 parameter value for dump. Dump cost on outermost call only.
1547 (rs6000_memory_move_cost): Dump cost on outermost call only.
1548
1549 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1550
1551 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1552 DW_OP_GNU_convert ops.
1553
1554 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1555 cselib_preserve_constants.
1556 (cselib_lookup_1): If cselib_preserve_constants,
1557 a new VALUE is being created for REG and there is a VALUE for the
1558 same register in wider mode, add another loc with lowpart SUBREG of
1559 the wider VALUE.
1560 (cselib_subst_to_values): Handle ENTRY_VALUE.
1561 * var-tracking.c (replace_expr_with_values): Return NULL for
1562 ENTRY_VALUE too.
1563 * dwarf2out.c (convert_descriptor_to_signed): New function.
1564 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1565 instead of two shifts.
1566 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1567 the right mode if needed.
1568 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1569 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1570 convert_descriptor_to_signed.
1571 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1572 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1573
1574 PR target/48688
1575 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1576
1577 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1578
1579 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1580 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1581 (SWI248x): New mode iterator, rename from X87MODEI.
1582 (X87MODEI): Remove mode iterator.
1583 (X87MODEI12): Ditto.
1584 (SSEMODEI24): Ditto.
1585
1586 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1587
1588 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1589 * doc/invoke.texi: Document max-vartrack-expr-depth.
1590 * var-tracking.c (EXPR_DEPTH): New.
1591 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1592
1593 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1594
1595 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1596 * config/i386/sse.md: Add n to negated FMA pattern names.
1597
1598 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1599
1600 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1601
1602 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1603
1604 * gengtype-state.c (read_state_params_structs): Initialize previous.
1605
1606 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1607
1608 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1609 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1610
1611 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1612
1613 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1614 registers. Penalize F*r->o alternative to prevent partial memory
1615 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1616 CONST_DOUBLE immediates when optimizing function for size. Do not move
1617 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1618 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1619 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1620 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1621 alternatives.
1622 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1623
1624 (fp_register_operand splitters): Use fp_register_operand
1625 constraint. Do not use FP_REG_P in insn condition.
1626 (any_fp_register_operand splitters): Use any_fp_register_operand
1627 constraint. Do not use ANY_FP_REG_P in insn condition.
1628
1629 2011-05-31 Jan Hubicka <jh@suse.cz>
1630
1631 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1632 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1633 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1634 (lto_output_edge): Use output_enum and var_len_unsigned.
1635 (lto_output_varpool_node): Likewise.
1636 (input_overwrite_node): Do not take resolution parameter;
1637 extract it from a bitpack.
1638 (input_node): Do not read resolution; use input_enum and
1639 var_len_unsigned.
1640 (input_varpool_node): Likewise.
1641 (input_edge): Likewise.
1642 (input_cgraph_1): Likewise.
1643
1644 2011-05-31 Richard Guenther <rguenther@suse.de>
1645
1646 * gimple.c (gimple_register_canonical_type): Do not register
1647 any types via gimple_register_type.
1648
1649 2011-05-31 Jan Hubicka <jh@suse.cz>
1650
1651 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1652 of thunks.
1653
1654 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1655
1656 PR rtl-optimization/49235
1657 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1658 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1659
1660 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1661
1662 PR tree-optimization/49093
1663 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1664 data references.
1665
1666 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1667
1668 PR debug/49047
1669 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1670 for concrete functions containing the code of cloned functions.
1671
1672 2011-05-31 Richard Guenther <rguenther@suse.de>
1673
1674 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1675 to ...
1676 (forward_propagate_into_comparison_1): ... this.
1677 (forward_propagate_comparison): Rename to ...
1678 (forward_propagate_into_comparison): ... this. Split out
1679 real forward propagation code to ...
1680 (forward_propagate_comparison): ... this.
1681 (forward_propagate_into_gimple_cond): Remove looping.
1682 (forward_propagate_into_cond): Likewise.
1683 (simplify_not_neg_expr): Return whether we have done something.
1684 (simplify_gimple_switch): Likewise.
1685 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1686 (ssa_forward_propagate_and_combine): ... this. Re-structure
1687 to do a forward forward-propagation walk on BBs and a backward
1688 stmt combining walk on BBs. Consistently re-scan changed statements.
1689 (pass_forwprop): Adjust.
1690
1691 2011-05-30 Ian Lance Taylor <iant@google.com>
1692
1693 * godump.c (go_format_type): Correct length of name added to
1694 obstack for anonymous field.
1695
1696 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1697
1698 PR target/49186
1699 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1700 part of the second operand is 0.
1701
1702 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1703
1704 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1705 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1706 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1707 (*movdf_internal_rex64): Do not penalize F->r alternative.
1708 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1709 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1710 when optimizing function for size. Do not move CONST_DOUBLEs
1711 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1712 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1713 SUBREGs. Do not check for MEM_P operands in the insn condition,
1714 check for ANY_FP_REGNO_P instead.
1715 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1716 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1717 function for speed.
1718 * config/i386/i386.c (ix86_option_override_internal): Do not
1719 set TARGET_INTEGER_DFMODE_MOVES here.
1720
1721 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 PR target/49168
1724 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1725
1726 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1727
1728 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1729 DW_TAG_rvalue_reference_type even for
1730 -gdwarf-4 -fno-debug-types-section.
1731
1732 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1733
1734 PR tree-optimization/46728
1735 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1736 (build_and_insert_binop): New.
1737 (gimple_expand_builtin_pow): Reorder args for
1738 build_and_insert_call; use build_and_insert_binop; add more
1739 optimizations for fractional exponents.
1740
1741 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1742
1743 PR bootstrap/49190
1744
1745 Revert:
1746 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1747
1748 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1749 tree_common.
1750 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1751 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1752 TS_BASE instead of TS_COMMON.
1753 * varasm.c (assemble_name): Remove assert.
1754
1755 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1756
1757 * config.gcc: Keep obselete list sorted.
1758
1759 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1760 Eric Botcazou <ebotcazou@adacore.com>
1761
1762 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1763 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1764 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1765 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1766 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1767
1768 2011-05-30 Richard Guenther <rguenther@suse.de>
1769
1770 * gimple.c (gimple_types_compatible_p_1): Compare record
1771 and union type members properly.
1772
1773 2011-05-30 Richard Guenther <rguenther@suse.de>
1774
1775 PR tree-optimization/49210
1776 * ipa-split.c (split_function): Care for the case where the call
1777 result is not trivially convertible to the result holding variable.
1778
1779 2011-05-30 Richard Guenther <rguenther@suse.de>
1780
1781 PR tree-optimization/49218
1782 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1783 overflow occured.
1784
1785 2011-05-30 Richard Guenther <rguenther@suse.de>
1786
1787 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1788 New function split out from ...
1789 (forward_propagate_into_gimple_cond): ... here. Adjust.
1790 (forward_propagate_into_cond): Likewise.
1791 (forward_propagate_comparison): Also propagate into
1792 comparisons on assignment RHS. Change return value to
1793 behave similar to forward_propagate_into_cond.
1794 (tree_ssa_forward_propagate_single_use_vars): Handle
1795 strict-overflow warnings properly for forward_propagate_comparison.
1796
1797 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1798
1799 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1800 from plugin linker.
1801 * configure: Regenerate.
1802
1803 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1804
1805 PR tree-optimization/49199
1806 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1807 non-reduction operands are either defined in the loop or by induction.
1808
1809 2011-05-29 Xinliang David Li <davidxl@google.com>
1810
1811 * opts-global.c (handle_common_deferred_options): Handle new options.
1812 * passes.c (register_one_dump_file): Call register_pass_name.
1813 (execute_one_pass): Check explicit enable/disable flag.
1814 (passr_hash): New function.
1815 (passr_eq): Ditto.
1816 (register_pass_name): Ditto.
1817 (get_pass_by_name): Ditto.
1818 (pass_hash): Ditto.
1819 (pass_eq): Ditto.
1820 (enable_pass): Ditto.
1821 (disable_pass): Ditto.
1822 (is_pass_explicitly_enabled_or_disabled): Ditto.
1823
1824 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1825
1826 * config/i386/i386.md (*movoi_internal_avx): Use
1827 standard_sse_constant_opcode for alternative 0.
1828 (*movti_internal_sse): Ditto.
1829 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1830 alternative 2.
1831 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1832 sselog1 type moves.
1833 (*movsi_internal): Ditto.
1834 (*movdi_internal): Ditto. Add ssecvt type moves.
1835
1836 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1837
1838 PR target/48830
1839 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1840
1841 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1842
1843 PR rtl-optimization/49095
1844 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1845 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1846
1847 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1848
1849 PR target/43995
1850 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1851 recurse_p argument. Only follow register copies if it is set,
1852 and prevent mips_find_pic_call_symbol from recursing.
1853 (mips_find_pic_call_symbol): Add a recurse_p argument.
1854 Pass it to mips_pic_call_symbol_from_set.
1855 (mips_annotate_pic_calls): Update accordingly.
1856
1857 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1858
1859 * emit-rtl.c (try_split): Use a loop to search for
1860 NOTE_INSN_CALL_ARG_LOCATIONs.
1861
1862 2011-05-29 Richard Guenther <rguenther@suse.de>
1863
1864 PR tree-optimization/49217
1865 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1866
1867 2011-05-28 Jan Hubicka <jh@suse.cz>
1868
1869 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1870 length.
1871 (string_slot_free): Remove
1872 (create_output_block): Initialize obstack.
1873 (destroy_output_block): Free obstack.
1874 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1875 the string unless it needs to be added into the hash.
1876 (lto_output_string_with_length): Add persistent attribute;
1877 handle NULL strings.
1878 (lto_output_string): Add PERSISTENT parameter.
1879 (output_string_cst, output_identifier): Simplify.
1880 (lto_output_location_bitpack): Update.
1881 (lto_output_builtin_tree): Update.
1882 * lto-streamer.h (struct output_block): Add obstack.
1883 (lto_output_string, lto_output_string_with_length): Remove
1884 declarations; functions are static now.
1885
1886 2011-05-28 Jan Hubicka <jh@suse.cz>
1887
1888 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1889 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1890 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1891 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1892 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1893 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1894 unpack_ts_decl_with_vis_value_fields,
1895 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1896 lto_get_builtin_tree): Use enum and variable length i/o.
1897 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1898 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1899 New functions.
1900 (bp_pack_enum, bp_unpack_enum): New macros.
1901
1902 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1903
1904 * genrecog.c: Remove redundant forward declarations.
1905
1906 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1907
1908 * config.gcc: Deprecate mips*-*-openbsd*.
1909
1910 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1911
1912 PR bootstrap/49195
1913 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1914 for match_op_dup.
1915
1916 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1917
1918 PR middle-end/48981
1919 * gengtype.c (vec_prefix_type): New function.
1920 (note_def_vec): Use vec_prefix_type and change the length
1921 attribute to be based on the prefix.
1922 * vec.c: Include coretypes.h before vec.h.
1923 (struct vec_prefix): Remove.
1924 (vec_gc_p_reserve): Change the offsetof to sizeof.
1925 (vec_gc_p_reserve_exact): Likewise.
1926 (vec_heap_p_reserve): Likewise.
1927 (vec_heap_p_reserve_exact): Likewise.
1928 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1929 (vec_stack_p_reserve): Change the offsetof to sizeof.
1930 (vec_stack_p_reserve_exact): Likewise.
1931 * vec.h (struct vec_prefix): New struct definition.
1932 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1933 (VEC_T_GTY(T,B)): Likewise.
1934 (DEF_VEC_FUNC_P(T)): Use prefix field.
1935 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1936 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1937
1938 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1939
1940 PR tree-optimization/46728
1941 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1942 (powi_as_mults): Add gimple_set_location.
1943 (build_and_insert_call): New.
1944 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1945 0.5, 0.25, 0.75, 1./3., or 1./6.
1946
1947 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1948
1949 * doc/contrib.texi: Update copyright years.
1950 (Contributors): Add Zdenek Sojka.
1951
1952 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1953
1954 * c-decl.c (c_push_function_context): Copy the current statement
1955 list stack.
1956 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1957 (finish_struct): Call building_stmt_list_p instead of checking
1958 cur_stmt_list.
1959 * c-parser.c (c_parser_postfix_expression): Likewise.
1960 * c-typeck.c (c_end_compound_stmt): Likewise.
1961 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1962 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1963 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1964 (free_stmt_list): Likewise.
1965 * tree.h (struct tree_statement_list): Include typed_tree instead
1966 of tree_common.
1967 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1968 as TS_TYPED instead of TS_COMMON.
1969
1970 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1971 Uros Bizjak <ubizjak@gmail.com>
1972
1973 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1974 (HAVE_AS_IX86_TLSGDPTL): Define.
1975 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1976 (HAVE_AS_IX86_TLSLDMPLT): Define.
1977 * configure: Regenerate.
1978 * config.in: Regenerate.
1979 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1980 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1981 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1982 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1983 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1984 @tlsldmplt or @plt.
1985 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1986
1987 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1988
1989 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1990 and reverse_cond.
1991 (INSN_COND, INSN_REVERSE_COND): New macros.
1992 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1993 once.
1994 (sched_get_condition_with_rev): Cache the results, and look them up
1995 if possible.
1996 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1997 are clobbered by the current insn.
1998 * target.def (exposed_pipline): New sched data hook.
1999 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2000 * doc/tm.texi: Regenerate.
2001
2002 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2003
2004 PR tree-optimization/49170
2005 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2006 sincos or cexp.
2007
2008 2011-05-27 Richard Guenther <rguenther@suse.de>
2009
2010 PR middle-end/49189
2011 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2012 of comparisons.
2013
2014 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2015
2016 * haifa-sched.c (sched_scan_info): Remove.
2017 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2018 with NULL args.
2019 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2020 Remove functions.
2021 (sched_scan): Remove.
2022 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2023 static. All callers changed.
2024 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2025 static. All callers changed.
2026 (sched_init_luids): Remove all arguments except the first. All
2027 callers changed. Don't use sched_scan.
2028 (haifa_init_h_i_d): Likewise.
2029 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2030 manually rather than using sched_init_luids. Likewise with
2031 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2032 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2033 rather than sched_init_luids with NULL args.
2034 * sel-sched-ir.c (new_insns): Remove variable.
2035 (sched_scan): New static function, previously in haifa-sched.c. Remove
2036 all arguments but the first two; all callers changed.
2037 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2038 rather than sched_init_luids.
2039 (sel_init_bbs): Remove second argument. All callers changed.
2040 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2041 with NULL arguments.
2042 (create_insn_rtx_from_pattern): Likewise.
2043 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2044 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2045 (sched_init_insn_luid, sched_extend_luids): Declare.
2046 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2047 declarations.
2048
2049 2011-05-27 Richard Guenther <rguenther@suse.de>
2050
2051 PR middle-end/49177
2052 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2053 A CMP B ? (T) true : (T) false for non-integral types T again.
2054
2055 2011-05-27 Jan Hubicka <jh@suse.cz>
2056
2057 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2058 so 0 means NULL string.
2059 (lto_output_string_with_length): ... here.
2060 (lto_output_string, output_string_cst, output_identifier): Update
2061 handling of NULL strings.
2062 (lto_output_location_bitpack): New function.
2063 (lto_output_location): Use it.
2064 (lto_output_tree_ref): Use output_record_start.
2065 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2066 len values.
2067 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2068 values by 1.
2069 (input_string_internal): ... here;
2070 (input_string_cst, input_identifier, lto_input_string): Update handling
2071 of NULL strings.
2072 (lto_input_location_bitpack): New function
2073 (lto_input_location): Use it.
2074 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2075 values.
2076 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2077 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2078 (bp_pack_value): Sanity check the value range.
2079 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2080 New functions.
2081 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2082 New functions.
2083
2084 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2085
2086 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2087 call_arg_location instructions down the floor.
2088
2089 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2090
2091 PR rtl-optimization/49154
2092 * ira.c (setup_pressure_classes): Process class without sublcasses
2093 as a candidate for pressure classes.
2094
2095 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2096
2097 PR rtl-optimization/48575
2098 * genrecog.c (position_type): New enum.
2099 (position): New structure.
2100 (decision): Use position structure instead of a string.
2101 (root_pos, peep2_insn_pos_list): New variables.
2102 (next_position, compare_positions): New functions.
2103 (new_decision): Use position structures instead of strings.
2104 (maybe_both_true): Likewise.
2105 (change_state): Likewise.
2106 (write_tree): Likewise.
2107 (make_insn_sequence): Likewise.
2108
2109 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2110
2111 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2112 TS_BASE instead of TS_COMMON.
2113 (find_decls_types_r): Check for TS_TYPED structure before looking at
2114 TREE_TYPE.
2115 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2116 Add chain field.
2117 (BLOCK_CHAIN): Use new chain field.
2118
2119 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2120
2121 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2122 moves expensive on Power7 also.
2123
2124 2011-05-26 Richard Guenther <rguenther@suse.de>
2125
2126 * fold-const.c (fold_unary_loc): Remove bogus code.
2127
2128 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2129
2130 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2131 tree_common.
2132 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2133 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2134 TS_BASE instead of TS_COMMON.
2135 * varasm.c (assemble_name): Remove assert.
2136
2137 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2138
2139 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2140 substituted first.
2141 * libgcc-std.ver: Delete file.
2142
2143 2011-05-26 Richard Guenther <rguenther@suse.de>
2144
2145 PR tree-optimization/48702
2146 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2147 only when we know the base address is within bounds.
2148 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2149 assume the base address of TARGET_MEM_REFs is in bounds.
2150
2151 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2152
2153 PR target/49099
2154 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2155 declaration in TARGET_SOLARIS.
2156
2157 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2158
2159 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2160 The instruction is then expanded explicitly.
2161 (supported_compare): Callable instruction.
2162 (compare): Likewise.
2163
2164 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2165
2166 PR c++/49165
2167 * gimplify.c (shortcut_cond_r): Don't special case
2168 COND_EXPRs if they have void type on one of their arms.
2169
2170 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2171
2172 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2173 to reduce duplication, and to achieve a slightly more logical order
2174 of operations.
2175
2176 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR tree-optimization/49161
2179 * tree-vrp.c (struct case_info): New type.
2180 (compare_case_labels): Sort case_info structs instead of
2181 trees, and not primarily by CASE_LABEL uids but by
2182 label_for_block indexes.
2183 (find_switch_asserts): Put case labels into struct case_info
2184 array instead of TREE_VEC, adjust sorting, compare label_for_block
2185 values instead of CASE_LABELs.
2186
2187 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2188
2189 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2190 ("orndi3_neon"): Likewise.
2191 ("bic<mode>3_neon"): Likewise.
2192
2193 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2194
2195 PR tree-optimization/49038
2196 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2197 Ensure at least one epilogue iteration if required by data
2198 accesses with gaps.
2199 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2200 to mark loops that require peeling for gaps.
2201 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2202 (vect_get_known_peeling_cost): Take peeling for gaps into
2203 account.
2204 (vect_transform_loop): Generate epilogue if required by data
2205 access with gaps.
2206 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2207 loop as requiring an epilogue if there are gaps in the end of
2208 the strided group.
2209
2210 2011-05-25 Ian Lance Taylor <iant@google.com>
2211
2212 * godump.c (go_format_type): Output the first field with a usable
2213 Go type, if any.
2214
2215 2011-05-25 Ian Lance Taylor <iant@google.com>
2216
2217 * godump.c (go_format_type): Check for invalid type names, pointer
2218 target types, and struct field types.
2219
2220 2011-05-25 Jason Merrill <jason@redhat.com>
2221
2222 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2223
2224 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2225
2226 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2227
2228 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2229
2230 * config/i386/i386.md (*movqi_extv_1)): Put back
2231 "register_operand" check in "type" calculation.
2232 (*movqi_extzv_2): Likewise.
2233
2234 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2235
2236 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2237
2238 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2239
2240 PR bootstrap/49160
2241 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2242 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2243 __divxc3, __divtc3): Wrap definitions in #ifndef.
2244
2245 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2246
2247 PR target/49142
2248 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2249 "register_operand" check and replace q_regs_operand with
2250 QIreg_operand in "type" calculation.
2251 (*movqi_extv_1): Likewise.
2252 (*movqi_extzv_2_rex64): Likewise.
2253 (*movqi_extzv_2): Likewise.
2254
2255 * config/i386/predicates.md (QIreg_operand): New.
2256
2257 2011-05-25 Richard Guenther <rguenther@suse.de>
2258
2259 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2260 type-based offset disambiguation, streamline MEM_REF and
2261 TARGET_MEM_REF handling.
2262
2263 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2264
2265 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2266 (bdesc_special_args): Add pause intrinsic.
2267
2268 * config/i386/i386.md (UNSPEC_PAUSE): New.
2269 (pause): Likewise.
2270 (*pause): Likewise.
2271 * config/i386/ia32intrin.h (__pause): Likewise.
2272
2273 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2274 pause intrinsic.
2275
2276 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2277
2278 PR tree-optimization/46728
2279 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2280 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2281
2282 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2283
2284 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2285 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2286 instead of TS_COMMON.
2287
2288 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2289
2290 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2291 LIBGCC2_GNU_PREFIX is defined.
2292 (__N): New macro.
2293 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2294 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2295 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2296 __clz_tab): Define using __N.
2297 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2298 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2299 * target.def (libfunc_gnu_prefix): New hook.
2300 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2301 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2302 * doc/tm.texi: Regenerate.
2303 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2304 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2305 account.
2306 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2307 (init_optabs): Likewise for the bswap libfuncs.
2308 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2309 and divide.
2310 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2311 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2312 * libgcc-std.ver: Remove.
2313 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2314 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2315 libgcc-std.ver.
2316 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2317 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2318 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2319 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2320 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2321 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2322 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2323 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2324 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2325 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2326
2327 2011-05-25 Jan Hubicka <jh@suse.cz>
2328
2329 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2330 (lto_output_tree): Use output_record_start.
2331 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2332 (lto_get_pickled_tree): Use input_record_start.
2333 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2334 (lto_value_range_error): New function.
2335 * lto-streamer.h (lto_value_range_error): Declare.
2336 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2337 (lto_output_enum, lto_input_enum): New macros.
2338
2339 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2340
2341 * common.opt (flag_stack_usage_info): New variable.
2342 (-Wstack-usage): New option.
2343 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2344 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2345 <OPT_fstack_usage>: Likewise.
2346 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2347 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2348 of flag_stack_usage.
2349 (emit_library_call_value_1): Likewise.
2350 * explow.c (allocate_dynamic_stack_space): Likewise.
2351 * function.c (instantiate_virtual_regs ): Likewise.
2352 (prepare_function_start): Likewise.
2353 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2354 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2355 * config/arm/arm.c (arm_expand_prologue): Likewise.
2356 (thumb1_expand_prologue): Likewise.
2357 * config/avr/avr.c (expand_prologue): Likewise.
2358 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2359 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2360 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2361 * config/mips/mips.c (mips_expand_prologue): Likewise.
2362 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2363 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2364 * config/s390/s390.c (s390_emit_prologue): Likewise.
2365 * config/sh/sh.c (sh_expand_prologue): Likewise.
2366 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2367 * config/spu/spu.c (spu_expand_prologue): Likewise.
2368
2369 2011-05-25 Richard Guenther <rguenther@suse.de>
2370
2371 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2372 (gimple_canonical_types_compatible_p): Likewise.
2373
2374 2011-05-25 Jan Hubicka <jh@suse.cz>
2375
2376 PR middle-end/49062
2377 * ipa.c (function_and_variable_visibility): Only add to same
2378 comdat group list if DECL_ONE_ONLY.
2379
2380 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2381
2382 PR rtl-optimization/49014
2383 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2384
2385 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2386
2387 PR target/49128
2388 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2389
2390 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2391
2392 PR rtl-optimization/48757
2393 * ira-build.c (loop_with_eh_edge_p): Rename to
2394 loop_with_complex_edge_p, check edges on complexity, make function
2395 conditional.
2396 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2397 conditional.
2398
2399 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2400
2401 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2402 force flag_ira_share_save_slots to 0.
2403
2404 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2405
2406 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2407 (vt_initialize): Set PROLOGUE_BB unconditionally.
2408 Add block comment about CFA_BASE_RTX machinery.
2409 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2410 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2411
2412 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2413
2414 PR objc/48187
2415 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2416 parsing of syntax error in ObjC instance variable lists. In
2417 particular, avoid an infinite loop if there is a stray ']'.
2418 Updated error message.
2419
2420 2011-05-24 Ian Lance Taylor <iant@google.com>
2421
2422 * godump.c (go_define): Don't accept a string immediately after
2423 another operand.
2424
2425 2011-05-24 Ian Lance Taylor <iant@google.com>
2426
2427 * godump.c (struct godump_container): Add invalid_hash field.
2428 (go_format_type): Return false if type is found in invalid_hash.
2429 (go_output_typedef): Add invalid type to invalid_hash.
2430 (go_finish): Create and delete invalid_hash.
2431
2432 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2433
2434 PR tree-optimization/46728
2435 * tree-ssa-math-opts.c (powi_table): New.
2436 (powi_lookup_cost): New.
2437 (powi_cost): New.
2438 (powi_as_mults_1): New.
2439 (powi_as_mults): New.
2440 (gimple_expand_builtin_powi): New.
2441 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2442 (gate_cse_sincos): Remove sincos/cexp restriction.
2443
2444 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2445
2446 PR target/3746
2447 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2448 mips-tdump native.
2449 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2450 * mips-tdump.c: Likewise.
2451
2452 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2453
2454 PR target/49128
2455 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2456 add -mno-XXX. Handle FMA.
2457
2458 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2459
2460 PR rtl-optimization/48633
2461 * ira-build.c (loop_with_eh_edge_p): New function.
2462 (mark_loops_for_removal): Use it.
2463
2464 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2465
2466 PR rtl-optimization/48971
2467 * ira.c (setup_pressure_classes): Don't check register move cost
2468 for classes with one registers. Don't add pressure class if there
2469 is a pressure class with the same available hard registers.
2470 Check contains_reg_of_mode. Fix a typo in collecting
2471 temp_hard_regset. Ignore hard registers not belonging to a class.
2472
2473 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2474
2475 PR target/49133
2476 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2477
2478 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2479 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2480
2481 PR gcov-profile/48845
2482 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2483
2484 2011-05-24 Richard Guenther <rguenther@suse.de>
2485
2486 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2487 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2488 (gimple_types_compatible_p_1): Adjust.
2489 (iterative_hash_canonical_type): Do not bother about complete vs.
2490 incomplete types.
2491 (gimple_canonical_types_compatible_p): Likewise.
2492
2493 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2494
2495 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2496
2497 2011-05-24 Richard Guenther <rguenther@suse.de>
2498
2499 PR bootstrap/49078
2500 * gimple.c (gimple_register_canonical_type): Revert
2501 previous change.
2502 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2503 does not for a tree for the case where it matters. Cache
2504 pointer-type alias-sets.
2505
2506 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2507
2508 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2509 (OBJS): Remove options.o, opts-common.o and prefix.o.
2510 (OBJS-libcommon-target): New.
2511 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2512 (BACKEND): Include libcommon-target.a.
2513 (MOSTLYCLEANFILES): Include libcommon-target.a.
2514 (libcommon-target.a): New.
2515 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2516 prefix.o.
2517
2518 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2519
2520 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2521 parts of output shared with the driver.
2522 * optc-gen.awk: Don't generate parts of output not shared with the
2523 driver.
2524 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2525 * doc/options.texi (SourcerInclude): Mention options-save.c.
2526 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2527 (OBJS): Add options-save.o.
2528 (options-save.c, options-save.o): New.
2529 (options.o): Update dependencies.
2530 (gcc-options.o): Remove.
2531 (mostlyclean): Remove options-save.c.
2532
2533 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2534
2535 PR debug/49032
2536 * dbxout.c: Include cgraph.h.
2537 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2538 and without value expr, return NULL if no varpool node exists for
2539 it or if it is not needed.
2540 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2541
2542 PR c/49120
2543 * c-decl.c (start_decl): Convert expr to void_type_node.
2544
2545 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2546
2547 PR rtl-optimization/48826
2548 * emit-rtl.c (try_split): When splitting a call that is followed
2549 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2550
2551 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2552
2553 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2554 parameters passed in memory prefer using DECL_INCOMING_RTL over
2555 the pseudos it will be copied into.
2556
2557 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2558
2559 PR target/47315
2560 * config/i386/i386.c (ix86_option_override_internal): Save the
2561 initial options after checking vzeroupper.
2562
2563 2011-05-23 David Li <davidxl@google.com>
2564
2565 PR tree-optimization/48988
2566 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2567 Initialize has_valid_pred for each pred chain.
2568
2569 2011-05-23 Richard Guenther <rguenther@suse.de>
2570
2571 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2572 (iterative_hash_gimple_type): Always hash type names.
2573
2574 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2575
2576 * c-typeck.c (build_function_call_vec): Tweak call to
2577 check_function_arguments.
2578
2579 2011-05-23 Richard Guenther <rguenther@suse.de>
2580
2581 PR tree-optimization/49115
2582 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2583 is not necessarily carried out, do not claim it kills the ref.
2584 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2585
2586 2011-05-23 Richard Guenther <rguenther@suse.de>
2587
2588 PR middle-end/15419
2589 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2590 what pointer types we accept for folding.
2591
2592 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2593
2594 * gthr-gnat.c: Remove.
2595 * gthr-gnat.h: Remove.
2596 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2597 * config/t-freebsd (LIB2ADDEH): Likewise.
2598 * config/t-linux (LIB2ADDEH): Likewise.
2599 * config/t-sol2 (LIB2ADDEH): Likewise.
2600 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2601 * configure.ac (target_thread_file): Remove gnat handling.
2602 * configure: Regenerate.
2603 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2604
2605 2011-05-23 Tristan Gingold <gingold@adacore.com>
2606 Eric Botcazou <ebotcazou@adacore.com>
2607
2608 * gcov.c (create_file_names): If no object directory is specified,
2609 keep the directory of the file.
2610
2611 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2612
2613 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2614 * configure: Regenerate.
2615
2616 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2617
2618 PR middle-end/48973
2619 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2620 failed and the comparison has a single bit signed type, use
2621 constm1_rtx instead of const1_rtx for true value.
2622 (do_store_flag): If ops->type is single bit signed type, disable
2623 signel bit test optimization and pass -1 instead of 1 as last
2624 parameter to emit_store_flag_force.
2625
2626 2011-05-23 Tom de Vries <tom@codesourcery.com>
2627
2628 PR target/45098
2629 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2630 function.
2631 (infer_loop_bounds_from_undefined): Use new function.
2632
2633 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2634
2635 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2636 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2637 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2638 and -O0 otherwise.
2639 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2640
2641 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2642
2643 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2644 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2645 returns true.
2646
2647 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2648
2649 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2650
2651 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2652
2653 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2654 UNSPEC_MOVE_PIC pattern.
2655
2656 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2657
2658 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2659 (sparc-*-rtems*): Likewise.
2660 (sparc64-*-elf*): Likewise.
2661 (sparc64-*-rtems*): Likewise.
2662 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2663 * config/sparc/t-crtin: New file.
2664 * config/sparc/t-sol2 (crti.o): Delete rule.
2665 (crtn.o): Likewise.
2666 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2667 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2668 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2669 (ENDFILE_SPEC): Add crtn.o.
2670
2671 2011-05-22 Tom de Vries <tom@codesourcery.com>
2672
2673 PR middle-end/48689
2674 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2675 CODE_CONTAINS_STRUCT (TS_COMMON).
2676
2677 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR middle-end/49029
2680 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2681 only after deciding which mode to use.
2682
2683 2011-05-22 Tom de Vries <tom@codesourcery.com>
2684
2685 PR target/45098
2686 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2687 for call to get_shiftadd_cost.
2688
2689 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2690
2691 PR target/49104
2692 * config/i386/cpuid.h (bit_MMXEXT): New define.
2693
2694 2011-05-22 Nick Clifton <nickc@redhat.com>
2695
2696 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2697 initialisation of non-existant args[2] element. Use args[] array
2698 not arg[] array to pass arguments to build_function_type_list.
2699
2700 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2701
2702 PR tree-optimization/49087
2703 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2704
2705 2011-05-21 Jason Merrill <jason@redhat.com>
2706
2707 PR c++/49092
2708 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2709 static storage duration.
2710
2711 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2712
2713 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2714 frame pointer.
2715
2716 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2717
2718 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2719 false if there are call-saved registers here...
2720 (sparc_can_use_return_insn_p): ...but here instead.
2721 (save_or_restore_regs): Fix thinko.
2722 (sparc_expand_prologue): Use current_function_is_leaf.
2723 (sparc_frame_pointer_required): Likewise.
2724
2725 2011-05-21 Nick Clifton <nickc@redhat.com>
2726
2727 PR target/49098
2728 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2729
2730 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2731
2732 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2733 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2734
2735 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2736
2737 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2738 * optc-gen.awk: Move common code to opt-read.awk.
2739 * opth-gen.awk: Likewise.
2740 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2741
2742 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2743
2744 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2745
2746 2011-05-20 Tom de Vries <tom@codesourcery.com>
2747
2748 PR target/45098
2749 * tree-ssa-loop-ivopts.c: Include expmed.h.
2750 (get_shiftadd_cost): New function.
2751 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2752
2753 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2754
2755 PR bootstrap/49086
2756 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2757 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2758
2759 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2760
2761 * Makefile.in: Update comment referring to $(OBJS-common).
2762
2763 2011-05-20 Ian Lance Taylor <iant@google.com>
2764
2765 * godump.c (go_output_typedef): Put enum constants in the macro
2766 hash table to avoid duplicate Go const definitions.
2767
2768 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2769
2770 * Makefile.in (LIBDEPS): Add libcommon.a.
2771 (LIBS): Likewise.
2772 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2773 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2774 pretty-print.o and version.o.
2775 (OBJS-libcommon): New.
2776 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2777 (BACKEND): Add libcommon.a.
2778 (MOSTLYCLEANFILES): Likewise.
2779 (libcommon.a): New.
2780 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2781 (cpp$(exeext)): Likewise.
2782 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2783 pretty-print.o and input.o.
2784 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2785 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2786 (errors.o): Remove.
2787 (mips-tfile): Don't explicitly use version.o.
2788 (mips-tdump): Likewise.
2789 (gcov.o): Depend on $(DIAGNOSTIC_H).
2790 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2791 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2792 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2793 * gcov-dump.c: Include intl.h and diagnostic.h.
2794 (main): Initialize diagnostics.
2795 * gcov.c: Include diagnostic.h.
2796 (fnotice): Remove.
2797 (main): Initialize diagnostics.
2798 * lto-wrapper.c: Include diagnostic.h.
2799 (main): Initialize diagnostics.
2800
2801 2011-05-20 Michael Matz <matz@suse.de>
2802
2803 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2804
2805 2011-05-20 Michael Matz <matz@suse.de>
2806 Richard Guenther <rguenther@suse.de>
2807
2808 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2809 use lto_streamer_cache_append directly instead of returning a VEC.
2810 (preload_common_node): Remove.
2811 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2812 track seen nodes.
2813 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2814
2815 2011-05-20 Richard Guenther <rguenther@suse.de>
2816
2817 PR tree-optimization/49079
2818 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2819 MEM_REFs correctly for the trailing array access detection.
2820 Special case constants the same way as decls for overall size
2821 constraining.
2822
2823 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2824
2825 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2826 argument expansion.
2827
2828 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2829
2830 PR tree-optimization/49073
2831 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2832 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2833 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2834
2835 2011-05-20 Richard Guenther <rguenther@suse.de>
2836
2837 PR middle-end/48849
2838 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2839 of pointer types the same way the middle-end does.
2840
2841 2011-05-20 Richard Guenther <rguenther@suse.de>
2842
2843 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2844 or pointer-to chains. Delay all fixup to uniquify_nodes.
2845
2846 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2847
2848 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2849 (fma4_fmaddsub): Likewise
2850
2851 2011-05-19 Jan Hubicka <jh@suse.cz>
2852
2853 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2854 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2855 (type_pair_cache): New static var.
2856 (lookup_type_pair): Use fixed sized custom hash; make inline.
2857 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2858 calls of lookup_type_pair.
2859 (print_gimple_types_stats): Remove cache stats.
2860 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2861 and gtc_ob.
2862
2863 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2864
2865 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2866 when TARGET_RDRND is active.
2867 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2868 Generate dummy SImode target register when target is NULL.
2869
2870 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2871
2872 * config/arm/arm-fpus.def: New.
2873 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2874 arm-fpus.def.
2875 * config/arm/arm-tables.opt: Regenerate.
2876 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2877 (arm_option_override): Don't decode FPU name to string here.
2878 * config/arm/arm.opt (mfpu=): Use Enum.
2879 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2880 Update dependencies.
2881
2882 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2883
2884 * collect2.c: Include diagnostic.h.
2885 (fatal_perror, fatal, error, fancy_abort): Remove.
2886 (main): Set progname. Call xmalloc_set_program_name and
2887 diagnostic_initialize.
2888 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2889 scan_libraries, resolve_lib_name): Call fatal_error instead of
2890 fatal and fatal_perror.
2891 * collect2.h (error, fatal, fatal_perror): Don't declare.
2892 * tlink.c: Include diagnostic-core.h.
2893 (recompile_files): Call fatal_error instead of fatal_perror.
2894 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2895 pretty-print.o and input.o.
2896 (collect2.o, tlink.o): Update dependencies.
2897
2898 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2899
2900 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2901
2902 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2903
2904 PR target/40483
2905 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2906 COMDAT group syntax, both SPARC and x86 variants.
2907 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2908 * configure: Regenerate.
2909 * config/sol2.h (TARGET_SOLARIS): Define.
2910 (PUSHSECTION_FORMAT): Remove.
2911 (SECTION_NAME_FORMAT): Define.
2912 * config/sol2.c: Include hashtab.h.
2913 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2914 expansion, using SECTION_NAME_FORMAT.
2915 (solaris_comdat_htab): New variable.
2916 (struct comdat_entry): Define.
2917 (comdat_hash): New function.
2918 (comdat_eq): New function.
2919 (solaris_elf_asm_comdat_section): New function.
2920 (solaris_define_comdat_signature): New function.
2921 (solaris_code_end): New function.
2922 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2923 (solaris_code_end): Declare.
2924 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2925 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2926 solaris_code_end.
2927 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2928 Remove ATTRIBUTE_UNUSED.
2929 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2930 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2931 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2932 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2933 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2934 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2935 (PUSHSECTION_FORMAT): Remove.
2936 (SECTION_NAME_FORMAT): Redefine.
2937
2938 2011-05-19 Kai Tietz <ktietz@redhat.com>
2939
2940 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2941 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2942 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2943
2944 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2945 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2946
2947 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2948
2949 2011-05-19 Richard Guenther <rguenther@suse.de>
2950
2951 PR middle-end/48985
2952 * tree-object-size.c (addr_object_size): If the pointed-to
2953 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2954
2955 2011-05-19 Richard Guenther <rguenther@suse.de>
2956
2957 * gimple.c (gimple_types_compatible_p_1): Compare names of
2958 the types themselves.
2959 (iterative_hash_gimple_type): And hash them that way.
2960 (gimple_register_type_1): If we register a main variant properly
2961 initialize the leader to ourselves.
2962
2963 2011-05-19 Tom de Vries <tom@codesourcery.com>
2964
2965 PR target/45098
2966 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2967 get_loop_invariant_expr_id.
2968 (get_loop_invariant_expr_id): Use get_expr_id.
2969 (parm_decl_cost): New function.
2970 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2971 Improve bound cost estimation. Use different inv_expr_id for elim and
2972 express cases.
2973
2974 2011-05-19 Tom de Vries <tom@codesourcery.com>
2975
2976 PR target/45098
2977 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2978 cost_base.cost == 0.
2979
2980 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2981
2982 PR target/49002
2983 * config/i386/sse.md
2984 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2985 load cast.
2986
2987 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2988
2989 PR tree-optimization/49039
2990 * tree-vrp.c (extract_range_from_binary_expr): For
2991 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2992 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2993
2994 2011-05-18 Tom de Vries <tom@codesourcery.com>
2995
2996 PR target/45098
2997 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2998
2999 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3000
3001 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3002 (*tls_global_dynamic_64): Ditto.
3003 (*tls_local_dynamic_base_32_gnu): Ditto.
3004 (*tls_local_dynamic_base_64): Ditto.
3005 (tls_initial_exec_64_sun): Ditto.
3006
3007 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3008
3009 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3010 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3011 bf592-none.
3012 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3013 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3014 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3015 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3016 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3017 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3018 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3019
3020 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3021
3022 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3023 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3024 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3025 target_thread_pointer, arm_structure_size_boundary, struct
3026 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3027 struct abi_name, arm_all_abis): Remove.
3028 (arm_option_override) Don't process most enumerated option values here.
3029 Don't process target_fpe_name here. Work with integer not string for
3030 structure size boundary; use separate diagnostics for each case.
3031 * config/arm/arm.h (enum float_abi_type, enum
3032 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3033 to arm-opts.h.
3034 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3035 arm_structure_size_boundary): Remove.
3036 * config/arm/arm.opt (mabi=): Use Enum and Init.
3037 (arm_abi_type): New Enum and EnumValue entries.
3038 (mfloat-abi=): Use Enum and Init.
3039 (float_abi_type): New Enum and EnumValue entries.
3040 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3041 (mfp16-format=): Use Enum and Init.
3042 (arm_fp16_format_type): New Enum and EnumValue entries.
3043 (mstructure-size-boundary=): Use UInteger and Init.
3044 (mtp=): Use Enum and Init.
3045 (arm_tp_type): New Enum and EnumValue entries.
3046
3047 2011-05-18 Richard Guenther <rguenther@suse.de>
3048
3049 PR tree-optimization/49018
3050 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3051 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3052 gimple_has_side_effects.
3053
3054 2011-05-18 Richard Guenther <rguenther@suse.de>
3055
3056 * gimple.c (gimple_register_type_1): New function, split out from ...
3057 (gimple_register_type): ... here. Avoid infinite recursion.
3058
3059 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3060
3061 PR tree-optimization/41881
3062 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3063 reduction_chains along with a macro for its access.
3064 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3065 (destroy_loop_vec_info): Free reduction chains.
3066 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3067 (vect_is_slp_reduction): New function.
3068 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3069 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3070 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3071 definition types for reduction chains.
3072 (vect_supported_load_permutation_p): Don't allow permutations for
3073 reduction chains.
3074 (vect_analyze_slp_instance): Support reduction chains.
3075 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3076 (vect_get_constant_vectors): Handle reduction chains.
3077 (vect_schedule_slp_instance): Mark the first statement of the
3078 reduction chain as reduction.
3079
3080 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3081
3082 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3083 names for group elements access.
3084 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3085 reduction chains as well. Remove data reference and interleaving
3086 related words from the fields names.
3087 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3088 elements access.
3089 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3090 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3091 vect_update_interleaving_chain, vect_same_range_drs,
3092 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3093 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3094 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3095 vect_analyze_group_access, vect_analyze_data_ref_access,
3096 vect_create_data_ref_ptr, vect_transform_strided_load,
3097 vect_record_strided_load_vectors): Likewise.
3098 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3099 vect_model_load_cost, vectorizable_store, vectorizable_load,
3100 vect_remove_stores, new_stmt_vec_info): Likewise.
3101 * tree-vect-slp.c (vect_build_slp_tree,
3102 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3103
3104 2011-05-18 Richard Guenther <rguenther@suse.de>
3105
3106 PR middle-end/48989
3107 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3108 operand verification.
3109 (verify_gimple_assign_binary): Likewise.
3110 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3111 to non-1-precision BOOLEAN_TYPEs.
3112
3113 2011-05-18 Tom de Vries <tom@codesourcery.com>
3114
3115 PR target/45098
3116 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3117
3118 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR tree-optimization/49000
3121 * tree-ssa.c (execute_update_addresses_taken): Call
3122 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3123 be rewritten and decl has been marked for renaming, reset
3124 the debug stmt.
3125
3126 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3127
3128 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3129 enum_opts_set when testing if attributes have set -mfpmath=.
3130
3131 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3132
3133 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3134
3135 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3136
3137 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3138 info->entry with 0
3139 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3140 id.transform_lang_insert_block with NULL.
3141
3142 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3143
3144 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3145 (output_fp_compare): Change args 3 and 4 to bool.
3146 (ix86_expand_call): Change arg 6 to bool.
3147 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3148 (ix86_attr_length_vex_default): Change arg 3 to bool.
3149 * config/i386/i386.md: Update all uses.
3150 * config/i386/i386.c: Ditto.
3151 (ix86_flags_dependent): Change return type to bool.
3152
3153 2011-05-17 Richard Guenther <rguenther@suse.de>
3154
3155 * gimple.c (type_hash_pair_compare): Fix comparison.
3156
3157 2011-05-17 Richard Guenther <rguenther@suse.de>
3158
3159 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3160 case some more, fix final hash value of the non-singleton case.
3161
3162 2011-05-17 Richard Guenther <rguenther@suse.de>
3163
3164 PR bootstrap/49013
3165 Revert
3166 2011-05-16 Richard Guenther <rguenther@suse.de>
3167
3168 * gimple.c (gimple_types_compatible_p_1): Use names of the
3169 type itself, not its main variant.
3170 (iterative_hash_gimple_type): Likewise.
3171
3172 2011-05-17 Richard Guenther <rguenther@suse.de>
3173
3174 * gimple.c (gimple_register_canonical_type): Use the main-variant
3175 leader for computing the canonical type.
3176
3177 2011-05-17 Nick Clifton <nickc@redhat.com>
3178
3179 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3180 moves.
3181
3182 * config/rx/rx.md: Add peephole to remove redundant extensions
3183 after loads.
3184 (bitset_in_memory): Use rx_restricted_mem_operand.
3185 (bitinvert_in_memory): Likewise.
3186 (bitclr_in_memory): Likewise.
3187
3188 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3189 Nick Clifton <nickc@redhat.com>
3190
3191 * config/rx/rx.md: Add peepholes to match a register move followed
3192 by a comparison of the moved register. Replace these with an
3193 addition of zero that does both actions in one instruction.
3194
3195 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3196
3197 PR target/48986
3198 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3199 predicate to allow CONST_INT.
3200 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3201
3202 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3203
3204 * opts-common.c (opt_enum_arg_to_value): New.
3205 * opts.h (opt_enum_arg_to_value): Declare.
3206 * config/i386/i386.opt (fpmath): Remove.
3207 (mfpmath=): Use Enum, Init and Save.
3208 (fpmath_unit): New Enum and EnumValue entries.
3209 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3210 name for function fpmath state.
3211 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3212 * config/i386/i386.c: Include diagnostic.h.
3213 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3214 (ix86_target_string): Take enum fpmath_unit value instead of string.
3215 (ix86_debug_options): Update call to ix86_target_string.
3216 (ix86_option_override_internal): Don't process fpmath strings here.
3217 (x86_function_specific_save, ix86_function_specific_restore):
3218 Don't handle fpmath state specially.
3219 (ix86_function_specific_print): Pass fpmath state to
3220 ix86_target_string instead of printing in this function.
3221 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3222 Handle enum attributes.
3223 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3224 (ix86_valid_target_attribute_tree): Update option_strings
3225 handling. Handle fpmath as enum option.
3226 (ix86_can_inline_p): Update field names for function fpmath state.
3227 (ix86_expand_builtin): Update call to ix86_target_string.
3228 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3229 (ix86_fpmath): Remove.
3230 * config/i386/t-i386 (i386.o): Update dependencies.
3231
3232 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3233
3234 PR preprocessor/48677
3235 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3236 from decoded_options[0], not from itself.
3237
3238 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3239
3240 * config/i386/constraints.md (z): New constraint.
3241 * config/i386/i386.c (c): New mode attribute.
3242 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3243 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3244 constraint for operand 0.
3245 (*call_vzeroupper): Ditto.
3246 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3247 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3248 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3249 Use "lzm" constraint for operand 0.
3250 (*call_pop_vzeroupper): Ditto.
3251 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3252 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3253 constraint for operand 0.
3254 (*sibcall_vzeroupper): Ditto.
3255 (*sibcall_rex64_ms_sysv): Ditto.
3256 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3257 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3258 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3259 (*sibcall_pop_vzeroupper): Ditto.
3260 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3261 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3262 mode iterator. Use "<c>zm" constraint for operand 1.
3263 (*call_value_vzeroupper): Ditto.
3264 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3265 for operand 1.
3266 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3267 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3268 *call_value_pop_1. Use "lzm" constraint for operand 1.
3269 (*call_value_pop_vzeroupper): Ditto.
3270 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3271 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3272 mode iterator. Use "Uz" constraint for operand 1.
3273 (*sibcall_value_vzeroupper): Ditto.
3274 (*sibcall_value_rex64_ms_sysv): Ditto.
3275 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3276 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3277 constraint for operand 1.
3278 (*sibcall_value_pop_vzeroupper): Ditto.
3279 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3280 and "z" constraint for operand 2.
3281 (*tls_global_dynamic_32_gnu): Ditto.
3282 (*tls_local_dynamic_base_32_gnu): Ditto.
3283 (*tls_local_dynamic_base_64): Ditto.
3284 (*tls_local_dynamic_32_once): Ditto.
3285 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3286 Update all callers.
3287 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3288
3289 2011-05-16 Richard Guenther <rguenther@suse.de>
3290
3291 * gimple.c (gimple_types_compatible_p_1): Use names of the
3292 type itself, not its main variant.
3293 (iterative_hash_gimple_type): Likewise.
3294
3295 2011-05-16 Richard Guenther <rguenther@suse.de>
3296
3297 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3298 always visit pointer target and function result and argument types.
3299
3300 2011-05-16 Jason Merrill <jason@redhat.com>
3301
3302 PR c++/48999
3303 * tree-inline.c (copy_statement_list): Put back recursion.
3304
3305 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3306
3307 PR target/27663
3308 PR target/41076
3309 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3310 * config/avr/avr.md ("*ior<mode>qi.byte0",
3311 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3312
3313 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3314
3315 PR target/45099
3316 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3317 register is needed for a function argument.
3318
3319 2011-05-16 Richard Guenther <rguenther@suse.de>
3320
3321 * gimple.c (struct type_hash_pair): New type.
3322 (type_hash_pair_compare): New function.
3323 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3324
3325 2011-05-16 Revital Eres <revital.eres@linaro.org>
3326
3327 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3328
3329 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3330
3331 * config/i386/i386.md (floating point move splitters): Fix
3332 usage of standard_80387_constant_p.
3333 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3334
3335 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3336
3337 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3338
3339 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3340
3341 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3342 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3343 (tree_ssa_lim_finalize): Likewise.
3344
3345 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3346
3347 * config/i386/constraint.md (Yd, Yx): New register constraints.
3348 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3349 Yd conditional register constraint.
3350 (*movtf_internal): Use standard_sse_constant_opcode.
3351 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3352 Yx conditional register constraint.
3353 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3354 Yd conditional register constraint. Use standard_sse_constant_p to
3355 check for valid SSE constants and call standard_sse_constant_opcode to
3356 output SSE insn.
3357 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3358 constants and call standard_sse_constant_opcode to output SSE insn.
3359 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3360 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3361 optimize_size is set.
3362 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3363
3364 2011-05-14 Tobias Burnus <burnus@net-b.de>
3365
3366 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3367
3368 2011-05-13 Martin Jambor <mjambor@suse.cz>
3369
3370 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3371 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3372 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3373 (evaluate_conditions_for_ipcp_clone): Removed.
3374 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3375 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3376 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3377
3378 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3379
3380 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3381 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3382 lieu of MAY_HAVE_DEBUG_STMTS.
3383 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3384 debug statements if !MAY_HAVE_DEBUG_STMTS.
3385
3386 2011-05-13 Martin Thuresson <martint@google.com>
3387
3388 PR gcov-profile/47793
3389 * libgcov.c (gcov_exit): Support relative profile paths.
3390 * doc/invoke.texi (-fprofile-dir): Update for above change.
3391
3392 2011-05-13 Richard Guenther <rguenther@suse.de>
3393
3394 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3395 type-pair caching, do not compare hashes.
3396
3397 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3398
3399 PR middle-end/48965
3400 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3401 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3402
3403 2011-05-13 Kai Tietz <ktietz@redhat.com>
3404
3405 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3406 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3407 compatible type for TRUTH_NOT_EXPR.
3408
3409 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3410
3411 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3412 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3413 can_create_pseudo_p ().
3414
3415 2011-05-13 Richard Guenther <rguenther@suse.de>
3416
3417 PR lto/48978
3418 * gimple.c (iterative_hash_gimple_type): Revert change in
3419 pointer target and function result and argument hashing.
3420
3421 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3422
3423 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3424 (*movxf_internal_nointeger): Ditto.
3425 (*movdf_internal_rex64): Ditto.
3426 (*movdf_internal): Ditto.
3427 (*movdf_internal_nointeger): Ditto.
3428 (*movsf_internal): Ditto.
3429 (sincos splitters): Use can_create_pseudo ().
3430
3431 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3432
3433 * config/i386/i386-opts.h: New.
3434 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3435 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3436 ix86_section_threshold): Remove.
3437 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3438 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3439 OPT_mbranch_cost_.
3440 (ix86_option_override_internal): Don't decode strings for options
3441 other than -march=, -mtune= and -mfpmath=. Don't allow for
3442 __attribute__ uses in remaining diagnostics for options with
3443 string arguments. Don't check for integer arguments being negative.
3444 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3445 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3446 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3447 ix86_branch_cost, ix86_section_threshold): Remove.
3448 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3449 HeaderInclude.
3450 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3451 but not Var.
3452 (masm=): Use Enum and Init.
3453 (asm_dialect): New Enum and EnumValue entries.
3454 (mbranch-cost=): Use UInteger.
3455 (mlarge-data-threshold=): Use UInteger and Init.
3456 (mcmodel=): Use Enum and Init.
3457 (cmodel): New Enum and EnumValue entries.
3458 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3459 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3460 mregparm=): Use UInteger.
3461 (mstringop-strategy=): Use Enum and Init.
3462 (stringop_alg): New Enum and EnumValue entries.
3463 (mtls-dialect=): Use Enum and Init.
3464 (tls_dialect): New Enum and EnumValue entries.
3465 (mabi=): Use Enum and Init.
3466 (calling_abi): New Enum and EnumValue entries.
3467 (mveclibabi=): Use Enum and Init.
3468 (ix86_veclibabi): New Enum and EnumValue entries.
3469
3470 2011-05-13 Nick Clifton <nickc@redhat.com>
3471
3472 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3473 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3474
3475 2011-05-13 Kai Tietz <ktietz@redhat.com>
3476
3477 PR middle-end/48984
3478 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3479 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3480 (gimple_boolify): Check for cast for boolean_type_node instead for
3481 BOOLEAN_TYPE.
3482
3483 2011-05-13 Richard Guenther <rguenther@suse.de>
3484
3485 PR tree-optimization/48172
3486 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3487 multiplying by number of iterations for equal step.
3488 (vect_create_cond_for_alias_checks): Likewise.
3489
3490 2011-05-13 Andreas Schwab <schwab@redhat.com>
3491
3492 * configure.ac: Use AS_HELP_STRING throughout.
3493 * configure: Regenerate.
3494
3495 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3496
3497 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3498 (ix86_emit_restore_regs_using_mov): Likewise.
3499 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3500
3501 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3502
3503 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3504 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3505 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3506 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3507 RTX_OK_FOR_OLO10_P): ...here.
3508 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3509 SYMBOLIC_CONST.
3510
3511 2011-05-12 Kai Tietz <ktietz@redhat.com>
3512
3513 * gimplify.c (gimple_boolify): Re-boolify expression
3514 arguments even if expression type is of kind BOOLEAN_TYPE.
3515 (gimplify_boolean_expr): Removed.
3516 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3517 and XOR. Additional take care that we keep expression's type.
3518 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3519 of TRUTH_AND|OR|XOR_EXPR.
3520
3521 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3522
3523 PR tree-optimization/48975
3524 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3525 on all bbs here and free and clear ifc_bbs at the end.
3526
3527 2011-05-12 Richard Guenther <rguenther@suse.de>
3528
3529 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3530 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3531 until after simple checks.
3532 (gimple_types_compatible_p): Likewise.
3533 (iterative_hash_gimple_type): Always hash pointer targets
3534 and function return and argument types.
3535 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3536 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3537 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3538 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3539 completely in the simple compare section.
3540 (gimple_register_canonical_type): Query the cache again after
3541 registering.
3542
3543 2011-05-12 Richard Guenther <rguenther@suse.de>
3544
3545 PR tree-optimization/48172
3546 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3547 the number of iterations from the segment size calculation.
3548 (vect_create_cond_for_alias_checks): Adjust.
3549
3550 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3551
3552 PR debug/48967
3553 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3554 if validate_subreg fails.
3555
3556 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3557
3558 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3559 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3560 early.
3561
3562 2011-05-12 DJ Delorie <dj@redhat.com>
3563
3564 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3565 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3566 created builtin into rx_builtins array.
3567 (rx_builtin_decl): New function.
3568 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3569
3570 2011-05-12 DJ Delorie <dj@redhat.com>
3571 Nick Clifton <nickc@redhat.com>
3572
3573 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3574 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3575 (rx_is_legitimate_address): Add pre-decrement and post-increment
3576 addressing in HImode and QImode. Fix test for out of range
3577 REG+INT addressing.
3578 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3579 (rx_align_for_label): Test label before extracting its usage count.
3580 (rx_adjust_insn_lengths): Fix selection of insn codes.
3581 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3582
3583 2011-05-11 Jason Merrill <jason@redhat.com>
3584
3585 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3586
3587 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3588
3589 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3590 reindent the subsequent block.
3591
3592 2011-05-11 Satoru Takabayashi <satorux@google.com>
3593 Paul Pluzhnikov <ppluzhnikov@google.com>
3594
3595 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3596 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3597 * config.in: Add LINKER_HASH_STYLE.
3598 * configure.ac: Add --with-linker-hash-style.
3599 * configure: Regenerate.
3600
3601 2011-05-11 Richard Guenther <rguenther@suse.de>
3602
3603 PR middle-end/48964
3604 * gimple.c (iterative_hash_canonical_type): Fix typo.
3605
3606 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3607
3608 * config/i386/i386.c (legitimize_tls_address)
3609 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3610 expanders directly for TARGET_GNU2_TLS. Determine pic and
3611 __tls_get_addr symbol reference here. Update call to
3612 gen_tls_global_dynamic_{32,64} for added arguments.
3613 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3614 expanders directly for TARGET_GNU2_TLS. Determine
3615 __tls_get_addr symbol reference here. Update call to
3616 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3617 unique UNSPEC REG_EQUIV to libcall block.
3618 (ix86_tls_get_addr): Declare static.
3619 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3620 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3621 Do not determine pic and __tls_get_addr symbol reference here. Do not
3622 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3623 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3624 (tls_global_dynamic_64): Add operand 2. Do not determine
3625 __tls_get_addr symbol reference here. Do not call
3626 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3627 (tls_local_dynamic_base64): Ditto for operand 1.
3628
3629 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3630
3631 * function.c (expand_function_start): Initialize stack_check_probe_note
3632 only if the generic stack checking mechanism is used.
3633
3634 2011-05-11 Richard Guenther <rguenther@suse.de>
3635
3636 PR tree-optimization/15256
3637 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3638 (A & B) | C, combine (A op CST1) op CST2.
3639 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3640 visit assigns that have uses.
3641
3642 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3643
3644 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3645 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3646 (unpack_ts_type_common_value_fields): ...this. Update comment.
3647 (unpack_value_fields): Adjust for renaming.
3648 (lto_input_ts_type_tree_pointers): Split into...
3649 (lto_input_ts_type_common_tree_pointer): ...this and...
3650 (lto_input_ts_type_non_common_tree_pointers): ...this.
3651 (lto_input_tree_pointers): Adjust for above split.
3652 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3653 (pack_ts_type_common_value_fields): ...this. Update comment.
3654 (lto_output_ts_type_tree_pointers): Split into...
3655 (lto_output_ts_type_common_tree_pointers): ...this and...
3656 (lto_output_ts_type_non_common_tree_pointers): ...this.
3657 (lto_output_tree_pointers): Adjust for above split.
3658 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3659 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3660 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3661 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3662 Define.
3663 (struct tree_type): Split into...
3664 (struct tree_type_common: ...this and...
3665 (struct tree_type_with_lang_specific): ...this and...
3666 (struct tree_type_non_common): ...this. Adjust accessor macros
3667 accordingly.
3668 (TYPE_VALUES_RAW): Define.
3669 (union tree_node): Update for above changes.
3670 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3671 TS_TYPE_NON_COMMON.
3672 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3673 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3674 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3675 * treestructu.def (TS_TYPE): Remove.
3676 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3677 Define.
3678
3679 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3680
3681 PR debug/48159
3682 * tree-ssa.c (reset_debug_uses): New function.
3683 * tree-flow.h (reset_debug_uses): New prototype.
3684 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3685 * tree-loop-distribution.c (generate_loops_for_partition): Call
3686 reset_debug_uses on the stmts that will be removed. Keep around
3687 all debug stmts, don't count them as bits in partition bitmap.
3688 (generate_builtin): Don't count debug stmts or labels as bits in
3689 partition bitmap.
3690
3691 2011-05-11 Richard Guenther <rguenther@suse.de>
3692
3693 * gimple.c (gimple_type_hash_1): Merge with ...
3694 (gimple_type_hash): ... this.
3695 (gtc_visit): Remove mode parameter and simplify accordingly.
3696 (gimple_types_compatible_p_1): Likewise.
3697 (gimple_types_compatible_p): Likewise.
3698 (iterative_hash_gimple_type): Likewise.
3699 (visit): Likewise.
3700 (gimple_type_eq): Adjust.
3701
3702 2011-05-11 Revital Eres <revital.eres@linaro.org>
3703
3704 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3705 enters the branch create an anti edge in the opposite direction
3706 to prevent the creation of reg-moves.
3707 * modulo-sched.c: Adjust comment to reflect the fact we are
3708 scheduling closing branch.
3709 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3710 (stage_count): New field in struct partial_schedule.
3711 (calculate_stage_count): New function.
3712 (normalize_sched_times): Rename to reset_sched_times and handle
3713 incrementing the sched time of the nodes by a constant value
3714 passed as parameter.
3715 (duplicate_insns_of_cycles): Skip closing branch.
3716 (sms_schedule_by_order): Schedule closing branch.
3717 (ps_insn_find_column): Handle closing branch.
3718 (sms_schedule): Call reset_sched_times and adjust the code to
3719 support scheduling of the closing branch.
3720 (ps_insert_empty_row): Update calls to normalize_sched_times
3721 and rotate_partial_schedule functions.
3722
3723 2011-05-11 Richard Guenther <rguenther@suse.de>
3724
3725 PR middle-end/48953
3726 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3727
3728 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3729
3730 * opts.c (finish_options): Move warning settings from process_options.
3731 * toplev.c (process_options): Move warning settings to finish_options.
3732
3733 2011-05-11 Richard Guenther <rguenther@suse.de>
3734
3735 PR tree-optimization/18041
3736 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3737 (simplify_bitwise_binary): ... this. Handle operand conversions
3738 by applying them to the result instead.
3739 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3740
3741 2011-05-11 Richard Guenther <rguenther@suse.de>
3742
3743 * gimple.c (gimple_canonical_types_compatible_p): Split out
3744 from gimple_types_compatible_p and friends. Do not recurse
3745 to pointed-to types.
3746 (gimple_canonical_type_eq): Use it.
3747 (iterative_hash_canonical_type): Split out from
3748 iterative_hash_gimple_type and friends. Do not recurse
3749 to pointed-to types.
3750 (gimple_canonical_type_hash): Use it, allocate the hash here.
3751
3752 2011-05-11 Revital Eres <revital.eres@linaro.org>
3753
3754 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3755 recognizing doloop.
3756
3757 2011-05-11 Revital Eres <revital.eres@linaro.org>
3758
3759 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3760 instead of PREV_INSN.
3761
3762 2011-05-11 Revital Eres <revital.eres@linaro.org>
3763
3764 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3765 * loop-doloop.c (doloop_condition_get): Likewise.
3766 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3767 (doloop_end): New.
3768 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3769
3770 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3771
3772 * tree.def (CASE_LABEL_EXPR): Add an operand.
3773 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3774
3775 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3776
3777 * c-decl.c (c_override_global_bindings_to_false): Remove.
3778 (global_bindings_p): Don't check
3779 c_override_global_bindings_to_false.
3780 * c-tree.h (c_override_global_bindings_to_false): Remove.
3781 * c-typeck.c (composite_type): Don't set
3782 c_override_global_bindings_to_false.
3783
3784 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3785
3786 PR target/48857, 48495
3787 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3788 (VSX_MODE): Ditto.
3789 (VSX_MOVE_MODE): Ditto.
3790 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3791 VSX vector types. Add V2DImode.
3792 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3793 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3794 (MODES_TIEABLE_P): Ditto.
3795
3796 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3797 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3798 VSX_VECTOR_MODE.
3799 (init_cumulative_args): Ditto.
3800 (rs6000_function_arg_boundary): Ditto.
3801 (rs6000_function_arg_advance_1): Ditto.
3802 (rs6000_function_arg): Ditto.
3803 (rs6000_function_ok_for_sibcall): Ditto.
3804 (emit_frame_save): Ditto.
3805 (rs6000_function_value): Ditto.
3806 (rs6000_libcall_value): Ditto.
3807
3808 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3809
3810 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3811 i386/darwin-lib.h to $libgcc_tm_file.
3812 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3813
3814 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3815
3816 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3817
3818 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3819
3820 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3821 * config/rs6000/rs6000-tables.opt: New file (generated).
3822 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3823 rs6000/rs6000-tables.opt to extra_options.
3824 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3825 * config/rs6000/rs6000.c (rs6000_select): Remove.
3826 (processor_target_table): Move contents to rs6000-cpus.def.
3827 (darwin_rs6000_override_options): Check
3828 global_options_set.x_rs6000_cpu_index instead of
3829 rs6000_select[1].string.
3830 (rs6000_option_override_internal): Likewise.
3831 (rs6000_handle_option): Don't assert that global structures are in
3832 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3833 (rs6000_default_cpu): New variable.
3834 (rs6000_file_start): Set it instead of local default_cpu. Check
3835 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3836 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3837 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3838 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3839 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3840 rs6000_select): Remove.
3841 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3842 Remove.
3843 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3844 * config/rs6000/t-rs6000
3845 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3846 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3847 global_options_set.x_rs6000_cpu_index instead of
3848 rs6000_select[1].string.
3849 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3850 global_options_set.x_rs6000_cpu_index instead of
3851 rs6000_select[1].string.
3852
3853 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3854
3855 * config.gcc (libgcc_tm_file): Define instead of including files
3856 from ../../libgcc/config/ in tm_file.
3857 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3858 * configure: Regenerate.
3859 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3860 libgcc_tm.h, cs-libgcc_tm.h): New.
3861 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3862 (clean): Remove libgcc_tm.h.
3863 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3864 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3865 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3866
3867 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3868
3869 PR target/48896
3870 * config/avr/avr.c (avr_ret_register): Return unsigned int
3871 instead of int.
3872 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3873 it to avr_libcall_value.
3874 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3875 expand_expr.
3876 (avr_expand_binop_builtin): Ditto.
3877 (avr_expand_unop_builtin): Ditto.
3878
3879 2011-05-10 DJ Delorie <dj@redhat.com>
3880
3881 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3882 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3883 * config/rx/rx.c (rx_align_for_label): Add label and
3884 uses_threshold parameters. Do not align when the label is not
3885 used enough.
3886 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3887
3888 2011-05-10 Richard Guenther <rguenther@suse.de>
3889
3890 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3891 a series of conversions and apply foldings similar to what
3892 fold-const does.
3893 (tree_ssa_forward_propagate_single_use_vars): Call it.
3894
3895 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3896
3897 PR tree-optimization/48611
3898 PR tree-optimization/48794
3899 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3900 referenced from RESX or EH_DISPATCH arguments.
3901
3902 PR debug/48928
3903 * dfp.c (decimal_to_decnumber): Handle conversion from
3904 dconst{1,2,m1,half}.
3905
3906 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3907
3908 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3909 for !flag_prefer_avx128.
3910 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3911
3912 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3913
3914 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3915 (fold_ternary_loc): Use expr_location_or.
3916
3917 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3918
3919 PR debug/48853
3920 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3921 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3922 Pmode and mem_mode is not VOIDmode.
3923
3924 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3925
3926 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3927 TYPE_QUAL_RESTRICT): Convert to enum.
3928
3929 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3930
3931 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3932 (const_pow2_1_to_8_operand): Ditto.
3933 (const_pow2_1_to_128_operand): Ditto.
3934 (const_pow2_1_to_32768_operand): Ditto.
3935 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3936 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3937 in insn constraint to check integer value of operand 3.
3938 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3939
3940 (PINSR_MODE): New mode iterator.
3941 (sse2p4_1): New mode attribute.
3942 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3943 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3944 iterator. Use const_int_operand instead of
3945 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3946 exact_log2 in insn constraint to check integer value of operand 3.
3947
3948 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3949
3950 * config/i386/sse.md (blendbits): Remove mode attribute.
3951 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3952 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3953 Check integer value of operand 3 in insn constraint.
3954
3955 2011-05-09 Richard Guenther <rguenther@suse.de>
3956
3957 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3958 for diagnostics.
3959 (lto_symtab_merge): Likewise. Do not register types here.
3960 (lto_symtab_merge_decls_2): Likewise.
3961 (lto_symtab_merge_decls_1): Likewise.
3962 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3963 * gimple.c (enum gtc_mode): Declare.
3964 (gimple_types_compatible_p): Make static.
3965
3966 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3967
3968 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3969 temporary register to match Pmode.
3970
3971 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3972
3973 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3974 and *vec_concatv4si_1_avx.
3975
3976 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3977
3978 PR rtl-optimization/48927
3979 * ira-conflicts.c (commutative_constraint_p): Use
3980 recog_data.alternative_enabled_p to disable alternatives where
3981 "enabled" attribute is false.
3982 (get_dup_num): Ditto.
3983 * ira-lives.c (single_reg_class): Ditto.
3984 (ira_implicitly_set_insn_hard_regs): Ditto.
3985
3986 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3987
3988 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3989 (dataflow_set_preserve_mem_locs): Likewise.
3990
3991 2011-05-09 Philipp Thomas <pth@suse.de>
3992
3993 * config/mep/mep.c (mep_validate_vliw): Syntax description
3994 should not be translated.
3995
3996 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3997
3998 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3999 * config/mips/mips-tables.opt: New file (generated).
4000 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4001 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4002 MIPS_ARCH_OPTION_NATIVE): Define.
4003 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4004 mips-cpus.def.
4005 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4006 mips_parse_cpu): Remove.
4007 (mips_cpu_info_from_opt, mips_default_arch): New.
4008 (mips_handle_option): Don't assert that global structures are in
4009 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4010 (mips_option_override): Use new variables and functions to set
4011 state of these options. Use strcmp to check for individual CPU names.
4012 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4013 definition.
4014 * config/mips/mips.opt (march=): Use ToLower and Enum.
4015 (mips): Use ToLower, Enum and Var.
4016 (mtune=): Use ToLower and Enum.
4017 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4018
4019 2011-05-08 Jan Hubicka <jh@suse.cz>
4020
4021 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4022 Arrange type pairs to be UID ordered.
4023 (gimple_lookup_type_leader): Make inline.
4024
4025 2011-05-09 Nick Clifton <nickc@redhat.com>
4026
4027 PR target/48899
4028 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4029 PROCESSOR_DEFAULT.
4030
4031 PR target/48897
4032 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4033 variable 's'.
4034
4035 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4036
4037 * combine.c (simplify_comparison): Abstract out parts into...
4038 (simplify_compare_const): ... new function.
4039 (try_combine): Generalize parallel arithmetic/compare combining
4040 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4041
4042 2011-05-08 Jan Hubicka <jh@suse.cz>
4043
4044 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4045 (cgraph_create_virtual_clone): Call hooks once virtual clone
4046 is finished.
4047 * cgraph.h (cgraph_clone_node): Update prototype.
4048 * ipa-cp.c (ipcp_estimate_growth): Use
4049 estimate_ipcp_clone_size_and_time.
4050 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4051 * lto-cgraph.c (input_node): Update.
4052 * ipa-inline.c (recursive_inlining): Update.
4053 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4054 (evaluate_conditions_for_known_args): Break out from ...
4055 (evaluate_conditions_for_edge): ... here.
4056 (evaluate_conditions_for_ipcp_clone): New function.
4057 (inline_node_duplication_hook): Update clone summary based
4058 on parameter map.
4059 (estimate_callee_size_and_time): Rename to ...
4060 (estimate_node_size_and_time): take NODE instead of EDGE;
4061 take POSSIBLE_TRUTHS as argument.
4062 (estimate_callee_size_and_time): Update.
4063 (estimate_ipcp_clone_size_and_time): New function.
4064 (do_estimate_edge_time): Update.
4065
4066 2011-05-08 Richard Guenther <rguenther@suse.de>
4067
4068 PR middle-end/48908
4069 PR middle-end/48905
4070 * expmed.c (expand_shift_1): Compute adjusted constant shift
4071 amount manually.
4072
4073 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4074
4075 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4076
4077 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4078
4079 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4080
4081 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4082
4083 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4084
4085 2011-05-07 Jan Hubicka <jh@suse.cz>
4086
4087 * ipa-inline-transform.c (inline_call): Account when program size
4088 decreases.
4089 * ipa-inline.c (relative_time_benefit): New function.
4090 (edge_badness): Reorganize to be power 2 based; fix thinko when
4091 computing badness for negative growth; update comments to match
4092 reality; better dumps.
4093
4094 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4095
4096 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4097 type to bool and adjust comment.
4098 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4099 (fold_mathfn_compare): Remove calls to global_bindings_p.
4100 (fold_inf_compare): Likewise.
4101 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4102 * c-tree.h (global_bindings_p): Adjust prototype.
4103 * c-decl.c (global_bindings_p): Return bool and simplify.
4104
4105 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4106
4107 PR tree-optimization/48837
4108 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4109 when accumulator transformation is performed.
4110
4111 2011-05-06 Jan Hubicka <jh@suse.cz>
4112
4113 * i386.h (ix86_tune_indices): Add
4114 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4115 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4116 * i386.c (initial_ix86_tune_features): Add
4117 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4118 (software_prefetching_beneficial_p): Remove predicate.
4119 (ix86_option_override_internal): Use new macro.
4120
4121 2011-05-06 Jan Hubicka <jh@suse.cz>
4122
4123 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4124
4125 2011-05-06 Jan Hubicka <jh@suse.cz>
4126
4127 * cgraph.c (cgraph_add_thunk): Create real function node instead
4128 of alias node; finalize it and mark needed/reachale; arrange visibility
4129 to be right and add it into the corresponding same comdat group list.
4130 (dump_cgraph_node): Dump thunks.
4131 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4132 cgraph_function_with_gimple_body_p,
4133 cgraph_first_function_with_gimple_body,
4134 cgraph_next_function_with_gimple_body): New functions.
4135 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4136 New macros.
4137 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4138 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4139 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4140 devirtualization when optimizing.
4141 (verify_cgraph_node): Verify thunks.
4142 (cgraph_analyze_function): Analyze thunks.
4143 (cgraph_mark_functions_to_output): Output thunks only in combination
4144 with function they are assigned to.
4145 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4146 alias into normal node.
4147 (assemble_thunks): New functoin.
4148 (cgraph_expand_function): Use it.
4149 * lto-cgraph.c (lto_output_node): Stream thunks.
4150 (input_overwrite_node): Stream in thunks.
4151 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4152 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4153 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4154 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4155 (inline_analyze_function): Do not care about thunk jump functions.
4156 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4157 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4158 cgraph_function_with_gimple_body_p.
4159 * passes.c (do_per_function_toporder): Use
4160 cgraph_function_with_gimple_body_p.
4161 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4162 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4163 (function_called_by_processed_nodes_p): Likewise.
4164
4165 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4166
4167 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4168 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4169 entries.
4170 (mabi=): Replace with separate entries for mabi=altivec,
4171 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4172 mabi=ieeelongdouble and mabi=ibmlongdouble.
4173 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4174 check for -mabi=spe without SPE ABI support here.
4175 (rs6000_handle_option): Replace OPT_mabi_ handling with
4176 OPT_mabi_altivec and OPT_mabi_spe handling.
4177
4178 2011-05-06 Cary Coutant <ccoutant@google.com>
4179
4180 * dwarf2out.c (contains_subprogram_definition): New function.
4181 (should_move_die_to_comdat): Call it.
4182
4183 2011-05-06 Jeff Law <law@redhat.com>
4184
4185 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4186 remove_ctrl_stmt_and_useless_edges.
4187 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4188 (fixup_template_block, thread_single_edge): Likewise.
4189 (mark_threaded_blocks): Use THREAD_TARGET.
4190
4191 2011-05-06 Alan Modra <amodra@gmail.com>
4192
4193 PR target/48900
4194 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4195 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4196
4197 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4198
4199 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4200 constraint modifier to "r".
4201
4202 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4203
4204 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4205 fall through for OPT_mcmodel_.
4206
4207 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4208
4209 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4210 instruction sizes.
4211 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4212
4213 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4214
4215 PR target/47930
4216 * config/arm/arm.opt (marm): Document it.
4217 (mthumb): Reject negative variant.
4218
4219 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4220
4221 PR target/48898
4222 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4223 Fix typo in "ccvt" variable name.
4224
4225 2011-05-06 Tristan Gingold <gingold@adacore.com>
4226
4227 PR target/48895
4228 * config/vms/vms-ar.c (main): Remove cwd variable.
4229
4230 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4231
4232 PR debug/48902
4233 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4234
4235 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4236
4237 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4238 * gimplify.c (gimplify_switch_expr): Likewise.
4239 * omp-low.c (expand_omp_sections): Likewise.
4240 * tree-eh.c (lower_try_finally_switch): Likewise.
4241 (lower_eh_dispatch): Likewise.
4242 * tree.h (build_case_label): Declare.
4243 * tree.c (build_case_label): Define.
4244
4245 2011-05-05 Jason Merrill <jason@redhat.com>
4246
4247 PR c++/40975
4248 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4249 (copy_statement_list): Don't recurse.
4250 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4251 STATEMENT_LIST.
4252
4253 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4254
4255 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4256 through from -mfpu= handling.
4257 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4258
4259 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4260
4261 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4262 POST_MODIFY.
4263
4264 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4265
4266 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4267 for 11.31.
4268 (hppa[12]*-*-hpux11*): Ditto.
4269 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4270 * config/ia64/hpux-unix2003.h: New.
4271 * config/pa/pa-hpux1131.opt: New.
4272 * config/pa/pa-hpux1131.h: New.
4273 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4274 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4275 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4276
4277 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR debug/48853
4280 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4281 instead of mode as 3rd argument to recursive call.
4282 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4283 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4284 VOIDmode.
4285 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4286 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4287 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4288 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4289
4290 2011-05-05 Julian Brown <julian@codesourcery.com>
4291
4292 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4293 parenthesis in D-register case.
4294
4295 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4296
4297 * opt-functions.awk (var_type_struct): Handle Enum options.
4298 * optc-gen.awk: Don't check range of variables of character type.
4299 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4300 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4301 rs6000_sdata_name, rs6000_explicit_options): Remove.
4302 (rs6000_option_override_internal): Check for -malign-power here.
4303 Use global_options_set instead of rs6000_explicit_options.
4304 (rs6000_parse_fpu_option): Remove.
4305 (rs6000_handle_option): Access variables via opts and opts_set
4306 pointers. Use error_at and warning_at. Add fall-through
4307 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4308 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4309 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4310 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4311 here. Don't use rs6000_parse_fpu_option.
4312 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4313 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4314 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4315 (mrecip=): Use Var.
4316 (mspe): Use Var and Save.
4317 (mtraceback=): Use Enum and Var.
4318 (rs6000_traceback_type): New Enum and EnumValue entries.
4319 (mfloat-gprs=): Use Enum, Var and Save.
4320 (rs6000_float_gprs): New Enum and EnumValue entries.
4321 (mlong-double-): use Var and Save.
4322 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4323 (malign-): Use Enum and Var.
4324 (rs6000_alignment_flags): New Enum and EnumValue entries.
4325 (mfpu=): Use Enum.
4326 (fpu_type_t): New Enum and EnumValue entries.
4327 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4328 global_options_set instead of rs6000_explicit_options.
4329 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4330 global_options_set instead of rs6000_explicit_options.
4331 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4332 global_options_set instead of rs6000_explicit_options.
4333 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4334 global_options_set instead of rs6000_explicit_options.
4335 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4336 global_options_set instead of rs6000_explicit_options.
4337 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4338 global_options_set instead of rs6000_explicit_options.
4339 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4340 definition.
4341 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4342 global_options_set instead of rs6000_explicit_options.
4343 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4344 (rs6000_cmodel): New Enum and EnumValue entries.
4345 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4346 global_options_set instead of rs6000_explicit_options.
4347 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4348 (mtls-size=): Use Enum and Var.
4349 (rs6000_tls_size): New Enum and EnumValue entries.
4350
4351 2011-05-05 Michael Matz <matz@suse.de>
4352
4353 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4354 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4355 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4356 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4357 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4358 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4359 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4360 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4361 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4362 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4363 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4364 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4365 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4366 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4367 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4368 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4369
4370 2011-05-05 Richard Guenther <rguenther@suse.de>
4371
4372 * expmed.c (expand_variable_shift): Rename to ...
4373 (expand_shift_1): ... this. Take an expanded shift amount.
4374 For rotates recurse directly not building trees for the shift amount.
4375 (expand_variable_shift): Wrap around expand_shift_1.
4376 (expand_shift): Adjust.
4377
4378 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4379
4380 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4381
4382 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4383
4384 * tree.h (get_pending_sizes): Remove prototype.
4385 (put_pending_size): Likewise.
4386 (put_pending_sizes): Likewise.
4387 * stor-layout.c (pending_sizes): Delete.
4388 (get_pending_sizes): Likewise.
4389 (put_pending_size): Likewise.
4390 (put_pending_sizes): Likewise.
4391 (variable_size): Do not call put_pending_size and tidy up.
4392 * function.h (struct function): Remove dont_save_pending_sizes_p.
4393 * lto-streamer-in.c (input_function): Do not stream it.
4394 * lto-streamer-out.c (output_function): Likewise.
4395 * tree-inline.c (initialize_cfun): Do not copy it.
4396 * c-decl.c (store_parm_decls): Do not set it.
4397 * omp-low.c (create_task_copyfn): Likewise.
4398 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4399
4400 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4401
4402 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4403 conditions.
4404 (*movdf_internal): Ditto.
4405 (*movdf_internal_nointeger): Ditto.
4406 (*movsf_internal): Ditto.
4407
4408 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4409
4410 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4411 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4412 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4413 (c_variable_size): Remove.
4414 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4415 call put_pending_sizes.
4416 (get_parm_info): Add parameter expr. Use it to set
4417 arg_info->pending_sizes.
4418 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4419 get_pending_sizes.
4420 * c-parser.c (c_parser_parms_declarator): Update call to
4421 c_parser_parms_list_declarator.
4422 (c_parser_parms_list_declarator): Take parameter expr. Update
4423 call to push_parm_decl. Update recursive call. Don't call
4424 get_pending_sizes. Update calls to get_parm_info.
4425 (c_parser_objc_method_definition): Update calls to
4426 c_parser_objc_method_decl and objc_start_method_definition.
4427 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4428 (c_parser_objc_method_decl): Add parameter expr. Update call to
4429 grokparm.
4430 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4431 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4432 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4433
4434 2011-05-05 Michael Hope <michael.hope@linaro.org>
4435
4436 PR pch/45979
4437 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4438 __ARM_EABI__ hosts.
4439
4440 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4441
4442 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4443 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4444 (spu_output_mi_thunk): New function.
4445
4446 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4447
4448 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4449 targetm.asm_out.print_operand.
4450 * config/sol2.c: Include target.h.
4451
4452 2011-05-04 Jan Hubicka <jh@suse.cz>
4453
4454 * ipa-inline.c (reset_edge_caches): New function.
4455 (update_caller_keys): Add check_inlinablity_for; do not
4456 reset edge caches; remove now unnecesary loop.
4457 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4458 (update_all_callee_keys): Likewise.
4459 (inline_small_functions): Sanity check cache; update code
4460 recomputing it.
4461
4462 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4463
4464 PR rtl-optimization/47612
4465 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4466 as the last insn of the sequence to be moved.
4467
4468 2011-05-04 Tobias Burnus <burnus@net-b.de>
4469
4470 PR fortran/48864
4471 * doc/invoke.texi (Ofast): Document that it
4472 enables Fortran's -fno-protect-parens.
4473
4474 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4475
4476 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4477
4478 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4479
4480 * stor-layout.c (variable_size): Do not issue errors.
4481
4482 2011-05-04 Richard Guenther <rguenther@suse.de>
4483
4484 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4485 for array-ref indices.
4486 (tree_coverage_counter_addr): Likewise.
4487 (build_fn_info_type): Use size_int for index types.
4488 (build_gcov_info): Likewise.
4489
4490 2011-05-04 Richard Guenther <rguenther@suse.de>
4491
4492 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4493 to build_int_cst.
4494 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4495 for constructor indices.
4496 (push_init_level): Likewise.
4497
4498 2011-05-04 Richard Guenther <rguenther@suse.de>
4499
4500 * explow.c (promote_mode): Move variable declarations before code.
4501
4502 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4503
4504 * tree.h (build_function_type_array): Declare.
4505 (build_varargs_function_type_array): Declare.
4506 (build_function_type_vec, build_varargs_function_type_vec): Define.
4507 * tree.c (build_function_type_array_1): New function.
4508 (build_function_type_array): New function.
4509 (build_varargs_function_type_array): New function.
4510
4511 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4512
4513 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4514 before setting STMT_VINFO_TYPE.
4515
4516 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4517
4518 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4519 instead of spu_pass_by_reference.
4520
4521 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4522
4523 * calls.c (emit_library_call_value_1): Invoke
4524 promote_function_mode hook on libcall arguments.
4525 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4526 argument being NULL.
4527 * targhooks.c (default_promote_function_mode): Lisewise.
4528 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4529 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4530
4531 * doc/tm.texi: Document that TYPE argument might be NULL.
4532
4533 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4534
4535 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4536
4537 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4538
4539 From Bernd Schmidt
4540 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4541
4542 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4543
4544 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4545 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4546 Move ...
4547 * mips-tfile.c: ... here.
4548 Don't include coretypes.h, tm.h, filenames.h.
4549 (saber_stop): Remove definition and all calls.
4550 [__SABER__]: Remove.
4551 (__LINE__): Remove default.
4552 (Size_t, Ptrdiff_t): Remove definitions.
4553 Replace by size_t, ptrdiff_t.
4554 [!MIPS_DEBUGGING_INFO]: Remove.
4555 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4556 (progname): Add const.
4557 (STATIC): Remove.
4558 Replace all uses by static.
4559 (ALIGN_SYMTABLE_OFFSET): Remove default.
4560 * mips-tdump.c: Don't include coretypes.h, tm.h.
4561 Remove !MIPS_IS_STAB guard.
4562 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4563 $(TM_H), filenames.h dependencies.
4564 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4565
4566 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4567
4568 From Jie Zhang
4569 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4570 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4571
4572 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4573
4574 From Bernd Schmidt
4575 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4576 account and save/restore RETS.
4577 (PROFILE_BEFORE_PROLOGUE): Define.
4578 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4579 the push insn to use predecrement.
4580
4581 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4582
4583 From Jie Zhang
4584 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4585
4586 2011-05-04 Nick Clifton <nickc@redhat.com>
4587
4588 * config/mn10300/mn10300.c: Include cfgloop.h.
4589 (DUMP): New macro.
4590 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4591 Lcc or a FLcc insn into the instruction stream.
4592 (mn10300_block_contains_call): New function. Returns true if the
4593 given basic block contains a CALL insn.
4594 (mn10300_loop_contains_call_insn): New function. Returns true if
4595 the given loop contains a CALL insn.
4596 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4597 to use the SETLB and Lcc or FLcc insns.
4598 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4599 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4600 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4601 disable the SETLB optimization.
4602 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4603 __SETLB__ or __NO_SETLB__.
4604 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4605 (movsf_internal): Handle MDR register.
4606 (cmpsi): Make visible.
4607 (setlb): New pattern.
4608 (Lcc): New pattern.
4609 (FLcc): New pattern.
4610
4611 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4612
4613 PR target/48860
4614 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4615 for reg<->xmm moves.
4616 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4617 (vec_concatv2di_rex64_sse): Ditto.
4618 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4619 (*vec_extractv2di_1_rex64): Ditto.
4620
4621 Revert:
4622 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4623
4624 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4625 reg<->xmm moves.
4626 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4627
4628 2011-05-04 Richard Guenther <rguenther@suse.de>
4629
4630 * tree.h (int_const_binop): Remove notrunc argument.
4631 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4632 create integer constants that are properly truncated.
4633 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4634 (const_binop): Remove zero notrunc argument to int_const_binop.
4635 (size_binop_loc): Likewise.
4636 (fold_div_compare): Likewise.
4637 (maybe_canonicalize_comparison_1): Likewise.
4638 (fold_comparison): Likewise.
4639 (fold_binary_loc): Likewise.
4640 (multiple_of_p): Likewise.
4641 * expr.c (store_constructor): Likewise.
4642 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4643 (maybe_fold_stmt_addition): Likewise.
4644 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4645 * stor-layout.c (layout_type): Likewise.
4646 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4647 * tree-sra.c (build_ref_for_offset): Likewise.
4648 (build_user_friendly_ref_for_offset): Likewise.
4649 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4650 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4651 * tree-ssa-loop-niter.c (inverse): Likewise.
4652 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4653 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4654 * tree-switch-conversion.c (check_range): Likewise.
4655 (build_constructors): Likewise.
4656 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4657 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4658 (extract_range_from_assert): Likewise.
4659 (vrp_int_const_binop): Likewise.
4660 (extract_range_from_binary_expr): Likewise.
4661 (extract_range_from_unary_expr): Likewise.
4662 (check_array_ref): Likewise.
4663 (find_case_label_range): Likewise.
4664 (simplify_div_or_mod_using_ranges): Likewise.
4665 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4666 comparing case labels for merging.
4667
4668 2011-05-03 Mark Wielaard <mjw@redhat.com>
4669
4670 * dwarf2out.c (debug_str_hash_forced): Removed.
4671 (gen_label_for_indirect_string): Removed.
4672 (get_debug_string_label): Removed.
4673 (AT_string_form): Generate label directly.
4674 (output_indirect_string): Test indirect_string_node for
4675 DW_FORM_strp instead of checking label and refcount.
4676 (prune_indirect_string): Removed.
4677 (prune_unused_types): Don't check debug_str_hash_forced or
4678 call prune_indirect_string.
4679
4680 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4681
4682 PR other/48093
4683 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4684
4685 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4686
4687 PR debug/47994
4688 PR debug/47919
4689 * combine.c (try_combine): Skip debug insns at m_split tests.
4690
4691 2011-04-26 Mark Wielaard <mjw@redhat.com>
4692
4693 PR42288
4694 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4695 when info_section_emitted.
4696
4697 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4698
4699 * config/mips/mips-opts.h: New.
4700 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4701 to mips-opts.h.
4702 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4703 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4704 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4705 via opts pointer.
4706 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4707 mips-opts.h.
4708 (mips_abi, mips_code_readable): Don't declare.
4709 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4710 (mabi=): Use Enum and Var.
4711 (mips_abi): New Enum and EnumValue entries.
4712 (mcode-readable=): Use Enum and Var.
4713 (mips_code_readable_setting): New Enum and EnumValue entries.
4714 (mr10k-cache-barrier=): Use Enum and Var.
4715 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4716
4717 2011-05-03 Jan Hubicka <jh@suse.cz>
4718
4719 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4720 replace hash by pointer map.
4721 (cgraph_node_set_element_def, cgraph_node_set_element,
4722 const_cgraph_node_set_element, varpool_node_set_element_def,
4723 varpool_node_set_element, const_varpool_node_set_element): Remove.
4724 (free_cgraph_node_set, free_varpool_node_set): New function.
4725 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4726 * tree-emutls.c: Free varpool node set.
4727 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4728 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4729 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4730 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4731 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4732 Move here from ipa.c; implement using pointer_map
4733 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4734 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4735 debug_cgraph_node_set, varpool_node_set_new,
4736 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4737 dump_varpool_node_set, debug_varpool_node_set):
4738 Move to ipa-uitls.c.
4739 * passes.c (ipa_write_summaries): Update.
4740
4741 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4742
4743 From Mike Frysinger:
4744 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4745 bf542/bf544/bf547/bf548/bf549.
4746
4747 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4748
4749 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4750
4751 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4752
4753 From Bernd Schmidt:
4754 * config/bfin/bfin.md (MOVCC): New mode_macro.
4755 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4756 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4757 comments from generated assembly.
4758
4759 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4760
4761 From Bernd Schmidt
4762 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4763 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4764 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4765 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4766 * config/bfin/lib1funcs.asm (___muldi3): New function.
4767
4768 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4769
4770 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4771 build_function_type_list instead of build_function_type.
4772 Rearrange initialization of `args' to do so.
4773
4774 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4775
4776 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4777 instead of build_function_type.
4778
4779 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4780
4781 * config/rs6000/rs6000.c (spe_init_builtins): Call
4782 build_function_type_list instead of build_function_type.
4783 (paired_init_builtins, altivec_init_builtins): Likewise.
4784 (builtin_function_type): Likewise.
4785
4786 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4787
4788 * config/sh/sh.c (sh_media_init_builtins): Call
4789 build_function_type_list instead of build_function_type.
4790
4791 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4792
4793 * config/sparc/sparc.c (sparc_file_end): Call
4794 build_function_type_list instead of build_function_type.
4795
4796 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4797
4798 * config/alpha/alpha.c (alpha_init_builtins): Call
4799 build_function_type_list instead of build_function_type.
4800
4801 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4802
4803 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4804 build_function_type_list instead of build_function_type.
4805
4806 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4807
4808 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4809 build_function_type_list instead of build_function_type.
4810 Delete `endlink' variable.
4811
4812 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4813
4814 * config/avr/avr.c (avr_init_builtins): Call
4815 build_function_type_list instead of build_function_type.
4816
4817 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4818
4819 * config/picochip/picochip.c (picochip_init_builtins): Call
4820 build_function_type_list instead of build_function_type.
4821 Delete `endlink' variable.
4822
4823 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4824
4825 * config/bfin/bfin.c (bfin_init_builtins): Call
4826 build_function_type_list instead of build_function_type.
4827
4828 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4829
4830 From Bernd Schmidt
4831 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4832 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4833
4834 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4835
4836 From Jie Zhang:
4837 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4838 libbffastfp overrides libgcc when -mfast-fp.
4839
4840 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4841
4842 Originally from Bernd Schmidt
4843 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4844 * config/bfin/bfin.c (override_options): Test it and error if
4845 TARGET_FDPIC.
4846
4847 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4848
4849 Originally From Bernd Schmidt
4850 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4851 FD-PIC.
4852
4853 2011-05-03 Jeff Law <law@redhat.com>
4854
4855 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4856 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4857 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4858 than accessing AUX field directly. Free the AUX field before
4859 clearing it.
4860 (thread_block, thread_through_loop_header): Likewise.
4861 (thread_single_edge, mark_threaded_blocks): Likewise.
4862 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4863 (register_jump_thread): Do not attempt to thread to a NULL edge.
4864
4865 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4866
4867 * function.c (init_function_start): Call decide_function_section.
4868 * varasm.c (decide_function_section): New function.
4869 (assemble_start_function): When not using
4870 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4871 or first_function_block_is_cold.
4872 * rtl.h (decide_function_section): Declare.
4873
4874 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4875 Jakub Jelinek <jakub@redhat.com>
4876
4877 PR target/48774
4878 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4879 only succeed if req_mode is the same as set_mode.
4880
4881 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4882
4883 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4884 * genemit.c (gen_exp): Handle RETURN.
4885 * emit-rtl.c (verify_rtx_sharing): Likewise.
4886 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4887 * rtl.c (copy_rtx): RETURN is shared.
4888 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4889 (ret_rtx): New.
4890 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4891 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4892 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4893 * config/cris/cris.c (cris_expand_return): Likewise.
4894 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4895 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4896 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4897 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4898 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4899 Likewise.
4900 * config/v850/v850.c (expand_epilogue): Likewise.
4901 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4902 * config/arm/arm.md (epilogue): Likewise.
4903 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4904 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4905 variable to ret_reg.
4906
4907 2011-05-03 Richard Guenther <rguenther@suse.de>
4908
4909 PR lto/48846
4910 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4911 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4912 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4913
4914 2011-05-03 Richard Guenther <rguenther@suse.de>
4915
4916 * c-decl.c (grokdeclarator): Instead of looking at
4917 TREE_OVERFLOW check if the constant fits in the index type.
4918
4919 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4920
4921 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4922 (vec_store_lanes<mode><mode>): Likewise.
4923
4924 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4925
4926 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4927 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4928 convert_optab_index values.
4929 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4930 * genopinit.c (optabs): Initialize the new optabs.
4931 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4932 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4933 (expand_STORE_LANES): New functions.
4934 * tree.h (build_array_type_nelts): Declare.
4935 * tree.c (build_array_type_nelts): New function.
4936 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4937 (vect_model_load_cost): Likewise.
4938 (vect_store_lanes_supported, vect_load_lanes_supported)
4939 (vect_record_strided_load_vectors): Declare.
4940 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4941 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4942 (vect_transform_strided_load): Split out statement recording into...
4943 (vect_record_strided_load_vectors): ...this new function.
4944 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4945 (write_vector_array, create_array_ref): New functions.
4946 (vect_model_store_cost): Add store_lanes_p argument.
4947 (vect_model_load_cost): Add load_lanes_p argument.
4948 (vectorizable_store): Try to use store-lanes functions for
4949 interleaved stores.
4950 (vectorizable_load): Likewise load-lanes and loads.
4951 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4952 to vect_model_store_cost.
4953 (vect_build_slp_tree): Likewise vect_model_load_cost.
4954
4955 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4956
4957 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4958 * hooks.c (hook_bool_mode_uhwi_false): New function.
4959 * target.def (array_mode_supported_p): New hook.
4960 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4961 * doc/tm.texi: Regenerate.
4962 * stor-layout.c (mode_for_array): New function.
4963 (layout_type): Use it.
4964 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4965 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4966
4967 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4968
4969 PR target/48723
4970 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4971 for -fstack-check if the size to allocate is negative.
4972
4973 2011-05-02 Lawrence Crowl <crowl@google.com>
4974
4975 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4976 (timevar_cond_start): New for starting a timer only when it is not
4977 already running.
4978 (timevar_cond_stop): New for stopping a timer when it was not already
4979 running.
4980
4981 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4982 (timevar_cond_start): New as above.
4983 (timevar_cond_stop): New as above.
4984
4985 * timevar.def: Add start/stop timers for compiler phases,
4986 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4987 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4988 and TV_PHASE_FINALIZE.
4989 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4990 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4991 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4992 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4993 Make unused TV_OVERLOAD into a start/stop timer.
4994
4995 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4996 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4997 to indicate that they are start/stop timers.
4998
4999 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5000 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5001 Move initialization to do_compile.
5002 (do_compile): Add initialization from above.
5003 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5004
5005 * c-decl.c (c_write_global_declarations): Add start/stop of
5006 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5007
5008 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5009 or TV_PARSE_INLINE, as appropriate.
5010 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5011 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5012
5013 2011-05-02 Jason Merrill <jason@redhat.com>
5014
5015 PR c++/40975
5016 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5017
5018 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5019
5020 PR c/35445
5021 * c-decl.c (finish_decl): Only create a composite if the types are
5022 compatible.
5023
5024 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5025
5026 * config/fr30/fr30-protos.h (Mmode): Don't define.
5027 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5028 definition where used.
5029 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5030 define. Expand definitions where used.
5031 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5032 Expand definitions where used.
5033 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5034 rx_function_arg, rx_function_arg_advance,
5035 rx_function_arg_boundary): Expand definitions of those macros.
5036 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5037 definition where used.
5038
5039 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5040
5041 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5042 reg<->xmm moves.
5043 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5044 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5045 with *movv2sf_internal_rex64_avx.
5046 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5047 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5048 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5049 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5050 "vex" in "prefix" attribute calculation.
5051 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5052
5053 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5054
5055 PR target/47951
5056 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5057 inputs match the output.
5058
5059 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5060
5061 PR target/47955
5062 * config/m68k/m68k.c (m68k_expand_prologue): Set
5063 current_function_static_stack_size.
5064
5065 2011-05-02 Jan Hubicka <jh@suse.cz>
5066
5067 * lto-streamer.c (lto_streamer_cache_insert_1,
5068 lto_streamer_cache_lookup, lto_streamer_cache_create,
5069 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5070 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5071
5072 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5073
5074 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5075 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5076 config/m68k/t-opts: New files.
5077 * config/m68k/m68k-tables.opt: New file (generated).
5078 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5079 extra_options and m68k/t-opts to tmake_file.
5080 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5081 (all_isas): Initialize using m68k-isas.def.
5082 (all_microarchs): Initialize using m68k-microarchs.def.
5083 (m68k_find_selection): Remove.
5084 (m68k_handle_option): Don't assert that global structures are in
5085 use. Use error_at. Access variables via opts pointer. Don't
5086 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5087 directly for -m68020-40 and -m68020-60.
5088 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5089 m68k_tune_entry here.
5090 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5091 to m68k-opts.h.
5092 (m68k_library_id_string): Remove declaration.
5093 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5094 (m68k_library_id_string): New Variable.
5095 (march=, mcpu=, mtune=): Use Enum and Var.
5096
5097 2011-05-02 Richard Guenther <rguenther@suse.de>
5098
5099 * varasm.c (output_constructor_regular_field): Compute zero-based
5100 index with double-ints. Make sure to ICE instead of producing
5101 wrong code.
5102 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5103 in asserts. Properly use a signed type.
5104
5105 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5106
5107 * config/i386/sse.md (V): New mode iterator.
5108 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5109 TARGET_SSE2.
5110 (V_256): Rename from AVX256MODE.
5111 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5112 condition to all users.
5113 (VF1): Ditto.
5114 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5115 condition to all users.
5116 (VF_128): Make V4SF mode unconditional.
5117 (VF_256): Rename from AVX256MODEF2P.
5118 (VI4F_128): Rename from SSEMODE4S.
5119 (VI8F_128): Rename from SSEMODE2D.
5120 (VI4F_256): Rename from AVX256MODE8P.
5121 (VI8F_256): Rename from AVX256MODE4P.
5122 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5123 (ssescalarmodesuffix): Remove SF and DF modes.
5124 (SSEMODE124): Remove.
5125 (SSEMODE1248): Ditto.
5126 (SSEMODEF2P): Ditto.
5127 (AVXMODEF2P): Ditto.
5128 (AVXMODEFDP): Ditto.
5129 (AVXMODEFSP): Ditto.
5130 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5131 unconditional.
5132 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5133 unconditional.
5134 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5135 xop_pcmov_<mode>256. Use V mode iterator.
5136
5137 Adjust RTX patterns globally for renamed mode attributes.
5138
5139 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5140
5141 * haifa-sched.c (sched_emit_insn): Emit insn before first
5142 non-scheduled insn. Inform back-end about new insn. Add
5143 new insn to scheduled_insns list.
5144
5145 2011-05-02 Richard Guenther <rguenther@suse.de>
5146
5147 PR tree-optimization/48822
5148 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5149 (process_scc): Indicate which iteration we start.
5150
5151 2011-05-02 Jan Hubicka <jh@suse.cz>
5152
5153 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5154 (lto_section_overrun): New.
5155 * lto-section-out.c (append_block): Rename to ...
5156 (lto_append_block): ... this one; export.
5157 (lto_output_1_stream): Move lto lto-streamer.h
5158 (lto_output_data_stream): Update.
5159 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5160 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5161 functions.
5162
5163 2011-05-02 Richard Guenther <rguenther@suse.de>
5164
5165 * tree.c (tree_code_counts): New global array.
5166 (record_node_allocation_statistics): Count individual tree codes.
5167 (dump_tree_statistics): Dump individual code stats.
5168
5169 2011-05-01 Jan Hubicka <jh@suse.cz>
5170
5171 * ipa-inline.c (caller_growth_limits): Fix thinko when
5172 looking for largest stack frame.
5173 * ipa-inline.h (dump_inline_summary): Declare.
5174 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5175 on stack usage.
5176 (dump_inline_summary): Export.
5177 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5178
5179 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5180
5181 * reginfo.c (memory_move_cost): Change rclass argument type form
5182 'enum reg_class' to reg_class_t.
5183 * reload.h (memory_move_cost): Update prototype.
5184 * postreload.c reload_cse_simplify_set): Change type dclass var to
5185 reg_class_t.
5186 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5187 Update prototype.
5188 (ira_allocate_and_set_costs): Change aclass argument type form
5189 'enum reg_class' to reg_class_t.
5190 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5191 Change aclass argument type to reg_class_t.
5192 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5193 to reg_class_t.
5194 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5195 memory_move_cost call.
5196
5197 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5198 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5199 Change type tmp var to reg_class_t.
5200
5201 2011-04-30 Jan Hubicka <jh@suse.cz>
5202
5203 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5204 inlining into function with flatten attribute.
5205 (want_inline_small_function_p): Be more realistic about inlining
5206 cold calls where callee size grows.
5207
5208 2011-04-30 Jan Hubicka <jh@suse.cz>
5209
5210 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5211 flags.
5212
5213 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5214
5215 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5216 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5217 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5218 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5219 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5220 (print_operand): Rename to...
5221 (sparc_print_operand): ...this. Make static. Adjust
5222 sparc_print_operand function call.
5223 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5224 functions.
5225
5226 2011-04-30 Jan Hubicka <jh@suse.cz>
5227
5228 PR middle-end/48752
5229 * ipa-inline.c (early_inliner): Disable when doing late
5230 addition of function.
5231
5232 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5233
5234 * dwarf2out.c (get_address_mode): New inline.
5235 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5236 if not dwarf_strict emit
5237 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5238 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5239 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5240 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5241 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5242 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5243 mem_loc_descriptor callers.
5244 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5245 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5246 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5247 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5248 (base_types): New variable.
5249 (get_base_type_offset, calc_base_type_die_sizes,
5250 base_type_for_mode, mark_base_types, base_type_cmp,
5251 move_marked_base_types): New functions.
5252 (calc_die_sizes): Assert that die_offset is 0 or equal to
5253 next_die_offset.
5254 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5255 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5256 callers. If not dwarf_strict, call mem_loc_descriptor even for
5257 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5258 (gen_subprogram_die): Don't give up on call site parameters
5259 with non-integral or large integral modes. Adjust
5260 mem_loc_descriptor callers.
5261 (prune_unused_types): Call prune_unused_types_mark on base_types
5262 vector entries.
5263 (resolve_addr): Call mark_base_types.
5264 (dwarf2out_finish): Call move_marked_base_types.
5265
5266 PR tree-optimization/48809
5267 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5268 type.
5269 (gen_inbound_check): Don't compute index_expr - range_min in utype
5270 again, instead reuse SSA_NAME initialized in build_arrays.
5271 Remove two useless gsi_for_stmt calls.
5272
5273 2011-04-29 Jeff Law <law@redhat.com>
5274
5275 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5276
5277 2011-04-29 Martin Jambor <mjambor@suse.cz>
5278
5279 * cgraph.h (cgraph_postorder): Remove declaration.
5280 * ipa-utils.h (ipa_free_postorder_info): Declare.
5281 (ipa_reverse_postorder): Likewise.
5282 * cgraphunit.c: Include ipa-utils.h.
5283 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5284 * ipa-inline.c: Include ipa-utils.h.
5285 (ipa_inline): Update call to ipa_reverse_postorder.
5286 * ipa-pure-const.c (propagate_pure_const): Update call to
5287 ipa_reduced_postorder and ipa_print_order. Call
5288 ipa_free_postorder_info to clean up.
5289 (propagate_nothrow): Likewise.
5290 * ipa-reference.c (propagate): Removed a useless call to
5291 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5292 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5293 * ipa.c: Include ipa-utils.h.
5294 (ipa_profile): Update call to ipa_reverse_postorder.
5295 (cgraph_postorder): Moved to...
5296 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5297 (ipa_utils_print_order): Renamed to ipa_print_order.
5298 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5299 comments.
5300 (ipa_free_postorder_info): New function.
5301 * passes.c: Include ipa-utils.h.
5302 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5303 (ipa_write_summaries): Likewise.
5304 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5305 (cgraphunit.o): Likewise.
5306 (ipa.o): Likewise.
5307 (ipa-inline.o): Likewise.
5308
5309 2011-04-29 Jan Hubicka <jh@suse.cz>
5310
5311 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5312 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5313 * ipa-inline.h (clause_t): Turn into unsigned int.
5314 * ipa-inline-analysis.c (add_clause): Do more simplification.
5315 (and_predicates): Shortcut more cases.
5316 (predicates_equal_p): Move forward; check that clauses are properly
5317 ordered.
5318 (or_predicates): Shortcut more cases.
5319 (edge_execution_predicate): Rewrite as...
5320 (set_cond_stmt_execution_predicate): ... this function; handle
5321 __builtin_constant_p.
5322 (set_switch_stmt_execution_predicate): New .
5323 (compute_bb_predicates): New.
5324 (will_be_nonconstant_predicate): Update TODO.
5325 (estimate_function_body_sizes): Use compute_bb_predicates
5326 and free them later, always try to estimate if stmt is constant.
5327 (estimate_time_after_inlining, estimate_size_after_inlining):
5328 Gracefully handle optimized out edges.
5329 (read_predicate): Fix off by one error.
5330
5331 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5332
5333 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5334
5335 2011-04-27 Xinliang David Li <davidxl@google.com>
5336
5337 * tree-profile.c (init_ic_make_global_vars): Set
5338 tls attribute on ic vars.
5339 * coverage.c (coverage_end_function): Initialize
5340 function_list with zero.
5341
5342 2011-04-29 Richard Guenther <rguenther@suse.de>
5343
5344 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5345 for the type of the result.
5346 (fold_builtin_isascii): Likewise.
5347 (fold_builtin_toascii): Use integer_type_node where appropriate.
5348 (fold_builtin_logb): Likewise.
5349 (fold_builtin_frexp): Likewise.
5350 (fold_builtin_strstr): Likewise.
5351 (fold_builtin_strpbrk): Likewise.
5352 (fold_builtin_fputs): Likewise.
5353 (fold_builtin_sprintf): Likewise.
5354 (fold_builtin_snprintf): Likewise.
5355 (fold_builtin_printf): Likewise.
5356 (do_mpfr_remquo): Use a proper type for the assigned constant.
5357 (do_mpfr_lgamma_r): Likewise.
5358 * dwarf2out.c (resolve_one_addr): Use size_int.
5359 * except.c (init_eh): Likewise.
5360 (assign_filter_values): Use integer_type_node for filter values.
5361 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5362 indices.
5363 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5364 for EH region numbers.
5365 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5366 for the shift amount.
5367
5368 2011-04-29 Richard Guenther <rguenther@suse.de>
5369
5370 * expr.h (expand_shift): Rename to ...
5371 (expand_variable_shift): ... this.
5372 (expand_shift): Take a constant shift amount.
5373 * expmed.c (expand_shift): Rename to ...
5374 (expand_variable_shift): ... this.
5375 (expand_shift): New wrapper around expand_variable_shift.
5376 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5377 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5378 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5379 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5380 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5381 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5382 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5383 emit_store_flag_1, emit_store_flag): Likewise.
5384 * builtins.c (expand_builtin_signbit): Likewise.
5385 * calls.c (load_register_parameters): Likewise.
5386 * function.c (assign_parm_setup_block): Likewise.
5387 * lower-subreg.c (resolve_shift_zext): Likewise.
5388 * optabs.c (widen_bswap, expand_abs_nojump,
5389 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5390 * spu/spu.c (spu_expand_extv): Likewise.
5391 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5392
5393 2011-04-29 Richard Guenther <rguenther@suse.de>
5394
5395 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5396 for the remapped region number.
5397 * predict.c (build_predict_expr): Use integer_type_node for the
5398 predict kind.
5399 * fold-const.c (fold_binary_loc): Use integer_type_node for
5400 the shift amount. Use a proper type for the PLUS_EXPR operand.
5401
5402 2011-04-29 Michael Matz <matz@suse.de>
5403
5404 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5405 other trees that just builtins.
5406 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5407
5408 2011-04-29 Richard Guenther <rguenther@suse.de>
5409
5410 * tree-nested.c (get_trampoline_type): Use size_int.
5411 (get_nl_goto_field): Likewise.
5412 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5413 for all indexes.
5414 (lower_eh_constructs_2): Likewise.
5415 (lower_resx): Likewise.
5416 (lower_eh_dispatch): Likewise.
5417 * tree-mudflap.c (mf_build_string): Use size_int.
5418 (mudflap_register_call): Use integer_type_node for the flag.
5419 (mudflap_enqueue_constant): Use size_int.
5420 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5421 instead of rebuilding it.
5422
5423 2011-04-29 Richard Guenther <rguenther@suse.de>
5424
5425 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5426 Handle OBJ_TYPE_REF.
5427 (find_func_aliases_for_call): Use it more consistently.
5428
5429 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5430
5431 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5432 (rank_for_schedule): Use it.
5433 (schedule_block): Set it.
5434
5435 2011-04-28 David Li <davidxl@google.com>
5436
5437 * tree.c (crc32_string): Use crc32_byte.
5438 (crc32_byte): New function.
5439 * tree.h (crc32_byte): New function.
5440 * gcov.c (read_graph_file): Handle new cfg_cksum.
5441 (read_count_file): Ditto.
5442 * profile.c (instrument_values): Ditto.
5443 (get_exec_counts): Ditto.
5444 (read_profile_edge_counts): Ditto.
5445 (compute_branch_probabilities): Ditto.
5446 (compute_value_histograms): Ditto.
5447 (branch_prob): Ditto.
5448 (end_branch_prob): Ditto.
5449 * coverage.c (read_counts_file): Ditto.
5450 (get_coverage_counts): Ditto.
5451 (tree_coverage_counter_addr): Ditto.
5452 (coverage_checksum_string): Ditto.
5453 (coverage_begin_output): Ditto.
5454 (coverage_end_function): Ditto.
5455 (build_fn_info_type): Ditto.
5456 (build_fn_info_value): Ditto.
5457 * libgcov.c (gcov_exit): Ditto.
5458 * gcov-dump.c (tag_function): Ditto.
5459 (compute_checksum): Remove.
5460
5461 2011-04-29 Alan Modra <amodra@gmail.com>
5462
5463 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5464 unspec plus offset. Tidy macho code.
5465
5466 2011-04-29 Martin Jambor <mjambor@suse.cz>
5467
5468 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5469 node instead of a decl. Update all callers.
5470 * cgraph.h: Update declaration.
5471
5472 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5473
5474 PR tree-optimization/48765
5475 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5476 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5477 to indicate if loop aware SLP is being used. Scan the statements
5478 and update the vectorization factor according to the type of
5479 vectorization before statement analysis.
5480 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5481 pass it to vect_analyze_loop_operations.
5482 (vectorizable_reduction): Set number of copies to 1 in case of pure
5483 SLP statement.
5484 * tree-vect-stmts.c (vectorizable_conversion,
5485 vectorizable_assignment, vectorizable_shift,
5486 vectorizable_operation, vectorizable_type_demotion,
5487 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5488 Likewise.
5489 (vectorizable_condition): Move the check that it is not SLP
5490 vectorization before the number of copies check.
5491 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5492 to vectorize the loop using SLP.
5493
5494 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5495
5496 PR middle-end/48597
5497 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5498 inline asm.
5499
5500 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5501
5502 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5503 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5504 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5505 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5506 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5507 linux*.h headers.
5508 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5509 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5510 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5511 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5512 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5513 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5514 REG_NAME.
5515 * config/i386/linux.h (REG_NAME): Don't define.
5516 * config/i386/linux64.h (REG_NAME): Don't define.
5517 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5518 Undefine before defining.
5519
5520 2011-04-28 Jan Hubicka <jh@suse.cz>
5521
5522 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5523 nonconstant_names array.
5524 (estimate_function_body_sizes): Build nonconstant_names array; handle
5525 BUILT_IN_CONSTANT_P.
5526
5527 2011-04-28 Richard Guenther <rguenther@suse.de>
5528
5529 PR bootstrap/48804
5530 Revert
5531 2011-04-28 Richard Guenther <rguenther@suse.de>
5532
5533 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5534 as late as possible.
5535
5536 2011-04-28 Richard Guenther <rguenther@suse.de>
5537
5538 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5539 (debug_constraint): Do it here.
5540 (dump_constraints): And here.
5541 (rewrite_constraints): And here.
5542 (dump_constraint_edge): Remove.
5543 (dump_constraint_graph): Rewrite to produce DOT output.
5544 (solve_constraints): Build succ graph as late as possible.
5545 Dump constraint graphs before and after solving.
5546
5547 2011-04-28 Richard Guenther <rguenther@suse.de>
5548
5549 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5550 New function split out from ...
5551 (find_func_aliases): ... here. Call it.
5552 (find_func_aliases_for_call): Likewise.
5553
5554 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5555
5556 * internal-fn.h (internal_fn_name_array): Declare.
5557 (internal_fn_flags_array): Likewise.
5558
5559 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5560
5561 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5562 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5563 Move from sse.md.
5564 (ssemodefsuffix): Remove.
5565 (ssevecmodesuffix): New mode attribute.
5566 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5567 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5568 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5569 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5570 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5571 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5572 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5573 ssemodesuffix mode attribute.
5574 (float splitters): Use ssevecmodesuffix mode attribute.
5575 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5576 (sseinsmode): Rename from avxvecmode.
5577 (avxsizesuffix): Rename from avxmodesuffix.
5578 (sseintvecmode): Rename from avxpermvecmode.
5579 (ssedoublevecmode): Rename from ssedoublesizemode.
5580 (ssehalfvecmode): Rename from avxhalfvecmode.
5581 (ssescalarmode): Rename from avxscalarmode.
5582 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5583 templates for ssemodesuffix mode attribute.
5584 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5585 mode attribute.
5586
5587 Adjust RTX patterns globally for renamed mode attributes.
5588
5589 2011-04-27 Jan Hubcika <jh@suse.cz>
5590
5591 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5592 * ipa-inline-analysis.c: Include alloc-pool.h.
5593 (edge_predicate_pool): New.
5594 (trye_predicate_p): New function
5595 (false_predicate_p): New function.
5596 (add_clause): Sanity check that false clauses are "optimized";
5597 never add clauses to predicate that is already known to be false.
5598 (and_predicate): Use flase_predicate_p.
5599 (evaulate_predicate): Rename to ...
5600 (evaluate_predicate): ... this one; update all callers; assert
5601 that false is not listed among possible truths.
5602 (dump_predicate): Use true_predicate_p.
5603 (account_size_time): Use false_predicate_p.
5604 (evaulate_conditions_for_edge): Rename to ...
5605 (evaluate_conditions_for_edge) ... this one.
5606 (edge_set_predicate): New function.
5607 (inline_edge_duplication_hook): Duplicate edge predicates.
5608 (inline_edge_removal_hook): Free edge predicates.
5609 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5610 (dump_inline_summary): Update.
5611 (estimate_function_body_sizes): Set edge predicates.
5612 (estimate_calls_size_and_time): Handle predicates.
5613 (estimate_callee_size_and_time): Update.
5614 (remap_predicate): Add toplev_predicate; update comment.
5615 (remap_edge_predicates): New function.
5616 (inline_merge_summary): Compute toplev predicate; update.
5617 (read_predicate): New function.
5618 (read_inline_edge_summary): Use it.
5619 (inline_read_section): Likewise.
5620 (write_predicate): New function.
5621 (write_inline_edge_summary): Use it.
5622 (inline_write_summary): Likewise.
5623 (inline_free_summary): Free alloc pool and edge summary vec.
5624
5625 2011-04-27 Richard Guenther <rguenther@suse.de>
5626
5627 * tree-ssa-structalias.c (changed_count): Remove.
5628 (changed): Use a bitmap.
5629 (unify_nodes): Adjust.
5630 (do_sd_constraint): Likewise.
5631 (do_ds_constraint): Likewise.
5632 (do_complex_constraint): Likewise.
5633 (solve_graph): Likewise.
5634
5635 2011-04-27 Jan Hubicka <jh@suse.cz>
5636
5637 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5638
5639 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5640
5641 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5642 (avx_vperm2f128_*_operand): Ditto.
5643 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5644 Use avx_vpermilp_parallel in insn condition.
5645 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5646 Use avx_vperm2f128_parallel in insn condition.
5647
5648 2011-04-27 Richard Guenther <rguenther@suse.de>
5649
5650 * Makefile.in (tree-ssa-structalias.o): Remove
5651 gt-tree-ssa-structalias.h dependency.
5652 (GTFILES): Remove tree-ssa-structalias.c.
5653 * tree.c (allocate_decl_uid): New function.
5654 (make_node_stat): Use it.
5655 (copy_node_stat): Likewise.
5656 * tree.h (allocate_decl_uid): Declare.
5657 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5658 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5659 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5660 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5661 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5662 (struct heapvar_map): Likewise.
5663 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5664 heapvar_insert): Likewise.
5665 (make_heapvar_for): Rename to ...
5666 (make_heapvar): ... this. Simplify.
5667 (fake_var_decl_obstack): New global var.
5668 (build_fake_var_decl): New function.
5669 (make_constraint_from_heapvar): Adjust.
5670 (handle_lhs_call): Likewise.
5671 (create_function_info_for): Likewise.
5672 (intra_create_variable_infos): Likewise.
5673 (init_alias_vars): Allocate fake_var_decl_obstack.
5674 (init_alias_heapvars, delete_alias_heapvars): Remove.
5675 (compute_points_to_sets): Do not call init_alias_heapvars.
5676 (ipa_pta_execute): Likewise.
5677 (delete_points_to_sets): Free fake_var_decl_obstack.
5678
5679 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5680
5681 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5682 (si_from_UTItype, si_to_UTItype): New functions.
5683 (__udivmodti4): Use them to implement type-punning.
5684 * config/spu/multi3.c (union qword_TItype): New data type.
5685 (si_from_TItype, si_to_TItype): New functions.
5686 (__multi3): Use them to implement type-punning.
5687
5688 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5689
5690 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5691
5692 2011-04-27 Jan Hubicka <jh@suse.cz>
5693
5694 * ipa-prop.c (function_insertion_hook_holder): New holder.
5695 (ipa_add_new_function): New function.
5696 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5697 Register/deregister holder.
5698
5699 2011-04-27 Richard Guenther <rguenther@suse.de>
5700
5701 PR tree-optimization/48772
5702 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5703
5704 2011-04-27 Richard Guenther <rguenther@suse.de>
5705
5706 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5707 TARGET_MEM_REF handling.
5708
5709 2011-04-27 Nick Clifton <nickc@redhat.com>
5710
5711 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5712 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5713 (REG_CLASS_NAMES): Likewise.
5714 (REG_CLASS_CONTENTS): Likewise.
5715 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5716 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5717 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5718 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5719 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5720 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5721 duplicate register classes.
5722 (frv_class_likely_spilled_p): Likewise.
5723 (frv_register_move_cost): Likewise.
5724
5725 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5726 end of the regno_reg_class array.
5727
5728 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5729
5730 PR c/48742
5731 * c-typeck.c (build_binary_op): Don't wrap arguments if
5732 int_operands is true.
5733
5734 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5735
5736 PR target/48767
5737 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5738 targetm.calls.must_pass_in_stack for void type.
5739
5740 2011-04-26 Jan Hubicka <jh@suse.cz>
5741
5742 * cgraphbuild.c (build_cgraph_edges): Update call
5743 of cgraph_create_edge and cgraph_create_indirect_edge.
5744 * cgraph.c (cgraph_create_edge_including_clones,
5745 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5746 cgraph_update_edges_for_call_stmt_node): Do not take nest
5747 argument; do not initialize call_stmt_size/time.
5748 (dump_cgraph_node): Do not dump nest.
5749 (cgraph_clone_edge): Do not take loop_nest argument;
5750 do not propagate it; do not clone call_stmt_size/time.
5751 (cgraph_clone_node): Likewise.
5752 (cgraph_create_virtual_clone): Update.
5753 * cgraph.h (struct cgraph_edge): Remove
5754 call_stmt_size/call_stmt_time/loop_nest.
5755 (cgraph_create_edge, cgraph_create_indirect_edge,
5756 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5757 prototype.
5758 * tree-emutls.c (gen_emutls_addr): Update.
5759 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5760 loop_nest; handle indirect calls, too.
5761 (clone_inlined_nodes): Do not care about updating inline summaries.
5762 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5763 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5764 stream call_stmt_size/call_stmt_time/loop_nest.
5765 * ipa-inline.c (edge_badness): Update.
5766 (ipa_inline): dump summaries after inlining.
5767 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5768 New.
5769 (inline_edge_summary): New function.
5770 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5771 (inline_edge_removal_hook): Handle edge summaries.
5772 (inline_edge_duplication_hook): New hook.
5773 (inline_summary_alloc): Alloc hooks.
5774 (initialize_growth_caches): Do not register removal hooks.
5775 (free_growth_caches); Do not free removal hook.
5776 (dump_inline_edge_summary): New function.
5777 (dump_inline_summary): Use it.
5778 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5779 (inline_update_callee_summaries): New function.
5780 (inline_merge_summary): Use it.
5781 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5782 (read_inline_edge_summary): New function.
5783 (inline_read_section): Use it.
5784 (write_inline_edge_summary): New function.
5785 (inline_write_summary): Use it.
5786 (inline_free_summary): Free edge new holders.
5787 * tree-inline.c (copy_bb): Update.
5788
5789 2011-04-26 Jason Merrill <jason@redhat.com>
5790
5791 * tree-eh.c (lower_try_finally_switch): Create the label along with
5792 the CASE_LABEL_EXPR.
5793
5794 2011-04-26 David S. Miller <davem@davemloft.net>
5795 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5796
5797 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5798 * configure: Regenerate.
5799
5800 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5801
5802 PR target/48258
5803 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5804 reduction.
5805 (VEC_reduc): New code iterator and splitters for vector reduction.
5806 (VEC_reduc_name): Ditto.
5807 (VEC_reduc_rtx): Ditto.
5808 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5809 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5810
5811 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5812 support for extracting SF on VSX.
5813
5814 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5815 generating xscvspdp.
5816 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5817 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5818 double add, minimum, maximum vector reduction.
5819 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5820 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5821 optimize double vector reduction.
5822 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5823
5824 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5825
5826 * config/fr30/fr30.h (inhibit_libc): Don't define.
5827 * config/m32r/m32r-protos.h: Correct comment.
5828 * config/v850/v850.h (GHS_default_section_names,
5829 GHS_current_section_names): Use tree, not union tree_node *.
5830
5831 2011-04-26 Xinliang David Li <davidxl@google.com>
5832
5833 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5834 * c-family/c-opts.c (c_common_handle_option): Set
5835 warn_maybe_uninitialized.
5836 * opts.c (common_handle_option): Ditto.
5837 * common.opt: New option.
5838 * tree-ssa.c (warn_uninit): Add one more parameter.
5839 (warn_uninitialized_var): Pass warning code.
5840 * tree-flow.h: Interface change.
5841
5842 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5843
5844 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5845 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5846 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5847
5848 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5849
5850 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5851 * config/mips/mips.opt (mmips-tfile): Remove.
5852
5853 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5854 mips-tdump reference to ...
5855 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5856 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5857 reference by Tru64 UNIX.
5858
5859 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5860
5861 PR debug/48768
5862 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5863 is error_mark_node, set value to NULL.
5864
5865 PR tree-optimization/48734
5866 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5867 if return value from maybe_fold_*_comparsions isn't something
5868 the code is prepared to handle.
5869
5870 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5871
5872 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5873 mode check.
5874 (ext_QIreg_nomode_operands): Remove.
5875 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5876 (*andsi_1): Ditto.
5877 (*andhi_1): Ditto.
5878
5879 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5880
5881 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5882
5883 2011-04-26 Richard Guenther <rguenther@suse.de>
5884
5885 * c-typeck.c (build_unary_op): Do not expand array-refs via
5886 pointer arithmetic. Only adjust qualifiers for function types.
5887
5888 2011-04-26 Richard Guenther <rguenther@suse.de>
5889
5890 PR middle-end/48694
5891 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5892 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5893 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5894 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5895
5896 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5897
5898 * doc/extend.texi: Document __underlying_type.
5899
5900 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5901
5902 * config/rs6000/titan.md (automata_option "progress"): Remove.
5903
5904 2011-04-25 Jeff Law <law@redhat.com>
5905
5906 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5907
5908 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5909
5910 * system.h (ENUM_BITFIELD): Remove.
5911
5912 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5913 Eric Botcazou <ebotcazou@adacore.com>
5914
5915 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5916 for STORE_FLAG_VALUE==-1 case.
5917
5918 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5919
5920 PR target/43804
5921 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5922 LEGITIMATE_PIC_OPERAND_P.
5923
5924 2011-04-24 Jan Hubicka <jh@suse.cz>
5925
5926 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5927 WPA hack.
5928 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5929 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5930 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5931 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5932 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5933 Sanity check predicate length.
5934 (remap_predicate): Likewise; sanity check jump functions.
5935 (inline_read_section, inline_write_summary): Sanity check
5936 predicate length.
5937
5938 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5939
5940 PR other/48748
5941 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5942 __is_literal_type, and __is_trivial; update throughout about
5943 possibly cv-qualified void types.
5944
5945 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5946
5947 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5948 testsuite and make it version agnostic.
5949
5950 2011-04-22 Jan Hubicka <jh@suse.cz>
5951
5952 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5953
5954 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5955
5956 PR c/48685
5957 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5958 to VOID_TYPE even around MODIFY_EXPR.
5959
5960 2011-04-22 Mike Stump <mikestump@comcast.net>
5961
5962 * gensupport.c (read_md_rtx): Fix typo in comment.
5963 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5964 comment.
5965
5966 2011-04-22 Jan Hubicka <jh@suse.cz>
5967
5968 * gengtype.c (open_base_files): Add ipa-inline.h include.
5969 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5970 ipa-prop.c; update all uses.
5971 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5972 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5973 merge summary of inlined function into former caller.
5974 * ipa-inline.c (max_benefit): Remove.
5975 (edge_badness): Compensate for removal of benefits.
5976 (update_caller_keys): Use
5977 reset_node_growth_cache/reset_edge_growth_cache.
5978 (update_callee_keys): Likewise.
5979 (update_all_callee_keys): Likewise.
5980 (inline_small_functions): Do not collect max_benefit; do not reset
5981 estimated_growth; call free_growth_caches and initialize_growth_caches.
5982 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5983 struct size_time_entry): New structures.
5984 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5985 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5986 and estimated_growth.
5987 (edge_growth_cache_entry): New structure.
5988 (node_growth_cache, edge_growth_cache): New global vars.
5989 (estimate_growth): Turn into inline.
5990 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5991 initialize_growth_caches, free_growth_caches): Declare.
5992 (estimate_edge_growth): Rewrite.
5993 (estimate_edge_time): Implement as inline cache lookup.
5994 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5995 functions.
5996 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5997 (NUM_CONDITIONS): New constant.
5998 (predicate_conditions): New enum.
5999 (IS_NOT_CONSTANT): New constant.
6000 (edge_removal_hook_holder): New var.
6001 (node_growth_cache, edge_growth_cache): New global vars.
6002 (true_predicate, single_cond_predicate, false_predicate,
6003 not_inlined_predicate, add_condition, add_clause, and_predicates,
6004 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6005 dump_clause, dump_predicate, account_size_time,
6006 evaulate_conditions_for_edge): New functions.
6007 (inline_summary_alloc): Move to heap.
6008 (inline_node_removal_hook): Clear condition and entry vectors.
6009 (inline_edge_removal_hook): New function.
6010 (initialize_growth_caches, free_growth_caches): New function.
6011 (dump_inline_summary): Update.
6012 (edge_execution_predicate): New function.
6013 (will_be_nonconstant_predicate): New function.
6014 (estimate_function_body_sizes): Compute BB and constantness predicates.
6015 (compute_inline_parameters): Do not clear estimated_growth.
6016 (estimate_edge_size_and_time): New function.
6017 (estimate_calls_size_and_time): New function.
6018 (estimate_callee_size_and_time): New function.
6019 (remap_predicate): New function.
6020 (inline_merge_summary): New function.
6021 (do_estimate_edge_time): New function based on...
6022 (estimate_edge_time): ... this one.
6023 (do_estimate_edge_growth): New function.
6024 (do_estimate_growth): New function based on....
6025 (estimate_growth): ... this one.
6026 (inline_analyze_function): Analyze after deciding on jump functions.
6027 (inline_read_section): New function.
6028 (inline_read_summary): Use it.
6029 (inline_write_summary): Write all the new data.
6030 * ipa-prop.c (ipa_get_param_decl_index): Export.
6031 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6032 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6033 Declare.
6034 (ipa_get_lattice): Move here from ipa-cp.c
6035 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6036 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6037 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6038 cgraph_edge_inlinable_p): Remove.
6039 * cgraphunit.c: Include ipainline.h
6040 (cgraph_process_new_functions): Update call of
6041 compute_inline_parameters.
6042
6043 2011-04-22 Richard Guenther <rguenther@suse.de>
6044
6045 * tree.c (build_int_cst): Properly create canonicalized integer
6046 constants.
6047 (build_int_cst_type): Remove scary comments.
6048
6049 2011-04-22 Xinliang David Li <davidxl@google.com>
6050
6051 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6052 by default when -Wno-error is not specified.
6053 * opts-global.c (decode_options): Remove call to
6054 control_warning_options.
6055
6056 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6057
6058 PR tree-optimization/48717
6059 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6060 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6061
6062 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6063
6064 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6065 definition where used.
6066
6067 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6068
6069 PR c/48716
6070 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6071 TREE_STATIC variables declared inside of some OpenMP construct.
6072
6073 2011-04-22 Martin Jambor <mjambor@suse.cz>
6074
6075 PR middle-end/48585
6076 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6077
6078 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6079
6080 PR c/36750
6081 * c-typeck.c (pop_init_level): Do not warn about initializing
6082 with ` = {0}'.
6083
6084 2011-04-22 Alan Modra <amodra@gmail.com>
6085
6086 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6087 when returning call_cookie.
6088 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6089 pointers, to functions with no more vector args than the current
6090 function, and some non-local calls for ABI_V4.
6091 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6092 sibcall_nonlocal_aix64): Combine to ..
6093 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6094 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6095 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6096 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6097 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6098 operand.
6099 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6100 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6101 sibcall_value_symbolic_64): Delete.
6102
6103 2011-04-21 Xinliang David Li <davidxl@google.com>
6104
6105 * cgraph.h: Remove pid.
6106 * cgraph.c: Remove pid.
6107 * value-prof.c (init_node_map): New function.
6108 (del_node_map): New function.
6109 (find_func_by_funcdef_no): New function.
6110 (gimple_ic_transform): Call new function.
6111 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6112 * function.c (get_last_funcdef_no): New function.
6113 * function.h (get_last_funcdef_no): New function.
6114 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6115 to libgcov function.
6116 (tree-profiling): Call node map init and delete function.
6117
6118 2011-04-21 Ian Lance Taylor <iant@google.com>
6119
6120 * godump.c (go_format_type): Use exported Go name for anonymous
6121 field name.
6122
6123 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6124
6125 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6126 Call builtin_function_type_list instead of builtin_function_type.
6127 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6128
6129 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6130
6131 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6132 build_function_type_list instead of build_function_type.
6133 Delete variable `endlink'.
6134
6135 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6136
6137 * config/s390/s390.c (s390_init_builtins): Call
6138 build_function_type_list instead of build_function_type.
6139
6140 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6141
6142 * config/ia64/ia64.c (ia64_init_builtins): Call
6143 build_function_type_list instead of builtin_function_type.
6144
6145 2011-04-21 Easwaran Raman <eraman@google.com>
6146
6147 * cfgexpand.c (stack_var): Remove OFFSET...
6148 (add_stack_var): ...and its reference here...
6149 (expand_stack_vars): ...and here.
6150 (stack_var_cmp): Sort by descending order of size.
6151 (partition_stack_vars): Change heuristic.
6152 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6153 (dump_stack_var_partition): Add newline after each partition.
6154
6155 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6156 Jeff Law <law@redhat.com>
6157
6158 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6159 * gengtype.c (matching_file_name_substitute): Likewise.
6160
6161 2011-04-21 Richard Guenther <rguenther@suse.de>
6162
6163 PR lto/48703
6164 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6165
6166 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6167
6168 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6169
6170 2011-04-21 Richard Guenther <rguenther@suse.de>
6171
6172 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6173 file name.
6174
6175 2011-04-21 Richard Guenther <rguenther@suse.de>
6176
6177 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6178 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6179 Use DECL_P, not SSA_VAR_P.
6180 (ptr_derefs_may_alias_p): Likewise.
6181 (ptr_deref_may_alias_ref_p_1): Likewise.
6182 (decl_refs_may_alias_p): Likewise.
6183 (refs_may_alias_p_1): Likewise.
6184 (ref_maybe_used_by_call_p_1): Likewise.
6185 (call_may_clobber_ref_p_1): Likewise.
6186 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6187 are either MEM_REF or TARGET_MEM_REF.
6188 (indirect_refs_may_alias_p): Likewise.
6189 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6190 for MEM_EXPR of indirect calls.
6191
6192 2011-04-21 Tristan Gingold <gingold@adacore.com>
6193
6194 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6195 (dst_file_info_struct): Remove flen field.
6196 (lookup_filename): Remove code that set flen field.
6197
6198 2011-04-21 Tristan Gingold <gingold@adacore.com>
6199
6200 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6201
6202 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6203
6204 PR target/48708
6205 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6206 vec_extract and vec_concat for non-SSE4_1 targets.
6207
6208 2011-04-21 Richard Guenther <rguenther@suse.de>
6209
6210 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6211 return statements.
6212
6213 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6214
6215 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6216 undefine.
6217 (FILE): Don't undefine.
6218
6219 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6220
6221 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6222 struct rtx_def *.
6223 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6224 struct rtx_def *.
6225 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6226 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6227 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6228 rtx_def *.
6229 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6230 definitions where used.
6231 * config/microblaze/microblaze.h (struct microblaze_args): Use
6232 rtx, not struct rtx_def *.
6233 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6234 rtx_def *.
6235 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6236 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6237 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6238 not struct rtx_def *.
6239 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6240 struct rtx_def *.
6241 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6242 rtx_def *.
6243 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6244
6245 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6246
6247 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6248 operand_equal_p to compare DR_BASE_ADDRESSes.
6249 (vect_check_interleaving): Likewise.
6250
6251 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6252
6253 PR target/46329
6254 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6255 for all Neon struct constants.
6256
6257 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6258
6259 * target.def (legitimate_constant_p): New hook.
6260 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6261 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6262 * doc/tm.texi: Regenerate.
6263 * hooks.h (hook_bool_mode_rtx_true): Declare.
6264 * hooks.c (hook_bool_mode_rtx_true): Define.
6265 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6266 * calls.c (precompute_register_parameters): Replace uses of
6267 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6268 (emit_library_call_value_1): Likewise.
6269 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6270 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6271 * ira-costs.c (scan_one_insn): Likewise.
6272 * recog.c (general_operand, immediate_operand): Likewise.
6273 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6274 * reload1.c (init_eliminable_invariants): Likewise.
6275
6276 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6277 mode argument.
6278 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6279 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6280 argument.
6281 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6282 * config/alpha/predicates.md (input_operand): Update call to
6283 alpha_legitimate_constant_p.
6284
6285 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6286 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6287 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6288 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6289 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6290 (arm_legitimate_constant_p): New functions.
6291 (arm_cannot_force_const_mem): Make static.
6292
6293 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6294
6295 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6296 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6297 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6298 instead of bfin_legitimate_constant_p.
6299 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6300 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6301
6302 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6303
6304 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6305
6306 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6307 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6308 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6309 (frv_legitimate_constant_p): Make static. Add a mode argument.
6310
6311 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6312 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6313 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6314
6315 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6316 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6317 * config/i386/i386.c (legitimate_constant_p): Rename to...
6318 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6319 argument.
6320 (ix86_cannot_force_const_mem): Update accordingly.
6321 (ix86_legitimate_address_p): Likewise.
6322 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6323 * config/i386/i386.md: Update commentary.
6324
6325 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6326 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6327 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6328 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6329
6330 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6331
6332 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6333 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6334 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6335 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6336
6337 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6338 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6339 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6340
6341 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6342 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6343 (m32r_legitimate_constant_p): New function.
6344
6345 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6346 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6347 LEGITIMATE_CONSTANT_P.
6348 (LEGITIMATE_CONSTANT_P): Delete.
6349 * config/m68k/m68k.c (m68k_expand_prologue): Call
6350 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6351 (m68k_legitimate_constant_p): New function.
6352 * config/m68k/m68k.md: Update comments.
6353
6354 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6355 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6356 (mcore_legitimate_constant_p): New function.
6357
6358 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6359 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6360 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6361 Add a mode argument.
6362 (mep_legitimate_address): Update accordingly.
6363 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6364
6365 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6366 Delete.
6367 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6368 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6369 static. Check OP's mode for VOIDmode.
6370 (microblaze_legitimate_constant_p): New function.
6371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6372
6373 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6374 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6375 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6376 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6377 * config/mips/predicates.md: Update comments.
6378
6379 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6380 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6381 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6382 (mmix_legitimate_constant_p): Make static, return a bool, and take
6383 a mode argument.
6384 (mmix_print_operand_address): Update accordingly.
6385
6386 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6387 Delete.
6388 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6389 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6390 static. Add a mode argument.
6391 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6392
6393 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6394
6395 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6396 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6397 (pa_legitimate_constant_p): New function.
6398
6399 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6400
6401 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6402 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6403 (pdp11_legitimate_constant_p): New function.
6404
6405 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6406 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6407 (rs6000_legitimate_constant_p): New function.
6408
6409 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6410 (rx_legitimate_constant_p): ...this.
6411 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6412 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6413 (rx_legitimate_constant_p): ...this.
6414 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6415 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6416
6417 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6418 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6419 * config/s390/s390.c (legitimate_constant_p): Rename to...
6420 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6421 and add a mode argument.
6422 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6423
6424 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6425
6426 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6427 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6428 (sh_legitimate_constant_p): New function.
6429
6430 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6431 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6432 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6433 (legitimate_constant_p): Rename to...
6434 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6435 argument.
6436 (constant_address_p): Update accordingly.
6437
6438 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6439 argument and return a bool.
6440 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6441 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6442 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6443 (spu_rtx_costs): Update accordingly.
6444 * config/spu/predicates.md (vec_imm_operand): Likewise.
6445
6446 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6447
6448 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6449 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6450 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6451
6452 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6453 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6454 * config/vax/vax.c (legitimate_constant_p): Likewise.
6455
6456 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6457 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6458 (xtensa_legitimate_constant_p): New function.
6459
6460 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6461
6462 * target.def (cannot_force_const_mem): Add a mode argument.
6463 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6464 * doc/tm.texi: Regenerate.
6465 * hooks.h (hook_bool_mode_rtx_false): Declare.
6466 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6467 (hook_bool_mode_const_rtx_true): Likewise.
6468 (hook_bool_mode_rtx_false): New function.
6469 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6470 to be non-VOID. Update call to cannot_force_const_mem.
6471 (find_reloads): Update accordingly.
6472 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6473 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6474 argument.
6475 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6476 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6477 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6478 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6479 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6480 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6481 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6482 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6483 (m68k_cannot_force_const_mem): ...this new function.
6484 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6485 argument.
6486 (mips_const_insns, mips_legitimize_const_move): Update calls.
6487 (mips_secondary_reload_class): Likewise.
6488 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6489 (pa_cannot_force_const_mem): ...this new function.
6490 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6491 (rs6000_cannot_force_const_mem): ...this new function.
6492 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6493 argument.
6494 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6495 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6496 to...
6497 (xtensa_cannot_force_const_mem): ...this new function.
6498
6499 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6500
6501 * config/mips/mips.c (mips16_build_function_stub): Call
6502 build_function_type_list instead of build_function_type.
6503 (mips16_build_call_stub): Likewise.
6504
6505 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6506
6507 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6508 instead of build_function_type.
6509
6510 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6511
6512 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6513 instead of build_function_type.
6514
6515 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6516
6517 PR target/48678
6518 * config/i386/i386.md (insv): Change operand 0 constraint to
6519 "register_operand". Change operand 1 and 2 constraint to
6520 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6521 * config/i386/sse.md (sse4_1_pinsrb): Export.
6522 (sse2_pinsrw): Ditto.
6523 (sse4_1_pinsrd): Ditto.
6524 (sse4_1_pinsrq): Ditto.
6525 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6526 * config/i386/i386.c (ix86_expand_pinsr): New.
6527
6528 2011-04-20 Easwaran Raman <eraman@google.com>
6529
6530 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6531 containing union type only with -fstrict-aliasing.
6532
6533 2011-04-20 Jim Meyering <meyering@redhat.com>
6534
6535 Remove useless if-before-free tests.
6536 * calls.c (expand_call, save_area): Likewise.
6537 * cfgcleanup.c (try_forward_edges): Likewise.
6538 * collect2.c (collect_execute): Likewise.
6539 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6540 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6541 * coverage.c (coverage_checksum_string): Likewise.
6542 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6543 * cselib.c (cselib_init): Likewise.
6544 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6545 (df_set_clean_cfg): Likewise.
6546 * function.c (free_after_compilation): Likewise.
6547 * gcc.c (do_spec_1, main): Likewise.
6548 * gcov.c (create_file_names): Likewise.
6549 * gensupport.c (identify_predicable_attribute): Likewise.
6550 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6551 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6552 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6553 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6554 * ipa-pure-const.c (local_pure_const): Likewise.
6555 * ipa-reference.c (propagate): Likewise.
6556 * ira-costs.c (free_ira_costs): Likewise.
6557 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6558 * matrix-reorg.c (mat_free): Likewise.
6559 * prefix.c (get_key_value): Likewise.
6560 * profile.c (compute_value_histograms): Likewise.
6561 * reload1.c (free_reg_equiv): Likewise.
6562 * sched-deps.c (free_deps): Likewise.
6563 * sel-sched-ir.c (fence_clear): Likewise.
6564 * sese.c (set_rename, if_region_set_false_region): Likewise.
6565 * tree-data-ref.c (free_rdg): Likewise.
6566 * tree-eh.c (lower_try_finally): Likewise.
6567 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6568 * tree-ssa-live.c (delete_var_map): Likewise.
6569 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6570 * tree-ssa-pre.c (phi_trans_add): Likewise.
6571
6572 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6573
6574 PR tree-optimization/48611
6575 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6576 beyond ERT_MUST_NOT_THROW region.
6577
6578 2011-04-20 Catherine Moore <clm@codesourcery.com>
6579
6580 * config/mips/mips.opt (mfix-24k): New.
6581 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6582 * config/mips/mips.md (length): Increase by 4 for stores if
6583 fixing 24K errata.
6584 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6585 all noreorder if fixing 24K errata.
6586 * doc/invoke.texi: Document mfix-24k.
6587
6588 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6589
6590 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6591 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6592
6593 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6594
6595 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6596 (const_ok_for_op): ... to here.
6597
6598 2011-04-20 Kai Tietz <ktietz@redhat.com>
6599
6600 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6601 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6602
6603 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6604
6605 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6606
6607 2011-04-20 Richard Guenther <rguenther@suse.de>
6608
6609 PR tree-optimization/47892
6610 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6611 are if-convertible.
6612
6613 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6614
6615 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6616
6617 2011-04-20 Tristan Gingold <gingold@adacore.com>
6618
6619 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6620
6621 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6622
6623 PR target/18145
6624
6625 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6626 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6627 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6628 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6629 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6630
6631 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6632 New prototype.
6633
6634 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6635 (avr_asm_named_section, avr_asm_output_aligned_common,
6636 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6637 New functions to update...
6638 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6639 (avr_asm_init_sections): Overwrite section callbacks for
6640 data_section, bss_section.
6641 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6642 from here to...
6643 (avr_file_end): ...here.
6644
6645 2011-04-20 Richard Guenther <rguenther@suse.de>
6646
6647 PR middle-end/48695
6648 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6649 objects and types here. Adjust for their offset before comparing.
6650
6651 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6652
6653 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6654 statement per copy.
6655
6656 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6657
6658 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6659 (GIMPLE_H): Include $(INTERNAL_FN_H).
6660 (OBJS-common): Add internal-fn.o.
6661 (internal-fn.o): New rule.
6662 * internal-fn.def: New file.
6663 * internal-fn.h: Likewise.
6664 * internal-fn.c: Likewise.
6665 * gimple.h: Include internal-fn.h.
6666 (GF_CALL_INTERNAL): New gf_mask.
6667 (gimple_statement_call): Put fntype into a union with a new
6668 internal_fn field.
6669 (gimple_build_call_internal): Declare.
6670 (gimple_build_call_internal_vec): Likewise.
6671 (gimple_call_same_target_p): Likewise.
6672 (gimple_call_internal_p): New function.
6673 (gimple_call_internal_fn): Likewise.
6674 (gimple_call_fntype): Return null for internal calls.
6675 (gimple_call_set_fntype): Assert that the function is not internal.
6676 (gimple_call_set_fn): Likewise.
6677 (gimple_call_set_fndecl): Likewise.
6678 (gimple_call_set_internal_fn): New function.
6679 (gimple_call_addr_fndecl): Handle null functions.
6680 (gimple_call_return_type): Likewise null types.
6681 * gimple.c (gimple_build_call_internal_1): New function.
6682 (gimple_build_call_internal): Likewise.
6683 (gimple_build_call_internal_vec): Likewise.
6684 (gimple_call_same_target_p): Likewise.
6685 (gimple_call_flags): Handle calls to internal functions.
6686 (gimple_call_fnspec): New function.
6687 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6688 (gimple_has_side_effects): Handle null functions.
6689 (gimple_rhs_has_side_effects): Likewise.
6690 (gimple_call_copy_skip_args): Handle calls to internal functions.
6691 * cfgexpand.c (expand_call_stmt): Likewise.
6692 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6693 * gimple-fold.c (gimple_fold_call): Handle null functions.
6694 (gimple_fold_stmt_to_constant_1): Don't fold
6695 calls to internal functions.
6696 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6697 functions.
6698 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6699 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6700 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6701 (do_warn_unused_result): Likewise.
6702 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6703 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6704 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6705 the target of a call.
6706 (initialize_hash_element): Update accordingly.
6707 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6708 (iterative_hash_hashable_expr): Handle calls to internal functions.
6709 (print_expr_hash_elt): Likewise.
6710 * tree-ssa-pre.c (can_value_number_call): Likewise.
6711 (eliminate): Handle null functions.
6712 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6713 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6714 (find_func_aliases): Likewise.
6715 * value-prof.c (gimple_ic_transform): Likewise.
6716 (gimple_indirect_call_to_profile): Likewise.
6717 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6718 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6719
6720 2011-04-19 Jan Hubicka <jh@suse.cz>
6721
6722 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6723 * ipa-inline.c (inline_small_functions): Compute summaries first,
6724 populate heap later.
6725
6726 2011-04-19 Jan Hubicka <jh@suse.cz>
6727
6728 * cgraph.h (save_inline_function_body): Remove.
6729 * ipa-inline-transform.c: New file, broke out of...
6730 * ipa-inline.c: ... this one; Update toplevel comment.
6731 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6732 make global.
6733 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6734 (cgraph_mark_inline_edge): Rename to inline_call; move to
6735 ipa-inline-transform.c.
6736 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6737 move to ipa-inline-transform.c
6738 (recursive_inlining, inline_small_functions, flatten_function,
6739 ipa_inline, inline_always_inline_functions,
6740 early_inline_small_functions): Update.
6741 (inline_transform): Move to ipa-inline-transform.c.
6742 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6743 Declare.
6744 * Makefile.in (ipa-inline-transform.o): New file.
6745 * cgraphunit.c (save_inline_function_body): Move to
6746 ipa-inline-transform.c
6747
6748 2011-04-19 DJ Delorie <dj@redhat.com>
6749
6750 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6751 registers if we already know there aren't any.
6752 (m32c_emit_epilogue): Don't emit a barrier here.
6753 (m32c_emit_eh_epilogue): Likewise.
6754 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6755 operands at expand time.
6756 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6757 int" wchar type.
6758 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6759 duplicates. Provide aliases instead.
6760 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6761 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6762 the compiler.
6763
6764 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6765
6766 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6767 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6768 (general_or_i64_p, sparc_register_move_cost): New function.
6769
6770 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6771
6772 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6773 Add lynx, mipssde. Sort table.
6774
6775 2011-04-19 Xinliang David Li <davidxl@google.com>
6776
6777 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6778 not negative.
6779
6780 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6781
6782 PR target/48678
6783 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6784 is a SUBREG with non-MODE_INT mode inside of it.
6785
6786 2011-04-19 Martin Jambor <mjambor@suse.cz>
6787
6788 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6789 also according to actual contants.
6790 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6791 (gimple_fold_call): Use it.
6792 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6793
6794 2011-04-19 Martin Jambor <mjambor@suse.cz>
6795
6796 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6797 non-pointer assignments.
6798
6799 2011-04-19 Martin Jambor <mjambor@suse.cz>
6800
6801 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6802 account anc_offset and otr_type from the indirect edge info.
6803 * ipa-prop.c (get_ancestor_addr_info): New function.
6804 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6805 get_ancestor_addr_info, call it.
6806 (ipa_note_param_call): Do not initialize information about polymorphic
6807 calls, return the indirect call graph edge. Remove the last
6808 parameter, adjust all callers.
6809 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6810 parameters. Initialize polymorphic information in the indirect edge.
6811
6812 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6813
6814 PR lto/48148
6815 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6816 the types if they have different enumeration identifiers.
6817
6818 2011-04-19 Jan Hubicka <jh@suse.cz>
6819
6820 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6821 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6822 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6823 (optimize_function_for_size_p) ... here.
6824
6825 2011-04-19 Richard Guenther <rguenther@suse.de>
6826
6827 PR lto/48207
6828 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6829 langhook.
6830
6831 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6832
6833 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6834 if DECL_NO_INLINE_WARNING_P is set on the function.
6835
6836 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6837
6838 PR fortran/47976
6839 * reload1.c (inc_for_reload): Return void. All callers changed.
6840 (emit_input_reload_insns): Don't try to delete previous output
6841 reloads to a register, or record spill_reg_store for autoincs.
6842
6843 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6844
6845 * gengtype.h: Updated copyright year.
6846 (struct input_file_st): Add inpisplugin field.
6847 (type_fileloc): New function.
6848 * gengtype.c
6849 (write_typed_struct_alloc_def): Add gcc_assert.
6850 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6851 (write_typed_alloc_defns): Don't output for plugin files.
6852 (input_file_by_name): Clear inpisplugin field.
6853 (main): Set inpisplugin field for plugin files.
6854
6855 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6856
6857 * gengtype-state.c (string_eq): New.
6858 (read_state): Use string_eq instead of strcmp when creating the
6859 state_ident_tab.
6860
6861 2011-04-19 Wei Guozhi <carrot@google.com>
6862
6863 PR target/47855
6864 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6865 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6866 linkage.
6867 * config/arm/constraints.md (Uu): New constraint.
6868 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6869
6870 2011-04-19 Tristan Gingold <gingold@adacore.com>
6871
6872 * config.gcc (-*-*-*vms): Added.
6873 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6874 definitions moved.
6875 * config/vms/vms-ld.c: New file.
6876 * config/vms/vms-ar.c: New file.
6877 * config/vms/t-vmsnative: New file.
6878
6879 2011-04-18 Xinliang David Li <davidxl@google.com>
6880
6881 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6882
6883 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6884
6885 PR middle-end/48661
6886 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6887 if TREE_TYPE (v) is non-NULL.
6888
6889 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6890 gimple_get_virt_mehtod_for_binfo.
6891 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6892 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6893 callers.
6894 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6895
6896 2011-04-18 Michael Matz <matz@suse.de>
6897 Steve Ellcey <sje@cup.hp.com>
6898
6899 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6900 use its mode as source mode if it isn't VOIDmode.
6901
6902 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6903
6904 * doc/passes.texi: Fill crossref nodes.
6905
6906 2011-04-18 Jim Meyering <meyering@redhat.com>
6907
6908 Fix doubled-word typos in comments and strings
6909 * config/alpha/vms-unwind.h: s/for for/for/
6910 * config/arm/unwind-arm.h: Likewise.
6911 * config/microblaze/microblaze.c: Likewise.
6912 * config/sh/constraints.md: s/in in/in/
6913 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6914
6915 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6916
6917 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6918 (AVX_FLOAT_MODE_P): Ditto.
6919 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6920 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6921 (AVX_VEC_FLOAT_MODE_P): Ditto.
6922 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6923 (UNSPEC_MASKSTORE): Ditto.
6924 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6925 Merge from <sse>_movmsk<ssemodesuffix> and
6926 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6927 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6928 iterator.
6929 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6930 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6931 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6932
6933 2011-04-18 Jan Hubicka <jh@suse.cz>
6934
6935 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6936
6937 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6938 (want_inline_function_called_once_p): Break out the logic from
6939 ipa_inline.
6940 (edge_badness): Ensure that profile is not misupdated.
6941 (lookup_recursive_calls): Prioritize by call frequencies.
6942 (inline_small_functions): Move program size estimates here;
6943 actually process whole queue even when unit growth has been
6944 met. (to properly compute inline_failed reasons and for the
6945 case unit size decrease.) Revisit comments on recursive inlining.
6946 (ipa_inline): Remove unit summary code; first inline hot calls
6947 of functions called once, cold calls next.
6948 (order, nnodes): Remove unused variables.
6949 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6950 (GTFILES): Remove ipa-inline.c
6951 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6952
6953 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6954
6955 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6956
6957 2011-04-18 Jie Zhang <jie@codesourcery.com>
6958 Richard Earnshaw <rearnsha@arm.com>
6959
6960 * arm.c (neon_builtin_type_bits): Remove.
6961 (typedef enum neon_builtin_mode): New.
6962 (T_MAX): Don't define.
6963 (typedef enum neon_builtin_datum): Remove bits, codes[],
6964 num_vars and base_fcode. Add mode, code and fcode.
6965 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6966 VAR10): Change accordingly.
6967 (neon_builtin_data[]): Change accordingly
6968 (arm_init_neon_builtins): Change accordingly.
6969 (neon_builtin_compare): Remove.
6970 (locate_neon_builtin_icode): Remove.
6971 (arm_expand_neon_builtin): Change accordingly.
6972
6973 * arm.h (enum arm_builtins): Move to ...
6974 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6975
6976 * arm.c (arm_builtin_decl): Declare.
6977 (TARGET_BUILTIN_DECL): Define.
6978 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6979 (arm_builtin_decls[]): New.
6980 (arm_init_neon_builtins): Store builtin declarations in
6981 arm_builtin_decls[].
6982 (arm_init_tls_builtins): Likewise.
6983 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6984 (arm_builtin_decl): New.
6985
6986 2011-04-18 Richard Guenther <rguenther@suse.de>
6987
6988 * tree.c (upper_bound_in_type): Build properly canonicalized
6989 INTEGER_CSTs.
6990 (lower_bound_in_type): Likewise.
6991
6992 2011-04-18 Richard Guenther <rguenther@suse.de>
6993
6994 * gimple.h (gimple_call_addr_fndecl): New function.
6995 (gimple_call_fndecl): Use it.
6996 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6997 for direct calls.
6998 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6999 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7000
7001 2011-04-18 Richard Guenther <rguenther@suse.de>
7002
7003 PR middle-end/48650
7004 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7005
7006 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7007
7008 PR lto/48492
7009 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7010 DECL_IN_CONSTANT_POOL without RTL.
7011
7012 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7013 Ira Rosen <ira.rosen@linaro.org>
7014
7015 PR target/48252
7016 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7017 to match neon_vzip/vuzp/vtrn_internal.
7018 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7019 outputs explicitly dependent on both inputs.
7020 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7021
7022 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7023
7024 PR tree-optimization/48616
7025 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7026 whether the shift is by scalar or vector based on whether all SLP
7027 scalar stmts have the same rhs.
7028
7029 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7030
7031 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7032 memory operands.
7033
7034 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7035
7036 PR target/43700
7037 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7038 registers.
7039
7040 2011-04-17 Jan Hubicka <jh@suse.cz>
7041
7042 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7043 * cgrpahunit.c (cgraph_finalize_function): Do not set
7044 finalized_by_frontend.
7045 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7046 finalized_by_frontend.
7047
7048 2011-04-17 Jan Hubicka <jh@suse.cz>
7049
7050 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7051 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7052 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7053 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7054 method.
7055 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7056 gimple-fold.c
7057 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7058
7059 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7060
7061 PR lto/48538
7062 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7063 is non-null before accessing it.
7064 (input_cgraph): Remove trailing spaces.
7065
7066 2011-04-17 Revital Eres <revital.eres@linaro.org>
7067
7068 * params.def (sms-min-sc): New param flag.
7069 * modulo-sched.c (sms_schedule): Use it.
7070 * doc/invoke.texi (sms-min-sc): Document it.
7071
7072 2011-04-17 Jan Hubicka <jh@suse.cz>
7073
7074 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7075 present, also set gimple_call_set_cannot_inline.
7076 * ipa-inline.c: Update toplevel comment.
7077 (MAX_TIME): Remove.
7078 (cgraph_clone_inlined_nodes): Fix linebreaks.
7079 (cgraph_check_inline_limits): Restructure to ...
7080 (caller_growth_limits): ... this one; be more tolerant
7081 on growth in nested inline chains; add explanatory comment;
7082 fix stack accounting thinko introduced by previous patch.
7083 (cgraph_default_inline_p): Remove.
7084 (report_inline_failed_reason): New function.
7085 (can_inline_edge_p): New function.
7086 (can_early_inline_edge_p): New function.
7087 (leaf_node_p): Move upwards in file.
7088 (want_early_inline_function_p): New function.
7089 (want_inline_small_function_p): New function.
7090 (want_inline_self_recursive_call_p): New function.
7091 (cgraph_edge_badness): Rename to ...
7092 (edge_badness) ... this one; fix linebreaks.
7093 (update_edge_key): Update call of edge_baddness; add
7094 detailed dump about queue updates.
7095 (update_caller_keys): Use can_inline_edge_p and
7096 want_inline_small_function_p.
7097 (cgraph_decide_recursive_inlining): Rename to...
7098 (recursive_inlining): Use can_inline_edge_p and
7099 want_inline_self_recursive_call_p; simplify and remove no longer
7100 valid FIXME.
7101 (cgraph_set_inline_failed): Remove.
7102 (add_new_edges_to_heap): Use can_inline_edge_p and
7103 want_inline_small_function_p.
7104 (cgraph_decide_inlining_of_small_functions): Rename to ...
7105 (inline_small_functions): ... this one; cleanup; use
7106 can/want predicates; cleanup debug ouput; work edges till fibheap
7107 is exhausted and do not stop once unit growth is reached; remove
7108 later loop processing remaining edges.
7109 (cgraph_flatten): Rename to ...
7110 (flatten_function): ... this one; use can_inline_edge_p
7111 and can_early_inline_edge_p predicates.
7112 (cgraph_decide_inlining): Rename to ...
7113 (ipa_inline): ... this one; remove unreachable nodes before
7114 inlining functions called once; simplify the pass.
7115 (cgraph_perform_always_inlining): Rename to ...
7116 (inline_always_inline_functions): ... this one; use
7117 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7118 (cgraph_decide_inlining_incrementally): Rename to ...
7119 (early_inline_small_functions): ... this one; simplify
7120 using new predicates; cleanup; make dumps prettier.
7121 (cgraph_early_inlining): Rename to ...
7122 (early_inliner): newer inline regular functions into always-inlines;
7123 fix updating of call stmt summaries.
7124 (pass_early_inline): Update for new names.
7125 (inline_transform): Fix formating.
7126 (gate_cgraph_decide_inlining): Rename to ...
7127 (pass_ipa_inline): ... this one.
7128 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7129 * ipa-inline-analysis.c (dump_inline_summary): Update.
7130 (compute_inline_parameters): Do not compute disregard_inline_limits;
7131 look for mismatching arguments.
7132 (estimate_growth): Fix handlig of non-trivial self recursion.
7133 (inline_read_summary): Do not read info->disregard_inline_limits.
7134 (inline_write_summary): Do not write info->disregard_inline_limits.
7135 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7136 and move all checks into can_inline_edge_p predicate; re-enable code
7137 comparing optimization levels.
7138 (expand_call_inline): Do not test inline_forbidden_into_p.
7139 * Makefile.in (ipa-inline.o): Update arguments.
7140
7141 2011-04-17 Revital Eres <revital.eres@linaro.org>
7142
7143 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7144
7145 2011-04-17 Revital Eres <revital.eres@linaro.org>
7146
7147 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7148
7149 2011-04-17 Michael Matz <matz@suse.de>
7150
7151 PR tree-optimization/48622
7152 PR lto/48645
7153 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7154 in same order as they're written.
7155
7156 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7157
7158 * config/pa/predicates.md: Reorganize and simplify predicates.
7159 Eliminate duplicate code checks.
7160 (arith_operand): Rename to arith14_operand
7161 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7162 * config/pa/pa.md: Use renamed operands.
7163 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7164 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7165 arith11_operand, adddi3_operand, indexed_memory_operand,
7166 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7167 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7168 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7169 move_dest_operand, move_src_operand, prefetch_cc_operand,
7170 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7171 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7172 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7173 div_operand, int5_operand, movb_comparison_operator,
7174 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7175 arith_double_operand, ireg_operand, lhs_lshift_operand,
7176 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7177 integer_store_memory_operand): Likewise.
7178 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7179 (integer_store_memory_operand, read_only_operand,
7180 function_label_operand, borx_reg_operand,
7181 non_hard_reg_operand): Likewise.
7182 (eq_neq_comparison_operator): Delete unused operator.
7183 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7184 function_label_operand.
7185 (emit_move_sequence): Likewise.
7186
7187 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7188
7189 * config/i386/sse.md (sseunpackmode): New mode attribute.
7190 (ssepackmode): Ditto.
7191 (vec_pack_trunc_<mode>): Macroize expander from
7192 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7193 (vec_unpacks_lo_<mode>): Macroize expander from
7194 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7195 (vec_unpacks_hi_<mode>): Macroize expander from
7196 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7197 (vec_unpacku_lo_<mode>): Macroize expander from
7198 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7199 (vec_unpacku_hi_<mode>): Macroize expander from
7200 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7201 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7202 ix86_expand_sse4_unpack.
7203 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7204
7205 2011-04-16 Jan Hubicka <jh@suse.cz>
7206
7207 * cgraphbuild.c: Include ipa-inline.h.
7208 (reset_inline_failed): Use initialize_inline_failed.
7209 * cgraph.c: Include ipa-inline.h.
7210 (cgraph_create_node_1): Do not initialize estimated_growth.
7211 (initialize_inline_failed): More to ipa-inline-analysis.c
7212 (dump_cgraph_node): Do not dump inline flags.
7213 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7214 and disregard_inline_limits flags.
7215 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7216 time, size, estimated_growth.
7217 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7218 Update.
7219 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7220 DECL_DISREGARD_INLINE_LIMITS.
7221 (cgraph_analyze_function): Do not initialize
7222 node->local.disregard_inline_limits.
7223 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7224 inlinable, versionable and disregard_inline_limits.
7225 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7226 cgraph_check_inline_limits, cgraph_default_inline_p,
7227 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7228 add_new_edges_to_heap): Update.
7229 (cgraph_decide_inlining_of_small_function): Update; set
7230 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7231 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7232 cgraph_decide_inlining_incrementally): Update.
7233 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7234 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7235 time, size and estimated_growth parameters.
7236 (estimate_edge_growth): Update.
7237 (initialize_inline_failed): Declare.
7238 * ipa-split.c: Include ipa-inline.h
7239 (execute_split_functions): Update.
7240 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7241 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7242 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7243 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7244 estimated_growth to INT_MIN.
7245 (inline_node_duplication_hook): Likewise.
7246 (dump_inline_summary): Dump new fields.
7247 (compute_inline_parameters): Update.
7248 (estimate_edge_time, estimate_time_after_inlining,
7249 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7250 inline_write_summary):
7251 (initialize_inline_failed): Move here from cgraph.c.
7252 * tree-sra.c: Include ipa-inline.h.
7253 (ipa_sra_preliminary_function_checks): Update.
7254 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7255 ipa-inline.h.
7256
7257 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7258
7259 * config/i386/sse.md (V16): New mode iterator.
7260 (VI1, VI8): Ditto.
7261 (AVXMODEQI, AVXMODEDI): Remove.
7262 (sse2, sse3): New mode attribute.
7263 (mov<mode>): Use V16 mode iterator.
7264 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7265 (push<mode>1): Use V16 mode iterator.
7266 (movmisalign<mode>): Ditto.
7267 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7268 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7269 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7270 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7271 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7272 avx_movdqu<avxmodesuffix>.
7273 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7274 *avx_movdqu<avxmodesuffix>.
7275 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7276 avx_lddqu<avxmodesuffix>.
7277 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7278 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7279 avx_movnt<AVXMODEDI:mode>.
7280 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7281 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7282
7283 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7284
7285 PR target/48629
7286 * haifa-sched.c (prune_ready_list, schedule_block): Use
7287 sched_pressure_p rather than flag_sched_pressure.
7288
7289 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7290
7291 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7292 cgraph_get_node instead of cgraph_get_create_node.
7293
7294 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7295
7296 * cfgexpand.c (expand_debug_expr): Use
7297 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7298
7299 2011-04-15 Michael Matz <matz@suse.de>
7300
7301 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7302 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7303 * function.c (gimplify_parameters): Ditto.
7304 * gimplify.c (gimplify_vla_decl): Ditto.
7305
7306 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7307 (gimple_call_set_alloca_for_var): New inline function.
7308 (gimple_call_alloca_for_var_p): Ditto.
7309 * gimple.c (gimple_build_call_from_tree): Remember
7310 CALL_ALLOCA_FOR_VAR_P state.
7311 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7312
7313 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7314 calls if they were for VLA objects.
7315
7316 2011-04-15 Martin Jambor <mjambor@suse.cz>
7317
7318 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7319 of ADR_EXPRs.
7320
7321 2011-04-15 Martin Jambor <mjambor@suse.cz>
7322
7323 PR middle-end/48601
7324 * tree-emutls.c (lower_emutls_function_body): Call
7325 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7326 result is non-NULL.
7327
7328 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7329
7330 * c-decl.c (detect_field_duplicates): Call
7331 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7332
7333 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7334
7335 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7336 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7337 * ipa-pure-const.c (check_stmt): Call it.
7338 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7339
7340 2011-04-15 Richard Guenther <rguenther@suse.de>
7341
7342 PR tree-optimization/48290
7343 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7344 Properly decide inhibiting propagation based on the valueized
7345 operand. Do loop-closed SSA form preserving here ...
7346 (init_copy_prop): ... not here.
7347
7348 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7349
7350 PR target/48612
7351 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7352 (*ieee_smax<mode>3): Likewise.
7353
7354 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7355
7356 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7357 Replace match_operand with match_dup for the third operand in
7358 these expanders.
7359
7360 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7361
7362 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7363 to track processing of conditionals. Update all callers.
7364 (try_combine, simplify_if_then_else): Update.
7365
7366 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7367
7368 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7369 -fsched-pressure.
7370
7371 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7372
7373 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7374 instead of match_operand for operand 3.
7375
7376 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7377
7378 * recog.h (insn_operand_data): Add an "allows_mem" field.
7379 * genoutput.c (output_operand_data): Initialize it.
7380 * optabs.c (maybe_legitimize_operand_same_code): New function.
7381 (maybe_legitimize_operand): Use it when matching the original
7382 op->value.
7383
7384 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7385
7386 * gimplify.c: Fix issues in comments throughout.
7387 (voidify_wrapper_expr): Fix long line.
7388 (build_stack_save_restore): Likewise.
7389 (gimplify_loop_expr): Likewise.
7390 (gimplify_compound_lval): Likewise.
7391 (gimplify_init_ctor_eval): Likewise.
7392 (gimplify_modify_expr_rhs): Likewise.
7393 (omp_notice_threadprivate_variable): Likewise.
7394
7395 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7396
7397 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7398 original one if this is not a builtin function.
7399
7400 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7401
7402 PR target/48605
7403 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7404 offset it as needed based on top 2 bits in operands[3], change
7405 MEM mode to SFmode and mask those 2 bits away from operands[3].
7406
7407 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7408
7409 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7410 change from objc_declare_protocols() to objc_declare_protocol().
7411
7412 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7413
7414 * config/i386/sse.md (sse4_1): New mode attribute.
7415 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7416 avx_blend<ssemodesuffix><avxmodesuffix> and
7417 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7418 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7419 avx_blendv<ssemodesuffix><avxmodesuffix> and
7420 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7421 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7422 avx_dp<ssemodesuffix><avxmodesuffix> and
7423 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7424 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7425 (sse4_1_packusdw): Merge with *avx_packusdw.
7426 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7427 (sse4_1_pblendw): Merge with *avx_pblendw.
7428 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7429 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7430 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7431 VF mode iterator.
7432 (sse4_1_round<ssescalarmodesuffix>): Merge with
7433 *avx_round<ssescalarmodesuffix>.
7434 (aesenc): Merge with *avx_aesenc.
7435 (aesenclast): Merge with *avx_aesenclast.
7436 (aesdec): Merge with *avx_aesdec.
7437 (aesdeclast): Merge with *avx_aesdeclast.
7438 (pclmulqdq): Merge with *pclmulqdq.
7439 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7440 New predicate.
7441 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7442
7443 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7444
7445 PR middle-end/48608
7446 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7447 (align_local_variable): This. Update DECL_ALIGN.
7448 (add_stack_var): Updated.
7449 (expand_one_stack_var): Likewise.
7450
7451 2011-04-14 Richard Guenther <rguenther@suse.de>
7452
7453 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7454 Remove.
7455 (dse_initialize_block_local_data, dse_leave_block,
7456 record_voperand_set, get_stmt_uid): Likewise.
7457 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7458 (dse_optimize_stmt): Remove voperand set handling code.
7459 Simplify and improve to handle any kind of killing stmt.
7460 (dse_record_phi): Remove.
7461 (dse_enter_block): Simplify.
7462 (tree_ssa_dse): Likewise.
7463 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7464
7465 2011-04-14 Jan Hubicka <jh@suse.cz>
7466
7467 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7468 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7469 (cgraph_local_info): Remove inline_summary.
7470 * ipa-cp.c: Include ipa-inline.h.
7471 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7472 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7473 accesor.
7474 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7475 (input_overwrite_node): Do not set inline summary.
7476 (input_node): Do not stream inline summary.
7477 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7478 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7479 growth; we do not have inline parameters computed for that anyway.
7480 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7481 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7482 (inline_summary_t): New type and VECtor.
7483 (debug_inline_summary, dump_inline_summaries): Declare.
7484 (inline_summary): Use VOCtor.
7485 (estimate_edge_growth): Kill hack computing call stmt size directly.
7486 * lto-section-in.c (lto_section_name): Add inline section.
7487 * ipa-inline-analysis.c: Include lto-streamer.h
7488 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7489 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7490 (inline_summary_vec): Define.
7491 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7492 dump_inline_summaries): New functions.
7493 (estimate_function_body_sizes): Properly compute size/time of outgoing
7494 calls.
7495 (compute_inline_parameters): Alloc inline_summary; do not compute
7496 size/time of incomming calls.
7497 (estimate_edge_time): Avoid missing time summary hack.
7498 (inline_read_summary): Read inline summary info.
7499 (inline_write_summary): Write inline summary info.
7500 (inline_free_summary): Free all hooks and inline summary vector.
7501 * lto-streamer.h: Add LTO_section_inline_summary section.
7502 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7503 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7504
7505 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7506
7507 * tree-vectorizer.h (vect_strided_store_supported): Add a
7508 HOST_WIDE_INT argument.
7509 (vect_strided_load_supported): Likewise.
7510 (vect_permute_store_chain): Return void.
7511 (vect_transform_strided_load): Likewise.
7512 (vect_permute_load_chain): Delete.
7513 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7514 count argument. Check that the count is a power of two.
7515 (vect_strided_load_supported): Likewise.
7516 (vect_permute_store_chain): Return void. Update after above changes.
7517 Assert that the access is supported.
7518 (vect_permute_load_chain): Likewise.
7519 (vect_transform_strided_load): Return void.
7520 * tree-vect-stmts.c (vectorizable_store): Update calls after
7521 above interface changes.
7522 (vectorizable_load): Likewise.
7523 (vect_analyze_stmt): Don't check for strided powers of two here.
7524
7525 2011-04-14 Richard Guenther <rguenther@suse.de>
7526
7527 PR tree-optimization/48590
7528 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7529 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7530 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7531 BUILT_IN_STACK_SAVE.
7532 * tree-ssa-dce.c (propagate_necessity): Handle
7533 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7534
7535 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7536
7537 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7538 objc_declare_class.
7539
7540 2011-04-14 Richard Guenther <rguenther@suse.de>
7541
7542 * tree.h (get_object_alignment_1): Declare.
7543 * builtins.c (get_object_alignment_1): Split out worker from ...
7544 (get_object_alignment): ... here.
7545 * fold-const.c (get_pointer_modulus_and_residue): Use
7546 get_object_alignment_1.
7547
7548 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7549
7550 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7551 type parameter.
7552 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7553 parameter. Generalise code to handle arrays as well as vectors.
7554 (vect_setup_realignment): Update accordingly.
7555 * tree-vect-stmts.c (vectorizable_store): Likewise.
7556 (vectorizable_load): Likewise.
7557
7558 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7559
7560 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7561 within the per-copy loop.
7562
7563 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7564
7565 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7566 in the dump file.
7567
7568 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7569
7570 * doc/options.texi (Negative): Explicitly mention that the
7571 Negative chain must be circular.
7572
7573 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7574
7575 * function.h (block_chainon): Declare.
7576 * function.c (block_chainon): Define.
7577
7578 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7579 Eric Weddington <eric.weddington@atmel.com>
7580 Georg-Johann Lay <avr@gjlay.de>
7581
7582 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7583 New Includes
7584 (avr_init_builtins, avr_expand_builtin,
7585 avr_expand_delay_cycles, avr_expand_unop_builtin,
7586 avr_expand_binop_builtin ): New functions.
7587 (avr_builtin_id): New enum
7588 (struct avr_builtin_description): New struct
7589 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7590 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7591
7592 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7593 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7594 UNSPECV_DELAY_CYCLES): new enumeration values
7595 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7596 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7597 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7598 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7599 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7600 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7601 "fmulsu"): New insns
7602
7603 * config/avr/avr-c.c: fix line endings
7604 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7605 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7606 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7607 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7608 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7609
7610 * doc/extend.texi (AVR Built-in Functions): New node
7611 (Target Builtins): Add documentation of AVR
7612 built-in functions.
7613
7614 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7615
7616 PR target/44643
7617 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7618 alone. Error if non-const data has attribute progmem.
7619
7620 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7621
7622 * tree.h (struct tree_constructor): Include tree_typed instead of
7623 tree_common.
7624 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7625 TS_TYPED instead of TS_COMMON.
7626
7627 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7628
7629 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7630 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7631 (sse2_psadbw): Merge with *avx_psadbw.
7632 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7633 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7634 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7635 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7636 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7637 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7638 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7639 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7640 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7641 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7642 (ssse3_palignrti): Merge with *avx_palignrti.
7643
7644 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7645
7646 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7647 * tree-ssanames.c (fini_ssanames): VEC_free it.
7648 (make_ssa_name_fn): Update for VECness of free_ssanames.
7649 (release_ssa_name, release_dead_ssa_names): Likewise.
7650 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7651 tree_common.
7652 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7653 TS_TYPED instead of TS_COMMON.
7654
7655 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7656
7657 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7658 statistics_counter_event.
7659 * tree-ssa-copyrename.c (stats): Define.
7660 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7661 statistics_counter_event.
7662 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7663 (bswap_stats, widen_mul_stats): Define.
7664 (insert_reciprocals): Increment rdivs_inserted.
7665 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7666 rfuncs_inserted. Add calls to statistics_counter_event.
7667 (execute_cse_sincos_1): Increment inserted.
7668 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7669 statistics_counter_event.
7670 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7671 of bswap_stats. Add calls to statistics_counter_event.
7672 (convert_mult_to_widen): Increment widen_mults_inserted.
7673 (convert_plusminus_to_widen): Increment maccs_inserted.
7674 (convert_mult_to_fma): Increment fmas_inserted.
7675 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7676 calls to statistics_counter_event.
7677
7678 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7679
7680 PR rtl-optimization/48455
7681 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7682 `temp_costs->mem_cost'.
7683
7684 2011-04-13 Jan Hubicka <jh@suse.cz>
7685
7686 * ipa-inline.h: New file.
7687 * ipa-inline-analysis.c: New file. Broken out of ...
7688 * ipa-inline.c: ... this file; update toplevel comment;
7689 include ipa-inline.h
7690 (inline_summary): Move to ipa-inline.h
7691 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7692 ipa-inline-analysis.c.
7693 (cgraph_estimate_time_after_inlining): Rename to
7694 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7695 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7696 to estimate_edge_growth.
7697 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7698 rename to estimate_size_after_inlining.
7699 (cgraph_mark_inline_edge): Update for new naming convention.
7700 (cgraph_check_inline_limits): Likewise.
7701 (cgraph_edge_badness): Likewise.
7702 (cgraph_decide_recursive_inlining): Likewise.
7703 (cgraph_decide_inlining_of_small_functions): Likewise.
7704 (cgraph_decide_inlining_incrementally): Likewise.
7705 (cgraph_estimate_growth): Rename to estimate_growth; move to
7706 ipa-inline-analysis.c.
7707 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7708 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7709 (compute_inline_parameters): Likewise.
7710 (compute_inline_parameters_for_current): Likewise.
7711 (pass_inline_parameters): Likewise.
7712 (inline_indirect_intraprocedural_analysis): Likewise.
7713 (analyze_function): Rename to inline_analyze_function; likewise.
7714 (add_new_function): Move to ipa-inline-analysis.c.
7715 (inline_generate_summary): Likewise.
7716 (inline_read_summary): Likewise.
7717 (inline_write_summary): Likewise.
7718 * Makefile.in (ipa-inline-analysis.c): New file.
7719
7720 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7721
7722 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7723 * configure: Regenerate.
7724
7725 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7726
7727 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7728 instead of tree_common.
7729 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7730 Likewise.
7731 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7732 TS_TYPED rather than TS_COMMON.
7733 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7734
7735 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7736
7737 PR target/45263
7738 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7739 r20 around calls of __tablejump_elpm__
7740
7741 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7742
7743 PR middle-end/48591
7744 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7745 NULL.
7746 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7747
7748 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7749
7750 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7751 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7752 (cfi_vec): New typedef.
7753 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7754 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7755 (cie_cfi_vec): New static variable.
7756 (cie_cfi_head): Delete.
7757 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7758 declaration changed. Use vector rather than list operations.
7759 (new_cfi): Don't initialize the dw_cfi_next field.
7760 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7761 rather than list operations.
7762 (lookup_cfa): Use vector rather than list operations.
7763 (output_cfis): New argument upto. Accept a cfi_vec rather than
7764 a dw_cfi_ref list head as argument. All callers changed.
7765 Iterate over the vector using upto as a maximum index.
7766 (output_all_cfis): New static function.
7767 (output_fde): Use vector rather than list operations. Use the
7768 new upto argument for output_cfis rather than manipulating a
7769 list.
7770 (dwarf2out_begin_prologue): Change initializations to match
7771 new struct members.
7772 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7773 from the vector length rather than searching for the end of a list.
7774 Use output_all_cfis.
7775 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7776
7777 2011-04-13 Nick Clifton <nickc@redhat.com>
7778
7779 * config/rx/rx.md (movmemsi): Do not use this pattern when
7780 volatile pointers are involved.
7781
7782 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7783
7784 * config/i386/sse.md (pinsrbits): Remove.
7785 (sse2_packsswb): Merge with *avx_packsswb.
7786 (sse2_packssdw): Merge with *avx_packssdw.
7787 (sse2_packuswb): Merge with *avx_packuswb.
7788 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7789 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7790 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7791 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7792 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7793 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7794 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7795 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7796 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7797 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7798 (sse2_loadld): Merge with *avx_loadld.
7799 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7800 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7801 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7802 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7803 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7804
7805 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7806
7807 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7808 calling TREE_CHAIN.
7809 * print-tree.c (print_node): Likewise.
7810 * tree-inline.c (copy_tree_r): Likewise.
7811 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7812 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7813 instead of TS_COMMON.
7814 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7815 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7816 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7817 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7818 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7819 ...and these...
7820 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7821 * tree.h: ...here.
7822 (TREE_CHAIN): Check for a TS_COMMON structure.
7823 (TREE_TYPE): Check for a TS_TYPED structure.
7824
7825 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7826
7827 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7828 cgraph_get_create_node instead of cgraph_node.
7829
7830 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7831
7832 * c-parser.c (c_parser_initelt): Updated call to
7833 objc_build_message_expr.
7834 (c_parser_postfix_expression): Likewise.
7835
7836 2011-04-12 Kai Tietz <ktietz@redhat.com>
7837
7838 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7839 MASK_MS_BITFIELD_LAYOUT bit.
7840
7841 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7842
7843 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7844 assert it is always true.
7845 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7846 moves.
7847
7848 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7849
7850 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7851 compiling Objective-C to be more efficient.
7852
7853 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7854
7855 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7856 argv_copied.
7857
7858 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7859
7860 * recog.h, genoutput.c, optabs.c: Revert last patch.
7861
7862 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7863
7864 PR target/48090
7865 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7866
7867 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7868
7869 * recog.h (insn_operand_data): Add an "allows_mem" field.
7870 * genoutput.c (output_operand_data): Initialize it.
7871 * optabs.c (maybe_legitimize_operand_same_code): New function.
7872 (maybe_legitimize_operand): Use it when matching the original
7873 op->value.
7874
7875 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7876
7877 * genpreds.c (process_define_predicate): Move most processing
7878 to gensupport.c. Continue to validate the expression.
7879 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7880 (process_define_predicate): Move processing to gensupport.c.
7881 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7882 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7883 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7884 argument.
7885 (valid_predicate_name_p): New function, split out from old
7886 genpreds.c:process_define_predicate.
7887 (process_define_predicate): New function, combining code from
7888 old genpreds.c and genrecog.c functions.
7889 (process_rtx): Call it for DEFINE_PREDICATE and
7890 DEFINE_SPECIAL_PREDICATE.
7891
7892 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7893
7894 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7895 size of a '%A' memory reference.
7896 (T_DREG, T_QREG): New neon_builtin_type_bits.
7897 (arm_init_neon_builtins): Assert that the load and store operands
7898 are neon_struct_operands.
7899 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7900 (NEON_ARG_MEMORY): New builtin_arg.
7901 (neon_dereference_pointer): New function.
7902 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7903 Handle NEON_ARG_MEMORY.
7904 (arm_expand_neon_builtin): Update after above interface changes.
7905 Use NEON_ARG_MEMORY for loads and stores.
7906 * config/arm/predicates.md (neon_struct_operand): New predicate.
7907 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7908 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7909 (V_four_elem): Tweak formatting.
7910 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7911 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7912 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7913 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7914 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7915 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7916 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7917 Use %A in the output template.
7918 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7919 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7920 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7921 the width of the memory access. Remove post-increment.
7922 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7923
7924 2011-04-12 Nick Clifton <nickc@redhat.com>
7925
7926 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7927 instruction for interrupt handlers if the target is the basic V850
7928 architecture.
7929 (expand_epilogue): Likewise.
7930
7931 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7932
7933 PR rtl-optimization/48549
7934 * combine.c (propagate_for_debug): Also stop after BB_END of
7935 this_basic_block. Process LAST and just stop processing after it.
7936 (combine_instructions): If last_combined_insn has been deleted,
7937 set last_combined_insn to its PREV_INSN.
7938
7939 2011-04-12 Richard Guenther <rguenther@suse.de>
7940
7941 PR tree-optimization/46076
7942 * gimple.h (struct gimple_statement_call): Add fntype field.
7943 (gimple_call_fntype): Adjust.
7944 (gimple_call_set_fntype): New function.
7945 * gimple.c (gimple_build_call_1): Set the call function type.
7946 * gimplify.c (gimplify_call_expr): Preserve the function
7947 type the frontend used for the call.
7948 (gimplify_modify_expr): Likewise.
7949 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7950 function type.
7951 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7952 function type.
7953 * tree-ssa.c (useless_type_conversion_p): Function pointer
7954 conversions are useless.
7955
7956 2011-04-12 Martin Jambor <mjambor@suse.cz>
7957
7958 * cgraph.h (cgraph_node): Remove function declaration.
7959 (cgraph_create_node): Declare.
7960 (cgraph_get_create_node): Likewise.
7961 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7962 Updated all callers.
7963 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7964 the decl does not already exist. Call cgraph_get_create_node instead
7965 of cgraph_node.
7966 (cgraph_get_create_node): New function.
7967 (cgraph_same_body_alias): Update comment.
7968 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7969 assert it does not return NULL.
7970 (cgraph_update_edges_for_call_stmt): Likewise.
7971 (cgraph_clone_edge): Likewise.
7972 (cgraph_create_virtual_clone): Likewise.
7973 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7974 instead of cgraph_node.
7975 (cgraph_add_new_function): Call cgraph_create_node or
7976 cgraph_get_create_node instead of cgraph_node.
7977 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7978 instead of cgraph_node.
7979 (record_eh_tables): Likewise.
7980 (mark_address): Likewise.
7981 (mark_load): Likewise.
7982 (build_cgraph_edges): Call cgraph_get_create_node instead
7983 of cgraph_node.
7984 (rebuild_cgraph_edges): Likewise.
7985 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7986 instead of cgraph_node.
7987 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7988 cgraph_node.
7989 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7990 cgraph_create_node instead of cgraph_node.
7991 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7992 of cgraph_node.
7993 * lto-cgraph.c (input_node): Likewise.
7994 * lto-streamer-in.c (input_function): Likewise.
7995 * varasm.c (mark_decl_referenced): Likewise.
7996 (assemble_alias): Likewise.
7997
7998 2011-04-12 Martin Jambor <mjambor@suse.cz>
7999
8000 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8001 instead of cgraph_node and assert it does not return NULL.
8002 * lto-streamer-in.c (lto_read_body): Likewise.
8003 * omp-low.c (new_omp_context): Likewise.
8004 (create_task_copyfn): Likewise.
8005 * tree-emutls.c (lower_emutls_function_body): Likewise.
8006 * matrix-reorg.c (transform_allocation_sites): Likewise.
8007
8008 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8009
8010 PR c/48552
8011 * c-typeck.c (build_asm_expr): Error out on attempts to use
8012 void type outputs or inputs for constraints that allow reg or
8013 don't allow memory.
8014
8015 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8016 Richard Earnshaw <rearnsha@arm.com>
8017
8018 PR target/48250
8019 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8020 to use sign-magnitude offsets. Reject unsupported unaligned
8021 cases. Add detailed description in comments.
8022 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8023 condition from TARGET_32BIT to TARGET_ARM.
8024
8025 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8026
8027 * tree.h (struct typed_tree): New.
8028 (struct tree_common): Include it instead of tree_base.
8029 (TREE_TYPE): Update for new location of type field.
8030 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8031 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8032 (union tree_node): Add typed field.
8033 * treestruct.def (TS_TYPED): New.
8034 * lto-streamer.c (check_handled_ts_structures): Handle it.
8035 * tree.c (MARK_TS_TYPED): New macro.
8036 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8037
8038 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8039
8040 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8041 (force_nonfallthru): Do not alter the loop nest if no basic block
8042 was created.
8043
8044 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8045
8046 * config/i386/sse.md (VI): New mode iterator.
8047 (SSEMODEI): Remove.
8048 (AVX256MODEI): Ditto.
8049 (AVXMODEF4P): Ditto.
8050 (avxvecpsmode): Ditto.
8051 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8052 (sse2_andnot<mode>3): New expander.
8053 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8054 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8055 (<any_logic:code><mode>3): Use VI mode iterator.
8056 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8057 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8058 (*andnottf3): Handle AVX three-operand constraints.
8059 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8060
8061 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8062 Robert Millan <rmh@gnu.org>
8063
8064 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8065 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8066 GNU_USER_DYNAMIC_LINKER64): Define.
8067 (REG_NAME): Don't undefine.
8068 (MD_UNWIND_SUPPORT): Undefine.
8069 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8070 (REG_NAME): Don't undefine.
8071 (MD_UNWIND_SUPPORT): Undefine.
8072 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8073
8074 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8075
8076 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8077 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8078
8079 2011-04-11 Xinliang David Li <davidxl@google.com>
8080
8081 * value-profile.c (check_ic_target): New function.
8082 (gimple_ic_transform): Sanity check indirect call target.
8083 * gimple-low.c (gimple_check_call_args): Interface change.
8084 (gimple_check_call_matching_types): New function.
8085 * tree-inline.c (tree_can_inline_p): Call new function.
8086
8087 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8088
8089 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8090 tree-pretty-print.h & realmpfr.h.
8091
8092 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8093
8094 PR middle-end/48464
8095 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8096 (setup_allocno_and_important_classes): Ditto.
8097
8098 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8099
8100 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8101 GNU_USER_DYNAMIC_LINKER.
8102 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8103 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8104 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8105 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8106 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8107 GNU_USER_TARGET_OS_CPP_BUILTINS.
8108 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8110 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8112 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8113 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8114 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8115 GNU_USER_TARGET_OS_CPP_BUILTINS.
8116 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8117 GNU_USER_DYNAMIC_LINKER.
8118 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8119 GNU_USER_TARGET_OS_CPP_BUILTINS.
8120 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8122 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8124 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8125 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8126 GNU_USER_DYNAMIC_LINKER64): Remove.
8127 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8128 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8129 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8130 GNU_USER_DYNAMIC_LINKER.
8131 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8132 GNU_USER_TARGET_OS_CPP_BUILTINS.
8133 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8134 GNU_USER_TARGET_OS_CPP_BUILTINS.
8135 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8136 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8137 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8138 GNU_USER_TARGET_OS_CPP_BUILTINS.
8139 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8140 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8141 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8142 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8143 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8144 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8145 GNU_USER_DYNAMIC_LINKER.
8146 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8147 GNU_USER_TARGET_OS_CPP_BUILTINS.
8148 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8150 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8151 GNU_USER_DYNAMIC_LINKER.
8152 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8153 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8154 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8156 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8157 GNU_USER_DYNAMIC_LINKER.
8158 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8159 GNU_USER_DYNAMIC_LINKERN32.
8160 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8161 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8162 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8163 GNU_USER_DYNAMIC_LINKER32.
8164 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8165 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8166 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8167 GNU_USER_DYNAMIC_LINKER.
8168 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8170 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8172 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8173 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8174 GNU_USER_DYNAMIC_LINKER32.
8175 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8176 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8177 GNU_USER_DYNAMIC_LINKER.
8178 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8179 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8180 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8181 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8182 GNU_USER_DYNAMIC_LINKER64.
8183 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8184 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8185 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8186 GNU_USER_DYNAMIC_LINKER.
8187 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8188 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8189 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8190 GNU_USER_DYNAMIC_LINKER.
8191 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8192 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8193 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8194 GNU_USER_DYNAMIC_LINKER32.
8195 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8196 GNU_USER_DYNAMIC_LINKER64.
8197 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8198 GNU_USER_DYNAMIC_LINKER64.
8199 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8201 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8203 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8204
8205 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8206
8207 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8208 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8209 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8210 GNU_USER_DYNAMIC_LINKER.
8211 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8212 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8213 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8214 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8215 GNU_USER_DYNAMIC_LINKER64.
8216 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8217 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8218 GNU_USER_LINK_EMULATION.
8219 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8220 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8221 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8222 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8223 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8224 CPP_SPEC, CC1_SPEC): Remove.
8225 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8226 (GNU_USER_DYNAMIC_LINKER): Define.
8227 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8228 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8229 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8230 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8231 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8232 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8233 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8234 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8235 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8236 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8237 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8238 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8239 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8240 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8241 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8242 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8243 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8244 GNU_USER_DYNAMIC_LINKER.
8245 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8246 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8247 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8248 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8249 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8250 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8251 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8252 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8253 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8254 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8255
8256 2011-04-11 Kai Tietz <ktietz@redhat.com>
8257
8258 PR target/9601
8259 PR target/11772
8260 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8261 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8262 comment.
8263 (ix86_is_msabi_thiscall): Removed.
8264 (ix86_is_type_thiscall): Likewise.
8265 (ix86_get_callcvt): New function.
8266 (ix86_comp_type_attributes): Simplify check.
8267 (ix86_function_regparm): Use ix86_get_callcvt for calling
8268 convention attribute checks.
8269 (ix86_return_pops_args): Likewise.
8270 (ix86_static_chain): Likewise.
8271 (x86_this_parameter): Likewise.
8272 (x86_output_mi_thunk): Likewise.
8273 (ix86_function_type_abi): Optimize check for types without attributes.
8274 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8275 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8276 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8277 by flag-values.
8278 (IX86_BASE_CALLCVT): Helper macro.
8279 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8280 Use ix86_get_callcvt for calling convention attribute checks and avoid
8281 symbol-decoration for stdcall in TARGET_RTD case.
8282 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8283 Likewise.
8284 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8285 for declaration.
8286
8287 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8288
8289 * config/i386/sse.md (VI_128): New mode iterator.
8290 (VI12_128): Rename from SSEMODE12.
8291 (VI14_128): Rename from SSEMODE14.
8292 (VI124_128): New mode iterator.
8293 (VI24_128): Rename from SSEMODE248.
8294 (VI248_128): Rename from SSEMODE248.
8295 (SSEMODE124C8): Remove.
8296 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8297 (*sse2_<plusminus_insn><mode>3): Merge with
8298 *avx_<plusminus_insn><mode>3.
8299 (*mulv8hi3): Merge with *avx_mulv8hi3.
8300 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8301 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8302 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8303 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8304 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8305 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8306 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8307 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8308 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8309 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8310 (*<smaxmin:code>v8hi3): Ditto.
8311 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8312 (*<smaxmin:code>v16qi3): Ditto.
8313 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8314 (*sse2_eq<mode>3): Ditto.
8315 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8316 (*sse2_gt<mode>3): Ditto.
8317 (vcondv2di): Split out of vcond<mode>.
8318 (vconduv2di): Split out of vcondu<mode>.
8319
8320 2011-04-11 Richard Guenther <rguenther@suse.de>
8321
8322 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8323 before calling tree_low_cst.
8324
8325 2011-04-11 Richard Guenther <rguenther@suse.de>
8326
8327 * stor-layout.c (layout_type): Compute all array index size operations
8328 in the original type.
8329 (initialize_sizetypes): Add comment.
8330 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8331
8332 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8333
8334 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8335
8336 2011-04-11 Martin Jambor <mjambor@suse.cz>
8337
8338 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8339 of cgraph_node, handle NULL return value.
8340 (cgraph_global_info): Likewise.
8341 (cgraph_rtl_info): Likewise.
8342 * tree-inline.c (estimate_num_insns): Likewise.
8343 * gimplify.c (unshare_body): Likewise.
8344 (unvisit_body): Likewise.
8345 (gimplify_body): Likewise.
8346 * predict.c (optimize_function_for_size_p): Likewise.
8347 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8348 (call_may_clobber_ref_p_1): Likewise.
8349 * varasm.c (function_section_1): Likewise.
8350 (assemble_start_function): Likewise.
8351
8352 2011-04-11 Martin Jambor <mjambor@suse.cz>
8353
8354 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8355 of cgraph_node.
8356 * final.c (rest_of_clean_state): Likewise.
8357 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8358 * passes.c (pass_init_dump_file): Likewise.
8359 (execute_all_ipa_transforms): Likewise.
8360 (function_called_by_processed_nodes_p): Likewise.
8361 * predict.c (maybe_hot_frequency_p): Likewise.
8362 (probably_never_executed_bb_p): Likewise.
8363 (compute_function_frequency): Likewise.
8364 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8365 (unnest_nesting_tree_1): Likewise.
8366 (lower_nested_functions): Likewise.
8367 * tree-optimize.c (execute_fixup_cfg): Likewise.
8368 (tree_rest_of_compilation): Likewise.
8369 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8370 * tree-sra.c (ipa_early_sra): Likewise.
8371 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8372 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8373 * ipa.c (record_cdtor_fn): Likewise.
8374 * ipa-inline.c (cgraph_early_inlining): Likewise.
8375 (compute_inline_parameters_for_current): Likewise.
8376 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8377 * ipa-pure-const.c (local_pure_const): Likewise.
8378 * ipa-split.c (split_function): Likewise.
8379 (execute_split_functions): Likewise.
8380 * cgraphbuild.c (build_cgraph_edges): Likewise.
8381 (rebuild_cgraph_edges): Likewise.
8382 (cgraph_rebuild_references): Likewise.
8383 (remove_cgraph_callee_edges): Likewise.
8384 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8385 (verify_cgraph_node): Likewise.
8386 (cgraph_analyze_functions): Likewise.
8387 (cgraph_preserve_function_body_p): Likewise.
8388 (save_inline_function_body): Likewise.
8389 (save_inline_function_body): Likewise.
8390 * tree-inline.c (copy_bb): Likewise.
8391 (optimize_inline_calls): Likewise.
8392
8393 2011-04-11 Martin Jambor <mjambor@suse.cz>
8394
8395 PR tree-optimization/48195
8396 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8397 ipa_check_create_edge_args.
8398 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8399 ipa_check_create_edge_args.
8400 * ipa-inline.c (inline_generate_summary): Do not call
8401 ipa_check_create_node_params and ipa_check_create_edge_args.
8402 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8403 ipa_check_create_edge_args.
8404
8405 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8406
8407 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8408 instead of loop.
8409 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8410 * function.c (record_hard_reg_sets): Likewise.
8411 * ira.c (compute_regs_asm_clobbered): Likewise.
8412 * sched-deps.c (sched_analyze_1): Likewise.
8413 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8414
8415 2011-04-09 Xinliang David Li <davidxl@google.com>
8416
8417 PR tree-optimization/PR48484
8418 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8419 has_valid_pred lazily
8420
8421 2011-04-09 Duncan Sands <baldrick@free.fr>
8422
8423 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8424
8425 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8426
8427 * combine.c (combine_validate_cost): Adjust comments. Set registered
8428 cost of I0 to zero at the end, if any.
8429
8430 2011-04-08 Xinliang David Li <davidxl@google.com>
8431
8432 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8433 to insane profile data.
8434
8435 2011-04-08 Xinliang David Li <davidxl@google.com>
8436
8437 * ipa-cp.c (ipcp_update_profiling): Correct
8438 negative scale factor due to insane profile data.
8439
8440 2011-04-08 Xinliang David Li <davidxl@google.com>
8441
8442 * final.c (dump_basic_block_info): New function.
8443 (final): Dump basic block.
8444 (final_scan_insn): Remove old dump.
8445
8446 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8447
8448 PR target/47829
8449 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8450 crtbegin/crtend.
8451
8452 2011-04-08 Michael Matz <matz@suse.de>
8453
8454 PR middle-end/48389
8455 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8456 functions.
8457 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8458 * rtl.h (rebuild_jump_labels_chain): Declare.
8459 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8460 insns inserted on edges.
8461
8462 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8463
8464 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8465 * config/arm/arm-arches.def: New.
8466 * config/arm/arm-opts.h: New.
8467 * config/arm/genopt.sh: New.
8468 * config/arm/arm-tables.opt: New (generated).
8469 * config/arm/arm.c (arm_handle_option, arm_target_help,
8470 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8471 (all_architectures): Get most table contents from arm-arches.def.
8472 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8473 arm_selected_tune here.
8474 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8475 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8476 (march=, mcpu=, mtune=): Use Enum and Var.
8477 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8478 (arm.o): Update dependencies.
8479
8480 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8481
8482 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8483 of header_file.
8484 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8485 (write_typed_alloc_defns): Likewise.
8486 (main): Calls write_typed_alloc_defns with output_header.
8487
8488 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8489
8490 PR inline-asm/48435
8491 * ira-color.c (setup_profitable_hard_regs): Add comments.
8492 Don't take prohibited hard regs into account.
8493 (setup_conflict_profitable_regs): Rename to
8494 get_conflict_profitable_regs.
8495 (check_hard_reg_p): Check prohibited hard regs.
8496
8497 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8498
8499 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8500 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8501 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8502
8503 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8504
8505 PR target/48366
8506 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8507 move from floating point to shift amount register.
8508 (emit_move_sequence): Remove secondary reload support for floating
8509 point to shift amount amount register copies.
8510 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8511 amount register copies.
8512 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8513 register, return false if mode isn't a scalar integer mode.
8514 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8515
8516 2011-04-08 Richard Guenther <rguenther@suse.de>
8517
8518 * gimple.c (gimple_call_flags): Remove kludge.
8519
8520 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8521
8522 * sel-sched.c (sel_region_init): Move call to
8523 sel_setup_region_sched_flags after setup_current_loop_nest.
8524
8525 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8526
8527 PR rtl-optimization/48272
8528 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8529 init_insn_reg_pressure_info. Adjust a caller.
8530 * sched-int.h (init_insn_reg_pressure_info): Declare.
8531 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8532 when sched-pressure is enabled.
8533
8534 2011-04-08 Richard Guenther <rguenther@suse.de>
8535
8536 * gimple.c (gimple_set_modified): Do not queue calls to
8537 MODIFIED_NORETURN_CALLS here ...
8538 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8539
8540 2011-04-08 Richard Guenther <rguenther@suse.de>
8541
8542 PR lto/48467
8543 * toplev.c (lang_dependent_init): Do not open asm_out_file
8544 in WPA mode, nor perform debug machinery initialization.
8545 (finalize): Do not unlink asm_out_file in WPA mode.
8546
8547 2011-04-08 Richard Guenther <rguenther@suse.de>
8548
8549 * gimple.h (gimple_call_fntype): New function.
8550 (gimple_call_return_type): Use it.
8551 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8552 * gimple-low.c (gimple_check_call_args): Likewise.
8553 * gimple.c (gimple_call_flags): Likewise.
8554 (gimple_call_arg_flags): Likewise.
8555 (gimple_call_return_flags): Likewise.
8556 * tree-cfg.c (verify_gimple_call): Likewise.
8557 (do_warn_unused_result): Likewise.
8558 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8559 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8560
8561 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8562
8563 PR rtl-optimization/48235
8564 * sel-sched.c (code_motion_process_successors): Recompute the last
8565 insn in basic block if control flow changed.
8566 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8567 Update condition for ilist_remove.
8568
8569 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8570
8571 PR rtl-optimization/48302
8572 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8573 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8574 it to record added preheader blocks.
8575 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8576 on to sel_add_loop_preheaders.
8577 (sel_region_init): Move call to setup_current_loop_nest after
8578 sel_init_bbs.
8579
8580 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8581
8582 PR target/48273
8583 * cfgloop.h (loop_has_exit_edges): New helper.
8584 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8585 non-clonable.
8586 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8587 that have no exit edges.
8588
8589 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8590
8591 PR rtl-optimization/48442
8592 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8593 all callers. Adjust assert.
8594
8595 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8596
8597 PR tree-optimization/48377
8598 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8599 is_packed to true even for types with smaller TYPE_ALIGN than
8600 TYPE_SIZE.
8601
8602 2011-04-08 Richard Guenther <rguenther@suse.de>
8603
8604 PR bootstrap/48513
8605 * doc/tm.texi: Re-generate.
8606
8607 2011-04-08 Wei Guozhi <carrot@google.com>
8608
8609 PR target/47855
8610 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8611 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8612 * config/arm/arm.md (*push_multi): Change the length computation to
8613 call a C function.
8614
8615 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8616
8617 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8618 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8619 * doc/tm.texi: Regenerate.
8620 * system.h (ASM_OUTPUT_BSS): Poison.
8621 * varasm.c (asm_output_bss): Remove function.
8622 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8623
8624 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8625 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8626 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8627 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8628 Likewise.
8629 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8630 Likewise.
8631 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8632 Likewise.
8633 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8634
8635 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8636
8637 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8638 EnumValue lines.
8639
8640 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8641
8642 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8643 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8644 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8645 OPT_mcpu32.
8646 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8647 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8648 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8649 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8650 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8651 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8652 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8653 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8654 options. Don't map other m68k options manually. Don't handle
8655 old-style options as canonical.
8656 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8657 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8658
8659 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8660
8661 * basic-block.h (force_nonfallthru): Move to...
8662 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8663 (force_nonfallthru): ...here.
8664 * cfghooks.c (force_nonfallthru): New function.
8665 * cfgrtl.c (force_nonfallthru): Rename into...
8666 (rtl_force_nonfallthru): ...this.
8667 (commit_one_edge_insertion): Do not set AUX field.
8668 (commit_edge_insertions): Do not discover new basic blocks.
8669 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8670 (cfg_layout_rtl_cfg_hooks): Likewise.
8671 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8672 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8673 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8674
8675 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8676
8677 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8678 Remove macros.
8679
8680 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8681
8682 * config/i386/sse.md: Update copyright year.
8683 (avxcvtvecmode): Remove.
8684 (sse_movhlps): Merge with *avx_movhlps.
8685 (sse_movlhps): Merge with *avx_movlhps.
8686 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8687 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8688 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8689 (sse_loadhps): Merge with *avx_loadhps.
8690 (sse_storelps): Merge with *avx_storelps.
8691 (sse_loadlps): Merge with *avx_loadlps.
8692 (sse_movss): Merge with *avx_movss.
8693 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8694 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8695 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8696 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8697 (vec_set<mode>_0): Ditto.
8698 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8699 (sse4_1_insertps): Merge with *avx_insertps.
8700 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8701 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8702 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8703 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8704 (sse2_storehpd): Merge with *avx_storehpd.
8705 (sse2_loadhpd): Merge with *avx_loadhpd.
8706 (sse2_loadlpd): Merge with *avx_loadlpd.
8707 (sse2_movsd): Merge with *avx_movsd.
8708 (*vec_concatv2df): Merge with *vec_concatv2df.
8709
8710 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8711
8712 PR debug/48343
8713 * combine.c (combine_instructions): Add last_combined_insn,
8714 update it if insn is after it, pass it to all try_combine calls.
8715 (try_combine): Add last_combined_insn parameter, pass it instead of
8716 i3 to propagate_for_debug.
8717
8718 2011-04-07 Nick Clifton <nickc@redhat.com>
8719
8720 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8721 to handle MDR <-> data register transfers.
8722 (movhi_internal): Likewise.
8723
8724 2011-04-07 Alan Modra <amodra@gmail.com>
8725
8726 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8727 previous stack info.
8728
8729 2011-04-07 Tom de Vries <tom@codesourcery.com>
8730
8731 PR target/43920
8732 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8733 flow_find_cross_jump. Swap variables to implement backward replacement.
8734 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8735
8736 2011-04-07 Tom de Vries <tom@codesourcery.com>
8737
8738 PR target/43920
8739 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8740 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8741 and bb2.
8742 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8743 src1 or src2. Redirect edges to the last basic block. Update
8744 frequency and count on multiple basic blocks in case of fallthru.
8745
8746 2011-04-07 Tom de Vries <tom@codesourcery.com>
8747
8748 PR target/43920
8749 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8750 function.
8751 (old_insns_match_p): Change return type. Replace return false/true
8752 with return dir_none/dir_both. Use can_replace_by.
8753 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8754 direction from dir_p. Register replacement direction in dir, last_dir
8755 and afterlast_dir. Handle new return type of old_insns_match_p using
8756 merge_dir. Return replacement direction in dir_p.
8757 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8758 return type of old_insns_match_p.
8759 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8760 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8761 flow_find_cross_jump.
8762 * basic-block.h (enum replace_direction): New type.
8763 (flow_find_cross_jump): Add parameter to declaration.
8764
8765 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8766
8767 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8768 (AVXMODEDCVTPS2DQ): Ditto.
8769 (VEC_FLOAT_MODE): Ditto.
8770 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8771 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8772 (<any_logic:code><mode>3): Use VF mode iterator.
8773 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8774 Use VF mode iterator.
8775 (copysign<mode>3): Use VF mode iterator.
8776 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8777 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8778 (*<any_logic:code><MODEF:mode>3): Merge with
8779 *avx_<any_logic:code><MODEF:mode>3.
8780 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8781 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8782 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8783 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8784 (sse2_cvtdq2ps): Use %v modifier.
8785 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8786 (avx_cvtps2dq<avxmodesuffix>): Remove.
8787 (sse2_cvtps2dq): Use %v modifier.
8788 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8789 (avx_cvttps2dq<avxmodesuffix>): Remove.
8790 (sse2_cvttps2dq): Use %v modifier.
8791 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8792 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8793 (sse2_cvtsd2siq): Fix insn template.
8794 (sse2_cvtsd2siq_2): Ditto.
8795 (sse2_cvttsd2siq): Ditto.
8796 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8797 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8798
8799 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8800
8801 * gcov-io.c: Use GCC Runtime Library Exception.
8802
8803 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8804
8805 PR debug/48466
8806 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8807 as base_reg whatever register reg has been eliminated to, instead
8808 of hardcoding STACK_POINTER_REGNUM.
8809
8810 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8811
8812 * doc/tm.texi.in: Document C target hooks as separate from general
8813 target hooks.
8814 * doc/tm.texi: Regenerate.
8815 * genhooks.c (struct hook_desc): Add docname field.
8816 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8817 docname field.
8818 (hook_array): Include c-target.def.
8819 (emit_documentation): Use docname field in output.
8820 (emit_init_macros): Take docname argument. Only emit definitions
8821 for hooks matching docname.
8822 (main): Expect additional arguments in all cases. Pass argument
8823 to emit_init_macros.
8824 * target.def: Move initial macro definitions and comments to
8825 target-hooks-macros.h.
8826 (gcc_targetcm): Move to c-family/c-target.def.
8827 * target.h (targetcm): Move declaration to c-family/c-target.h.
8828 * targhooks.c (default_handle_c_option): Move to
8829 c-family/c-opts.c.
8830 * targhooks.h (default_handle_c_option): Move declaration to
8831 c-family/c-common.h.
8832 * target-hooks-macros.h: New file.
8833 * config.gcc (target_has_targetcm): Define and use to add to
8834 c_target_objs and cxx_target_objs.
8835 * config/default-c.c: New file.
8836 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8837 of target.h and target-def.h.
8838 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8839 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8840 darwin_check_cfstring_format_arg): Make static.
8841 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8842 TARGET_STRING_OBJECT_REF_TYPE_P,
8843 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8844 * config/darwin-protos.h (darwin_objc_construct_string,
8845 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8846 declare.
8847 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8848 TARGET_STRING_OBJECT_REF_TYPE_P,
8849 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8850 * config/t-darwin (darwin-c.o): Update dependencies.
8851 * system.h (TARGET_HAS_TARGETCM): Poison.
8852 * Makefile.in (TARGET_H): Update.
8853 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8854 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8855 (default-c.o): New target.
8856 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8857 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8858 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8859 c-target.def.
8860 (build/genhooks.o): Update dependencies.
8861
8862 2011-04-06 Richard Guenther <rguenther@suse.de>
8863
8864 * ipa-inline.c (enum inlining_mode): Remove.
8865 (cgraph_flatten): Use some other token.
8866 (cgraph_edge_early_inlinable_p): New function, split out from ...
8867 (cgraph_perform_always_inlining): New function, split out from ...
8868 (cgraph_decide_inlining_incrementally): ... here.
8869 (cgraph_mark_inline_edge): Adjust.
8870 (cgraph_early_inlining): Re-structure.
8871 (pass_early_inline): Require SSA form.
8872
8873 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8874 Julian Brown <julian@codesourcery.com>
8875 Mark Shinwell <shinwell@codesourcery.com>
8876
8877 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8878 LO_REGS only for Thumb-1.
8879 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8880 be used in short instructions when optimising for size on Thumb-2.
8881
8882 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8883
8884 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8885 associated with user returns to be preserved.
8886
8887 2011-04-06 Tristan Gingold <gingold@adacore.com>
8888
8889 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8890 symbol_queue_size, DBXOUT_DECR_NESTING,
8891 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8892 if XCOFF_DEBUGGING_INFO.
8893
8894 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8895
8896 * config/i386/i386.md (attribute isa): New.
8897 (attribute enabled): New.
8898 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8899 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8900 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8901 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8902 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8903 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8904 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8905 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8906
8907 * config/i386/sse.md (VF): New mode iterator.
8908 (VF1): Ditto.
8909 (VF2): Ditto.
8910 (VF_128): Ditto.
8911 (SSEMODEF4): Remove.
8912 (attribute sse): Handle V8SF and V4DF modes.
8913 (<absneg:code><mode>2): Use VF mode iterator.
8914 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8915 mode iterator.
8916 (<plusminus_insn><mode>3): Use VF mode iterator.
8917 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8918 Use VF mode iterator.
8919 (<sse>_vm<plusminus_insn><mode>3): Merge with
8920 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8921 (mul<mode>3): Use VF mode iterator.
8922 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8923 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8924 mode iterator.
8925 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8926 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8927 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8928 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8929 mode iterator.
8930 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8931 Use VF1 mode iterator.
8932 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8933 (sqrt<VF2:mode>2): New expander.
8934 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8935 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8936 and sqrtv2df2. Use VF mode iterator.
8937 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8938 mode iterator.
8939 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8940 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8941 Use VF1 mode iterator.
8942 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8943 (<smaxmin:code><mode>3): Use VF mode iterator.
8944 (*<smaxmin:code><mode>3_finite): Merge with
8945 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8946 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8947 (<sse>_vm<smaxmin:code><mode>2): Merge with
8948 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8949 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8950 mode iterator.
8951 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8952 mode iterator.
8953 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8954 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8955 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8956 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8957 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8958 VF mode iterator.
8959 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8960 Use VF_128 mode iterator.
8961 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8962 mode iterator.
8963 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8964 VF_128 mode iterator.
8965 (vcond<mode>): Use VF mode iterator.
8966 * config/i386/predicates.md (sse_comparison_operator): Merge with
8967 avx_comparison_float_operator. Do not declare as special_predicate.
8968 * config/i386/i386.c (struct builtin_description): Update for renamed
8969 compare patterns.
8970 (ix86_expand_args_builtin): Ditto.
8971 (ix86_expand_sse_compare_mask): Ditto.
8972
8973 2011-04-06 Richard Guenther <rguenther@suse.de>
8974
8975 * tree-inline.c (estimate_num_insns): For calls simply account
8976 for all passed arguments and a used return value.
8977
8978 2011-04-06 Richard Guenther <rguenther@suse.de>
8979
8980 PR tree-optimization/47663
8981 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8982 call_stmt_time fields.
8983 (cgraph_edge_inlinable_p): Declare.
8984 (cgraph_edge_recursive_p): New inline function.
8985 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8986 (cgraph_clone_edge): Copy it.
8987 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8988 Account for call stmt time.
8989 (cgraph_estimate_time_after_inlining): Take edge argument.
8990 (cgraph_estimate_edge_growth): Account call stmt size.
8991 (cgraph_estimate_size_after_inlining): Take edge argument.
8992 (cgraph_mark_inline_edge): Adjust.
8993 (cgraph_check_inline_limits): Likewise.
8994 (cgraph_recursive_inlining_p): Remove.
8995 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8996 (cgraph_decide_recursive_inlining): Take edge argument and
8997 adjust.
8998 (cgraph_decide_inlining_of_small_functions): Do not avoid
8999 diags for recursive inlining here.
9000 (cgraph_flatten): Adjust.
9001 (cgraph_decide_inlining_incrementally): Likewise.
9002 (estimate_function_body_sizes): Remove call cost handling.
9003 (compute_inline_parameters): Initialize caller edge call costs.
9004 (cgraph_estimate_edge_growth): New function.
9005 (cgraph_estimate_growth): Use it.
9006 (cgraph_edge_badness): Likewise.
9007 (cgraph_check_inline_limits): Take an edge argument.
9008 (cgraph_decide_inlining_of_small_functions): Adjust.
9009 (cgraph_decide_inlining): Likewise.
9010 * tree-inline.c (estimate_num_insns): Only account for call
9011 return value if it is used.
9012 (expand_call_inline): Avoid diagnostics on recursive inline
9013 functions here.
9014 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9015 (input_edge): Input edge call costs.
9016
9017 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9018
9019 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9020
9021 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9022
9023 * doc/invoke.texi (Spec Files): Fix typo.
9024
9025 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9026
9027 * profile.c (branch_prob): Move declaration of local variable. Remove
9028 obsolete ??? comment. Expand the location explicitly instead of using
9029 the LOCATION_FILE and LOCATION_LINE macros.
9030
9031 2011-04-06 Wei Guozhi <carrot@google.com>
9032
9033 PR target/47855
9034 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9035 (arm_cond_branch): Likewise.
9036 (arm_cond_branch_reversed): Likewise.
9037 (arm_jump): Likewise.
9038 (push_multi): Likewise.
9039 * config/arm/constraints.md (Py): New constraint.
9040
9041 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9042
9043 PR bootstrap/48471
9044 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9045 Move these...
9046 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9047 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9048 #ifdef DBX_DEBUGGING_INFO.
9049
9050 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9051
9052 PR bootstrap/48403
9053 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9054 if old and new states differ.
9055
9056 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9057
9058 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9059 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9060 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9061 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9062 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9063 mcfv4e): Use Alias.
9064 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9065 ColdFire options to -mcpu= options.
9066
9067 2011-04-05 Jeff Law <law@redhat.com>
9068
9069 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9070 check if BB is a successor of LOOP->header and return
9071 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9072
9073 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9074
9075 * cprop.c (struct reg_use): Remove.
9076 (reg_use_table): Make an array of RTX.
9077 (find_used_regs, constprop_register, local_cprop_pass,
9078 bypass_block): Simplify users of reg_use_table.
9079 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9080 on one of the uses found by find_used_regs.
9081
9082 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9083
9084 PR bootstrap/48469
9085 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9086 declaration.
9087
9088 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9089
9090 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9091 as an rtx.
9092 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9093
9094 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9095
9096 PR middle-end/48441
9097 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9098
9099 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9100
9101 * combine.c: Include obstack.h.
9102 (struct insn_link): Define.
9103 (uid_log_links): Adjust type.
9104 (FOR_EACH_LOG_LINK): New macro.
9105 (insn_link_obstack): Declare.
9106 (alloc_insn_link): Define.
9107 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9108 type of link variables.
9109 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9110 (try_combine, record_promoted_values, distribute_notes): Likewise.
9111 (distribute_links): Likewise. Tweak prototype.
9112 (clear_log_links): Delete.
9113 (adjust_for_new_dest): Call alloc_insn_link.
9114 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9115
9116 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9117
9118 * gcse.c (modify_mem_list): Convert to an array of VECs.
9119 (canon_modify_mem_list, compute_transp): Tweak formatting.
9120 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9121 (load_killed_in_block_p): Likewise.
9122 (record_last_mem_set_info): Likewise.
9123 (clear_modify_mem_tables): Likewise.
9124
9125 2011-04-05 Tom de Vries <tom@codesourcery.com>
9126
9127 PR middle-end/48461
9128 * function.c (emit_use_return_register_into_block): Only define if
9129 HAVE_return.
9130
9131 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9132
9133 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9134
9135 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9136
9137 * config/rx/rx-opts.h: New.
9138 * config/rx/rx.c (rx_cpu_type): Remove.
9139 (rx_handle_option): Don't assert that global structures are in
9140 use. Access variables via opts pointer. Defer most handling of
9141 OPT_mint_register_. Use error_at.
9142 (rx_option_override): Handle deferred OPT_mint_register_ here.
9143 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9144 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9145 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9146 (rx_cpu_types): New Enum and EnumValue entries.
9147 (mint-register=): Use Defer and use Var accordingly.
9148
9149 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9150
9151 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9152 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9153 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9154 Move these...
9155 (debug_free_queue, debug_nesting, symbol_queue_index):
9156 ...and these...
9157 * dbxout.c: ...to here. Make static.
9158
9159 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9160
9161 * gcse.c (modify_pair): Define. Define a VEC of it.
9162 (canon_modify_mem_list): Convert to an array of VECs.
9163 (free_insn_expr_list_list): Delete.
9164 (clear_modify_mem_tables): Call VEC_free instead.
9165 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9166 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9167 (canon_list_insert, compute_transp): Likewise.
9168
9169 2011-04-05 Tom de Vries <tom@codesourcery.com>
9170
9171 PR target/43920
9172 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9173 for size.
9174
9175 2011-04-05 Tom de Vries <tom@codesourcery.com>
9176
9177 PR target/43920
9178 * function.c (emit_use_return_register_into_block): New function.
9179 (thread_prologue_and_epilogue_insns): Use
9180 emit_use_return_register_into_block.
9181
9182 2011-04-05 Tom de Vries <tom@codesourcery.com>
9183
9184 PR target/43920
9185 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9186 insn.
9187
9188 2011-04-05 Tom de Vries <tom@codesourcery.com>
9189
9190 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9191
9192 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9193
9194 * config/arm/arm.md (define_constants for unspec): Replace with
9195 define_c_enum.
9196 (define_constants for unspecv): Replace with define_c_enum.
9197 * config/arm/neon.md (define_constants for unspec): Replace with
9198 define_c_enum.
9199
9200 2011-04-04 Richard Henderson <rth@redhat.com>
9201
9202 PR bootstrap/48400
9203 * dwarf2out.c (output_line_info): Always emit line info from
9204 at least one section.
9205 (dwarf2out_init): Create text_section_line_info here ...
9206 (set_cur_line_info_table): ... not here.
9207
9208 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9209
9210 PR target/48380
9211 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9212 not called.
9213
9214 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9215
9216 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9217
9218 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9219 (expr_equiv_p): Remove.
9220 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9221 (hash_scan_set): Update call to insert_set_in_table.
9222 (dump_hash_table): Dump <dest, src> pair.
9223 (lookup_set): Simplify. Lookup <dest, src> pair.
9224 (compute_transp): Remove, fold heavily simplified code into...
9225 (compute_local_properties): ...here. Expect COMP and TRANSP
9226 unconditionally.
9227 (find_avail_set): Take set directly from struct expr.
9228 (find_bypass-set): Likewise.
9229 (bypass_block): Likewise.
9230 (cprop_insn): Likewise. Remove redundant INSN_P test.
9231
9232 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9233 checks on form of COND from find_implicit_sets to here.
9234 (find_implicit_sets): Cleanup control flow. Split critical edges
9235 if it exposes implicit sets. Allocate/resize implicit_sets as
9236 necessary.
9237 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9238 changed something. Run df_analyze after find_implicit_sets if any
9239 edges were split. Do not allocate implicit_sets here.
9240
9241 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9242 (gcse_obstack): Renamed to cprop_obstack.
9243 (GNEW, GNEWVEC, GNEWVAR): Remove.
9244 (gmalloc): Remove.
9245 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9246 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9247 (gcse_alloc): Likewise, and rename to cprop_alloc.
9248 (alloc_gcse_men, free_gcse_mem): Remove.
9249 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9250 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9251 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9252
9253 * cprop.c (oprs_not_set_p): Remove.
9254 (mark_set, mark_clobber): Remove.
9255 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9256 (reg_not_set_p): New function.
9257 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9258 (cprop_insn): Likewise.
9259 (cprop_jump): Use FOR_EACH_EDGE.
9260
9261 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9262
9263 PR bootstrap/48403
9264 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9265 (rank_for_schedule): Use scheduled_insns vector instead of
9266 last_scheduled_insn.
9267 (ok_for_early_queue_removal): Likewise.
9268 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9269 we have a dbg_cnt.
9270 (choose_ready): Likewise.
9271 (commit_schedule): Use VEC_iterate.
9272 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9273 a dbg_cnt, use it and ensure the first insn is in the ready list.
9274 (haifa_sched_init): Allocate scheduled_insns.
9275 (sched_extend_ready_list): Don't allocate it; reserve space.
9276 (haifa_sched_finish): Free it.
9277
9278 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9279
9280 * optc-gen.awk: Always remove type from Variable entry before
9281 recording in var_seen.
9282
9283 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9284
9285 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9286 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9287 call to tidy_fallthru_edges.
9288
9289 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9290
9291 * doc/options.texi (ToLower): Document.
9292 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9293 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9294 * opts.h (cl_option): Add cl_tolower field.
9295 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9296 arguments with lowercase strings.
9297 * config/rx/rx.opt (mcpu=): Add ToLower.
9298 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9299 argument.
9300
9301 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9302
9303 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9304
9305 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9306
9307 * config/vax/vax.c: Include reload.h.
9308
9309 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9310
9311 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9312 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9313 (sparc_preferred_reload_class): New function.
9314
9315 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9316
9317 PR debug/48401
9318 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9319 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9320
9321 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9322
9323 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9324 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9325
9326 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9327
9328 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9329 (ASM_OUTPUT_ALIGNED_BSS): Define.
9330
9331 2011-04-03 Michael Matz <matz@suse.de>
9332
9333 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9334 and next_slot members.
9335 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9336 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9337 (lto_streamer_cache_append): Declare.
9338 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9339 unsigned index, remove offset parameter, ensure that we append
9340 or update existing entries.
9341 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9342 parameter, update next_slot for append.
9343 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9344 parameter.
9345 (lto_streamer_cache_insert_at): Likewise.
9346 (lto_streamer_cache_append): New function.
9347 (lto_streamer_cache_lookup): Use unsigned index.
9348 (lto_streamer_cache_get): Likewise.
9349 (lto_record_common_node): Don't test tree_node_can_be_shared.
9350 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9351 (lto_streamer_cache_delete): Don't free offsets member.
9352 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9353 (lto_output_string_with_length): Use lto_output_data_stream.
9354 (lto_output_tree_header): Remove ix parameter, don't write it.
9355 (lto_output_builtin_tree): Likewise.
9356 (lto_write_tree): Adjust callers to above, don't track and write
9357 offset, write unsigned index.
9358 (output_unreferenced_globals): Don't emit all global vars.
9359 (write_global_references): Use unsigned indices.
9360 (lto_output_decl_state_refs): Likewise.
9361 (write_symbol): Likewise.
9362 * lto-streamer-in.c (lto_input_chain): Move earlier.
9363 (input_function): Use unsigned index.
9364 (input_alias_pairs): Don't read and then ignore all global vars.
9365 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9366 don't pass it back, use lto_streamer_cache_append.
9367 (lto_register_var_decl_in_symtab): Use unsigned index.
9368 (lto_register_function_decl_in_symtab): Likewise.
9369 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9370 index.
9371 (lto_get_builtin_tree): Don't read index, use
9372 lto_streamer_cache_append.
9373 (lto_read_tree): Adjust call to lto_materialize_tree.
9374
9375 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9376 don't use function calls in arguments to MIN.
9377
9378 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9379 twice.
9380
9381 * gimple.c (gimple_type_leader_entry): Mark deletable.
9382
9383 2011-04-03 Alan Modra <amodra@gmail.com>
9384
9385 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9386
9387 2011-04-03 Michael Matz <matz@suse.de>
9388
9389 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9390 an integer.
9391 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9392
9393 2011-04-03 Michael Matz <matz@suse.de>
9394
9395 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9396 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9397 without function context.
9398 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9399 current_function_decl and cfun.
9400
9401 2011-04-03 Michael Matz <matz@suse.de>
9402
9403 * tree.c (decl_init_priority_insert): Don't create entry for
9404 default priority.
9405 (decl_fini_priority_insert): Ditto.
9406 (fields_compatible_p, find_compatible_field): Remove.
9407 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9408 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9409
9410 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9411
9412 * combine.c (try_combine): Remove useless local variable.
9413
9414 2011-04-03 Richard Guenther <rguenther@suse.de>
9415 Ira Rosen <ira.rosen@linaro.org>
9416
9417 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9418 non-variable offsets and compare the remaining bases of the two
9419 accesses instead of looking for exact same data-ref.
9420
9421 2011-04-02 Kai Tietz <ktietz@redhat.com>
9422
9423 PR target/48416
9424 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9425
9426 * i386.c (ix86_is_msabi_thiscall): New helper function.
9427 (ix86_is_type_thiscall): New helper function.
9428 (ix86_comp_type_attributes): Handle thiscall for method-functions
9429 special.
9430 (init_cumulative_args): Likewise.
9431 (find_drap_reg): Likewise.
9432 (ix86_static_chain): Likewise.
9433 (x86_this_parameter): Likewise.
9434 (x86_output_mi_thunk): Likewise.
9435
9436 2011-04-01 Olivier Hainque <hainque@adacore.com>
9437 Nicolas Setton <setton@adacore.com>
9438 Eric Botcazou <ebotcazou@adacore.com>
9439
9440 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9441 (add_gnat_descriptive_type_attribute): New function.
9442 (gen_array_type_die): Call it.
9443 (gen_enumeration_type_die): Likewise.
9444 (gen_struct_or_union_type_die): Likewise.
9445 (modified_type_die): Likewise.
9446 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9447 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9448 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9449
9450 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9451
9452 PR bootstrap/48148
9453 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9454 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9455
9456 Revert:
9457 2011-03-17 Richard Guenther <rguenther@suse.de>
9458
9459 PR bootstrap/48148
9460 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9461 origin for decls in other ltrans units.
9462 (input_varpool_node): Likewise.
9463
9464 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR middle-end/48335
9467 * expr.c (expand_assignment): Handle all possibilities
9468 if TO_RTX is CONCAT.
9469 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9470 (store_split_bit_field): If SUBREG_REG (op0) or
9471 op0 itself has smaller mode than word, return it
9472 for offset 0 and const0_rtx for out-of-bounds stores.
9473 If word is const0_rtx, skip it.
9474
9475 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9476
9477 * config/h8300/h8300.c (print_operand_address): Rename to...
9478 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9479 Call h8300_print_operand and h8300_print_operand_address instead of
9480 print_operand and print_operand_address. Declare.
9481 (print_operand): Renake to...
9482 (h8300_print_operand): ...this. Make static. Adjust comments.
9483 Call h8300_print_operand instead of print_operand. Declare.
9484 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9485 (h8300_register_move_cost): Likewise.
9486 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9487 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9488 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9489 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9490 * config/h8300/h8300-protos.h (print_operand): Delete.
9491 (print_operand_address): Delete.
9492
9493 2011-04-01 Richard Henderson <rth@redhat.com>
9494
9495 PR 48400
9496 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9497 in strict mode before dwarf4. Re-order tests to early out
9498 before switching sections.
9499
9500 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9501
9502 * config/h8300/constraints.md: New file.
9503 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9504 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9505 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9506 * config/h8300/predicates.md (bit_operand): Likewise.
9507 (incdec_operand): Use satisfies_constraint_M and
9508 satisfies_constraint_O. Don't use C code block.
9509 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9510 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9511 (compute_mov_length): Use satisfies_constraint_G.
9512 (fix_bit_operand): Use satisfies_constraint_U.
9513 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9514 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9515 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9516 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9517 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9518 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9519 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9520 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9521 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9522 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9523 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9524 (EXTRA_MEMORY_CONSTRAINT): Delete.
9525
9526 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9527 Michael Meissner <meissner@linux.vnet.ibm.com>
9528
9529 PR target/48262
9530 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9531 operands, as per the specifications.
9532
9533 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9534 (vec_extract_evenv4sf): Ditto.
9535 (vec_extract_evenv8hi): Ditto.
9536 (vec_extract_evenv16qi): Ditto.
9537 (vec_extract_oddv4si): Ditto.
9538
9539 2011-03-31 Mark Wielaard <mjw@redhat.com>
9540
9541 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9542 high_pc attribute if the CU has no associated code. Only output
9543 DW_AT_entry_pc for CU if not generating strict dwarf and
9544 dwarf_version < 4.
9545
9546 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9547
9548 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9549 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9550 out of ...
9551 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9552 * final.c (final_start_function): Call the new function rather
9553 than using a NULL argument for dwarf2out_frame_debug.
9554
9555 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9556 that contains the prologue.
9557
9558 * haifa-sched.c (queue_insn): New arg REASON. All callers
9559 changed. Print it in debugging output.
9560
9561 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9562
9563 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9564 Split most of the code into...
9565 (begin_move_insn): ... here. New function.
9566 (ebb_sched_info): Add a pointer to it.
9567 * haifa-sched.c (scheduled_insns): New static variable.
9568 (sched_extend_ready_list): Allocate it.
9569 (schedule_block): Use it to record the order of scheduled insns.
9570 Perform RTL changes to move insns only after all scheduling
9571 decisions have been made.
9572 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9573 begin_move_insn field.
9574 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9575 * sched-int.h (struct haifa_sched_info): Remove second argument
9576 from begin_schedule_ready hook. Add new member begin_move_insn.
9577 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9578 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9579
9580 * haifa-sched.c (prune_ready_list): New function, broken out of
9581 schedule_block.
9582 (schedule_block): Use it.
9583
9584 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9585
9586 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9587
9588 2011-04-01 Kai Tietz <ktietz@redhat.com>
9589
9590 * config.gcc (*-*-mingw*): Allow as option the
9591 posix threading model.
9592 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9593 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9594 definition.
9595 (CPP_SPEC): Add pthread/no-pthread handling.
9596 (LIB_SPEC): Likewise.
9597 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9598 (LIB_SPEC): Likewise.
9599 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9600 flag to pass -pthread option for shared libgcc build.
9601 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9602 for shared libgcc build.
9603 * config/i386/t-mingw-pthread: New file.
9604 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9605 New define to enable use of library pthread by default.
9606 * config/i386/mingw.opt (pthread): New driver option.
9607 (no-pthread): New driver option.
9608 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9609 * config/i386/mingw-w64.opt: Likewise.
9610
9611 2011-04-01 Gary Funck <gary@intrepid.com>
9612
9613 * c-decl.c (grokdeclarator): Fix formatting.
9614
9615 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9616
9617 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9618 instead of n_operands.
9619 (set_storage_via_setmem): Likewise.
9620 * optabs.c (maybe_gen_insn): Likewise.
9621 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9622 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9623 (mips_expand_builtin_direct): Likewise.
9624 * config/spu/spu.c (expand_builtin_args): Likewise.
9625
9626 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9627
9628 * recog.h (insn_data_d): Add n_generator_args.
9629 * genoutput.c (data): Likewise.
9630 (output_insn_data): Print it.
9631 (max_opno, num_dups): Delete.
9632 (scan_operands): Just fill in "d->operand[...]".
9633 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9634
9635 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9636
9637 * gensupport.h (pattern_stats): New structure.
9638 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9639 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9640 (max_operand_1, max_operand_vec): Delete.
9641 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9642
9643 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9644
9645 * emit-rtl.c (emit_pattern_after_setloc): New function.
9646 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9647 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9648 (emit_pattern_after): New function.
9649 (emit_insn_after, emit_jump_insn_after): Call it.
9650 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9651 (emit_pattern_before_setloc): New function.
9652 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9653 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9654 Likewise.
9655 (emit_pattern_before): New function.
9656 (emit_insn_before, emit_jump_insn_before): Call it.
9657 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9658
9659 2011-03-31 Richard Henderson <rth@redhat.com>
9660
9661 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9662 (dw_separate_line_info_entry): Remove.
9663 (enum dw_line_info_opcode): New.
9664 (dw_line_info_entry): Use it.
9665 (dw_line_info_table, dw_line_info_table_p): New.
9666 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9667 (line_info_table, line_info_label_num): Remove.
9668 (line_info_table_in_use): Remove.
9669 (separate_line_info_table): Remove.
9670 (separate_line_info_table_allocated): Remove.
9671 (separate_line_info_table_in_use): Remove.
9672 (LINE_INFO_TABLE_INCREMENT): Remove.
9673 (line_info_label_num): New.
9674 (cur_line_info_table): New.
9675 (text_section_line_info, cold_text_section_line_info): New.
9676 (separate_line_info): New.
9677 (SEPARATE_LINE_CODE_LABEL): Remove.
9678 (print_dwarf_line_table): Remove.
9679 (debug_dwarf): Don't dump it.
9680 (output_one_line_info_table): New.
9681 (output_line_info): Use it.
9682 (new_line_info_table): New.
9683 (set_cur_line_info_table): New.
9684 (dwarf2out_switch_text_section): Use it.
9685 (dwarf2out_begin_function): Likewise.
9686 (push_dw_line_info_entry): New.
9687 (dwarf2out_source_line): Rewrite for new line info tables.
9688 (dwarf2out_init): Remove dead initailizations.
9689
9690 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9691
9692 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9693 various flags.
9694 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9695 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9696 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9697 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9698 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9699 * opt-functions.awk (flag_init, switch_bit_fields): New.
9700 (switch_flags): Don't handle flags moved to bit-fields. Don't
9701 generate CL_MISSING_OK or CL_SAVE.
9702 * optc-gen.awk: Update to generate bit-field output as well as
9703 flags field.
9704 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9705 bit-field instead of CL_REJECT_DRIVER flag.
9706 * opts-common.c (generate_canonical_option,
9707 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9708 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9709 instead of CL_REJECT_NEGATIVE flag.
9710 * toplev.c (print_switch_values): Use cl_report bit-field instead
9711 of CL_REPORT flag.
9712
9713 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9714
9715 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9716 a zero minimum index only if it is redundant.
9717
9718 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9719
9720 PR rtl-optimization/48381
9721 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9722 instead of ira_class_hard_reg_index for calculating conflicting
9723 hard registers.
9724
9725 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9726
9727 * cprop.c: Clean up hash table building.
9728 (reg_avail_info): Remove.
9729 (oprs_available_p): Remove.
9730 (record_last_reg_set_info): Remove.
9731 (record_last_set_info): Remove.
9732 (reg_available_p): New function.
9733 (gcse_constant_p): Do not treat unfolded conditions as constants.
9734 (make_set_regs_unavailable): New function.
9735 (hash_scan_set): Simplify with new reg_available_p.
9736 (compute_hash_table_work): Traverse insns stream only once.
9737 Do not compute reg_avail_info. Traverse insns in reverse order.
9738 Record implicit sets after recording explicit sets from the block.
9739
9740 2011-03-31 Michael Matz <matz@suse.de>
9741
9742 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9743
9744 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9745
9746 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9747 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9748 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9749 (h8300_mode_dependent_address_p): New function.
9750 (h8300_get_index): Make static.
9751
9752 2011-03-31 Jeff Law <law@redhat.com>
9753
9754 * reload1.c (elimination_effects): Fix typo in recent change.
9755
9756 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9757 typo potentially leading to null pointer dereference.
9758
9759 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9760 (setup_save_areas): Corresponding changes to avoid useless
9761 assignments.
9762
9763 * jump.c (reversed_comparison_code_parts): Avoid successive return
9764 statements when REVERSE_CONDITION is defined.
9765
9766 * expr.c (expand_assignment): Avoid useless assignments.
9767 (expand_expr_real_1): Likewise.
9768 (expand_expr_real_2): Avoid useless statements.
9769
9770 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9771
9772 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9773
9774 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9775 statements.
9776
9777 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9778
9779 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9780
9781 PR target/47109
9782 * doc/tm.texi.in (TARGET_VERSION): Remove.
9783 * doc/tm.texi: Regenerate.
9784 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9785 * collect2.c (main): Don't use TARGET_VERSION.
9786 * mips-tdump.c (main): Don't use TARGET_VERSION.
9787 * mips-tfile.c (main): Don't use TARGET_VERSION.
9788 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9789 * config/rs6000/vxworksae.h: Remove.
9790 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9791 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9792 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9793 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9794 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9795 * config/arm/arm.h (TARGET_VERSION): Remove.
9796 * config/arm/coff.h (TARGET_VERSION): Remove.
9797 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9798 * config/arm/elf.h (TARGET_VERSION): Remove.
9799 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9800 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9801 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9802 * config/arm/pe.h (TARGET_VERSION): Remove.
9803 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9804 * config/arm/semi.h (TARGET_VERSION): Remove.
9805 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9806 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9807 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9808 * config/avr/avr.h (TARGET_VERSION): Remove.
9809 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9810 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9811 * config/frv/frv.h (TARGET_VERSION): Remove.
9812 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9813 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9814 * config/i386/darwin.h (TARGET_VERSION): Remove.
9815 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9816 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9817 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9818 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9819 * config/i386/gnu.h (TARGET_VERSION): Remove.
9820 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9821 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9822 * config/i386/linux.h (TARGET_VERSION): Remove.
9823 * config/i386/linux64.h (TARGET_VERSION): Remove.
9824 * config/i386/lynx.h (TARGET_VERSION): Remove.
9825 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9826 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9827 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9828 * config/i386/netware.h (TARGET_VERSION): Remove.
9829 * config/i386/nto.h (TARGET_VERSION): Remove.
9830 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9831 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9832 * config/ia64/elf.h (TARGET_VERSION): Remove.
9833 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9834 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9835 * config/ia64/linux.h (TARGET_VERSION): Remove.
9836 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9837 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9838 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9839 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9840 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9841 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9842 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9843 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9844 * config/m68k/linux.h (TARGET_VERSION): Remove.
9845 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9846 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9847 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9848 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9849 * config/mep/mep.h (TARGET_VERSION): Remove.
9850 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9851 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9852 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9853 * config/mips/linux.h (TARGET_VERSION): Remove.
9854 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9855 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9856 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9857 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9858 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9859 * config/pa/pa.h (TARGET_VERSION): Remove.
9860 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9861 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9862 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9863 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9864 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9865 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9866 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9867 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9868 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9869 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9870 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9871 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9872 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9873 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9874 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9875 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9876 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9877 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9878 * config/s390/linux.h (TARGET_VERSION): Remove.
9879 * config/s390/s390.h (TARGET_VERSION): Remove.
9880 * config/s390/tpf.h (TARGET_VERSION): Remove.
9881 * config/score/score.h (TARGET_VERSION): Remove.
9882 * config/sh/linux.h (TARGET_VERSION): Remove.
9883 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9884 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9885 * config/sh/sh.h (TARGET_VERSION): Remove.
9886 * config/sh/sh64.h (TARGET_VERSION): Remove.
9887 * config/sh/superh.h (TARGET_VERSION): Remove.
9888 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9889 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9890 * config/sparc/linux.h (TARGET_VERSION): Remove.
9891 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9892 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9893 TARGET_NAME32, TARGET_NAME): Remove.
9894 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9895 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9896 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9897 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9898 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9899 * config/spu/spu.h (TARGET_VERSION): Remove.
9900 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9901 * config/v850/v850.h (TARGET_VERSION): Remove.
9902 * config/vax/linux.h (TARGET_VERSION): Remove.
9903 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9904 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9905 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9906
9907 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9908
9909 PR target/48142
9910 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9911 frame-related from frame-unrelated adjustments to the stack pointer.
9912
9913 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9914
9915 * common.opt (fdebug-types-section): Move earlier.
9916 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9917
9918 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9919
9920 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9921 var.
9922
9923 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9924
9925 * tree.h (CASE_CHAIN): Define.
9926 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9927 (gimple_redirect_edge_and_branch): Likewise.
9928
9929 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9930
9931 PR middle-end/48367
9932 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9933 calculation.
9934
9935 2011-03-30 Jeff Law <law@redhat.com>
9936
9937 * PR bootstrap/48371
9938 * reload1.c (reload): Fix botch in last change.
9939
9940 * reload.h (struct reload): Fix typo introduced in last change.
9941
9942 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9943
9944 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9945 Undocumented. Remove help text.
9946 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9947 -mhard-float.
9948
9949 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9950
9951 * doc/options.texi (NegativeAlias): Document.
9952 (Alias): Mention NegativeAlias.
9953 * opt-functions.awk: Handle NegativeAlias.
9954 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9955 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9956 * opts.h (CL_NEGATIVE_ALIAS): Define.
9957 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9958 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9959 OPT_mspe_.
9960 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9961 Alias entries.
9962 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9963 mno-spe and mno-isel instead of mspe=no and -misel=no.
9964
9965 2011-03-29 Mark Wielaard <mjw@redhat.com>
9966
9967 * common.opt (fdebug-types-section): New flag.
9968 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9969 * dwarf2out.c (use_debug_types): New define.
9970 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9971 (print_die): Guard output of type unit signatures using
9972 use_debug_types.
9973 (build_abbrev_table): Replace assert of dwarf_version >= 4
9974 with assert on use_debug_types.
9975 (size_of_die): Likewise.
9976 (unmark_dies): Likewise.
9977 (value_format): Decide AT_ref_external form on use_debug_types.
9978 (output_die): Replace dwarf_version version check guard with
9979 use_debug_types where appropriate.
9980 (modified_type_die): Likewise.
9981 (gen_reference_type_die): Likewise.
9982 (dwarf2out_start_source_file): Likewise.
9983 (dwarf2out_end_source_file): Likewise.
9984 (prune_unused_types_walk_attribs): Likewise.
9985 (dwarf2out_finish): Likewise.
9986
9987 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9988
9989 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9990
9991 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9992
9993 PR rtl-optimization/48332
9994 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9995 mode of input operand N and modeN to its actual mode.
9996
9997 2011-03-30 Jeff Law <law@redhat.com>
9998
9999 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10000 define accessor macro.
10001 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10002 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10003 (reg_equiv_init): Likewise.
10004 (reg_equivs_size): New variable.
10005 (reg_equiv_init_size): Remove.
10006 (allocate_initial_values): Move prototype to here from....
10007 * integrate.h (allocate_initial_values): Remove prototype.
10008 * integrate.c: Include reload.h.
10009 (allocate_initial_values): Corresponding changes.
10010 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10011 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10012 (update_equiv_regs): Corresponding changes.
10013 (ira): Corresponding changes.
10014 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10015 (push_secondary_reload): Corresponding changes.
10016 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10017 (make_memloc, find_reloads_address): Corresponding changes.
10018 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10019 (find_reloads_address_1): Corresponding changes.
10020 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10021 (refers_to_regno_for_reload_p): Corresponding changes.
10022 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10023 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10024 * reload1.c: Include ggc.h.
10025 (grow_reg_equivs): New function.
10026 (replace_pseudos_in, reload): Corresponding changes.
10027 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10028 (eliminate_regs_1, elimination_effects): Corresponding changes.
10029 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10030 (delete_output_reload): Likewise.
10031 * caller-save.c (mark_referenced_regs): Corresponding changes.
10032 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10033 * frv/predicates.md (frv_load_operand): Corresponding changes.
10034 * microblaze/microblaze.c (double_memory_operand): Corresponding
10035 changes.
10036 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10037 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10038 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10039 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10040 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10041 changes.
10042 * pa/pa.c (emit_move_sequence): Corresponding changes.
10043 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10044
10045 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10046
10047 PR target/47551
10048 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10049 structure modes. Don't check neon_vector_mem_operand for
10050 vector or structure modes.
10051
10052 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10053 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10054
10055 PR target/43590
10056 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10057 operand 1 and reshuffle the operands to match.
10058 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10059
10060 2011-03-30 Christian Schüler <cschueler@gmx.de>
10061
10062 PR driver/48208
10063 * config/c.opt (F): Added 'Driver' to -F option.
10064
10065 PR driver/48260
10066 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10067 handler function.
10068 * config/darwin.opt: Added '-arch' option.
10069
10070 2011-03-30 Nick Clifton <nickc@redhat.com>
10071
10072 * config/rx/rx.md: Add peepholes and patterns to combine
10073 extending loads and simple arithmetic instructions.
10074 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10075 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10076 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10077 modes to use pre-decrement and post-increment addressing.
10078 (rx_is_restricted_memory_address): Add range checking of REG+INT
10079 addresses.
10080 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10081 (rx_memory_move_cost): Adjust cost of stores.
10082 (rx_adjust_insn_length): New function.
10083
10084 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10085
10086 PR c/48305
10087 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10088 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10089 matching arg00/arg01 types.
10090
10091 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10092
10093 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10094 last_location to UNKNOWN_LOCATION.
10095
10096 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10097
10098 PR target/48349
10099 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10100 FLOAT_SSE_REGS.
10101
10102 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10103 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10104
10105 PR bootstrap/48337
10106 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10107 Init(PROCESSOR_V7).
10108 (sparc_cpu): Likewise.
10109 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10110 PROCESSOR_V7.
10111
10112 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10113
10114 PR target/48336
10115 PR middle-end/48342
10116 PR rtl-optimization/48345
10117 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10118 hard regs for given mode from profitable regs when doing secondary
10119 allocation.
10120
10121 2011-03-29 Jeff Law <law@redhat.com>
10122
10123 PR bootstrap/48327
10124 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10125 do_not_duplicate field.
10126 (lookup_redirection_data): Corresponding changes.
10127 (create_duplicates): Always create a template block.
10128 (redirect_edges): Remove code which reused the original block
10129 when it was going to become unreachable code.
10130 (thread_block): Don't set do_not_duplicate field.
10131
10132 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10133
10134 * lto-opts.c (register_user_option_p, lto_register_user_option):
10135 Make type argument unsigned.
10136 * lto-streamer.h (lto_register_user_option): Make type argument
10137 unsigned.
10138 * opth-gen.awk: Make CL_* macros unsigned.
10139 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10140 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10141 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10142 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10143 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10144 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10145 (find_opt): Make lang_mask argument unsigned.
10146
10147 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10148
10149 PR rtl-optimization/48331
10150 PR rtl-optimization/48334
10151 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10152 for any used algorithm.
10153
10154 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10155
10156 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10157 to parent_max.
10158
10159 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10160
10161 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10162 (alpha_option_override): Don't set alpha_sr_alias_set.
10163 (emit_frame_store_1): Use gen_frame_mem rather than calling
10164 set_mem_alias_set.
10165 (alpha_expand_epilogue): Ditto.
10166
10167 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10168
10169 PR tree-optimization/48290
10170 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10171 vectorization, check that relevant phis in the basic block after
10172 the inner loop are really inner loop's exit phis.
10173
10174 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10175
10176 PR debug/48190
10177 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10178 (cached_dw_loc_list_def): New structure.
10179 (cached_dw_loc_list): New typedef.
10180 (cached_dw_loc_list_table): New variable.
10181 (cached_dw_loc_list_table_hash): New function.
10182 (cached_dw_loc_list_table_eq): Likewise.
10183 (add_location_or_const_value_attribute): Take a bool cache_p.
10184 Cache the list when the parameter is true.
10185 (gen_formal_parameter_die): Update caller.
10186 (gen_variable_die): Likewise.
10187 (dwarf2out_finish): Likewise.
10188 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10189 while generating debug info for the decl.
10190 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10191 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10192 (resolve_addr): Cache the result of resolving a chain of
10193 location lists.
10194
10195 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10196
10197 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10198 conflict object hard regset nodes have intersecting hard reg sets.
10199
10200 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10201 after regstat_init_n_sets_and_refs.
10202
10203 * ira.c: Add more comments at the top.
10204 (setup_stack_reg_pressure_class, setup_pressure_classes):
10205 Add comments how we compute the register pressure classes.
10206 (setup_allocno_and_important_classes): Add more comments.
10207 (setup_class_translate_array, reorder_important_classes)
10208 (setup_reg_class_relations): Add comments.
10209
10210 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10211 start of the file.
10212
10213 * ira-color.c: Add 2011 to the Copyright line.
10214 (assign_hard_reg): Add more comments.
10215 (improve_allocation): Ditto.
10216
10217 * ira-costs.c: Add 2011 to the Copyright line.
10218 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10219 comments.
10220 (setup_regno_cost_classes_by_mode): Ditto.
10221
10222 Initial patches from ira-improv branch:
10223
10224 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10225
10226 * ira-build.c (ira_create_object): Remove initialization of
10227 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10228 (ira_create_allocno): Remove initialization of
10229 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10230 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10231 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10232 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10233 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10234 Initialize ALLOCNO_ADD_DATA.
10235 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10236 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10237 ALLOCNO_REG.
10238 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10239 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10240
10241 * ira.c (ira_reallocate): Remove.
10242 (setup_pressure_classes): Call
10243 ira_init_register_move_cost_if_necessary. Use
10244 ira_register_move_cost instead of ira_get_register_move_cost.
10245 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10246 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10247
10248 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10249 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10250 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10251 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10252 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10253 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10254 Fix formatting.
10255 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10256 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10257 (struct allocno_color_data): New.
10258 (allocno_color_data_t): New typedef.
10259 (allocno_color_data): New definition.
10260 (ALLOCNO_COLOR_DATA): New macro.
10261 (struct object_color_data): New.
10262 (object_color_data_t): New typedef.
10263 (object_color_data): New definition.
10264 (OBJECT_COLOR_DATA): New macro.
10265 (update_copy_costs, calculate_allocno_spill_cost): Call
10266 ira_init_register_move_cost_if_necessary. Use
10267 ira_register_move_cost instead of ira_get_register_move_cost.
10268 (move_spill_restore, update_curr_costs): Ditto.
10269 (allocno_spill_priority): Make it inline.
10270 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10271 (struct coalesce_data, coalesce_data_t): New.
10272 (allocno_coalesce_data): New definition.
10273 (ALLOCNO_COALESCE_DATA): New macro.
10274 (merge_allocnos, coalesced_allocno_conflict_p): Use
10275 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10276 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10277 (coalesce_allocnos): Ditto.
10278 (setup_coalesced_allocno_costs_and_nums): Ditto.
10279 (collect_spilled_coalesced_allocnos): Ditto.
10280 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10281 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10282 (coalesce_spill_slots): Ditto.
10283 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10284 free allocno_coalesce_data.
10285
10286 * ira-conflicts.c: Fix formatting.
10287 (process_regs_for_copy): Call
10288 ira_init_register_move_cost_if_necessary. Use
10289 ira_register_move_cost instead of ira_get_register_move_cost.
10290 (build_object_conflicts): Optimize.
10291
10292 * ira-costs.c (record_reg_classes): Optimize. Call
10293 ira_init_register_move_cost_if_necessary. Use
10294 ira_register_move_cost, ira_may_move_in_cost, and
10295 ira_may_move_out_cost instead of ira_get_register_move_cost and
10296 ira_get_may_move_cost.
10297 (record_address_regs): Ditto.
10298 (scan_one_insn): Optimize.
10299 (find_costs_and_classes): Optimize.
10300 (process_bb_node_for_hard_reg_moves): Call
10301 ira_init_register_move_cost_if_necessary. Use
10302 ira_register_move_cost instead of ira_get_register_move_cost.
10303
10304 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10305 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10306 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10307 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10308 definitions.
10309 (ira_initiate_emit_data, ira_finish_emit_data)
10310 (create_new_allocno): New functions.
10311 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10312 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10313 Use ira_register_move_cost instead of ira_get_register_move_cost.
10314
10315 * ira-int.h: Fix some comments.
10316 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10317 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10318 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10319 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10320 add_data.
10321 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10322 bitfield after mode. Make hard_regno a short int. Make
10323 hard_regno short. Remove first_coalesced_allocno and
10324 next_coalesced_allocno. Move mem_optimized_dest_p,
10325 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10326 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10327 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10328 temp, colorable_p. Add new member add_data.
10329 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10330 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10331 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10332 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10333 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10334 (ALLOCNO_ADD_DATA): New macro.
10335 (ira_emit_data_t): New typedef.
10336 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10337 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10338 from struct ira_allocno.
10339 (ALLOCNO_EMIT_DATA): New macro.
10340 (ira_allocno_emit_data, allocno_emit_reg): New.
10341 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10342 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10343 (OBJECT_ADD_DATA): New macro.
10344 (ira_reallocate): Remove.
10345 (ira_initiate_emit_data, ira_finish_emit_data): New.
10346 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10347 (ira_init_register_move_cost_if_necessary): New.
10348 (ira_object_conflict_iter_next): Merge into
10349 ira_object_conflict_iter_cond.
10350 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10351
10352 * ira-live.c (process_single_reg_class_operands): Call
10353 ira_init_register_move_cost_if_necessary. Use
10354 ira_register_move_cost instead of ira_get_register_move_cost.
10355
10356 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10357
10358 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10359
10360 * ira-costs.c: Fix formatting.
10361 (cost_classes, cost_classes_num): Remove.
10362 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10363 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10364 (cost_classes_del, cost_classes_htab): New.
10365 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10366 (initiate_regno_cost_classes, setup_cost_classes): New.
10367 (setup_regno_cost_classes_by_aclass): New.
10368 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10369 (record_reg_classes): Use regno_cost_classes instead of
10370 cost_classes. Move checking opposite operand up.
10371 (record_address_regs): Use regno_cost_classes
10372 instead of cost_classes.
10373 (scan_one_insn): Ditto. Use always general register.
10374 (print_allocno_costs): Use regno_cost_classes instead of
10375 cost_classes.
10376 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10377 (find_costs_and_classes): Set up cost classes for each registers.
10378 Use also their mode for this. Use regno_cost_classes instead of
10379 cost_classes.
10380 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10381 cost_classes.
10382 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10383 (ira_costs, ira_set_pseudo_classes): Call
10384 initiate_regno_cost_classes and finish_regno_cost_classes.
10385
10386 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10387
10388 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10389
10390 * target.def (ira_cover_classes): Remove.
10391
10392 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10393
10394 * doc/tm.texi.in: Ditto.
10395
10396 * ira-conflicts.c: Remove mentioning cover classes from the file.
10397 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10398 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10399
10400 * targhooks.c (default_ira_cover_classes): Remove.
10401
10402 * targhooks.h (default_ira_cover_classes): Ditto.
10403
10404 * haifa-sched.c: Remove mentioning cover classes from the file.
10405 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10406 ira_pressure_classes and ira_pressure_classes_num instead of
10407 ira_reg_class_cover_size and ira_reg_class_cover. Use
10408 sched_regno_pressure_class instead of sched_regno_cover_class.
10409 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10410 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10411
10412 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10413 classes from the file.
10414 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10415 (struct object_hard_regs, struct object_hard_regs_node): New.
10416 (struct ira_object): New members profitable_hard_regs,
10417 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10418 (struct ira_allocno): Rename cover_class to aclass. Rename
10419 cover_class_cost and updated_cover_class_cost to class_cost and
10420 updated_class_cost. Remove splay_removed_p and
10421 left_conflict_size. Add new members colorable_p.
10422 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10423 (ALLOCNO_COLORABLE_P): New macro.
10424 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10425 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10426 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10427 (OBJECT_...): Rename parameter C to O.
10428 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10429 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10430 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10431 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10432 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10433 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10434 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10435 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10436 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10437 x_ira_reg_class_subunion.
10438 (ira_max_memory_move_cost, ira_max_register_move_cost)
10439 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10440 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10441 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10442 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10443 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10444 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10445 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10446 (ira_tune_allocno_costs_and_cover_classes): Rename to
10447 ira_tune_allocno_costs.
10448 (ira_debug_hard_regs_forest): New.
10449 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10450 (ira_object_conflict_iter_next): Fix comments.
10451 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10452 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10453 cover_class to aclass.
10454 (ira_allocate_and_accumulate_costs): Ditto.
10455 (ira_allocate_and_set_or_copy_costs): Ditto.
10456
10457 * opts.c (decode_options): Remove ira_cover_class check.
10458
10459 * ira-color.c: Remove mentioning cover classes from the file. Use
10460 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10461 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10462 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10463 (splay-tree.h): Remove include.
10464 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10465 before copy_freq_compare_func.
10466 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10467 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10468 New definitions.
10469 (hard_regs_roots, hard_regs_node_vec): Ditto.
10470 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10471 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10472 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10473 (create_new_object_hard_regs_node): Ditto.
10474 (add_new_object_hard_regs_node_to_forest): Ditto.
10475 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10476 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10477 Ditto.
10478 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10479 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10480 (remove_unused_object_hard_regs_nodes): Ditto.
10481 (enumerate_object_hard_regs_nodes): Ditto.
10482 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10483 (object_hard_regs_subnode_t): Ditto.
10484 (struct object_hard_regs_subnode): Ditto.
10485 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10486 (setup_object_hard_regs_subnode_index): Ditto.
10487 (get_object_hard_regs_subnodes_num): Ditto.
10488 (form_object_hard_regs_nodes_forest): Ditto.
10489 (finish_object_hard_regs_nodes_tree): Ditto.
10490 (finish_object_hard_regs_nodes_forest): Ditto.
10491 (allocnos_have_intersected_live_ranges_p): Rename to
10492 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10493 (pseudos_have_intersected_live_ranges_p): Rename to
10494 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10495 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10496 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10497 (update_copy_costs): Remove assert. Skip cost update if the hard
10498 reg does not belong the class.
10499 (assign_hard_reg): Process only profitable hard regs.
10500 (uncolorable_allocnos_num): Make it scalar.
10501 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10502 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10503 and ira_reg_class_max_nregs.
10504 (bucket_allocno_compare_func): Check frequency first.
10505 (sort_bucket): Add compare function as a parameter.
10506 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10507 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10508 (push_allocno_to_stack): Rewrite for checking new allocno
10509 colorability.
10510 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10511 (push_only_colorable): Pass new parameter to sort_bucket.
10512 (push_allocno_to_spill): Remove.
10513 (allocno_spill_priority_compare): Make it inline and rewrite.
10514 (splay_tree_allocate, splay_tree_free): Remove.
10515 (allocno_spill_sort_compare): New function.
10516 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10517 build and use splay tree. Choose first allocno in uncolorable
10518 allocno bucket to spill. Remove setting spill cost.
10519 (all_conflicting_hard_regs): Remove.
10520 (setup_allocno_available_regs_num): Check only profitable hard
10521 regs. Print info about hard regs nodes.
10522 (setup_allocno_left_conflicts_size): Remove.
10523 (put_allocno_into_bucket): Don't call
10524 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10525 (improve_allocation): New.
10526 (color_allocnos): Call setup_profitable_hard_regs,
10527 form_object_hard_regs_nodes_forest, improve_allocation,
10528 finish_object_hard_regs_nodes_forest. Setup spill cost.
10529 (print_loop_title): Use pressure classes.
10530 (color_allocnso): Ditto.
10531 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10532 and allocnos_for_spilling.
10533 (ira_sort_regnos_for_alter_reg): Don't setup members
10534 {first,next}_coalesced_allocno.
10535 (color): Remove allocating and freeing removed_splay_allocno_vec.
10536 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10537 prohibited_class_mode_regs.
10538
10539 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10540 formatting.
10541 (update_allocno_pressure_excess_length): Use pressure classes.
10542 (inc_register_pressure, dec_register_pressure): Check for pressure
10543 class.
10544 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10545 pressure class. Use ira_reg_class_nregs instead of
10546 ira_reg_class_max_nregs.
10547 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10548 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10549 (single_reg_class): Use ira_reg_class_nregs instead of
10550 ira_reg_class_max_nregs.
10551 (process_bb_node_lives): Use pressure classes.
10552
10553 * ira-emit.c: Remove mentioning cover classes from the file. Use
10554 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10555 (change_loop): Use pressure classes.
10556 (modify_move_list): Call ira_set_allocno_class instead of
10557 ira_set_allocno_cover_class.
10558
10559 * ira-build.c: Remove mentioning cover classes from the file. Use
10560 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10561 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10562 ALLOCNO_UPDATED_CLASS_COST instead of
10563 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10564 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10565 (ira_create_allocno): Remove initialization of
10566 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10567 ALLOCNO_COLORABLE_P.
10568 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10569 Update conflict regs for the objects.
10570 (create_cap_allocno): Remove assert. Don't propagate
10571 ALLOCNO_AVAILABLE_REGS_NUM.
10572 (ira_free_allocno_costs): New function.
10573 (finish_allocno): Change a part of code into call of
10574 ira_free_allocno_costs.
10575 (low_pressure_loop_node_p): Use pressure classes.
10576 (object_range_compare_func): Don't compare classes.
10577 (setup_min_max_conflict_allocno_ids): Ditto.
10578
10579 * loop-invariant.c: Remove mentioning cover classes from the file.
10580 Use ira_pressure_classes and ira_pressure_classes_num instead of
10581 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10582 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10583 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10584 Use reg_allocno_class instead of reg_cover_class.
10585 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10586 STACK_REG_COVER_CLASS.
10587 (get_regno_cover_class): Rename to get_regno_pressure_class.
10588 (move_loop_invariants): Initialize and finalize regstat.
10589
10590 * ira.c: Remove mentioning cover classes from the file. Add
10591 comments about coloring without cover classes. Use ALLOCNO_CLASS
10592 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10593 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10594 setup_class_subset_and_memory_move_costs.
10595 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10596 (setup_cover_and_important_classes): Rename to
10597 setup_allocno_and_important_classes.
10598 (setup_class_translate_array): New.
10599 (setup_class_translate): Call it for allocno and pressure classes.
10600 (cover_class_order): Rename to allocno_class_order.
10601 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10602 of ira_class_translate.
10603 (reorder_important_classes): Set up ira_important_class_nums.
10604 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10605 (print_class_cover): Rename to print_classes. Add parameter.
10606 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10607 Print pressure classes too.
10608 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10609 setup_reg_subclasses.
10610 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10611 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10612 (setup_prohibited_class_mode_regs): Use
10613 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10614 (clarify_prohibited_class_mode_regs): New function.
10615 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10616 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10617 (ira_init_once): Initialize them.
10618 (free_register_move_costs): Process them.
10619 (ira_init): Move calls of find_reg_classes and
10620 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10621 Call clarify_prohibited_class_mode_regs.
10622 (ira_no_alloc_reg): Remove.
10623 (too_high_register_pressure_p): Use pressure classes.
10624
10625 * sched-deps.c: Remove mentioning cover classes from the file.
10626 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10627 ira_pressure_classes and ira_pressure_classes_num instead of
10628 ira_reg_class_cover_size and ira_reg_class_cover.
10629 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10630 sched_regno_pressure_class instead of sched_regno_cover_class.
10631 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10632 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10633
10634 * ira.h: Add 2010 to Copyright.
10635 (ira_no_alloc_reg): Remove external.
10636 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10637 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10638 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10639 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10640 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10641 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10642 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10643 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10644 x_ira_no_alloc_regs.
10645 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10646 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10647 ira_allocno_classes_num and ira_allocno_classes.
10648 (ira_class_translate): Rename to ira_allocno_class_translate.
10649 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10650 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10651 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10652 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10653 (ira_no_alloc_regs): New.
10654
10655 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10656 classes from the file. Use ALLOCNO_CLASS instead of
10657 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10658 ALLOCNO_COVER_CLASS_COST.
10659 (regno_cover_class): Rename to regno_aclass.
10660 (record_reg_classes): Use ira_reg_class_subunion instead of
10661 ira_reg_class_union.
10662 (record_address_regs): Check overflow.
10663 (scan_one_insn): Ditto.
10664 (print_allocno_costs): Print total mem cost fore regional allocation.
10665 (print_pseudo_costs): Use REG_N_REFS.
10666 (find_costs_and_classes): Use classes intersected with them on the
10667 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10668 ira_reg_class_union. Use ira_allocno_class_translate and
10669 regno_aclass instead of ira_class_translate and regno_cover_class.
10670 Modify code for finding regno_aclass. Setup preferred classes for
10671 the next pass.
10672 (setup_allocno_cover_class_and_costs): Rename to
10673 setup_allocno_class_and_costs. Use regno_aclass instead of
10674 regno_cover_class. Use ira_set_allocno_class instead of
10675 ira_set_allocno_cover_class.
10676 (init_costs, finish_costs): Use regno_aclass instead of
10677 regno_cover_class.
10678 (ira_costs): Use setup_allocno_class_and_costs instead of
10679 setup_allocno_cover_class_and_costs.
10680 (ira_tune_allocno_costs_and_cover_classes): Rename to
10681 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10682 by processing objects. Use ira_reg_class_max_nregs instead of
10683 ira_reg_class_nregs.
10684
10685 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10686
10687 * sched-int.h: Remove mentioning cover classes from the file.
10688 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10689
10690 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10691 classes from the file.
10692 (struct reg_pref): Rename coverclass into allocnoclass.
10693 (reg_cover_class): Rename to reg_allocno_class.
10694
10695 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10696
10697 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10698
10699 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10700
10701 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10702
10703 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10704
10705 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10706
10707 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10708
10709 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10710
10711 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10712
10713 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10714
10715 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10716 (i386_ira_cover_classes): Ditto.
10717
10718 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10719
10720 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10721
10722 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10723
10724 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10725
10726 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10727
10728 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10729
10730 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10731 (mips_ira_cover_classes): Ditto.
10732
10733 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10734
10735 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10736
10737 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10738
10739 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10740
10741 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10742
10743 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10744 (IRA_COVER_CLASSES_VSX): Ditto.
10745
10746 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10747 (rs6000_ira_cover_classes): Ditto.
10748
10749 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10750
10751 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10752
10753 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10754
10755 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10756
10757 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10758
10759 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10760
10761 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10762
10763 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10764
10765 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10766
10767 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10768
10769 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10770
10771 PR debug/48253
10772 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10773 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10774 dw_fde_unlikely_section_end_label, cold_in_std_section,
10775 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10776 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10777 fields.
10778 (output_fde): Use dw_fde_second_{begin,end} if second is
10779 true, otherwise dw_fde_{begin,end}.
10780 (output_call_frame_info): Test dw_fde_second_begin != NULL
10781 instead of dw_fde_switched_sections.
10782 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10783 fields, initialize new fields. Initialize in_std_section
10784 unconditionally from the first partition.
10785 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10786 dw_fde_second_begin is non-NULL.
10787 (dwarf2out_switch_text_section): Stop initializing removed
10788 dw_fde_struct fields, initialize new fields, initialize
10789 also dw_fde_end here. Set dw_fde_switch_cfi even when
10790 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10791 (struct var_loc_list_def): Add last_before_switch field.
10792 (arange_table, arange_table_allocated, arange_table_in_use,
10793 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10794 (size_of_aranges): Count !in_std_section and !second_in_std_section
10795 hunks in fdes, instead of looking at arange_table_in_use.
10796 (output_aranges): Add aranges_length argument, don't call
10797 size_of_aranges here. Instead of using aranges_table*
10798 emit ranges for fdes when !in_std_section resp.
10799 !second_in_std_section.
10800 (dw_loc_list): Break ranges crossing section switch.
10801 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10802 use dw_fde_second_end instead of dw_fde_end as end of last range.
10803 (gen_subprogram_die): Don't call add_arange. Use
10804 dw_fde_{begin,end} for first partition and if switched
10805 section dw_fde_second_{begin,end} for the second.
10806 (var_location_switch_text_section_1,
10807 var_location_switch_text_section): New functions.
10808 (dwarf2out_begin_function): Initialize cold_text_section even
10809 when function_section () isn't text_section.
10810 (prune_unused_types): Don't walk arange_table.
10811 (dwarf2out_finish): Don't needlessly test
10812 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10813 If info_section_emitted, call size_of_aranges and if it indicates
10814 non-empty .debug_aranges, call output_aranges with the computed
10815 size. Stop using removed dw_fde_struct fields, use
10816 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10817 for second.
10818
10819 PR debug/48203
10820 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10821 create ENTRY_VALUE if incoming or address of incoming's MEM
10822 is a hard REG.
10823 * dwarf2out.c (mem_loc_descriptor): Don't emit
10824 DW_OP_GNU_entry_value of DW_OP_fbreg.
10825 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10826 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10827 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10828 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10829 ENTRY_VALUE_EXPs.
10830 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10831 is a REG_P or MEM_P with REG_P address, compute hash directly
10832 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10833 (preserve_only_constants): Don't clear VALUES forwaring
10834 ENTRY_VALUE to some other VALUE.
10835
10836 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10837
10838 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10839 instead of GEN_INT.
10840
10841 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10842
10843 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10844 block before expanding the statement.
10845 (expand_gimple_stmt_1): Likewise. Set them here...
10846 (expand_gimple_stmt): ...and not here. Tidy.
10847 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10848 unknown.
10849
10850 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10851
10852 * Makefile.in: New rule for cprop.o.
10853 * gcse.c: Move constant/copy propagation to cprop.c.
10854 (compute_local_properties): Only handle expression tables.
10855 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10856 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10857 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10858 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10859 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10860 compute_cprop_data, find_used_regs, try_replace_reg,
10861 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10862 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10863 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10864 find_bypass_set, reg_killed_on_edge, bypass_block,
10865 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10866 execute_rtl_cprop, pass_rtl_cprop): Move to...
10867 * cprop.c: ...here. New file, constant/copy propagation for RTL
10868 moved from gcse.c to here with minor cleanups in duplicated code.
10869
10870 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 * config/i386/i386.c (flag_opts): Fix a typo in
10873 -mavx256-split-unaligned-store.
10874
10875 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10876
10877 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10878 LIBCALL_VALUE): Remove macros.
10879 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10880 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10881 (h8300_function_value, h8300_libcall_value,
10882 h8300_function_value_regno_p): New functions.
10883
10884 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10885
10886 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10887
10888 2011-03-28 Jeff Law <law@redhat.com>
10889
10890 * tree-ssa-threadupdate.c (redirect_edges): Call
10891 create_edge_and_update_destination_phis as needed.
10892 (create_edge_and_update_destination_phis): Accept new BB argument.
10893 All callers updated.
10894 (thread_block): Do not update the profile when threading around
10895 intermediate blocks.
10896 (thread_single_edge): Likewise.
10897 (determine_bb_domination_status): If BB is not a successor of the
10898 loop header, return NONDOMINATING.
10899 (register_jump_thread): Note when we register a jump thread around
10900 an intermediate block.
10901 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10902 (thread_across_edge): Use it.
10903
10904 2011-03-28 Tristan Gingold <gingold@adacore.com>
10905
10906 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10907 when for_return is 2.
10908
10909 2011-03-28 Jeff Law <law@redhat.com>
10910
10911 * var-tracking.c (canonicalize_values_mark): Delete unused
10912 lhs assignment.
10913 (canonicalize_values_star, set_variable_part): Likewise.
10914 (clobber_variable_part, delete_variable_part): Likewise.
10915
10916 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10917
10918 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10919
10920 2011-03-28 Martin Jambor <mjambor@suse.cz>
10921
10922 * tree-inline.c (expand_call_inline): Do not check that destination
10923 node is analyzed.
10924 (optimize_inline_calls): Assert that destination node is analyzed.
10925 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10926 not call tree_lowering_passes.
10927 * cgraph.h (cgraph_analyze_function): Declare.
10928 * cgraphunit.c (cgraph_analyze_function): Make public.
10929
10930 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10931
10932 * config/sparc/sparc-opts.h: New.
10933 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10934 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10935 (sparc_option_override): Store processor_type enumeration rather
10936 than string in cpu_default. Remove name and enumeration from
10937 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10938 without using sparc_select. Use target_flags_explicit instead of
10939 fpu_option_set.
10940 * config/sparc/sparc.h (enum processor_type): Move to
10941 sparc-opts.h.
10942 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10943 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10944 HeaderInclude entry.
10945 (mcpu=, mtune=): Use Var and Enum.
10946 (sparc_processor_type): New Enum and EnumValue entries.
10947
10948 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10949 Iain Sandoe <iains@gcc.gnu.org>
10950
10951 PR target/48245
10952 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10953
10954 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10955
10956 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10957 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10958 Insert new statements at it in lieu of STMT.
10959 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10960 * tree-vect-stmts.c (vectorizable_store): Likewise.
10961 (vectorizable_load): Likewise.
10962
10963 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10964
10965 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10966 (divtf3): Ditto.
10967 (multf3): Ditto.
10968 (subtf3): Ditto.
10969
10970 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10971
10972 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10973 unaligned 256bit load/store.
10974 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10975 (*avx_movdqu<avxmodesuffix>): Likewise.
10976
10977 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10978
10979 PR target/48288
10980 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10981 * config/pa/pa.md (iordi3): Use new predicate in expander.
10982 (iorsi3): Likewise.
10983
10984 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10985
10986 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10987 FUNCTION_VALUE_REGNO_P): Remove macros.
10988 * config/mips/mips-protos.h (mips_function_value): Remove.
10989 * config/mips/mips.c (mips_function_value): Rename to...
10990 (mips_function_value_1): ... this. Make static. Handle receiving
10991 the function type in 'fn_decl_or_type' argument.
10992 (mips_function_value, mips_libcall_value,
10993 mips_function_value_regno_p): New function.
10994 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10995 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10996
10997 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10998
10999 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11000 and -mavx256-split-unaligned-store.
11001 (ix86_option_override_internal): Split 32-byte AVX unaligned
11002 load/store by default.
11003 (ix86_avx256_split_vector_move_misalign): New.
11004 (ix86_expand_vector_move_misalign): Use it.
11005
11006 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11007 -mavx256-split-unaligned-store.
11008
11009 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11010 256bit load/store. Generate unaligned store on misaligned memory
11011 operand.
11012 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11013 256bit load/store.
11014 (*avx_movdqu<avxmodesuffix>): Likewise.
11015
11016 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11017 -mavx256-split-unaligned-store.
11018
11019 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11020
11021 PR target/38598
11022 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11023 Update commentary.
11024
11025 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11026
11027 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11028 opno arguments with an expand_operand. Use create_input_operand.
11029 (mips_prepare_builtin_target): Delete.
11030 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11031 functions.
11032 (mips_expand_builtin_direct): Use create_output_operand and
11033 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11034 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11035 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11036
11037 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11038
11039 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11040 function.
11041 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11042
11043 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11044
11045 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11046 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11047 basic blocks and call commit_edge_insertions directly.
11048 (fixup_abnormal_edges): Move from here to...
11049 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11050 on the edges and return whether some have actually been inserted.
11051 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11052 compensation code.
11053
11054 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11055
11056 PR rtl-optimization/48144
11057 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11058 (merge_expr_data): ... here.
11059 (av_set_intersect): Rename to av_set_code_motion_filter.
11060 Update all callers. Call merge_history_vect when an expression
11061 is found in both sets.
11062 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11063
11064 2011-03-26 Alan Modra <amodra@gmail.com>
11065
11066 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11067 cmodel medium addresses.
11068 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11069 64-bit gpr loads and stores.
11070 (rs6000_secondary_reload_ppc64): New function.
11071 * config/rs6000/rs6000-protos.h: Declare it.
11072 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11073
11074 2011-03-26 Alan Modra <amodra@gmail.com>
11075
11076 PR target/47487
11077 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11078 GNU Go in traceback table.
11079
11080 2011-03-25 Richard Henderson <rth@redhat.com>
11081
11082 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11083 if there are exactly 6 operands.
11084 (set_storage_via_setmem): Similarly.
11085
11086 2011-03-25 Kai Tietz <ktietz@redhat.com>
11087
11088 * collect2.c (write_c_file_stat): Handle backslash
11089 as right-hand directory separator.
11090 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11091 checking just for slash.
11092 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11093 instead of checking for trailing slash.
11094 * gcc.c (record_temp_file): Use filename_cmp instead
11095 of strcmp.
11096 (do_spec_1): Likewise.
11097 (replace_outfile_spec_function): Likewise.
11098 (is_directory): Use filename_ncmp instead of strncmp.
11099 (print_multilib_info): Likewise.
11100 * gcov.c (find_source): Use filename_cmp instead
11101 instead of strcmp.
11102 (make_gcov_file_name): Fix order of slash/backslash
11103 checks.
11104 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11105 (add_standard_paths): Likewise.
11106 * mips-tfile.c (saber_stop): Handle backslash.
11107 * prefix.c (update_path): Use filename_ncmp instead of
11108 strncmp.
11109 * profile.c (output_location): Use filename_cmp instead
11110 of strcmp.
11111 * read-md.c (handle_toplevel_file): Handle backslash.
11112 * tlink.c (frob_extension): Likewise.
11113 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11114 strcmp.
11115 * tree-dump.c (dequeue_and_dump): Handle backslash.
11116 * tree.c (get_file_function_name): Likewise.
11117 * gengtype.c (read_input_list): Likewise.
11118 (get_file_realbasename): Likewise.
11119 (get_output_file_with_visibility): Use filename_cmp
11120 instead of strcmp.
11121
11122 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11123
11124 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11125 case to VFPv1.
11126
11127 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11128
11129 * fold-const.c (expr_location_or): New function.
11130 (fold_truth_not_expr): Call it.
11131
11132 2011-03-25 Jeff Law <law@redhat.com>
11133
11134 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11135 va_end.
11136 * c-family/c-common.c (def_fn_type): Likewise.
11137 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11138 * emit-rtl.c (gen_rtvec): Likewise.
11139 * lto/lto-lang.c (def_fn_type): Likewise.
11140
11141 2011-03-25 Richard Guenther <rguenther@suse.de>
11142
11143 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11144 also generate copies.
11145 (fini_copy_prop): Handle constant values properly.
11146
11147 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11148
11149 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11150 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11151 (hash_loc_operands, compare_loc_operands): Handle
11152 DW_OP_GNU_entry_value.
11153
11154 2011-03-25 Kai Tietz <ktietz@redhat.com>
11155
11156 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11157 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11158 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11159 comment and use macro TARGET_64BIT_MS_ABI instead.
11160 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11161 and change default behavior for 32-bit MS_ABI.
11162 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11163 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11164 32-bit, too.
11165 (ix86_cfun_abi): Likewise.
11166 (ix86_maybe_switch_abi): Adjust comment.
11167 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11168 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11169 instead of checking for SYSV_ABI.
11170 (ix86_nsaved_sseregs): Likewise.
11171 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11172 to 16 bytes.
11173 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11174 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11175 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11176 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11177 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11178
11179 2011-03-25 Richard Guenther <rguenther@suse.de>
11180
11181 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11182 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11183 (verify_gimple): Remove.
11184 * tree-cfg.c (verify_gimple_call): Merge verification
11185 from verify_stmts.
11186 (verify_gimple_phi): Merge verification from verify_stmts.
11187 (verify_gimple_label): New function.
11188 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11189 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11190 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11191 (verify_stmts): Rename to verify_gimple_in_cfg.
11192 (verify_gimple_in_cfg): New function.
11193 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11194 * tree-ssa.c (verify_ssa): Likewise.
11195 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11196
11197 2011-03-25 Richard Guenther <rguenther@suse.de>
11198
11199 * passes.c (init_optimization_passes): Add FRE pass after
11200 early SRA.
11201
11202 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11203 Andrew Stubbs <ams@codesourcery.com>
11204
11205 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11206 for Cortex-A8.
11207 (arm_movdi_vfp_cortexa8): New pattern.
11208 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11209 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11210 instructions when tuning for Cortex-A8. Set attribute "arch".
11211 * config/arm/arm.md: Move include arm-tune.md up a bit.
11212 (define_attr "arch"): Add "onlya8" and "nota8" values.
11213 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11214
11215 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11216
11217 PR bootstrap/48282
11218 Revert:
11219 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11220
11221 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11222 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11223 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11224 * passes.c (init_optimization_passes): Move
11225 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11226
11227 2011-03-25 Kai Tietz <ktietz@redhat.com>
11228
11229 * c-typeck.c (comptypes_internal): Replace target
11230 hook call of comp_type_attributes by version in tree.c file.
11231 * gimple.c (gimple_types_compatible_p_1): Likewise.
11232 * tree-ssa.c (useless_type_conversion_p): Likewise.
11233 * tree.c (build_type_attribute_qual_variant): Likewise.
11234 (attribute_value_equal): New static helper function.
11235 (comp_type_attributes): New function.
11236 (merge_attributes): Use attribute_value_equal for comparison.
11237 (attribute_list_contained): Likewise.
11238 * tree.h (comp_type_attributes): New prototype.
11239
11240 2011-03-25 Richard Guenther <rguenther@suse.de>
11241
11242 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11243 of complex types at -O0.
11244 (verify_gimple_assign_binary): Likewise.
11245 (verify_gimple_assign_ternary): Likewise.
11246
11247 2011-03-24 Mark Wielaard <mjw@redhat.com>
11248
11249 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11250 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11251
11252 2011-03-24 Mark Wielaard <mjw@redhat.com>
11253
11254 PR debug/48041
11255 * dwarf2out.c (output_abbrev_section): Only write table when
11256 abbrev_die_table_in_use > 1.
11257
11258 2011-02-24 Richard Henderson <rth@redhat.com>
11259
11260 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11261 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11262 (alpha_expand_unaligned_load_words): Use extql.
11263 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11264 (emit_insxl): Handle all modes for consistency.
11265
11266 2011-02-24 Richard Henderson <rth@redhat.com>
11267
11268 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11269 (alpha_expand_unaligned_load): Likewise.
11270 (alpha_expand_unaligned_store): Likewise.
11271 (alpha_expand_unaligned_load_words): Likewise.
11272 (alpha_expand_unaligned_store_words): Likewise.
11273 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11274 (alpha_split_lock_test_and_set_12): Likewise.
11275 (print_operand, alpha_fold_builtin_extxx): Likewise.
11276 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11277 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11278 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11279 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11280 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11281 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11282 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11283 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11284 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11285 (extwl, extll, extql): Similarly.
11286 (inswh, inslh, insqh): Similarly.
11287 (mskbl, mskwl, mskll, mskql): Similarly.
11288 (mskwh, msklh, mskqh): Similarly.
11289
11290 2011-02-24 Richard Henderson <rth@redhat.com>
11291
11292 * config/alpha/alpha.md (attribute isa): Add er, ner.
11293 (attribute enabled): Handle them.
11294 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11295
11296 2011-02-24 Richard Henderson <rth@redhat.com>
11297
11298 * config/alpha/alpha.md (attribute isa): Add vms.
11299 (attribute enabled): Handle it.
11300 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11301 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11302 (*movtf): Rename from *movtf_internal for consistency.
11303 (*movsi): Merge with *movsi_nt_vms.
11304 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11305 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11306 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11307 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11308
11309 2011-02-24 Richard Henderson <rth@redhat.com>
11310
11311 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11312 (extendqisi2, extendhisi2): Likewise.
11313 (extendqidi2): Simplify BWX/non-BWX expansions.
11314 (extendhidi2): Similarly.
11315
11316 2011-02-24 Richard Henderson <rth@redhat.com>
11317
11318 * config/alpha/alpha.md (attribute isa): New.
11319 (attribute enabled): New.
11320 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11321 (zero_extendqisi2, zero_extendqidi2): Similarly.
11322 (zero_extendhisi2, zero_extendhidi2): Similarly.
11323 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11324
11325 2011-02-24 Richard Henderson <rth@redhat.com>
11326
11327 * config/alpha/predicates.md (input_operand): Revert last change;
11328 update comment to mention 32-bit VMS rather than Windows.
11329
11330 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11331
11332 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11333 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11334 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11335 * passes.c (init_optimization_passes): Move
11336 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11337
11338 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11339
11340 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11341
11342 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11343
11344 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11345 correctly.
11346
11347 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11348
11349 PR debug/48204
11350 * simplify-rtx.c (simplify_const_unary_operation): Call
11351 real_convert when changing mode class with FLOAT_EXTEND.
11352
11353 2011-03-24 Nick Clifton <nickc@redhat.com>
11354
11355 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11356 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11357 * config/rx/rx.c (rx_option_override): Set align_jumps,
11358 align_loops and align_labels if not set by the user.
11359 (rx_align_for_label): New function.
11360 (rx_max_skip_for_label): New function.
11361 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11362 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11363 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11364 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11365 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11366
11367 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11368
11369 PR rtl-optimization/48263
11370 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11371 and original commutative_p handling. Use maybe_gen_insn.
11372
11373 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11374
11375 * reload.c (find_reloads_subreg_address): Add address_reloaded
11376 parameter and return true there if the full address has been
11377 reloaded.
11378 (find_reloads_toplev): Pass address_reloaded flag.
11379 (find_reloads_address_1): Don't use address_reloaded parameter.
11380
11381 2011-03-24 Jeff Law <law@redhat.com>
11382
11383 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11384 unused variable "ann".
11385 (remove_unused_locals): Likewise.
11386
11387 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11388 statement.
11389
11390 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11391 after it is freed.
11392
11393 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11394
11395 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11396 for invalid symbolic addresses.
11397 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11398 larl operands.
11399
11400 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11401
11402 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11403 the argument in calls to fold_truth_not_expr.
11404
11405 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11406
11407 * tree.c (record_node_allocation_statistics): New function.
11408 (make_node_stat, copy_node_stat, build_string): Call it.
11409 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11410 (build1_stat, build_omp_clause): Likewise.
11411
11412 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11413
11414 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11415 last commit.
11416
11417 2011-03-24 Richard Guenther <rguenther@suse.de>
11418
11419 PR tree-optimization/48271
11420 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11421 blocks that still exist.
11422
11423 2011-03-24 Richard Guenther <rguenther@suse.de>
11424
11425 PR tree-optimization/48270
11426 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11427 not free datarefs before ddrs.
11428
11429 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11430
11431 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11432 from the address built for a reference with variable offset.
11433
11434 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11435
11436 PR target/48237
11437 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11438 alternatives that can be handled with movq or movabsq insn.
11439 (*movdf_internal): Disable for !TARGET_64BIT.
11440 (*movdf_internal_nointeger): Ditto.
11441 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11442
11443 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11444
11445 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11446 (FUNCTION_ARG_ADVANCE): Likewise.
11447 * tm.texi.in: Change references to them to hook references.
11448 * tm.texi: Regenerate.
11449 * targhooks.c (default_function_arg): Eliminate check for target macro.
11450 (default_function_incoming_arg): Likewise.
11451 (default_function_arg_advance): Likewise.
11452 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11453 (function_arg_advance): Likewise.
11454 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11455
11456 2011-03-24 Richard Guenther <rguenther@suse.de>
11457
11458 PR middle-end/48269
11459 * tree-object-size.c (addr_object_size): Do not double-account
11460 for MEM_REF offsets.
11461
11462 2011-03-24 Diego Novillo <dnovillo@google.com>
11463
11464 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11465 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11466 (lto_input_data_block): Move from lto-opts.c. Make extern.
11467 Update all users.
11468 (lto_input_string): Rename from input_string. Make extern.
11469 Update all users.
11470 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11471 output_string_with_length.
11472 Output 0 to indicate a non-NULL string. Update all callers to
11473 not emit 0.
11474 (lto_output_string): Rename from output_string. Make extern.
11475 Update all users.
11476 (lto_output_decl_state_streams): Make extern.
11477 (lto_output_decl_state_refs): Make extern.
11478 * lto-streamer.h (lto_input_string): Declare.
11479 (lto_input_data_block): Declare.
11480 (lto_output_string): Declare.
11481 (lto_output_string_with_length): Declare.
11482 (lto_output_decl_state_streams): Declare.
11483 (lto_output_decl_state_refs): Declare.
11484
11485 2011-03-24 Richard Guenther <rguenther@suse.de>
11486
11487 PR tree-optimization/46562
11488 * tree.c (build_invariant_address): New function.
11489 * tree.h (build_invariant_address): Declare.
11490 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11491 a renamed function moved ...
11492 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11493 Take valueization callback parameter.
11494 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11495 * gimple-fold.h: New file.
11496 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11497 (ccp_fold, fold_const_aggregate_ref,
11498 fold_ctor_reference, fold_nonarray_ctor_reference,
11499 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11500 get_base_constructor): Move ...
11501 * gimple-fold.c: ... here.
11502 (gimple_fold_stmt_to_constant_1): New function
11503 split out from ccp_fold. Take a valueization callback parameter.
11504 Valueize all operands.
11505 (gimple_fold_stmt_to_constant): New wrapper function.
11506 (fold_const_aggregate_ref_1): New function split out from
11507 fold_const_aggregate_ref. Take a valueization callback parameter.
11508 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11509 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11510 invariant POINTER_PLUS_EXPRs to invariant form.
11511 (vn_valueize): New function.
11512 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11513 * tree-vrp.c (vrp_valueize): New function.
11514 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11515 to fold statements to constants.
11516 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11517 function declarations.
11518 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11519 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11520
11521 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11522
11523 * config/h8300/predicates.md (jump_address_operand): Fix register
11524 mode check.
11525
11526 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11527
11528 * doc/invoke.texi (max-stores-to-sink): Document.
11529 * params.h (MAX_STORES_TO_SINK): Define.
11530 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11531 if either vectorization or if-conversion is disabled.
11532 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11533 tree-vect-data-refs.c vect_equal_offsets.
11534 (dr_equal_offsets_p): New function.
11535 (find_data_references_in_bb): Remove static.
11536 * tree-data-ref.h (find_data_references_in_bb): Declare.
11537 (dr_equal_offsets_p): Likewise.
11538 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11539 (vect_drs_dependent_in_basic_block): Update calls to
11540 vect_equal_offsets.
11541 (vect_check_interleaving): Likewise.
11542 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11543 (cond_if_else_store_replacement): Rename to...
11544 (cond_if_else_store_replacement_1): ... this. Change arguments and
11545 documentation.
11546 (cond_if_else_store_replacement): New function.
11547 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11548 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11549
11550 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11551
11552 PR target/46934
11553 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11554 to subtract lower bound instead of GEN_INT().
11555
11556 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11557
11558 PR other/48179
11559 PR other/48221
11560 PR other/48234
11561 * doc/extend.texi (Alignment): Move section to match order in TOC.
11562 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11563 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11564
11565 2011-03-23 Jeff Law <law@redhat.com>
11566
11567 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11568 before removing the edge.
11569
11570 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11571 it may have been freed by redirect_branch_edge or
11572 redirect_edge_succ_nodup.
11573
11574 2011-03-23 Richard Guenther <rguenther@suse.de>
11575
11576 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11577 (check_va_list_escapes): Likewise.
11578 (check_all_va_list_escapes): Likewise.
11579
11580 2011-03-23 Richard Guenther <rguenther@suse.de>
11581
11582 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11583 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11584 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11585 (alias.o): Likewise.
11586 (ipa-type-escape.o): Remove.
11587 (ipa-struct-reorg.o): Likewise.
11588 (GTFILES): Remove ipa-struct-reorg.c.
11589 * alias.c: Do not include ipa-type-escape.h.
11590 * tree-ssa-alias.c: Likewise.
11591 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11592 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11593 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11594 and ipa-type-escape passes.
11595 * tree-pass.h (pass_ipa_type_escape): Remove.
11596 (pass_ipa_struct_reorg): Likewise.
11597 * ipa-struct-reorg.h: Remove.
11598 * ipa-struct-reorg.c: Likewise.
11599 * ipa-type-escape.h: Likewise.
11600 * ipa-type-escape.c: Likewise.
11601 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11602 (--param struct-reorg-cold-struct-ratio): Likewise.
11603 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11604 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11605 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11606
11607 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11608
11609 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11610 cpu attribute value.
11611 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11612 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11613 * config/s390/s390.c (processor_flags_table): New constant array.
11614 (s390_handle_arch_option): Remove.
11615 (s390_handle_option): Remove s390_handle_arch_option invocations
11616 and OPT_mwarn_framesize_ handling.
11617 (s390_option_override): Remove s390_handle_arch_option invocation.
11618 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11619 warnings.
11620 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11621 * config/s390/s390.opt (s390_tune, s390_arch)
11622 (march=): Replace s390_arch_option enum and values with
11623 processor_type. Set variable name to s390_arch. Set
11624 initialization value.
11625 (mtune=): Replace s390_arch_option with processor_type. Set
11626 variable name to s390_tune. Set initialization value.
11627
11628 2011-03-23 Julian Brown <julian@codesourcery.com>
11629
11630 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11631 accesses which are not naturally aligned.
11632
11633 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11634
11635 PR target/47553
11636 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11637
11638 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11639
11640 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11641 parameter from "int" to "enum insn_code".
11642 (expand_operand_type): New enum.
11643 (expand_operand): New structure.
11644 (create_expand_operand): New function.
11645 (create_fixed_operand, create_output_operand): Likewise
11646 (create_input_operand, create_convert_operand_to): Likewise.
11647 (create_convert_operand_from, create_address_operand): Likewise.
11648 (create_integer_operand): Likewise.
11649 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11650 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11651 (expand_insn, expand_jump_insn): Likewise.
11652 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11653 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11654 (expand_movstr, expand_builtin___clear_cache): Likewise.
11655 (expand_builtin_lock_release): Likewise.
11656 * explow.c (allocate_dynamic_stack_space): Likewise.
11657 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11658 and use the default handling in that case.
11659 * expmed.c (check_predicate_volatile_ok): Delete.
11660 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11661 (emit_cstore): Likewise.
11662 * expr.c (emit_block_move_via_movmem): Likewise.
11663 (set_storage_via_setmem, expand_assignment): Likewise.
11664 (emit_storent_insn, try_casesi): Likewise.
11665 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11666 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11667 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11668 (expand_twoval_unop, expand_twoval_binop): Likewise.
11669 (expand_unop_direct, emit_indirect_jump): Likewise.
11670 (emit_conditional_move, vector_compare_rtx): Likewise.
11671 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11672 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11673 (expand_sync_lock_test_and_set): Likewise.
11674 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11675 (emit_unop_insn): Likewise.
11676 (expand_copysign_absneg): Change icode to an insn_code.
11677 (create_convert_operand_from_type): New function.
11678 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11679 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11680 (expand_insn, expand_jump_insn): Likewise.
11681 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11682 than const_int_operand for operand 2.
11683
11684 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11685
11686 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11687 if possible.
11688
11689 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11690
11691 * emit-rtl.c (emit_pattern_before_noloc): New function.
11692 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11693 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11694 (emit_pattern_after_noloc): New function.
11695 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11696 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11697
11698 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11699
11700 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11701 (__ffsDI2): Likewise.
11702
11703 2011-03-22 Richard Henderson <rth@redhat.com>
11704
11705 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11706 of !TARGET_ABI_OPEN_VMS.
11707 (alpha_trampoline_init, alpha_start_function): Likewise.
11708 (alpha_expand_epilogue, alpha_file_start): Likewise.
11709 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11710 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11711 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11712 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11713 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11714
11715 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11716
11717 * config/s390/s390-opts.h: New.
11718 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11719 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11720 s390_stack_guard): Remove.
11721 (s390_handle_arch_option): Return void. Take enum
11722 s390_arch_option value instead of string and searching array.
11723 (s390_handle_option): Don't assert that global structures are in
11724 use. Access variables via opts pointer. Use error_at. Don't use
11725 sscanf for -mstack-guard= or -mstack-size=. Update call to
11726 s390_handle_arch_option.
11727 (s390_option_override): Update call to s390_handle_arch_option.
11728 (s390_emit_prologue): Use %d format for s390_stack_size in
11729 diagnostic. Use %wd for HOST_WIDE_INT.
11730 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11731 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11732 * config/s390/s390.opt (config/s390/s390-opts.h): New
11733 HeaderInclude entry.
11734 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11735 s390_arch_flags, s390_warn_framesize): New Variable entries.
11736 (s390_arch_option): New Enum and EnumValue entries.
11737 (march=): Use Enum instead of Var.
11738 (mstack-guard=, mstack-size=): Use UInteger and Var.
11739 (mtune=): Use Enum.
11740
11741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11742
11743 * config/score/score.c (score_handle_option): Don't assert that
11744 global structures are in use. Access target_flags via opts
11745 pointer. Use value of -march= option to determine target_flags
11746 settings.
11747 * config/score/score.opt (march=): Use Enum.
11748 (score_arch): New Enum and EnumValue entries.
11749
11750 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11751
11752 * config/mep/mep.c (option_mtiny_specified): Remove.
11753 (mep_option_override): Move register handling for -mivc2 from
11754 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11755 instead of option_mtiny_specified.
11756 (mep_handle_option): Access target_flags via opts pointer. Don't
11757 assert that global structures are in use. Defer part of -mivc2
11758 handling and move it to mep_option_override.
11759 * config/mep/mep.opt (IVC2): New Mask entry.
11760 (mivc2): Use Var and Defer instead of Mask.
11761
11762 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11763
11764 * config/v850/v850-opts.h: New.
11765 * config/v850/v850.c (small_memory): Replace with
11766 small_memory_physical_max array. Make that array static const.
11767 (v850_handle_memory_option): Take integer value of argument. Take
11768 gcc_options pointer, option text and location. Return void.
11769 Update for changes to small memory structures.
11770 (v850_handle_option): Access target_flags via opts pointer. Don't
11771 assert that global structures are in use. Update calls to
11772 v850_handle_memory_option.
11773 (v850_encode_data_area): Update references to small memory settings.
11774 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11775 (enum small_memory_type): Move to v850-opts.h.
11776 * config/v850/v850.opt (config/v850/v850-opts.h): New
11777 HeaderInclude entry.
11778 (small_memory_max): New Variable entry.
11779 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11780 (mtda, mzda): Likewise.
11781
11782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11783
11784 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11785 pointer. Don't assert that global structures are in use.
11786
11787 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11788
11789 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11790 via opts pointer. Don't assert that global structures are in use.
11791
11792 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11793
11794 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11795 (munix=93): Use Var.
11796 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11797 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11798 * config/pa/pa-opts.h: New.
11799 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11800 (pa_handle_option): Don't assert that global structures are in
11801 use. Access target_flags via opts pointer. Don't handle
11802 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11803 OPT_munix_98 here.
11804 (pa_option_override): Handle deferred OPT_mfixed_range_.
11805
11806 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11807
11808 * config/mn10300/mn10300-opts.h: New.
11809 * config/mn10300/mn10300.c (mn10300_processor,
11810 mn10300_tune_string): Remove.
11811 (mn10300_handle_option): Don't assert that global structures are
11812 in use. Access mn10300_processor via opts pointer. Don't handle
11813 OPT_mtune_ here.
11814 * config/mn10300/mn10300.h (enum processor_type): Move to
11815 mn10300-opts.h.
11816 (mn10300_processor): Remove.
11817 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11818 HeaderInclude entry.
11819 (mn10300_processor): New Variable entry.
11820 (mtune=): Use Var.
11821
11822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11823
11824 * config/microblaze/microblaze.c: Don't include opts.h.
11825 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11826 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11827 (mno-clearbss): Use Var and Warn.
11828
11829 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11830
11831 * config/m32r/m32r-opts.h: New.
11832 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11833 (m32r_handle_option): Don't assert that global structures are in
11834 use. Access target_flags and m32r_cache_flush_func via opts
11835 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11836 OPT_mno_flush_trap here.
11837 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11838 include of m32r-opts.h.
11839 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11840 HeaderInclude entry.
11841 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11842 (mmodel=): Use Enum and Var.
11843 (m32r_model): New Enum and EnumValue entries.
11844 (mno-flush-trap): Use Var.
11845 (msdata=): Use Enum and Var.
11846 (m32r_sdata): New Enum and EnumValue entries.
11847
11848 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11849
11850 * config/m32c/m32c.c: Don't include opts.h.
11851 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11852 m32c_handle_option): Remove.
11853 (m32c_option_override): Check global_options_set.x_target_memregs
11854 instead of target_memregs_set.
11855 * config/m32c/m32c.h (target_memregs): Remove.
11856 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11857 variable.
11858
11859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11860
11861 * config/iq2000/iq2000-opts.h: New.
11862 * config/iq2000/iq2000.c: Don't include opts.h.
11863 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11864 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11865 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11866 HeaderInclude entry.
11867 (iq2000_tune): New Variable entry.
11868 (march=): Add comment. Use Enum.
11869 (iq2000_arch): New Enum and EnumValue entries.
11870 (mcpu=): Use Enum and Var.
11871 (iq2000_tune): New Enum and EnumValue entries.
11872
11873 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11874
11875 * config/ia64/ia64-opts.h: New.
11876 * config/ia64/ia64.c (ia64_tune): Remove.
11877 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11878 here. Use error_at.
11879 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11880 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11881 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11882 HeaderInclude entry.
11883 (ia64_tune): New Variable entry.
11884 (mfixed-range=): Use Defer and Var.
11885 (mtune=): Use Enum and Var.
11886 (ia64_tune): New Enum and EnumValue entries.
11887
11888 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11889
11890 * config/frv/frv-opts.h: New.
11891 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11892 frv-opts.h.
11893 (frv_cpu_type): Remove.
11894 * config/frv/frv.c: Don't include opts.h.
11895 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11896 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11897 (frv_cpu_type): New Variable entry.
11898 (frv_cpu): New Enum and EnumValue entries.
11899
11900 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11901
11902 * config/cris/cris.c (cris_handle_option): Access target_flags via
11903 opts pointer. Don't assert that global structures are in use.
11904 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11905 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11906
11907 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11908
11909 * config/bfin/bfin-opts.h: New.
11910 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11911 bfin_si_revision, bfin_workarounds): Remove.
11912 (bfin_cpus): Make static const.
11913 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11914 not bfin_lib_id_given.
11915 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11916 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11917 pointer. Use error_at. Don't assert that global structures are in use.
11918 * config/bfin/bfin.h: Include bfin-opts.h.
11919 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11920 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11921 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11922 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11923 entries.
11924
11925 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11926
11927 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11928 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11929 or -msoft-float here.
11930 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11931 -msoft-float and -mhard-float.
11932 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11933 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11934 msoft-float.
11935 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11936 -msoft-float.
11937 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11938 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11939 not mhard-float.
11940 (LIBGCC_SPEC): Don't handle -msoft-float.
11941 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11942 -mhard-float.
11943 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11944 msoft-float.
11945 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11946 -mfloat-abi=*, not -msoft-float and -mhard-float.
11947 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11948 -msoft-float.
11949 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11950 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11951 mhard-float and msoft-float.
11952 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11953 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11954 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11955 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11956 mhard-float.
11957 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11958 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11959 msoft-float.
11960 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11961 not mhard-float.
11962 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11963 not msoft-float.
11964
11965 2011-03-22 Richard Henderson <rth@redhat.com>
11966
11967 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11968 TARGET_ABI_WINDOWS_NT.
11969 (alpha_output_function_end_prologue): Likewise.
11970 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11971 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11972 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11973 (trap, *movsi_nt_vms): Likewise.
11974 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11975 (*tablejump_osf_nt_internal): Remove.
11976 * config/alpha/predicates.md (input_operand): Only test Pmode.
11977
11978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11979
11980 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11981 via opts pointer. Use error_at. Don't assert that global
11982 structures are in use.
11983
11984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11985
11986 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11987 (ix86_handle_option): Access ix86_isa_flags and
11988 ix86_isa_flags_explicit via opts pointer. Don't assert that
11989 global structures are in use.
11990 (ix86_function_specific_save, ix86_function_specific_restore):
11991 Update ix86_isa_flags_explicit field name.
11992 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11993 (ix86_isa_flags_explicit): Rename TargetSave entry to
11994 x_ix86_isa_flags_explicit.
11995
11996 2011-03-22 Richard Henderson <rth@redhat.com>
11997
11998 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11999 (alpha_option_override, direct_return): Likewise.
12000 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12001 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12002 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12003 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12004 (alpha_expand_epilogue, alpha_end_function): Likewise.
12005 (alpha_init_libfuncs): Likewise.
12006 (struct machine_function): Remove unicosmk members.
12007 (print_operand) ['t']: Remove.
12008 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12009 unicosmk_output_module_name, unicosmk_output_common,
12010 current_section_align, unicosmk_output_text_section_asm_op,
12011 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12012 unicosmk_section_type_flags, unicosmk_unique_section,
12013 unicosmk_asm_named_section, unicosmk_insert_attributes,
12014 unicosmk_output_align, unicosmk_defer_case_vector,
12015 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12016 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12017 unicosmk_output_ssib, unicosmk_add_call_info_word,
12018 unicosmk_extern_head, unicosmk_output_default_externs,
12019 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12020 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12021 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12022 * config/alpha/alpha-protos.h: Update.
12023 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12024 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12025 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12026 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12027 (*mulsi_se, mulvsi3): Likewise.
12028 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12029 (*divmodsi_internal, call, call_value, realign): Likewise.
12030 (moddi3, umoddi3): Likewise; remove duplicate expander.
12031 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12032 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12033 (*movdi_nofix): Remove r/U alternative.
12034 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12035 * config/alpha/constraints.md ("U"): Remove.
12036 * config/alpha/predicates.md (call_operand"): Don't test
12037 TARGET_ABI_UNICOSMK.
12038
12039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12040
12041 * target.def (handle_option): Take gcc_options and
12042 cl_decoded_option pointers and location_t.
12043 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12044 * doc/tm.texi: Regenerate.
12045 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12046 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12047 * lto-opts.c (lto_reissue_options): Generate option structure for
12048 targetm.handle_option call.
12049 * opts.c (target_handle_option): Update call to
12050 targetm.handle_option. Remove assertions about values now passed
12051 down to hook.
12052 * targhooks.c (default_target_handle_option): New.
12053 * targhooks.h (default_target_handle_option): Declare.
12054 * config/alpha/alpha.c: Include opts.h.
12055 (alpha_handle_option): Update to new hook interface.
12056 * config/arm/arm.c: Include opts.h.
12057 (arm_handle_option): Update to new hook interface.
12058 * config/arm/t-arm (arm.o): Update dependencies.
12059 * config/bfin/bfin.c: Include opts.h.
12060 (bfin_handle_option): Update to new hook interface.
12061 * config/cris/cris.c: Include opts.h.
12062 (cris_handle_option): Update to new hook interface.
12063 * config/frv/frv.c: Include opts.h.
12064 (frv_handle_option): Update to new hook interface.
12065 * config/i386/i386.c: Include opts.h.
12066 (ix86_handle_option): Update to new hook interface.
12067 (ix86_valid_target_attribute_inner_p): Generate option structure
12068 for call to ix86_handle_option.
12069 * config/i386/t-i386 (i386.o): Update dependencies.
12070 * config/ia64/ia64.c: Include opts.h.
12071 (ia64_handle_option): Update to new hook interface.
12072 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12073 * config/iq2000/iq2000.c: Include opts.h.
12074 (iq2000_handle_option): Update to new hook interface.
12075 * config/m32c/m32c.c: Include opts.h.
12076 (m32c_handle_option): Update to new hook interface.
12077 * config/m32r/m32r.c: Include opts.h.
12078 (m32r_handle_option): Update to new hook interface.
12079 * config/m68k/m68k.c: Include opts.h.
12080 (m68k_handle_option): Update to new hook interface.
12081 * config/mep/mep.c: Include opts.h.
12082 (mep_handle_option): Update to new hook interface.
12083 * config/microblaze/microblaze.c: Include opts.h.
12084 (microblaze_handle_option): Update to new hook interface.
12085 * config/mips/mips.c: Include opts.h.
12086 (mips_handle_option): Update to new hook interface.
12087 * config/mn10300/mn10300.c: Include opts.h.
12088 (mn10300_handle_option): Update to new hook interface.
12089 * config/pa/pa.c: Include opts.h.
12090 (pa_handle_option): Update to new hook interface.
12091 * config/pdp11/pdp11.c: Include opts.h.
12092 (pdp11_handle_option): Update to new hook interface.
12093 * config/rs6000/rs6000.c: Include opts.h.
12094 (rs6000_handle_option): Update to new hook interface.
12095 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12096 * config/rx/rx.c: Include opts.h.
12097 (rx_handle_option): Update to new hook interface.
12098 * config/s390/s390.c: Include opts.h.
12099 (s390_handle_option): Update to new hook interface.
12100 * config/score/score.c: Include opts.h.
12101 (score_handle_option): Update to new hook interface.
12102 * config/sh/sh.c: Include opts.h.
12103 (sh_handle_option): Update to new hook interface.
12104 * config/sparc/sparc.c: Include opts.h.
12105 (sparc_handle_option): Update to new hook interface.
12106 * config/v850/v850.c: Include opts.h.
12107 (v850_handle_option): Update to new hook interface.
12108
12109 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12110
12111 * gcc.c (driver_unknown_option_callback): Only permit and save
12112 unknown -Wno- options.
12113 (driver_wrong_lang_callback): Save options directly instead of via
12114 driver_unknown_option_callback.
12115
12116 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12117
12118 * combine.c (simplify_set): Try harder to find the best CC mode when
12119 simplifying a nested COMPARE on the RHS.
12120
12121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12122
12123 * config/alpha/gnu.h: Remove.
12124 * config/arc: Remove directory.
12125 * config/arm/netbsd.h: Remove.
12126 * config/arm/t-pe: Remove.
12127 * config/crx: Remove directory.
12128 * config/i386/netbsd.h: Remove.
12129 * config/m68hc11: Remove directory.
12130 * config/m68k/uclinux-oldabi.h: Remove.
12131 * config/mcore/mcore-pe.h: Remove.
12132 * config/mcore/t-mcore-pe: Remove.
12133 * config/netbsd-aout.h: Remove.
12134 * config/rs6000/gnu.h: Remove.
12135 * config/sh/sh-symbian.h: Remove.
12136 * config/sh/symbian-base.c: Remove.
12137 * config/sh/symbian-c.c: Remove.
12138 * config/sh/symbian-cxx.c: Remove.
12139 * config/sh/symbian-post.h: Remove.
12140 * config/sh/symbian-pre.h: Remove.
12141 * config/sh/t-symbian: Remove.
12142 * config/svr3.h: Remove.
12143 * config/vax/netbsd.h: Remove.
12144 * config.build: Don't handle i[34567]86-*-pe.
12145 * config.gcc: Remove handling of deprecations for most deprecated
12146 targets.
12147 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12148 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12149 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12150 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12151 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12152 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12153 Remove cases.
12154 * config.host: Don't handle i[34567]86-*-pe.
12155 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12156 (ASM_SPEC32): Don't handle -mcall-gnu.
12157 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12158 -mcall-gnu.
12159 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12160 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12161 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12162 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12163 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12164 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12165 conditional on SYMBIAN.
12166 * configure.ac: Don't handle powerpc*-*-gnu*.
12167 * configure: Regenerate.
12168 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12169 * doc/install-old.texi (m6811, m6812): Don't mention.
12170 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12171 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12172 (m68k-uclinuxoldabi): Don't mention.
12173 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12174 Remove.
12175 (-mcall-gnu): Remove.
12176 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12177 families): Remove constraint documentation.
12178
12179 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12180
12181 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12182 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12183 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12184
12185 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12186
12187 PR target/48226
12188 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12189 vector when peeking at the next token for vector, don't expand the
12190 keywords.
12191
12192 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12193
12194 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12195 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12196 * config/avr/avr.c (init_cumulative_args)
12197 (avr_function_arg_advance): Use it.
12198 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12199 sibcall epilogues.
12200 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12201 (avr_function_ok_for_sibcall): ...this new function.
12202 (avr_lookup_function_attribute1): New static Function.
12203 (avr_naked_function_p, interrupt_function_p)
12204 (signal_function_p, avr_OS_task_function_p)
12205 (avr_OS_main_function_p): Use it.
12206 * config/avr/avr.md ("sibcall", "sibcall_value")
12207 ("sibcall_epilogue"): New expander.
12208 ("*call_insn", "*call_value_insn"): New insn.
12209 ("call_insn", "call_value_insn"): Remove
12210 ("call", "call_value", "epilogue"): Change expander to handle
12211 sibling calls.
12212
12213 2011-03-21 Nick Clifton <nickc@redhat.com>
12214
12215 * doc/invoke.texi (Overall Options): Move closing brace to end of
12216 options list.
12217 (Optimization Options): Add missing @gol.
12218 (Directory Options): Likewise.
12219 (i386 and x86-64 Options): Likewise.
12220 (RS6000 and PowerPC Options): Likewise.
12221 (i386 and x86-64 Windows Options): Likewise.
12222 (V850 Options): Add text missing from descriptions.
12223
12224 2011-03-22 Richard Henderson <rth@redhat.com>
12225
12226 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12227 (avr_incoming_return_addr_rtx): New.
12228 (emit_push_byte): New.
12229 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12230 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12231 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12232 (emit_pop_byte): New.
12233 (expand_epilogue): Use it. Pop frame pointer by bytes.
12234 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12235 (INCOMING_RETURN_ADDR_RTX): New.
12236 (INCOMING_FRAME_SP_OFFSET): New.
12237 (ARG_POINTER_CFA_OFFSET): New.
12238 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12239 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12240 (pophi): Remove.
12241
12242 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12243
12244 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12245
12246 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12247 (FUNCTION_ARG_ADVANCE): Likewise.
12248 * tm.texi.in: Change references to them to hook references.
12249 * tm.texi: Regenerate.
12250 * targhooks.c (default_function_arg): Eliminate check for target
12251 macro.
12252 (default_function_incoming_arg): Likewise.
12253 (default_function_arg_advance): Likewise.
12254 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12255 (function_arg_advance): Likewise.
12256 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12257
12258 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12259
12260 * tree.c (build_call_1): New function.
12261 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12262
12263 2011-03-22 Richard Guenther <rguenther@suse.de>
12264
12265 PR tree-optimization/48228
12266 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12267 for single-arg PHIs.
12268
12269 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12270
12271 PR rtl-optimization/48143
12272 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12273 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12274 sse2_cvtps2pd): Likewise.
12275
12276 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12277
12278 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12279
12280 2011-03-22 Richard Guenther <rguenther@suse.de>
12281
12282 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12283 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12284 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12285 and REALIGN_LOAD_EXPR.
12286 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12287 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12288 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12289 DOT_PROD_EXPR case ...
12290 (expand_expr_real_2): ... here.
12291 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12292 and REALIGN_LOAD_EXPR.
12293 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12294 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12295 (vect_create_epilog_for_reduction): Likewise.
12296 (vectorizable_reduction): Likewise.
12297 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12298 * tree-vect-stmts.c (vectorizable_load): Likewise.
12299
12300 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12301
12302 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12303
12304 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12305
12306 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12307 handling for PLTOFF/GOTOFF.
12308
12309 2011-03-22 Nick Clifton <nickc@redhat.com>
12310
12311 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12312 trailing backslash from the end of the macro definition.
12313
12314 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12315
12316 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12317 and PLT unspecs.
12318
12319 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12320
12321 * expr.h (prepare_operand): Move to...
12322 * optabs.h (prepare_operand): ...here and change the insn code
12323 parameter from "int" to "enum insn_code".
12324 (insn_operand_matches): Declare.
12325 * expr.c (init_expr_target): Use insn_operand_matches.
12326 (compress_float_constant): Likewise.
12327 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12328 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12329 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12330 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12331 Likewise.
12332 (gen_cond_trap): Likewise.
12333 (prepare_operand): Likewise. Change icode to an insn_code.
12334 (insn_operand_matches): New function.
12335 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12336 * reload1.c (gen_reload): Likewise.
12337 * targhooks.c (default_secondary_reload): Likewise.
12338
12339 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12340
12341 * config/alpha/alpha.md (unspec): New define_c_enum.
12342 (unspecv): Ditto.
12343
12344 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12345
12346 PR debug/48214
12347 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12348 between a call and its CALL_ARG_LOCATION note.
12349
12350 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12351
12352 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12353
12354 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12355
12356 PR c/42544
12357 PR c/48197
12358 * c-common.c (shorten_compare): If primopN is first sign-extended
12359 to opN and then zero-extended to result type, set primopN to opN.
12360
12361 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12362
12363 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12364 for barrier handlers.
12365
12366 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12367
12368 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12369 UNSPEC constants to be in the unspec enumeration, and redefine
12370 all UNSPECV constants to be in the unspecv enumeration, so that
12371 dumps print which unspec/unspec_volatile this is.
12372 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12373 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12374 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12375 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12376 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12377
12378 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12379 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12380 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12381 * config/rs6000/sync.md (isync, lwsync): Ditto.
12382
12383 2011-03-21 Richard Guenther <rguenther@suse.de>
12384
12385 * params.def (lto-min-partition): Fix typo.
12386
12387 2011-03-21 Richard Guenther <rguenther@suse.de>
12388
12389 PR c/47939
12390 * c-decl.c (grokdeclarator): Drop to the main variant only
12391 for array types. Drop flag_gen_aux_info check.
12392
12393 2011-03-21 Richard Guenther <rguenther@suse.de>
12394
12395 PR translation/47911
12396 * params.def (lto-partitions): Fix typo.
12397 (lto-min-partition): Fix wording.
12398
12399 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12400
12401 * config/rs6000/t-freebsd: Remove duplication from file.
12402
12403 2011-03-21 Richard Guenther <rguenther@suse.de>
12404
12405 PR middle-end/47661
12406 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12407
12408 2011-03-21 Richard Guenther <rguenther@suse.de>
12409
12410 PR lto/48210
12411 * params.def (lto-partitions): Require at least 1 partition.
12412
12413 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12414
12415 * gthr-solaris.h: Remove.
12416 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12417 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12418 (LIB_SPEC): Likewise.
12419 * config/sol2.opt (threads): Remove.
12420 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12421 (sparc*-*-solaris2*): Likewise.
12422 * configure.ac (enable_threads): Enable solaris support.
12423 * configure: Regenerate.
12424 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12425 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12426 solaris.
12427
12428 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12429
12430 * config.gcc: Obsolete *-*-solaris2.8*.
12431 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12432
12433 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12434
12435 PR bootstrap/48135
12436 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12437 reference. Solaris 8 perl works.
12438
12439 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12440
12441 PR bootstrap/48135
12442 * doc/install.texi (Prerequisites): Move jar etc. up.
12443 Explain support library version requirements.
12444
12445 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12446
12447 PR bootstrap/48135
12448 * doc/install.texi (Prerequisites): Move Perl to build
12449 requirements. Always necessary on Solaris 2 with Sun ld.
12450
12451 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12452
12453 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12454 binutils 2.21.
12455 (Specific, i?86-*-solaris2.[89]): Likewise.
12456 (Specific, i?86-*-solaris2.10): Likewise.
12457 (Specific, mips-sgi-irix6): Likewise.
12458 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12459 Update for binutils 2.21.
12460
12461 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12462
12463 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12464 Allow -fuse-linker-plugin for non-default plugin linker.
12465 * configure: Regenerate.
12466
12467 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12468
12469 PR bootstrap/48167
12470 * gengtype.c (files_rules): Added rule for cp/parser.h.
12471
12472 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12473
12474 PR target/48213
12475 * config/s390/s390.c (s390_delegitimize_address): Don't call
12476 lowpart_subreg if orig_x has BLKmode.
12477
12478 2011-03-21 Kai Tietz <ktietz@redhat.com>
12479
12480 PR target/12171
12481 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12482 * tree.h (attribute_spec): Add new member affects_type_identity.
12483 * attribs.c (empty_attribute_table): Adjust attribute_spec
12484 initializers.
12485 * config/alpha/alpha.c: Likewise.
12486 * config/arc/arc.c: Likewise.
12487 * config/arm/arm.c: Likewise.
12488 * config/avr/avr.c: Likewise.
12489 * config/bfin/bfin.c: Likewise.
12490 * config/crx/crx.c: Likewise.
12491 * config/darwin.h: Likewise.
12492 * config/h8300/h8300.c: Likewise.
12493 * config/i386/cygming.h: Likewise.
12494 * config/i386/i386.c: Likewise.
12495 * config/ia64/ia64.c: Likewise.
12496 * config/m32c/m32c.c: Likewise.
12497 * config/m32r/m32r.c: Likewise.
12498 * config/m68hc11/m68hc11.c: Likewise.
12499 * config/m68k/m68k.c: Likewise.
12500 * config/mcore/mcore.c: Likewise.
12501 * config/mep/mep.c: Likewise.
12502 * config/microblaze/microblaze.c: Likewise.
12503 * config/mips/mips.c: Likewise.
12504 * config/rs6000/rs6000.c: Likewise.
12505 * config/rx/rx.c: Likewise.
12506 * config/sh/sh.c: Likewise.
12507 * config/sol2.h: Likewise.
12508 * config/sparc/sparc.c: Likewise.
12509 * config/spu/spu.c: Likewise.
12510 * config/stormy16/stormy16.c: Likewise.
12511 * config/v850/v850.c: Likewise.
12512
12513 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12514
12515 * simplify-rtx.c (simplify_binary_operation_1): Handle
12516 (xor (and A B) C) case when B and C are both constants.
12517
12518 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12519
12520 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12521
12522 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12523
12524 PR bootstrap/48168
12525 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12526
12527 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12528
12529 PR rtl-optimization/48156
12530 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12531 assume df and df_lr are not NULL.
12532
12533 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12534
12535 PR debug/48023
12536 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12537 between a call and its CALL_ARG_LOCATION note.
12538
12539 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12540
12541 PR debug/48178
12542 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12543 between a call and its corresponding CALL_ARG_LOCATION note.
12544
12545 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12546
12547 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12548 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12549 * haifa-sched.c (setup_ref_regs): Ditto.
12550 * caller-save.c (add_used_regs_1): Ditto.
12551 * dse.c (look_for_hardregs): Ditto.
12552 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12553 * sched-rgn.c (check_live_1): Ditto.
12554
12555 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12556
12557 * c-decl.c (diagnose_mismatched_decls): Give an error for
12558 redefining a typedef with variably modified type.
12559
12560 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12561
12562 * c-decl.c (grokfield): Don't allow typedefs for structures or
12563 unions with no tag by default.
12564 * doc/extend.texi (Unnamed Fields): Update.
12565
12566 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12567
12568 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12569 Rewrite using indirect functions.
12570 (lwp_slwpcb): Ditto.
12571 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12572 (avx_vinsertf128<mode>): Ditto.
12573
12574 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12575
12576 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12577 unspecs.
12578
12579 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12580
12581 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12582 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12583
12584 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12585
12586 PR rtl-optimization/48170
12587 * gcse.c (hoist_code): Remove bogus asserts.
12588
12589 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12590
12591 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12592 computation for prologue/epilogue.
12593
12594 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12595
12596 * Makefile.in (check-consistency): Remove.
12597
12598 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR debug/48176
12601 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12602 arange_table_in_use is 0, but either text_section_used or
12603 cold_text_section_used is true. Don't call it if
12604 !info_section_emitted.
12605
12606 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12607
12608 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12609 FUNCTION_VALUE_REGNO_P): Remove.
12610 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12611 Remove.
12612 * config/avr/avr.c (avr_ret_register): Make static inline.
12613 (avr_function_value_regno_p): New function.
12614 (avr_libcall_value): Make static. Add 'func' argument.
12615 (avr_function_value): Make static. Rename 'func' argument to
12616 'fn_decl_or_type', forward it to avr_libcall_value. Call
12617 avr_ret_register function instead of RET_REGISTER macro.
12618 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12619
12620 2011-03-18 Jason Merrill <jason@redhat.com>
12621
12622 PR c++/23372
12623 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12624
12625 2011-03-18 Richard Guenther <rguenther@suse.de>
12626
12627 * doc/install.texi (--enable-gold): Remove.
12628 (--with-plugin-ld): Document.
12629 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12630
12631 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12632
12633 PR middle-end/47790
12634 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12635 again after expansion changes.
12636
12637 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12638
12639 * combine.c (try_combine): Do simplification only call of
12640 subst() on i2 even when i1 is present. Update comments.
12641
12642 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12643
12644 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12645 and UNSPEC_PCREL_SYMOFF.
12646
12647 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12648
12649 * config/s390/s390.md: Use define_c_enum for the unspec constant
12650 definitions.
12651
12652 2011-03-18 Richard Henderson <rth@redhat.com>
12653 Jakub Jelinek <jakub@redhat.com>
12654
12655 PR bootstrap/48161
12656 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12657 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12658
12659 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12660
12661 PR middle-end/47725
12662 * combine.c (cant_combine_insn_p): Don't check zero/sign
12663 extended hard registers.
12664
12665 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12666
12667 PR middle-end/47725
12668 * combine.c (cant_combine_insn_p): Check zero/sign extended
12669 hard registers.
12670
12671 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12672
12673 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12674 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12675 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12676 Change return type to bool.
12677 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12678
12679 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12680
12681 PR debug/48163
12682 * var-tracking.c (prepare_call_arguments): If CALL target
12683 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12684 pc instead of looking it up using cselib_lookup and use
12685 Pmode for it if x has VOIDmode.
12686 * dwarf2out.c (gen_subprogram_die): If also both first and
12687 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12688
12689 PR debug/48163
12690 * function.c (assign_parms): For data.passed_pointer parms
12691 use MEM of data.entry_parm instead of data.entry_parm itself
12692 as DECL_INCOMING_RTL.
12693 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12694 also when passed and declared mode is the same, DECL_RTL
12695 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12696 a MEM too.
12697
12698 2011-03-16 Jeff Law <law@redhat.com>
12699
12700 PR rtl-optimization/37273
12701 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12702 handle them like argument loads from stack slots. Do not double
12703 count memory for memory constants and argument loads from stack slots.
12704
12705 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12706
12707 PR debug/48160
12708 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12709
12710 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12711
12712 PR target/48171
12713 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12714
12715 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12716
12717 PR bootstrap/48153
12718 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12719 if dwarf_strict.
12720 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12721 Clear call_arg_locations and call_arg_loc_last always.
12722
12723 PR middle-end/48152
12724 * var-tracking.c (prepare_call_arguments): If argument needs to be
12725 passed by reference, adjust argtype and mode.
12726
12727 2011-03-17 Richard Guenther <rguenther@suse.de>
12728
12729 PR middle-end/48134
12730 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12731 a value make sure to fold the statement.
12732
12733 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12734
12735 PR target/43872
12736 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12737 return condition with !cfun->calls_alloca.
12738
12739 2011-03-17 Richard Guenther <rguenther@suse.de>
12740
12741 PR bootstrap/48148
12742 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12743 origin for decls in other ltrans units.
12744 (input_varpool_node): Likewise.
12745
12746 2011-03-17 Richard Guenther <rguenther@suse.de>
12747
12748 PR middle-end/48165
12749 * tree-object-size.c (compute_object_offset): Properly return
12750 the offset operand of MEM_REFs as sizetype.
12751
12752 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12753
12754 PR rtl-optimization/48141
12755 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12756 * dse.c: Include params.h.
12757 (active_local_stores_len): New variable.
12758 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12759 to NULL.
12760 (record_store, check_mem_read_rtx): Decrease it when removing
12761 from the chain.
12762 (scan_insn): Likewise. Increase it when adding to chain, if it
12763 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12764 set active_local_stores to NULL before the addition.
12765 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12766
12767 PR rtl-optimization/48141
12768 * dse.c (record_store): If no positions are needed in an insn
12769 that cannot be deleted, at least unchain it from active_local_stores.
12770
12771 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12772
12773 PR debug/47510
12774 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12775 (lookup_type_die_strip_naming_typedef): ... here.
12776 (get_context_die): Use it.
12777 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12778 the anonymous struct named by the naming typedef.
12779
12780 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12781
12782 PR target/48154
12783 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12784 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12785
12786 2011-03-16 Jeff Law <law@redhat.com>
12787
12788 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12789 check for operands of conditional. Allow type to be a pointer.
12790
12791 2011-03-16 Richard Guenther <rguenther@suse.de>
12792
12793 PR tree-optimization/48149
12794 * fold-const.c (fold_binary_loc): Fold
12795 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12796
12797 2011-03-16 Richard Guenther <rguenther@suse.de>
12798
12799 PR tree-optimization/26134
12800 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12801 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12802 (non_rewritable_mem_ref_base): Handle complex type component
12803 accesses, constrain offsets for vector and complex extracts
12804 more properly.
12805
12806 2011-03-16 Richard Guenther <rguenther@suse.de>
12807
12808 PR tree-optimization/48146
12809 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12810 operands avoiding the need for renaming.
12811
12812 2011-03-16 Richard Guenther <rguenther@suse.de>
12813
12814 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12815 constant folding. Move MEM_REF canonicalization first.
12816 Rely on fold_const_aggregate_ref for initializer folding.
12817 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12818
12819 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12820
12821 PR middle-end/48136
12822 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12823 arg0/arg1 or their arguments are always fold converted to matching
12824 types.
12825
12826 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12827 to nargs.
12828
12829 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12830
12831 PR lto/46944
12832 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12833 Handle in-tree gold.
12834 (ld_vers): Extract binutils version for gold.
12835 (gcc_cv_ld_hidden): Handle gold here.
12836 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12837 * configure: Regenerate.
12838 * config.in: Regenerate.
12839 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12840 -fuse-linker-plugin otherwise.
12841 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12842 (LINK_COMMAND_SPEC): Use it.
12843 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12844
12845 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12846
12847 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12848 * calls.c: Remove debug.h include.
12849 (emit_call_1): Don't call virtual_call_token debug hook.
12850 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12851 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12852 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12853 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12854 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12855 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12856 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12857 dwarf2out_virtual_call): Remove.
12858 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12859 copy_call_info and virtual_call hooks.
12860 (dwarf2out_init): Don't initialize vcall_insn_table,
12861 debug_dcall_section and debug_vcall_section.
12862 (prune_unused_types): Don't mark nodes from dcall_table.
12863 (dwarf2out_finish): Don't output dcall or vcall tables.
12864 * final.c (final_scan_insn): Don't call direct_call or
12865 virtual_call debug hooks.
12866 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12867 virtual_call_token, copy_call_info and virtual_call hooks.
12868 (debug_nothing_uid): Remove prototype.
12869 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12870 copy_call_info and virtual_call hooks.
12871 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12872 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12873 * debug.c (do_nothing_debug_hooks): Likewise.
12874 (debug_nothing_uid): Remove.
12875 * doc/invoke.texi (-fenable-icf-debug): Remove.
12876 * common.opt (-fenable-icf-debug): Likewise.
12877
12878 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12879 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12880 call's MEM. Handle functions returning aggregate through a hidden
12881 first pointer. For virtual calls add clobbered pc to call arguments
12882 chain.
12883 * dwarf2out.c (gen_subprogram_die): Emit
12884 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12885 can't be emitted.
12886
12887 PR debug/45882
12888 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12889 * rtl.h (ENTRY_VALUE_EXP): Define.
12890 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12891 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12892 * print-rtl.c (print_rtx): Likewise.
12893 * gengtype.c (adjust_field_rtx_def): Likewise.
12894 * var-tracking.c (vt_add_function_parameter): Adjust
12895 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12896 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12897 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12898 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12899 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12900
12901 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12902 Call var_location debug hook even on CALL_INSNs.
12903 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12904 * rtl.def (ENTRY_VALUE): New.
12905 * dwarf2out.c: Include cfglayout.h.
12906 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12907 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12908 (struct call_arg_loc_node): New type.
12909 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12910 tail_call_site_count): New variables.
12911 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12912 DW_TAG_GNU_call_site_parameter.
12913 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12914 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12915 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12916 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12917 and DW_AT_GNU_all_source_call_sites.
12918 (mem_loc_descriptor): Handle ENTRY_VALUE.
12919 (add_src_coords_attributes): Don't add enything if
12920 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12921 (dwarf2out_abstract_function): Save and clear call_arg_location,
12922 call_site_count and tail_call_site_count around dwarf2out_decl call.
12923 (gen_call_site_die): New function.
12924 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12925 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12926 (dwarf2out_function_decl): Clear call_arg_locations,
12927 call_arg_loc_last, set call_site_count and tail_call_site_count
12928 to -1 and free block_map.
12929 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12930 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12931 followed by any real instructions.
12932 (dwarf2out_begin_function): Set call_site_count and
12933 tail_call_site_count to 0.
12934 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12935 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12936 attempt to force a DIE for it and worst case remove the attribute.
12937 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12938 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12939 the decl itself.
12940 * var-tracking.c: Include tm_p.h.
12941 (vt_stack_adjustments): For calls call note_register_arguments.
12942 (argument_reg_set): New variable.
12943 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12944 ensure the VALUE is resolved.
12945 (call_arguments): New variable.
12946 (prepare_call_arguments): New function.
12947 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12948 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12949 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12950 always use the best expression.
12951 (vt_expand_loc): Add ignore_cur_loc argument.
12952 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12953 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12954 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12955 note for all calls.
12956 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12957 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12958 argument. Don't call cselib_preserve_only_values and
12959 cselib_reset_table.
12960 (note_register_arguments): New function.
12961 (vt_initialize): Compute argument_reg_set. Call
12962 vt_add_function_parameters before processing basic blocks instead of
12963 afterwards. For calls call prepare_call_arguments before calling
12964 cselib_process_insn.
12965 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12966 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12967 (var-tracking.o): Depend on $(TM_P_H).
12968 * cfglayout.h (insn_scope): New prototype.
12969 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12970 * cfglayout.c (insn_scope): No longer static.
12971 * insn-notes.def (CALL_ARG_LOCATION): New.
12972 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12973 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12974 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12975 nothing for DECL_EXTERNAL BLOCK_VARS.
12976
12977 2011-03-16 Alan Modra <amodra@gmail.com>
12978
12979 PR target/45844
12980 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12981 create invalid offset address for vsx splat insn.
12982 * config/rs6000/predicates.md (splat_input_operand): New.
12983 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12984
12985 2011-03-15 Xinliang David Li <davidxl@google.com>
12986
12987 PR c/47837
12988 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12989 (normalize_preds): New function.
12990 (is_use_properly_guarded): Normalize def predicates.
12991
12992 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12993
12994 PR target/46788
12995 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12996 in the output template.
12997
12998 2011-03-15 Richard Guenther <rguenther@suse.de>
12999
13000 PR middle-end/47650
13001 * tree-pretty-print.c (dump_function_declaration): Properly
13002 dump unprototyped and varargs function types.
13003
13004 2011-03-15 Richard Guenther <rguenther@suse.de>
13005
13006 PR tree-optimization/13954
13007 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13008 and friends.
13009
13010 2011-03-15 Richard Guenther <rguenther@suse.de>
13011
13012 PR tree-optimization/48037
13013 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13014 selects into BIT_FIELD_REFs.
13015 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13016 vector select.
13017
13018 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13019
13020 PR tree-optimization/48129
13021 * builtins.c (fold_builtin_snprintf): Convert to type of
13022 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13023 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13024
13025 2011-03-15 Richard Guenther <rguenther@suse.de>
13026
13027 PR tree-optimization/41490
13028 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13029 value but with VUSE.
13030 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13031 return statements.
13032 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13033 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13034 * tree-tailcall.c (find_tail_calls): Ignore returns.
13035
13036 2011-03-15 Richard Guenther <rguenther@suse.de>
13037
13038 PR middle-end/48031
13039 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13040 or variable-indexed array accesses when in gimple form.
13041
13042 2011-03-15 Richard Guenther <rguenther@suse.de>
13043
13044 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13045
13046 2011-03-15 Alan Modra <amodra@gmail.com>
13047
13048 PR target/48032
13049 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13050 presume symbol_refs without a symbol_ref_decl are suitably
13051 aligned, nor other trees we may see here. Handle anchor symbols.
13052 (legitimate_constant_pool_address_p): Comment. Add mode param.
13053 Check cmodel=medium addresses. Adjust all calls.
13054 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13055 creating cmodel=medium optimized access to locals.
13056 * config/rs6000/constraints.md (R): Pass QImode to
13057 legitimate_constant_pool_address_p.
13058 * config/rs6000/predicates.md (input_operand): Pass mode to
13059 legitimate_constant_pool_address_p.
13060 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13061 Update prototype.
13062
13063 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13064
13065 PR target/48053
13066 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13067 64-bit constants being loaded into registers other than GPRs such
13068 as loading 0 into a VSX register.
13069
13070 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13071
13072 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13073
13074 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13075
13076 PR middle-end/47917
13077 * builtins.c (fold_builtin_snprintf): New function.
13078 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13079 (fold_builtin_4): Likewise.
13080
13081 PR middle-end/38878
13082 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13083 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13084 and C - X == X also strip nops from +/-/p+ operand.
13085 When optimizing -X == C, fold C to arg0's type.
13086
13087 PR debug/47946
13088 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13089 emit it as add_AT_int instead of add_AT_unsigned.
13090
13091 2011-03-14 Tom Tromey <tromey@redhat.com>
13092
13093 * unwind-dw2.c: Include sys/sdt.h if it exists.
13094 (_Unwind_DebugHook): Use STAP_PROBE2.
13095 * config.in, configure: Rebuild.
13096 * configure.ac: Check for sys/sdt.h.
13097
13098 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13099
13100 * config/i386/i386.md (ROUND_FLOOR): New constant.
13101 (ROUND_CEIL): Ditto.
13102 (ROUND_TRUNC): Ditto.
13103 (ROUND_MXCSR): Ditto.
13104 (ROUND_NO_EXC): Ditto.
13105 (rint<mode>2): Use new defines instead of numerical constants.
13106 (floor<mode>2): Ditto.
13107 (ceil<mode>2): Ditto.
13108 (btrunc<mode>2): Ditto.
13109 * config/i386/i386-builtin-types.def: Define ROUND function type
13110 aliases.
13111 * config/i386/i386.c (enum ix86_builtins): Add
13112 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13113 (struct builtin_description): Add
13114 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13115 (ix86_expand_sse_round): New static function.
13116 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13117 function types.
13118 (ix86_builtin_vectorized_function): Handle
13119 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13120
13121 2011-03-14 Tom Tromey <tromey@redhat.com>
13122
13123 * c-parser.c (c_parser_asm_string_literal): Clear
13124 warn_overlength_strings.
13125
13126 2011-03-14 Tom Tromey <tromey@redhat.com>
13127
13128 * c-parser.c (disable_extension_diagnostics): Save
13129 warn_overlength_strings.
13130 (restore_extension_diagnostics): Restore warn_overlength_strings.
13131
13132 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13133
13134 * BASE-VER: Change to 4.7.0.
13135
13136 2011-03-14 Richard Guenther <rguenther@suse.de>
13137
13138 PR middle-end/48098
13139 * tree.c (build_vector_from_val): Adjust assert to requirements
13140 and reality.
13141
13142 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13143
13144 PR bootstrap/48102
13145 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13146
13147 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13148
13149 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13150 terms of target_flags_explicit. Adjust copyright year.
13151
13152 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13153 * config/rs6000/t-freebsd: New file. Add override for
13154 LIB2FUNCS_EXTRA.
13155
13156 2011-03-13 Chris Demetriou <cgd@google.com>
13157
13158 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13159 (-fno-diagnostics-show-option): this, to reflect current default.
13160 (-Werror=): Update text about -fno-diagnostics-show-option.
13161
13162 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13163
13164 PR target/48053
13165 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13166 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13167 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13168 mode is not V2DImode or V2DFmode.
13169 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13170 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13171 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13172 registers to 0.
13173 (movdi_internal64): Likewise.
13174
13175 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13176
13177 PR tree-optimization/47127
13178 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13179 parameter.
13180 (set_cloog_options): Same.
13181 (scop_to_clast): Same.
13182 (print_clast_stmt): Do not call cloog_state_malloc and
13183 cloog_state_free.
13184 (print_generated_program): Same.
13185 (gloog): Same.
13186 * graphite-clast-to-gimple.h (cloog_state): Declared.
13187 (scop_to_clast): Adjust declaration.
13188 * graphite.c (cloog_state): Defined here.
13189 (graphite_initialize): Call cloog_state_malloc.
13190 (graphite_finalize): Call cloog_state_free.
13191
13192 2011-03-11 Jason Merrill <jason@redhat.com>
13193
13194 * attribs.c (lookup_attribute_spec): Take const_tree.
13195 * tree.h: Adjust.
13196
13197 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13198
13199 * config/sparc/sparc.c (sparc_option_override): Use
13200 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13201
13202 2011-03-11 Richard Guenther <rguenther@suse.de>
13203
13204 PR tree-optimization/48067
13205 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13206 multiplication result will be only used once on the target
13207 stmt.
13208
13209 2011-03-11 Richard Guenther <rguenther@suse.de>
13210
13211 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13212
13213 2011-03-11 Richard Guenther <rguenther@suse.de>
13214
13215 PR lto/48073
13216 * tree.c (find_decls_types_r): Do not walk types only reachable
13217 from IDENTIFIER_NODEs.
13218
13219 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13220
13221 PR middle-end/48044
13222 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13223 all vnode->force_output nodes as needed.
13224
13225 2011-03-11 Jason Merrill <jason@redhat.com>
13226
13227 PR c++/48069
13228 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13229 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13230
13231 2011-03-11 Martin Jambor <mjambor@suse.cz>
13232
13233 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13234 cgraph_node.
13235
13236 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13237
13238 PR tree-optimization/48063
13239 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13240 inline functions called once if !tree_can_inline_p (node->callers).
13241
13242 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13243
13244 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13245 extra_objs.
13246 * config/score/score3.c: Delete.
13247 * config/score/score3.h: Delete.
13248 * config/score/mul-div.S: Delete.
13249 * config/score/sfp-machine.h: Add new file.
13250 * config/score/constraints.md: Add new file.
13251 * config/score/t-score-softfp: Add new file.
13252 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13253 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13254 (score7_extra_constraint): Delete.
13255 (score7_option_override): Remove unused code.
13256 * config/score/score.c: Remove score3 and score5 define and code.
13257 * config/score/score.h: Remove score3 and score5 define and code.
13258 * config/score/score.md: Remove score3 template and unusual insn.
13259 * config/score/score.opt: Remove score3 and score5 options.
13260
13261 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13262
13263 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13264 when _HPUX_SOURCE is defined.
13265 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13266
13267 2011-03-10 Jason Merrill <jason@redhat.com>
13268
13269 PR c++/48029
13270 * stor-layout.c (layout_type): Don't set structural equality
13271 on arrays of incomplete type.
13272 * tree.c (type_hash_eq): Handle comparing them properly.
13273
13274 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13275
13276 PR debug/48043
13277 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13278 result mode matches original rtl mode.
13279
13280 2011-03-10 Nick Clifton <nickc@redhat.com>
13281
13282 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13283 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13284
13285 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13286
13287 PR rtl-optimization/47866
13288 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13289 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13290 if target wasn't scalar.
13291 * function.c (assign_stack_temp_for_type): Assert that neither
13292 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13293 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13294 macro.
13295 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13296
13297 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13298
13299 * config/s390/s390-protos.h (s390_label_align): New prototype.
13300 * config/s390/s390.c (s390_label_align): New function.
13301 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13302
13303 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13304
13305 PR target/47755
13306 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13307 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13308 (output_vec_const_move): Ditto.
13309
13310 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13311
13312 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13313 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13314 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13315 Change 'rclass' argument and result type to reg_class_t.
13316 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13317
13318 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13319
13320 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13321 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13322 (TARGET_MEMORY_MOVE_COST): Define.
13323 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13324
13325 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13326
13327 PR debug/47881
13328 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13329 removed anything.
13330
13331 PR tree-optimization/48022
13332 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13333 for EQ/NE_EXPR.
13334
13335 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13336
13337 PR debug/47991
13338 * var-tracking.c (find_use_val): Return NULL for
13339 cui->sets && cui->store_p BLKmode MEMs.
13340
13341 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13342
13343 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13344 Remove.
13345 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13346 xstormy16_print_operand_address): Remove.
13347 * config/stormy16/stormy16.c (xstormy16_print_operand,
13348 xstormy16_print_operand_address): Make static.
13349 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13350
13351 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13352
13353 PR target/47862
13354 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13355 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13356 before definition.
13357
13358 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13359
13360 PR bootstrap/48000
13361 * cfgloopmanip.c (fix_bb_placements): Return immediately
13362 if FROM is BASE_LOOP's header.
13363
13364 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13365
13366 * gimplify.c (gimplify_function_tree): Fix building calls
13367 to __builtin_return_address.
13368
13369 2011-03-07 Alan Modra <amodra@gmail.com>
13370
13371 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13372 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13373 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13374 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13375 return_mode args.
13376 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13377 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13378 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13379 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13380 * config/rs6000/rs6000.c
13381 (rs6000_elf_end_indicate_exec_stack): Rename to..
13382 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13383 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13384 (rs6000_file_start): ..here.
13385 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13386 file scope variables.
13387 (call_ABI_of_interest): New function.
13388 (init_cumulative_args): Set above vars when function return value
13389 is a float, vector, or small struct.
13390 (rs6000_function_arg_advance_1): Likewise for function args.
13391 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13392 references float args.
13393
13394 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13395
13396 * doc/cfg.texi: Remove "See" before @ref.
13397 * doc/invoke.texi: Likewise.
13398
13399 2011-03-05 Jason Merrill <jason@redhat.com>
13400
13401 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13402
13403 2011-03-05 Anthony Green <green@moxielogic.com>
13404
13405 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13406
13407 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13408
13409 PR rtl-optimization/47899
13410 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13411 to flow_loop_nested_p when moving the loop upward.
13412
13413 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13414
13415 PR target/47719
13416 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13417
13418 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR tree-optimization/47967
13421 * ipa-cp.c (build_const_val): Return NULL instead of creating
13422 VIEW_CONVERT_EXPR for mismatching sizes.
13423 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13424 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13425 give up on versioning.
13426
13427 2011-03-05 Alan Modra <amodra@gmail.com>
13428
13429 PR target/47986
13430 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13431 full cmodel medium/large lo_sum + high addresses.
13432
13433 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13434
13435 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13436 pool references in UNSPEC_LTREL_OFFSET.
13437
13438 2011-03-04 Jan Hubicka <jh@suse.cz>
13439
13440 PR lto/47497
13441 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13442 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13443 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13444 Add node pointers.
13445 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13446 cgraph_add_thunk): Add node pointers.
13447 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13448 associated to right node.
13449 (input_node): Update use of cgraph_same_body_alias
13450 and cgraph_add_thunk.
13451
13452 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13453
13454 * config/i386/i386.opt (mprefer-avx128): New flag.
13455 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13456 modes when the flag -mprefer-avx128 is on.
13457
13458 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13459
13460 * dwarf2out.c (compare_loc_operands): Fix address handling.
13461
13462 2011-03-04 Alan Modra <amodra@gmail.com>
13463
13464 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13465
13466 2011-03-04 Richard Guenther <rguenther@suse.de>
13467
13468 PR middle-end/47968
13469 * expmed.c (extract_bit_field_1): Prefer vector modes that
13470 vec_extract patterns can handle.
13471
13472 2011-03-04 Richard Guenther <rguenther@suse.de>
13473
13474 PR middle-end/47975
13475 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13476
13477 2011-03-04 Richard Henderson <rth@redhat.com>
13478
13479 * explow.c (emit_stack_save): Remove 'after' parameter.
13480 (emit_stack_restore): Likewise.
13481 * expr.h: Update to match.
13482 * builtins.c, calls.c, stmt.c: Likewise.
13483 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13484 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13485 * function.c (expand_function_end): Insert the emit_stack_save
13486 sequence before parm_birth_insn instead of after.
13487
13488 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13489
13490 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13491 (ssse3_pmaddubsw128): Ditto.
13492 (ssse3_pmaddubsw): Ditto.
13493
13494 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13495
13496 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13497
13498 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13499
13500 PR c/47963
13501 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13502 on TYPE_SIZE_UNIT if it is a DECL.
13503
13504 PR debug/47283
13505 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13506 first operand is not is_gimple_mem_ref_addr, try to fold it.
13507 If the operand still isn't is_gimple_mem_ref_addr, clear
13508 MEM_EXPR on op0.
13509
13510 2011-03-03 Richard Guenther <rguenther@suse.de>
13511
13512 PR middle-end/47283
13513 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13514 match comment.
13515 (refs_may_alias_p_1): For release branches return true if
13516 we are confused by our input.
13517
13518 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13519
13520 * config/s390/s390.c (s390_function_value): Rename to ...
13521 (s390_function_and_libcall_value): ... this.
13522 (s390_function_value): New function.
13523 (s390_libcall_value): New function.
13524 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13525 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13526 target macro definitions.
13527 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13528
13529 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13530
13531 * config/i386/freebsd64.h (CC1_SPEC): Define.
13532 * config/i386/linux64.h (CC1_SPEC): Define.
13533 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13534
13535 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13536
13537 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13538 Remove.
13539 * config/stormy16/stormy16.c: Include reload.h.
13540 (xstormy16_memory_move_cost): New function.
13541 (TARGET_MEMORY_MOVE_COST): Define.
13542
13543 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13544
13545 PR rtl-optimization/47925
13546 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13547 with side effects. Remove the more-specific check for volatile asms.
13548
13549 2011-03-02 Alan Modra <amodra@gmail.com>
13550
13551 PR target/47935
13552 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13553 toc relative addresses for valid offsets.
13554
13555 2011-03-01 Richard Guenther <rguenther@suse.de>
13556
13557 PR tree-optimization/47890
13558 * tree-vect-loop.c (get_initial_def_for_induction): Set
13559 related stmt properly.
13560
13561 2011-03-01 Richard Guenther <rguenther@suse.de>
13562
13563 PR lto/47924
13564 * lto-streamer.c (lto_record_common_node): Also register
13565 the canonical type.
13566
13567 2011-03-01 Richard Guenther <rguenther@suse.de>
13568
13569 PR lto/46911
13570 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13571 Do not stream DECL_ABSTRACT_ORIGIN.
13572 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13573 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13574 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13575 Do not stream DECL_ABSTRACT_ORIGIN.
13576 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13577 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13578
13579 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13580
13581 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13582 FUNCTION_VALUE_REGNO_P): Remove.
13583 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13584 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13585 Add 'outgoing' argument.
13586 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13587 function.
13588 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13589 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13590
13591 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13592
13593 PR debug/28047
13594 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13595 (lookup_filename): Likewise.
13596 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13597
13598 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13599 Jakub Jelinek <jakub@redhat.com>
13600
13601 PR middle-end/47893
13602 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13603 (assign_stack_local_1): Change last argument type to int.
13604 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13605 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13606 don't record padding space into frame_space_list nor use those areas.
13607 (assign_stack_local): Adjust caller.
13608 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13609 of assign_stack_local, pass 0 as last argument.
13610 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13611 callers.
13612
13613 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13614
13615 PR debug/47283
13616 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13617 Use target address_mode and pointer_mode hooks instead of hardcoded
13618 Pmode and ptr_mode. Handle some simple cases of extending if
13619 POINTERS_EXTEND_UNSIGNED < 0.
13620 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13621 Call convert_debug_memory_address.
13622 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13623 convert_debug_memory_address.
13624
13625 PR middle-end/46790
13626 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13627 * configure: Regenerated.
13628 * config.in: Regenerated.
13629 * varasm.c (default_function_section): Return NULL
13630 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13631
13632 2011-02-28 Martin Jambor <mjambor@suse.cz>
13633
13634 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13635 the description to match the printed values.
13636
13637 2011-02-28 Richard Guenther <rguenther@suse.de>
13638
13639 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13640 of the copied scope tree.
13641
13642 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13643
13644 * doc/extend.texi (Function Attributes): Avoid deeply (and
13645 wrongly) nested tables.
13646
13647 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13648
13649 PR middle-end/47903
13650 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13651 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13652 r isn't op0 nor op1.
13653
13654 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13655
13656 * config/avr/avr.md: Remove magic comment for emacs.
13657
13658 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13659
13660 PR target/45261
13661 * config/avr/avr.c (avr_option_override): Use error on bad options.
13662 (avr_help): New function.
13663 (TARGET_HELP): Define.
13664
13665 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13666
13667 PR target/42240
13668 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13669 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13670
13671 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13672
13673 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13674 (ARM Options): Ditto.
13675 (i386 and x86-64 Options): Ditto.
13676 (RX Options): Ditto.
13677 (SPARC Options): Ditto.
13678
13679 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13680
13681 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13682 FreeBSD 6 and later. Generally use cpu generic.
13683
13684 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13685
13686 * doc/cpp.texi: Update copyright years.
13687
13688 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13689
13690 PR target/46898
13691 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13692
13693 2011-02-25 Jon Beniston <jon@beniston.com>
13694
13695 PR target/46898
13696 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13697 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13698 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13699 (lm32_block_move_inline): Add type cast to remove warning.
13700 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13701 (gen_int_relational): Move declarations to start of function.
13702
13703 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13704
13705 PR tree-optimization/45470
13706 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13707 can throw internally only.
13708 * tree-vect-stmts.c (vectorizable_call): Likewise.
13709
13710 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13711
13712 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13713 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13714 * config/stormy16/stormy16-protos.h
13715 (xstormy16_preferred_reload_class): Remove.
13716 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13717 static. Change 'rclass' argument and return type to reg_class_t.
13718 (TARGET_PREFERRED_RELOAD_CLASS,
13719 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13720
13721 2011-02-24 Richard Guenther <rguenther@suse.de>
13722
13723 * lto-streamer-in.c (input_bb): Do not find referenced vars
13724 in debug statements.
13725
13726 2011-02-23 Jason Merrill <jason@redhat.com>
13727
13728 * common.opt (fabi-version): Document v5 and v6.
13729
13730 2011-02-23 Richard Guenther <rguenther@suse.de>
13731
13732 PR tree-optimization/47849
13733 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13734
13735 2011-02-23 Jie Zhang <jie@codesourcery.com>
13736
13737 * opts-common.c (decode_cmdline_option): Print empty string
13738 argument as "" in decoded->orig_option_with_args_text.
13739 * gcc.c (execute): Print empty string argument as ""
13740 in the verbose output.
13741 (do_spec_1): Keep empty string argument.
13742
13743 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13744
13745 * config.gcc: Declare score-* and crx-* obsolete.
13746
13747 2011-02-23 Jie Zhang <jie@codesourcery.com>
13748
13749 PR rtl-optimization/47763
13750 * web.c (web_main): Ignore naked clobber when replacing register.
13751
13752 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13753
13754 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13755 Remove.
13756
13757 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13758
13759 PR doc/47848
13760 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13761
13762 2011-02-22 Mike Stump <mikestump@comcast.net>
13763
13764 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13765 assembler.
13766 * configure: Regenerate.
13767
13768 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13769
13770 PR rtl-optimization/46002
13771 * ira-color.c (update_copy_costs): Change class intersection
13772 test to reg_class_contents[] test of 'hard_regno'.
13773
13774 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13775
13776 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13777 than Driver option.
13778 * config/hpux11.opt (mt): Likewise.
13779 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13780 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13781 * config/vax/elf.opt (mno-asm-pic): Likewise.
13782 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13783
13784 2011-02-21 Mike Stump <mikestump@comcast.net>
13785
13786 PR target/47822
13787 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13788 tree so we can get save the type.
13789 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13790 for CFString instead of trying to use past the end of the builtins.
13791 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13792 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13793 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13794 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13795 Rename to darwin_builtin_cfstring.
13796 (darwin_init_cfstring_builtins): Return the built type.
13797
13798 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13799
13800 PR target/47840
13801 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13802 (_mm256_insert_epi64): Use _mm_insert_epi64.
13803
13804 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13805
13806 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13807 * config/stormy16/stormy16-protos.h
13808 (xstormy16_mode_dependent_address_p): Remove.
13809 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13810 Make static. Change return type to bool. Change argument type to
13811 const_rtx. Remove dead code.
13812 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13813
13814 2011-02-21 Richard Guenther <rguenther@suse.de>
13815
13816 PR lto/47820
13817 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13818 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13819 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13820 TUs context.
13821 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13822 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13823
13824 2011-02-20 Richard Guenther <rguenther@suse.de>
13825
13826 PR lto/47822
13827 * tree.c (free_lang_data_in_decl): Clean builtins from
13828 the TU decl BLOCK_VARS.
13829
13830 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13831
13832 PR debug/47620
13833 PR debug/47630
13834 * haifa-sched.c (fix_tick_ready): Skip tick computation
13835 for debug insns.
13836
13837 2011-02-19 Richard Guenther <rguenther@suse.de>
13838
13839 PR lto/47647
13840 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13841 Remove lazy BLOCK_VARS streaming.
13842 (lto_input_ts_block_tree_pointers): Likewise.
13843 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13844
13845 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13846
13847 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13848
13849 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13850
13851 * config/i386/biarch32.h, config/i386/mach.h,
13852 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13853
13854 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13855
13856 PR target/47800
13857 * config/i386/i386.md (peephole2 for shift and plus): Use
13858 operands[1] original mode in the first insn.
13859
13860 2011-02-18 Mike Stump <mikestump@comcast.net>
13861
13862 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13863
13864 2011-02-18 Jan Hubicka <jh@suse.cz>
13865
13866 PR middle-end/47788
13867 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13868 to zero when the function is not inlinable at all.
13869
13870 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13871
13872 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13873 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13874 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13875 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13876 * config/pa/t-pa64: Likewise.
13877 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13878
13879 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13880
13881 PR driver/47787
13882 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13883
13884 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13885
13886 PR target/47792
13887 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13888
13889 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13890
13891 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13892 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13893 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13894 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13895 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13896 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13897 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13898 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13899 m32r_legitimate_address_p): New functions.
13900 * config/m32r/constraints.md (constraint "S"): Don't use
13901 STORE_PREINC_PREDEC_P.
13902 (constraint "U"): Don't use LOAD_POSTINC_P.
13903
13904 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13905
13906 PR rtl-optimization/46178
13907 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13908 compute ira_hard_regno_cover_class[].
13909
13910 2011-02-18 Richard Guenther <rguenther@suse.de>
13911
13912 PR lto/47798
13913 * lto-streamer.h (lto_global_var_decls): Declare.
13914 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13915 statics for global var processing.
13916
13917 2011-02-18 Richard Guenther <rguenther@suse.de>
13918
13919 PR tree-optimization/47737
13920 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13921 edge dominance check.
13922
13923 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13924
13925 PR debug/47780
13926 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13927 avoid invalid rtx sharing.
13928
13929 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13930
13931 * doc/cpp.texi (Obsolete Features): Add background on the
13932 origin of assertions.
13933
13934 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13935
13936 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13937 objc_abi == 2.
13938 * config/darwin.c (output_objc_section_asm_op): Added support for
13939 ABI v1 and v2.
13940 (is_objc_metadata): New.
13941 (darwin_objc2_section): New.
13942 (darwin_objc1_section): New.
13943 (machopic_select_section): Added support for ABI v1 and v2.
13944 (darwin_emit_objc_zeroed): New.
13945 (darwin_output_aligned_bss): Detect objc metadata and treat it
13946 appropriately.
13947 (darwin_asm_output_aligned_decl_common): Same.
13948 (darwin_asm_output_aligned_decl_local): Same.
13949 * config/darwin-sections.def: Updated for ABI v1 and v2.
13950 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13951 compiling Objective-C code for the NeXT runtime, default to using
13952 ABI version 0 for 32-bit, and version 2 for 64-bit.
13953
13954 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13955
13956 * common.opt (optimize_fast): New Variable.
13957 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13958 instead of local variable ofast.
13959
13960 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13961
13962 * doc/invoke.texi (fobjc-abi-version): Documented.
13963 (fobjc-nilcheck): Documented.
13964 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13965 version.
13966
13967 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13968
13969 PR driver/47390
13970 * common.opt (export-dynamic): New Driver option.
13971 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13972
13973 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13974
13975 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13976
13977 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13978 Jan Hubicka <jh@suse.cz>
13979
13980 PR debug/47106
13981 PR debug/47402
13982 * cfgexpand.c (account_used_vars_for_block): Remove.
13983 (estimated_stack_frame_size): Use referenced vars.
13984 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13985 that were referenced in the original function. Test src_fn
13986 rather than cfun. Drop redundant get_var_ann.
13987 (setup_one_parameter): Drop redundant get_var_ann.
13988 (declare_return_variable): Likewise.
13989 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13990 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13991 * ipa-inline.c (compute_inline_parameters): Do not compute
13992 disregard_inline_limits here.
13993 (compute_inlinable_for_current, pass_inlinable): New.
13994 (pass_inline_parameters): Require PROP_referenced_vars.
13995 * cgraphunit.c (cgraph_process_new_functions): Don't run
13996 compute_inline_parameters explicitly unless function is in SSA form.
13997 (cgraph_analyze_function): Set .disregard_inline_limits.
13998 * tree-sra.c (convert_callers): Compute inliner parameters
13999 only for functions already in SSA form.
14000
14001 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14002
14003 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14004 -mlittle-endian-data.
14005
14006 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14007
14008 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14009 -mno-fpu, not -fpu and -no-fpu.
14010 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14011 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14012
14013 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14014
14015 PR target/43653
14016 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14017 input reload with PLUS RTX.
14018
14019 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14020
14021 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14022 of InverseVar(MDMX).
14023
14024 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14025
14026 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14027 --m4-340.
14028
14029 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14030
14031 * config/mn10300/mn10300.opt (mno-crt0): New.
14032
14033 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14034
14035 * config/m68k/uclinux.opt (static-libc): New Driver option.
14036
14037 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14038
14039 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14040
14041 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14042
14043 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14044 %{muser-extend-enabled}.
14045
14046 2011-02-16 Richard Guenther <rguenther@suse.de>
14047
14048 PR tree-optimization/47738
14049 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14050 the TODO from tree_predictive_commoning.
14051
14052 2011-02-15 Jeff Law <law@redhat.com>
14053
14054 Revert
14055 2011-01-25 Jeff Law <law@redhat.com>
14056
14057 PR rtl-optimization/37273
14058 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14059 handle them like argument loads from stack slots. Do not double
14060 count memory for memory constants and argument loads from stack slots.
14061
14062 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14063
14064 PR middle-end/47725
14065 * combine.c (cant_combine_insn_p): Revert the last change.
14066
14067 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14068
14069 PR target/47755
14070 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14071 mode for vector constants. Remove code that checks for TImode.
14072
14073 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14074
14075 PR debug/47106
14076 PR debug/47402
14077 * cgraph.h (compute_inline_parameters): Return void.
14078 * ipa-inline.c (compute_inline_parameters): Adjust.
14079
14080 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14081
14082 PR debug/47106
14083 PR debug/47402
14084 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14085 rather than decl.
14086 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14087 * ipa-inline.c (compute_inline_parameters): Adjust.
14088
14089 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14090
14091 PR debug/47106
14092 PR debug/47402
14093 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14094 Adjust all users. Pass FN to...
14095 * tree-flow-inline.h (first_referenced_var): ... this. Add
14096 fn argument.
14097 * ipa-struct-reorg.c: Adjust.
14098 * tree-dfa.c: Adjust.
14099 * tree-into-ssa.c: Adjust.
14100 * tree-sra.c: Adjust.
14101 * tree-ssa-alias.c: Adjust.
14102 * tree-ssa-live.c: Adjust.
14103 * tree-ssa.c: Adjust.
14104 * tree-ssanames.c: Adjust.
14105 * tree-tailcall.c: Adjust.
14106
14107 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14108
14109 PR debug/47106
14110 PR debug/47402
14111 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14112 Adjust all callers.
14113 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14114 * tree-flow-inline.h: Adjust.
14115 * gimple-pretty-print.c: Adjust.
14116 * tree-into-ssa.c: Adjust.
14117 * tree-ssa.c: Adjust.
14118 * cfgexpand.c: Adjust.
14119
14120 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14121
14122 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14123 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14124 (EXTRA_CONSTRAINT): Delete.
14125 * config/iq2000/constraints.md: New file.
14126 * config/iq2000/iq2000.md: Include it.
14127 (define_insn ""): Delete.
14128 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14129 unsupported constraint letters from patterns.
14130 (call_value, call_value_internal1): Likewise.
14131 (call_value_multiple_internal1): Likewise.
14132
14133 2011-02-15 Nick Clifton <nickc@redhat.com>
14134
14135 * config/mn10300/mn10300.c: Include tm-constrs.h.
14136 (struct liw_data): New data structure describing an LIW candidate
14137 instruction.
14138 (extract_bundle): Use struct liw_data. Allow small integer
14139 operands for some instructions.
14140 (check_liw_constraints): Use struct liw_data. Remove swapped
14141 parameter. Add comments describing the checks. Fix bug when
14142 assigning the source of liw1 to the source of liw2.
14143 (liw_candidate): Delete. Code moved into extract_bundle.
14144 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14145 before swapping.
14146 * config/mn10300/predicates.md (liw_operand): New predicate.
14147 Allows registers and small integer constants.
14148 * config/mn10300/constraints.md (O): New constraint. Accetps
14149 integers in the range -8 to +7 inclusive.
14150 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14151 for moving a small integer into a register. Give this alternative
14152 LIW attributes.
14153 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14154 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14155 using the J,K,L and M constraints,
14156 (liw): Remove SI mode on second operands to allow for HI and QI
14157 mode values.
14158 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14159 instruction.
14160
14161 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14162
14163 PR middle-end/47725
14164 * combine.c (cant_combine_insn_p): Check zero/sign extended
14165 hard registers.
14166
14167 2011-02-15 Richard Guenther <rguenther@suse.de>
14168
14169 PR tree-optimization/47743
14170 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14171 for a non-type-compatible VN lookup bail out.
14172
14173 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14174
14175 * config/fr30/constraints.md: New file.
14176 * config/fr30/fr30.md: Include it.
14177 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14178 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14179 (EXTRA_CONSTRAINT): Delete.
14180
14181 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14182
14183 * config/frv/constraints.md: New file.
14184 * config/frv/predicates.md: Include it.
14185 * config/frv/frv.c (reg_class_from_letter): Delete.
14186 (frv_option_override): Don't initialize it.
14187 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14188 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14189 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14190 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14191 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14192 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14193 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14194 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14195 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14196 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14197 (REG_CLASS_FROM_CONSTRAINT): Delete.
14198
14199 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14200
14201 PR middle-end/47581
14202 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14203 if frame size is 0 in a leaf function.
14204
14205 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14206
14207 PR pch/14940
14208 * config/alpha/host-osf.c: New file.
14209 * config/alpha/x-osf: New file.
14210 * config.host (alpha*-dec-osf*): Use it.
14211
14212 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14213
14214 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14215 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14216 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14217 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14218 type to const_rtx.
14219 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14220
14221 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14222
14223 * config/stormy16/constraints.md: New file.
14224 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14225 Use satisfies_constraint_Q and satisfies_constraint_R.
14226 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14227 Delete.
14228 (xstormy16_legitiamte_address_p): Declare.
14229 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14230 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14231 (EXTRA_CONSTRAINT): Delete.
14232 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14233 Un-staticize.
14234 (xstormy16_extra_constraint_p): Delete.
14235
14236 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14237
14238 PR tree-optimization/46494
14239 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14240 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14241 (pass_rtl_loop_done): Add TODO_verify_flow.
14242 * fwprop.c (pass_rtl_fwprop): Likewise.
14243 * modulo-sched.c (pass_sms): Likewise.
14244 * tree-ssa-dom.c (pass_dominator): Likewise.
14245 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14246 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14247 (pass_tree_loop_done): Likewise.
14248 * tree-ssa-pre.c (execute_pre): Likewise.
14249 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14250 * tree-ssa-sink.c (pass_sink_code): Likewise.
14251 * tree-vrp.c (pass_vrp): Likewise.
14252
14253 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14254
14255 * config/v850/constraints.md: New file.
14256 * config/v850/v850.md: Include it.
14257 * config/v850/predicates.md (reg_or_0_operand): Use
14258 satisfies_constraint_G.
14259 (special_symbolref_operand): Use satisfies_constraint_K.
14260 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14261 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14262 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14263 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14264 (EXTRA_CONSTRAINT): Delete.
14265 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14266 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14267 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14268
14269 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14270
14271 PR target/47696
14272 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14273 description.
14274
14275 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14276
14277 * config/mcore/constraints.md: New file.
14278 * config/mcore/mcore.md: Include it.
14279 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14280 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14281 (REG_CLASS_FROM_LETTER): Delete.
14282 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14283 insn_const_int_ok_for_constraint.
14284 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14285 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14286 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14287 (EXTRA_CONSTRAINT): Delete.
14288
14289 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14290
14291 PR ada/41929
14292 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14293 (IS_SIGHANDLER): Define.
14294 (sparc64_is_sighandler): New function, split off from
14295 sparc64_fallback_frame_state.
14296 (sparc_is_sighandler): New function, split off from
14297 sparc_fallback_frame_state.
14298 (sparc64_fallback_frame_state): Merge with ...
14299 (sparc_fallback_frame_state): ... this into ...
14300 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14301 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14302 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14303 stack instead of hardcoded offsets.
14304
14305 2011-02-14 Andriy Gapon <avg@freebsd.org>
14306
14307 PR target/45808
14308 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14309
14310 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14311
14312 * configure: Regenerate.
14313
14314 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14315
14316 PR driver/45731
14317 * gcc.c (asm_options): Correct spec matching --target-help.
14318
14319 2011-02-12 Martin Jambor <mjambor@suse.cz>
14320
14321 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14322 to gimple call error.
14323
14324 2011-02-12 Mike Stump <mikestump@comcast.net>
14325
14326 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14327 comments in backslash regions.
14328
14329 2011-02-12 Mike Stump <mikestump@comcast.net>
14330 Jakub Jelinek <jakub@redhat.com>
14331 Iain Sandoe <iains@gcc.gnu.org>
14332
14333 PR target/47324
14334 * dwarf2out.c (output_cfa_loc): When required, apply the
14335 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14336 (output_loc_sequence): Likewise.
14337 (output_loc_operands_raw): Likewise.
14338 (output_loc_sequence_raw): Likewise.
14339 (output_cfa_loc): Likewise.
14340 (output_loc_list): Suppress register number adjustment when
14341 calling output_loc_sequence()
14342 (output_die): Likewise.
14343
14344 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14345
14346 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14347 Remove macros.
14348 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14349 xtensa_memory_move_cost): New functions.
14350 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14351
14352 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14353
14354 PR lto/47225
14355 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14356 in the current directory.
14357 * configure: Rebuilt.
14358
14359 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14360
14361 * config/darwin.c (darwin_override_options): Add a hunk missed
14362 from the commit of r168571. Trim comment line lengths and
14363 correct indents of the preceding block.
14364
14365 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14366
14367 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14368 the switch.
14369
14370 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14371
14372 * common.opt (nostartfiles): New Driver option.
14373
14374 2011-02-11 Xinliang David Li <davidxl@google.com>
14375
14376 PR tree-optimization/47707
14377 * tree-chrec.c (convert_affine_scev): Keep type precision.
14378
14379 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14380
14381 PR tree-optimization/47420
14382 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14383
14384 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14385
14386 PR rtl-optimization/47614
14387 * rtl.h (check_for_inc_dec): Declare.
14388 * dse.c (check_for_inc_dec): Externalize...
14389 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14390 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14391
14392 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14393
14394 PR driver/47678
14395 * gcc.c (main): Do not compile inputs if there were errors in
14396 option handling.
14397 * opts-common.c (read_cmdline_option): Check for wrong language
14398 after other error checks.
14399
14400 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14401
14402 * cgraph.c: Fix comment typos.
14403 * cgraph.h: Likewise.
14404 * cgraphunit.c: Likewise.
14405 * ipa-cp.c: Likewise.
14406 * ipa-inline.c: Likewise.
14407 * ipa-prop.c: Likewise.
14408 * ipa-pure-const.c: Likewise.
14409 * ipa-ref.c: Likewise.
14410 * ipa-reference.c: Likewise.
14411
14412 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14413
14414 PR debug/47684
14415 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14416
14417 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14418
14419 PR testsuite/47400
14420 * doc/sourcebuild.texi (Require Support): Document
14421 dg-require-ascii-locale.
14422
14423 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14424
14425 * doc/lto.texi (Write summary): Fix missing parentheses.
14426
14427 2011-02-10 DJ Delorie <dj@redhat.com>
14428
14429 * config/m32c/m32c.c (m32c_option_override): Disable
14430 -fcombine-stack-adjustments until flag value tracking and compare
14431 optimization can be rewritten.
14432
14433 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14434
14435 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14436 PROCESSOR_POWER7.
14437 (PROCESSOR_DEFAULT64): Likewise.
14438
14439 2011-02-10 Richard Henderson <rth@redhat.com>
14440
14441 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14442 change from 2011-02-03.
14443 * config/rx/rx.c (flags_from_code): Likewise.
14444 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14445 is valid, n/pz otherwise.
14446 (rx_select_cc_mode): Return CCmode if Y is not zero.
14447
14448 2011-02-10 Richard Guenther <rguenther@suse.de>
14449
14450 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14451
14452 2011-02-10 Richard Guenther <rguenther@suse.de>
14453
14454 PR tree-optimization/47677
14455 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14456
14457 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14458
14459 PR target/47665
14460 * combine.c (make_compound_operation): Only change shifts into
14461 multiplication for SCALAR_INT_MODE_P.
14462
14463 2011-02-10 Jie Zhang <jie@codesourcery.com>
14464
14465 PR testsuite/47622
14466 Revert
14467 2011-02-05 Jie Zhang <jie@codesourcery.com>
14468 PR debug/42631
14469 * web.c (entry_register): Don't clobber the number of the
14470 first uninitialized reference in used[].
14471
14472 2011-02-09 Richard Guenther <rguenther@suse.de>
14473
14474 PR tree-optimization/47664
14475 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14476 all edges again.
14477
14478 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14479
14480 PR target/46481
14481 PR target/47032
14482 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14483 PROCESSOR_POWER7.
14484 (PROCESSOR_DEFAULT64): Same.
14485 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14486
14487 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14488
14489 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14490
14491 2011-02-09 Martin Jambor <mjambor@suse.cz>
14492
14493 PR middle-end/45505
14494 * tree-sra.c (struct access): New flags grp_scalar_read and
14495 grp_scalar_write. Changed description of assignment read and write
14496 flags.
14497 (dump_access): Dump new flags, reorder all of them.
14498 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14499 to detect multiple scalar reads.
14500 (analyze_access_subtree): Use the new scalar read write flags instead
14501 of the old flags. Adjusted comments.
14502
14503 2011-02-08 DJ Delorie <dj@redhat.com>
14504
14505 PR target/47548
14506 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14507 patterns.
14508
14509 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14510
14511 * config/m68k/uclinux.opt: New.
14512 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14513
14514 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14515
14516 * config/cris/elf.opt (sim): New Driver option.
14517
14518 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14519
14520 * config/xtensa/elf.opt: New.
14521 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14522
14523 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14524
14525 * config/vax/elf.opt: New.
14526 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14527
14528 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14529
14530 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14531
14532 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14533
14534 * config/gnu-user.opt: New.
14535 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14536 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14537 *-*-uclinux*): Use gnu-user.opt.
14538
14539 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14540
14541 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14542 * config/i386/gnu.h (CPP_SPEC): Likewise.
14543
14544 2011-02-08 Ian Lance Taylor <iant@google.com>
14545
14546 * common.opt (fcx-limited-range): Add SetByCombined flag.
14547 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14548 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14549 (fassociative-math, freciprocal-math): Likewise.
14550 (funsafe-math-optimizations): Likewise.
14551 * opth-gen.awk: Handle SetByCombined.
14552 * optc-gen.awk: Likewise.
14553 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14554 (set_unsafe_math_optimizations_flags): Likewise.
14555 * doc/options.texi (Option properties): Document SetByCombined.
14556
14557 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14558
14559 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14560 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14561 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14562 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14563 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14564
14565 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14566
14567 PR tree-optimization/46834
14568 PR tree-optimization/46994
14569 PR tree-optimization/46995
14570 * graphite-sese-to-poly.c (used_outside_reduction): New.
14571 (detect_commutative_reduction): Call used_outside_reduction.
14572 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14573 translate_scalar_reduction_to_array only when at least one
14574 loop-phi/close-phi tuple has been detected.
14575
14576 2011-02-08 Richard Guenther <rguenther@suse.de>
14577
14578 PR middle-end/47639
14579 * tree-vect-generic.c (expand_vector_operations_1): Update
14580 stmts here ...
14581 (expand_vector_operations): ... not here. Cleanup EH info
14582 and the CFG if required.
14583
14584 2011-02-08 Richard Guenther <rguenther@suse.de>
14585
14586 PR tree-optimization/47641
14587 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14588 require type compatibility.
14589
14590 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14591
14592 * gimple-low.c (lower_function_body): Don't remove the location of
14593 the return statement here.
14594 (lower_gimple_return): Do it here instead but only if the return
14595 statement is actually used twice.
14596
14597 2011-02-08 Richard Guenther <rguenther@suse.de>
14598
14599 PR tree-optimization/47632
14600 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14601 unused up_to_stmt parameter, return whether cfg-cleanup is
14602 necessary, remove EH info properly.
14603 (forward_propagate_into_gimple_cond): Adjust caller.
14604 (forward_propagate_into_cond): Likewise.
14605 (forward_propagate_comparison): Likewise.
14606 (tree_ssa_forward_propagate_single_use_vars): Make
14607 forward_propagate_comparison case similar to the two others.
14608
14609 2011-02-08 Nick Clifton <nickc@redhat.com>
14610
14611 * config/mn10300/mn10300.opt (mliw): New command line option.
14612 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14613 (liw_bundling): New automaton.
14614 (liw): New attribute.
14615 (liw_op): New attribute.
14616 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14617 (movsi_internal): Add LIW attributes.
14618 (andsi3): Likewise.
14619 (iorsi3): Likewise.
14620 (xorsi3): Likewise.
14621 (addsi3): Separate register and immediate alternatives.
14622 Add LIW attributes.
14623 (subsi3): Likewise.
14624 (cmpsi): Likewise.
14625 (aslsi3): Likewise.
14626 (lshrsi3): Likewise.
14627 (ashrsi3): Likewise.
14628 (liw): New pattern.
14629 * config/mn10300/mn10300.c (liw_op_names): New
14630 (mn10300_print_operand): Handle 'W' operand descriptor.
14631 (extract_bundle): New function.
14632 (check_liw_constraints): New function.
14633 (liw_candidate): New function.
14634 (mn10300_bundle_liw): New function.
14635 (mn10300_reorg): New function.
14636 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14637 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14638 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14639 __LIW__ or __NO_LIW__.
14640 * doc/invoke.texi: Describe the -mliw command line option.
14641
14642 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14643
14644 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14645 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14646 pthread_mutex_unlock): Remove.
14647 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14648 * config/pa/t-pa64: Likewise.
14649 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14650 shared libc if not linking against libpthread.
14651 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14652
14653 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14654
14655 PR target/47558
14656 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14657 on 10.6 and later to ensure that we always use the unwinder from
14658 the system. Only add -no_compact_unwind when tarteting darwin
14659 10.6 or later.
14660
14661 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14662
14663 PR target/46997
14664 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14665 (vec_interleave_lowv2sf): Ditto.
14666 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14667 (vec_extract_oddv2sf): Ditto.
14668
14669 2011-02-07 Mike Stump <mikestump@comcast.net>
14670
14671 PR target/42333
14672 Add __ieee_divdc3 entry point.
14673 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14674 entry point.
14675 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14676 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14677 * config/darwin.c (darwin_rename_builtins): Add.
14678 * config/darwin-protos.h (darwin_rename_builtins): Add.
14679
14680 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14681
14682 PR target/47636
14683 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14684 for the condition.
14685
14686 2011-02-07 Mike Stump <mikestump@comcast.net>
14687
14688 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14689
14690 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14691
14692 PR target/47534
14693 * config/avr/libgcc.S (exit): Move .endfunc
14694
14695 2011-02-07 Richard Guenther <rguenther@suse.de>
14696
14697 PR tree-optimization/47615
14698 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14699 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14700 (run_scc_vn): Initialize it.
14701 (visit_reference_op_load): Use it.
14702 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14703
14704 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14705
14706 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14707 DImode trapping arithmetic libfuncs.
14708
14709 2011-02-07 Richard Guenther <rguenther@suse.de>
14710
14711 PR tree-optimization/47621
14712 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14713 two duplicates ...
14714 (execute_update_addresses_taken): ... here. Make it more
14715 conservative in what we accept.
14716
14717 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14718
14719 * config/sparc/freebsd.h (ASM_SPEC): Define.
14720 * config/sparc/vxworks.h (ASM_SPEC): Define.
14721
14722 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14723
14724 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14725
14726 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14727
14728 * doc/invoke.texi: Remove reference to compiler internals from
14729 user documentation.
14730
14731 * reg-notes.def: Remove REG_VALUE_PROFILE.
14732 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14733
14734 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14735
14736 PR middle-end/47610
14737 * varasm.c (default_section_type_flags): If decl is NULL,
14738 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14739
14740 2011-02-05 Jie Zhang <jie@codesourcery.com>
14741
14742 PR debug/42631
14743 * web.c (entry_register): Don't clobber the number of the
14744 first uninitialized reference in used[].
14745
14746 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14747
14748 PR tree-optimization/46194
14749 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14750 (build_classic_dist_vector_1): Do not represent classic distance
14751 vectors when the access functions are variating in different loops.
14752
14753 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14754
14755 * config/mips/iris6.opt: New.
14756 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14757
14758 2011-02-04 Richard Henderson <rth@redhat.com>
14759 Steve Ellcey <sje@cup.hp.com>
14760
14761 PR target/46997
14762 * config/ia64/predicates.md (mux1_brcst_element): New.
14763 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14764 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14765 (ia64_unpack_sign): New.
14766 (ia64_expand_unpack): Rewrite using new routines.
14767 (ia64_expand_widen_sum): Ditto.
14768 (ia64_expand_dot_prod_v8qi): Ditto.
14769 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14770 routines, add endian check.
14771 (pmpy2_even): Rename from pmpy2_r, add endian check.
14772 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14773 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14774 (vec_widen_smult_hi_v4hi): Ditto.
14775 (vec_widen_umult_lo_v4hi): Ditto.
14776 (vec_widen_umult_hi_v4hi): Ditto.
14777 (mulv2si3): Change endian checks.
14778 (sdot_prodv4hi): Rewrite with new calls.
14779 (udot_prodv4hi): New.
14780 (vec_pack_ssat_v4hi): Add endian check.
14781 (vec_pack_usat_v4hi): Ditto.
14782 (vec_pack_ssat_v2si): Ditto.
14783 (max1_even): Rename from max1_r, add endian check.
14784 (max1_odd): Rename from max1_l, add endian check.
14785 (*mux1_rev): Format change.
14786 (*mux1_mix): Ditto.
14787 (*mux1_shuf): Ditto.
14788 (*mux1_alt): Ditto.
14789 (*mux1_brcst_v8qi): Use new predicate.
14790 (vec_extract_evenv8qi): Remove endian check.
14791 (vec_extract_oddv8qi): Ditto.
14792 (vec_interleave_lowv4hi): Format change.
14793 (vec_interleave_highv4hi): Ditto.
14794 (mix2_even): Rename from mix2_r, add endian check.
14795 (mix2_odd): Rename from mux2_l, add endian check.
14796 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14797 (vec_extract_evenodd_helper): Format change.
14798 (vec_extract_evenv4hi): Remove endian check.
14799 (vec_extract_oddv4hi): Remove endian check.
14800 (vec_interleave_lowv2si): Format change.
14801 (vec_interleave_highv2si): Format change.
14802 (vec_initv2si): Remove endian check.
14803 (vecinit_v2si): Add endian check.
14804 (reduc_splus_v2sf): Add endian check.
14805 (reduc_smax_v2sf): Ditto.
14806 (reduc_smin_v2sf): Ditto.
14807 (vec_initv2sf): Remove endian check.
14808 (fpack): Add endian check.
14809 (fswap): Add endian check.
14810 (vec_interleave_highv2sf): Add endian check.
14811 (vec_interleave_lowv2sf): Add endian check.
14812 (fmix_lr): Add endian check.
14813 (vec_setv2sf): Format change.
14814 (*vec_extractv2sf_0_be): Use shift to extract operand.
14815 (*vec_extractv2sf_1_be): New.
14816 (vec_pack_trunc_v4hi): Add endian check.
14817 (vec_pack_trunc_v2si): Format change.
14818
14819 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR inline-asm/23200
14822 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14823 do bb, locus and block comparison and disallow loads if it is not set.
14824 (stmt_is_replaceable_p): New function.
14825 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14826 callers.
14827 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14828 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14829 SSA_NAME_DEF_STMT.
14830 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14831
14832 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14833
14834 * config/rs6000/xilinx.opt: New.
14835 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14836
14837 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14838
14839 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14840
14841 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14842
14843 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14844 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14845 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14846 secondary_reload_info, xtensa_secondary_reload): Remove.
14847 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14848 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14849 (xtensa_preferred_reload_class): Make static. Change return and
14850 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14851 Use CONST_DOUBLE_P predicate.
14852 (xtensa_preferred_output_reload_class): New function.
14853 (xtensa_secondary_reload): Make static.
14854
14855 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14856
14857 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14858 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14859 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14860
14861 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14862
14863 PR middle-end/31490
14864 * output.h (SECTION_RELRO): Define.
14865 (SECTION_MACH_DEP): Adjust.
14866 (get_variable_section): New prototype.
14867 * varpool.c (varpool_finalize_named_section_flags): New function.
14868 (varpool_assemble_pending_decls): Call it.
14869 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14870 * cgraphunit.c (cgraph_output_in_order): Call
14871 varpool_finalize_named_section_flags.
14872 * varasm.c (get_section): Allow section flags conflicts between
14873 relro and read-only sections if the section hasn't been declared yet.
14874 Set SECTION_OVERRIDE after diagnosing section type conflict.
14875 (get_variable_section): No longer static.
14876 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14877 readonly sections that need relocations.
14878 (decl_readonly_section_1): New function.
14879 (decl_readonly_section): Use it.
14880
14881 Revert:
14882 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14883 Steve Ellcey <sje@cup.hp.com>
14884
14885 PR middle-end/31490
14886 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14887 if section attribute used.
14888
14889 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14890
14891 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14892 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14893 (darwin_init_sections): Remove assertion.
14894
14895 2011-02-03 Nick Clifton <nickc@redhat.com>
14896
14897 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14898 lt and ge.
14899 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14900 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14901 instead of "n" and "pz".
14902 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14903 CC_FLAG_S.
14904
14905 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14906
14907 PR target/47312
14908 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14909 fma, expand FMA_EXPR as fma{,f,l} call.
14910
14911 PR lto/47274
14912 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14913 copy them into a unsigned char variable and pass address of it to
14914 lto_output_data_stream.
14915
14916 PR target/47564
14917 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14918 around backend_init_target and lang_dependent_init_target calls.
14919 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14920 (verify_cgraph_node): Don't call set_cfun here. Use
14921 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14922 Set error_found for incorrectly represented calls to thunks.
14923
14924 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14925
14926 PR debug/43092
14927 PR rtl-optimization/43494
14928 * rtl.h (for_each_inc_dec_fn): New type.
14929 (for_each_inc_dec): Declare.
14930 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14931 (for_each_inc_dec_find_inc_dec): New fn.
14932 (for_each_inc_dec_find_mem): New fn.
14933 (for_each_inc_dec): New fn.
14934 * dse.c (struct insn_size): Remove.
14935 (replace_inc_dec, replace_inc_dec_mem): Remove.
14936 (emit_inc_dec_insn_before): New fn.
14937 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14938 (canon_address): Pass mem modes to cselib_lookup.
14939 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14940 (cselib_lookup_from_insn): Likewise.
14941 (cselib_subst_to_values): Likewise.
14942 * cselib.c (find_slot_memmode): New var.
14943 (cselib_find_slot): New fn. Use it instead of
14944 htab_find_slot_with_hash everywhere.
14945 (entry_and_rtx_equal_p): Use find_slot_memmode.
14946 (autoinc_split): New fn.
14947 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14948 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14949 Deal with autoinc. Special-case recursion into MEMs.
14950 (cselib_hash_rtx): Likewise.
14951 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14952 address and MEM modes.
14953 (cselib_subst_to_values): Add memmode, pass it on.
14954 Deal with autoinc.
14955 (cselib_lookup): Add memmode argument, pass it on.
14956 (cselib_lookup_from_insn): Add memmode.
14957 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14958 (struct cselib_record_autoinc_data): New.
14959 (cselib_record_autoinc_cb): New fn.
14960 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14961 mode to cselib_lookup. Reset autoinced REGs here instead of...
14962 (cselib_process_insn): ... here.
14963 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14964 to cselib_lookup.
14965 (add_uses): Likewise, also to cselib_subst_to_values.
14966 (add_stores): Likewise.
14967 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14968 cselib_subst_to_values.
14969 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14970 * gcse.c (do_local_cprop): Adjusted.
14971 * postreload.c (reload_cse_simplify_set): Adjusted.
14972 (reload_cse_simplify_operands): Adjusted.
14973 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14974
14975 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14976
14977 PR tree-optimization/45122
14978 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14979 unsafe assumptions when there's more than one loop exit.
14980
14981 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14982
14983 PR target/47272
14984 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14985 Document using vector double with the load/store builtins, and
14986 that the load/store builtins always use Altivec instructions.
14987
14988 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14989 to use altivec memory instructions, even on VSX.
14990 (vector_altivec_store_<mode>): Ditto.
14991
14992 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14993 function.
14994
14995 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14996 V2DF, V2DI support to load/store overloaded builtins.
14997
14998 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14999 altivec load/store builtins for V2DF/V2DI types.
15000
15001 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15002 set avoid indexed addresses on power6 if -maltivec.
15003 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15004 vector_altivec_load/vector_altivec_store builtins.
15005 (altivec_expand_st_builtin): Ditto.
15006 (altivec_expand_builtin): Add VSX memory builtins.
15007 (rs6000_init_builtins): Add V2DI types to internal types.
15008 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15009 load/store builtins.
15010 (rs6000_address_for_altivec): Insure memory address is appropriate
15011 for Altivec.
15012
15013 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15014 vec_vsx_ld and vec_vsx_st.
15015 (vsx_store_<mode>): Ditto.
15016
15017 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15018 variables to hold long long types for VSX vector memory builtins.
15019 (RS6000_BTI_unsigned_long_long): Ditto.
15020 (long_long_integer_type_internal_node): Ditti.
15021 (long_long_unsigned_type_internal_node): Ditti.
15022
15023 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15024 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15025 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15026
15027 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15028 short cuts.
15029 (vec_vsx_st): Ditto.
15030
15031 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15032
15033 * config/pa/pa-hpux10.opt: New.
15034 * config/hpux11.opt (pthread): New Driver option.
15035 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15036 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15037
15038 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15039
15040 * config/ia64/vms.opt: New.
15041 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15042
15043 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15044
15045 PR target/47580
15046 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15047 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15048 generator functions.
15049 (vsx_floatuns<VSi><mode>2): Ditto.
15050 (vsx_fix_trunc<mode><VSi>2): Ditto.
15051 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15052
15053 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15054
15055 * config/i386/djgpp.opt (posix): New Driver option.
15056
15057 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15058
15059 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15060 Move to the unsupported targets list.
15061
15062 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15063
15064 PR rtl-optimization/47525
15065 * df-scan.c: Update copyright years.
15066 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15067 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15068
15069 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15070
15071 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15072 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15073 (ASM_OUTPUT_ASCII): Remove.
15074 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15075
15076 2011-02-02 Jeff Law <law@redhat.com>
15077
15078 PR middle-end/47543
15079 * reload.c (find_reloads_address): Handle reg+d address where both
15080 components are invalid by reloading the entire address.
15081
15082 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15083 Richard Guenther <rguenther@suse.de>
15084
15085 PR tree-optimization/40979
15086 PR bootstrap/47044
15087 * passes.c (init_optimization_passes): After LIM call copy_prop
15088 and DCE to clean up.
15089 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15090
15091 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15092
15093 PR tree-optimization/47576
15094 PR tree-optimization/47555
15095 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15096 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15097 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15098 * tree-scalar-evolution.c (follow_ssa_edge): Use
15099 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15100
15101 2011-02-02 Richard Guenther <rguenther@suse.de>
15102
15103 PR tree-optimization/47566
15104 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15105
15106 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15107
15108 PR debug/47106
15109 PR debug/47402
15110 * tree-inline.c (declare_return_variable): Remove unused caller
15111 variable.
15112
15113 PR debug/47106
15114 PR debug/47402
15115 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15116 * cfgexpand.c (account_used_vars_for_block): Use them.
15117 * tree-nrv.c (tree_nrv): Likewise.
15118 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15119 (dump_scope_block): Likewise.
15120 (remove_unused_locals): Likewise.
15121
15122 PR debug/47106
15123 PR debug/47402
15124 * tree-inline.c (declare_return_variable): Add result decl to
15125 local decls only once.
15126 * gimple-low.c (record_vars_into): Mark newly-created variables
15127 as referenced.
15128
15129 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15130
15131 PR debug/47498
15132 PR debug/47501
15133 PR debug/45136
15134 PR debug/45130
15135 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15136 debug insns.
15137 (no_real_insns_p, schedule_block, set_priorities): Drop special
15138 treatment of boundary debug insns.
15139 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15140 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15141 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15142 (BOUNDARY_DEBUG_INSN_P): Likewise.
15143 (SCHEDULE_DEBUG_INSN_P): Likewise.
15144 * sched-rgn.c (init_ready_list): Drop special treatment of
15145 boundary debug insns.
15146 * final.c (rest_of_clean_state): Clear notes' BB.
15147
15148 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15149
15150 * config/openbsd.opt (assert=): New Driver option.
15151
15152 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15153
15154 * config/i386/nto.opt: New.
15155 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15156
15157 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15158
15159 * config/i386/netware.opt: New.
15160 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15161
15162 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15163
15164 * config/interix.opt (posix): New Driver option.
15165
15166 2011-02-01 DJ Delorie <dj@redhat.com>
15167
15168 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15169
15170 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15171 class for A0/A1.
15172
15173 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15174
15175 PR tree-optimization/47561
15176 * toplev.c (process_options): Print the Graphite flags. Add
15177 flag_loop_flatten to the list of options requiring Graphite.
15178
15179 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15180
15181 * config/i386/cygming.opt (posix): New Driver option.
15182
15183 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15184
15185 * config/arm/vxworks.opt: New.
15186 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15187
15188 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15189
15190 * config/alpha/elf.opt: New.
15191 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15192 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15193
15194 2011-02-01 Richard Guenther <rguenther@suse.de>
15195
15196 PR tree-optimization/47559
15197 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15198 store-motion on references that can throw.
15199
15200 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15201
15202 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15203 * tree-pass.h (TDF_CSELIB): New macro.
15204 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15205 cselib_lookup): Check for it rather than for TDF_DETAILS.
15206
15207 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15208
15209 PR driver/47547
15210 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15211 is HOST_BIT_BUCKET.
15212
15213 * opts.c (finish_options): Don't add x_aux_base_name if it is
15214 HOST_BIT_BUCKET.
15215
15216 2011-02-01 Richard Guenther <rguenther@suse.de>
15217
15218 PR tree-optimization/47555
15219 Revert
15220 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15221
15222 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15223
15224 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15225
15226 PR gcc/46692
15227 * config/lm32/t-lm32: Add multilib for all CPU options.
15228
15229 2011-02-01 Richard Guenther <rguenther@suse.de>
15230
15231 PR tree-optimization/47541
15232 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15233 sure to have a field at offset zero.
15234
15235 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15236
15237 * config/arc/arc.opt (EB, EL): New Driver options.
15238
15239 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15240
15241 * config/alpha/osf5.opt: New.
15242 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15243
15244 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15245
15246 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15247
15248 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15249
15250 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15251 -floop-interchange.
15252 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15253 is an alias of -floop-interchange and that it requires the
15254 Graphite infrastructure.
15255 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15256 flag_loop_interchange based on the value of flag_tree_loop_linear.
15257
15258 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15259 Richard Guenther <rguenther@suse.de>
15260
15261 PR tree-optimization/47538
15262 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15263 type instead of r1type, except for comparisons. For right
15264 shifts and comparisons punt if there are mismatches in
15265 sizetype vs. non-sizetype types.
15266
15267 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15268
15269 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15270 avx_runtime.
15271
15272 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15273
15274 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15275 version number.
15276 * configure: Regenerate.
15277
15278 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15279
15280 * configure.ac (gcc_cv_ld_static_option): Define.
15281 (gcc_cv_ld_dynamic_option): Define.
15282 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15283 instead.
15284 (HAVE_LD_STATIC_DYNAMIC): Update message.
15285 (LD_STATIC_OPTION): Define.
15286 (LD_DYNAMIC_OPTION): Define.
15287 * configure: Regenerate.
15288 * config.in: Regenerate.
15289 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15290 HAVE_LD_STATIC_DYNAMIC]: Use them.
15291
15292 2011-01-31 Nick Clifton <nickc@redhat.com>
15293
15294 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15295 registers inside interrupt handlers if the handler is not a leaf
15296 function.
15297
15298 2011-01-31 Nick Clifton <nickc@redhat.com>
15299
15300 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15301 reg_renumber returning an INVALID_REGNUM.
15302
15303 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15304
15305 PR libgcj/44341
15306 * doc/install.texi: Document host options discarded when cross
15307 configuring target libraries.
15308
15309 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15310
15311 Reverted:
15312 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15313 PR debug/45136
15314 PR debug/45130
15315 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15316 debug insns.
15317 (no_real_insns_p, schedule_block, set_priorities): Drop special
15318 treatment of boundary debug insns.
15319 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15320 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15321 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15322 (BOUNDARY_DEBUG_INSN_P): Likewise.
15323 (SCHEDULE_DEBUG_INSN_P): Likewise.
15324 * sched-rgn.c (init_ready_list): Drop special treatment of
15325 boundary debug insns.
15326 * final.c (rest_of_clean-state): Clear notes' BB.
15327
15328 2011-01-31 Alan Modra <amodra@gmail.com>
15329
15330 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15331 toc relative expressions as we do in print_operand_address.
15332
15333 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15334
15335 * doc/extend.texi: Follow spelling conventions.
15336 * doc/invoke.texi: Fix a typo.
15337
15338 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15339
15340 * config/hpux11.opt: New.
15341 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15342 ia64*-*-hpux*): Use hpux11.opt.
15343
15344 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15345
15346 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15347 to tmake_file.
15348
15349 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15350
15351 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15352 support sites.
15353
15354 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15355
15356 * doc/install.texi (Binaries): Remove outdated reference for
15357 Motorola 68HC11/68HC12 downloads.
15358
15359 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15360
15361 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15362 Drepper's paper.
15363
15364 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15365
15366 PR bootstrap/47147
15367 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15368 used by NetBSD.
15369
15370 2011-01-28 Ahmad Sharif <asharif@google.com>
15371
15372 * value-prof.c (check_counter): Corrected error message.
15373
15374 2011-01-29 Jie Zhang <jie@codesourcery.com>
15375
15376 * config/arm/arm.c (arm_legitimize_reload_address): New.
15377 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15378 arm_legitimize_reload_address.
15379 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15380
15381 2011-01-28 Ian Lance Taylor <iant@google.com>
15382
15383 * godump.c (go_define): Ignore macros whose definitions include
15384 two adjacent operands.
15385
15386 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15387
15388 PR target/42894
15389 * varasm.c (force_const_mem): Store copy of x in desc->constant
15390 instead of x itself.
15391 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15392 itself into REG_EQUAL note.
15393
15394 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15395
15396 * config/freebsd.opt (posix, rdynamic): New Driver options.
15397
15398 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15399
15400 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15401 -Bstatic/-Bdynamic.
15402 * configure: Regenerate.
15403
15404 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15405
15406 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15407 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15408
15409 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15410
15411 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15412 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15413 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15414 (s390_preferred_reload_class): Make static. Change return and
15415 'rclass' argument type to reg_class_t.
15416
15417 2011-01-27 Jan Hubicka <jh@suse.cz>
15418
15419 PR middle-end/46949
15420 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15421 (process_function_and_variable_attributes): Check defined weakrefs.
15422
15423 2011-01-27 Martin Jambor <mjambor@suse.cz>
15424
15425 PR tree-optimization/47228
15426 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15427 build_ref_for_offset.
15428
15429 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15430
15431 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15432
15433 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15434
15435 PR rtl-optimization/46856
15436 * postreload.c (reload_combine_recognize_const_pattern): Do not
15437 separate cc0 setter and user on cc0 targets.
15438
15439 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15440
15441 PR c/43082
15442 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15443 passed a VOID_TYPE expression, immediately emit an error and
15444 return error_mark_node.
15445
15446 2011-01-26 Jeff Law <law@redhat.com>
15447
15448 PR rtl-optimization/47464
15449 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15450 rather than may_trap_p as needed.
15451
15452 2011-01-26 DJ Delorie <dj@redhat.com>
15453
15454 PR rtl-optimization/46878
15455 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15456 setter/user dependency as well.
15457
15458 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15459
15460 PR rtl-optimization/44469
15461 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15462 after removing trivially dead basic blocks.
15463
15464 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15465
15466 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15467 * config/frv/frv.h (LINK_SPEC): Likewise.
15468 * config/i386/netware.h (LINK_SPEC): Likewise.
15469 * config/m68k/linux.h (ASM_SPEC): Likewise.
15470 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15471 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15472 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15473 * config/sparc/linux.h (ASM_SPEC): Likewise.
15474 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15475 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15476
15477 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15478
15479 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15480 * config/frv/frv.h (ASM_SPEC): Likewise.
15481 * config/m68k/linux.h (ASM_SPEC): Likewise.
15482 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15483 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15484 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15485 * config/sparc/linux.h (ASM_SPEC): Likewise.
15486 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15487 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15488
15489 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15490
15491 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15492 * config/frv/frv.h (LINK_SPEC): Likewise.
15493 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15494
15495 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15496
15497 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15498 * config/frv/frv.h (ASM_SPEC): Likewise.
15499 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15500 * config/m68k/linux.h (ASM_SPEC): Likewise.
15501 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15502 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15503 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15504 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15505 * config/sparc/linux.h (ASM_SPEC): Likewise.
15506 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15507 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15508 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15509
15510 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15511
15512 PR target/46997
15513 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15514 (*mux2): Ditto.
15515 (vec_extract_evenodd_help): Ditto.
15516 (vec_extract_evenv4hi): Ditto.
15517 (vec_extract_oddv4hi): Ditto.
15518 (vec_interleave_lowv2si): Ditto.
15519 (vec_interleave_highv2si): Ditto.
15520 (vec_extract_evenv2si): Ditto.
15521 (vec_extract_oddv2si: Ditto.
15522 (vec_pack_trunc_v2si): Ditto.
15523
15524 2011-01-22 Jan Hubicka <jh@suse.cz>
15525
15526 PR target/47237
15527 * cgraph.h (cgraph_local_info): New field can_change_signature.
15528 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15529 signature can change.
15530 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15531 can change.
15532 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15533 (cgraph_function_versioning): We can not change signature of functions
15534 that don't allow that.
15535 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15536 (lto_input_node): Likewise.
15537 * ipa-inline.c (compute_inline_parameters): Compute
15538 local.can_change_signature.
15539 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15540 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15541 functions that can not change signature.
15542 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15543 init_cumulative_args): Do not use local calling conventions
15544 for functions that can not change signature.
15545
15546 2011-01-22 Jan Hubicka <jh@suse.cz>
15547
15548 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15549
15550 2011-01-26 Richard Guenther <rguenther@suse.de>
15551
15552 PR tree-optimization/47190
15553 * cgraphunit.c (process_common_attributes): New function.
15554 (process_function_and_variable_attributes): Use it.
15555
15556 2011-01-26 Richard Guenther <rguenther@suse.de>
15557
15558 PR lto/47423
15559 * cgraphbuild.c (record_eh_tables): Record reference to personality
15560 function.
15561
15562 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15563
15564 PR debug/45454
15565 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15566 non-debug insns from moving up.
15567
15568 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15569
15570 PR target/40125
15571 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15572 t-dlldir{,-x} fragment for build and add it to tmake_file.
15573 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15574 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15575 * config/i386/t-dlldir: New file.
15576 (SHLIB_DLLDIR): Define.
15577 * config/i386/t-dlldir-x: New file.
15578 (SHLIB_DLLDIR): Define.
15579 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15580 (SHLIB_INSTALL): Use it.
15581
15582 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15583
15584 PR target/47246
15585 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15586 lower bound of the allowed Thumb-2 coprocessor load/store
15587 index range to -256. Add explaining comment.
15588
15589 2011-01-25 Ian Lance Taylor <iant@google.com>
15590
15591 * godump.c (go_define): Improve lexing of macro expansion to only
15592 accept expressions which match Go spec.
15593
15594 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15595
15596 PR c++/43601
15597 * tree.c (handle_dll_attribute): Handle it.
15598 * doc/extend.texi (@item dllexport): Mention it.
15599 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15600
15601 2011-01-25 Ian Lance Taylor <iant@google.com>
15602
15603 PR tree-optimization/26854
15604 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15605 (decl_jump_unsafe): Move higher in file, with no other change.
15606 (bind): Set has_jump_unsafe_decl if appropriate.
15607 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15608 (check_earlier_gotos): Likewise.
15609 (c_check_switch_jump_warnings): Likewise.
15610
15611 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15612
15613 * doc/invoke.texi (Warning Options): Add missing hyphen.
15614 (-fprofile-dir): Minor grammatical fixes.
15615 (-fbranch-probabilities): Likewise.
15616
15617 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15618
15619 PR debug/45136
15620 PR debug/45130
15621 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15622 debug insns.
15623 (no_real_insns_p, schedule_block, set_priorities): Drop special
15624 treatment of boundary debug insns.
15625 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15626 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15627 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15628 (BOUNDARY_DEBUG_INSN_P): Likewise.
15629 (SCHEDULE_DEBUG_INSN_P): Likewise.
15630 * sched-rgn.c (init_ready_list): Drop special treatment of
15631 boundary debug insns.
15632 * final.c (rest_of_clean-state): Clear notes' BB.
15633
15634 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15635
15636 * Makefile.in (LAMBDA_H): Removed.
15637 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15638 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15639 lambda-trans.o, and tree-loop-linear.o.
15640 (lto-symtab.o): Remove dependence on LAMBDA_H.
15641 (tree-loop-linear.o): Remove rule.
15642 (lambda-mat.o): Same.
15643 (lambda-trans.o): Same.
15644 (lambda-code.o): Same.
15645 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15646 (tree-vect-slp.o): Same.
15647 * hwint.h (gcd): Moved here.
15648 (least_common_multiple): Same.
15649 * lambda-code.c: Removed.
15650 * lambda-mat.c: Removed.
15651 * lambda-trans.c: Removed.
15652 * lambda.h: Removed.
15653 * tree-loop-linear.c: Removed.
15654 * lto-symtab.c: Do not include lambda.h.
15655 * omega.c (gcd): Removed.
15656 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15657 * tree-data-ref.c (print_lambda_vector): Moved here.
15658 (lambda_vector_copy): Same.
15659 (lambda_matrix_copy): Same.
15660 (lambda_matrix_id): Same.
15661 (lambda_vector_first_nz): Same.
15662 (lambda_matrix_row_add): Same.
15663 (lambda_matrix_row_exchange): Same.
15664 (lambda_vector_mult_const): Same.
15665 (lambda_vector_negate): Same.
15666 (lambda_matrix_row_negate): Same.
15667 (lambda_vector_equal): Same.
15668 (lambda_matrix_right_hermite): Same.
15669 * tree-data-ref.h: Do not include lambda.h.
15670 (lambda_vector): Moved here.
15671 (lambda_matrix): Same.
15672 (dependence_level): Same.
15673 (lambda_transform_legal_p): Removed declaration.
15674 (lambda_collect_parameters): Same.
15675 (lambda_compute_access_matrices): Same.
15676 (lambda_vector_gcd): Same.
15677 (lambda_vector_new): Same.
15678 (lambda_vector_clear): Same.
15679 (lambda_vector_lexico_pos): Same.
15680 (lambda_vector_zerop): Same.
15681 (lambda_matrix_new): Same.
15682 * tree-flow.h (least_common_multiple): Removed declaration.
15683 * tree-parloops.c (lambda_trans_matrix): Moved here.
15684 (LTM_MATRIX): Same.
15685 (LTM_ROWSIZE): Same.
15686 (LTM_COLSIZE): Same.
15687 (LTM_DENOMINATOR): Same.
15688 (lambda_trans_matrix_new): Same.
15689 (lambda_matrix_vector_mult): Same.
15690 (lambda_transform_legal_p): Same.
15691 * tree-pass.h (pass_linear_transform): Removed declaration.
15692 * tree-ssa-loop.c (tree_linear_transform): Removed.
15693 (gate_tree_linear_transform): Removed.
15694 (pass_linear_transform): Removed.
15695 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15696 flag_loop_interchange.
15697
15698 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15699
15700 PR tree-optimization/47265
15701 PR tree-optimization/47443
15702 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15703 if name still has some uses.
15704
15705 2011-01-25 Martin Jambor <mjambor@suse.cz>
15706
15707 PR tree-optimization/47382
15708 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15709 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15710
15711 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15712
15713 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15714 sjlj_except_unwind_info.
15715
15716 2011-01-25 Richard Guenther <rguenther@suse.de>
15717
15718 PR tree-optimization/47426
15719 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15720 visible functions results escape.
15721
15722 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15723
15724 PR target/45701
15725 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15726 (arm_get_frame_offsets): Use it.
15727
15728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15729 Jakub Jelinek <jakub@redhat.com>
15730
15731 PR tree-optimization/47271
15732 * tree-if-conv.c (bb_postdominates_preds): New.
15733 (if_convertible_bb_p): Call bb_postdominates_preds.
15734 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15735 (predicate_scalar_phi): Call bb_postdominates_preds.
15736
15737 2011-01-25 Nick Clifton <nickc@redhat.com>
15738
15739 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15740 * config/rx/rx.c (rx_function_value): Likewise.
15741 (rx_promote_function_mode): Likewise.
15742 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15743 in order to make it legitimate.
15744 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15745 make sure that the first operand is the same as the result register.
15746 (addsi3_unspec): Delete.
15747 (subdi3): Do not accept immediate operands.
15748 (subdi3_internal): Likewise.
15749
15750 2011-01-25 Jeff Law <law@redhat.com>
15751
15752 PR rtl-optimization/37273
15753 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15754 handle them like argument loads from stack slots. Do not double
15755 count memory for memory constants and argument loads from stack slots.
15756
15757 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15758
15759 PR tree-optimization/47427
15760 PR tree-optimization/47428
15761 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15762 coalesce if the new root var would be TREE_READONLY.
15763
15764 2011-01-25 Richard Guenther <rguenther@suse.de>
15765
15766 PR middle-end/47414
15767 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15768 correct type for TBAA.
15769
15770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15771
15772 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15773 (close_phi_written_to_memory): Call for_each_index with
15774 dr_indices_valid_in_loop.
15775
15776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15777
15778 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15779 when it is initialized.
15780
15781 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15782
15783 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15784 call to graphite_find_data_references_in_stmt.
15785 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15786 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15787 call to graphite_find_data_references_in_stmt.
15788 (analyze_drs_in_stmts): Same.
15789 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15790 in which the scalar analysis of indices is performed.
15791 (create_data_ref): Same. Update call to dr_analyze_indices.
15792 (find_data_references_in_stmt): Update call to create_data_ref.
15793 (graphite_find_data_references_in_stmt): Same.
15794 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15795 declaration.
15796 (create_data_ref): Same.
15797 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15798 call to create_data_ref.
15799
15800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15801
15802 * graphite-sese-to-poly.c (build_poly_scop): Move
15803 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15804
15805 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15806
15807 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15808 VAR_DECL, PARM_DECL, and RESULT_DECL.
15809
15810 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15811
15812 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15813 in a reduction PBB.
15814 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15815 that have already been marked as PBB_IS_REDUCTION.
15816
15817 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15818
15819 * graphite-scop-detection.c (same_close_phi_node): New.
15820 (remove_duplicate_close_phi): New.
15821 (make_close_phi_nodes_unique): New.
15822 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15823
15824 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15825
15826 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15827 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15828 of both data references to be the same.
15829
15830 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15831
15832 * graphite-dependences.c (build_lexicographical_constraint): Remove
15833 the gdim parameter.
15834 (build_lexicographical_constraint): Adjust call to
15835 ppl_powerset_is_empty.
15836 (dependence_polyhedron): Same.
15837 (graphite_legal_transform_dr): Same.
15838 (graphite_carried_dependence_level_k): Same.
15839 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15840 parameter.
15841 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15842
15843 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15844
15845 * graphite-sese-to-poly.c
15846 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15847 (close_phi_written_to_memory): New.
15848 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15849 and unshare_expr.
15850
15851 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15852
15853 * doc/install.texi: Update the expected version number of PPL to 0.11.
15854 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15855 #if PPL_VERSION_MINOR < 11.
15856
15857 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15858
15859 * graphite-dependences.c: Include graphite-cloog-util.h.
15860 (new_poly_ddr): Inlined into dependence_polyhedron.
15861 (free_poly_ddr): Moved close by new_poly_ddr.
15862 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15863 Early return NULL when ppl_powerset_is_empty returns true.
15864 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15865 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15866 (graphite_legal_transform_dr): Call new_poly_ddr.
15867 (graphite_carried_dependence_level_k): Same.
15868 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15869 (dot_transformed_deps_stmt_1): Removed.
15870 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15871 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15872 (dot_deps_1): Call dot_deps_2.
15873 * Makefile.in (graphite-dependences.o): Add missing dependence on
15874 graphite-cloog-util.h.
15875
15876 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15877
15878 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15879 (build_lexicographical_constraint): Same.
15880 (dependence_polyhedron_1): Same.
15881 (graphite_legal_transform_dr): Same.
15882 (graphite_carried_dependence_level_k): Same.
15883 * graphite-ppl.c (ppl_powerset_is_empty): New.
15884 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15885 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15886
15887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15888
15889 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15890 the "a followed by b" relation and document it.
15891
15892 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15893
15894 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15895 iteration when the bag of constraints is empty.
15896
15897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15898
15899 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15900
15901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15902
15903 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15904 nest and two loop depths as parameters.
15905 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15906 lst_perfect_nestify.
15907
15908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15909
15910 * graphite-dependences.c (print_pddr): Call
15911 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15912
15913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15914
15915 * graphite-ppl.c (debug_gmp_value): New.
15916 * graphite-ppl.h (debug_gmp_value): Declared.
15917
15918 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15919
15920 * doc/install.texi: Document availability of cloog-0.16.
15921
15922 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15923
15924 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15925 invalid postdominance info.
15926
15927 2011-01-24 Jan Hubicka <jh@suse.cz>
15928
15929 PR c/21659
15930 * doc/extend.texi (weak pragma): Drop claim that it must
15931 appear before definition.
15932 * varasm.c (merge_weak, declare_weak): Only sanity check
15933 that DECL is not output at a time it is declared weak.
15934
15935 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15936
15937 * machmode.def: Fixed comments.
15938
15939 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15940
15941 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15942
15943 2011-01-24 Paul Koning <ni1d@arrl.net>
15944
15945 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15946 WORDS_BIG_ENDIAN.
15947
15948 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15949
15950 PR target/46519
15951 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15952 (block_info): Add scanned and prev.
15953 (move_or_delete_vzeroupper_2): Return if the basic block
15954 has been scanned and the upper 128bit state is unchanged
15955 from the last scan.
15956 (move_or_delete_vzeroupper_1): Return true if the exit
15957 state is changed.
15958 (move_or_delete_vzeroupper): Visit basic blocks using the
15959 work-list based algorithm based on vt_find_locations in
15960 var-tracking.c.
15961
15962 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15963
15964 2011-01-24 Nick Clifton <nickc@redhat.com>
15965
15966 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15967 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15968 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15969 then define __v850e1__.
15970 * doc/invoke.texi: Document -mv850es.
15971
15972 2011-01-24 Richard Henderson <rth@redhat.com>
15973
15974 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15975 compound unordered comparisons.
15976 * config/rx/rx.c (rx_split_fp_compare): Remove.
15977 * config/rx/rx-protos.h: Update.
15978 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15979 (cbranchsf4): Don't call rx_split_fp_compare.
15980 (*cbranchsf4): Use rx_split_cbranch.
15981 (*cmpsf): Don't accept "i" constraint.
15982 (*conditional_branch): Only valid after reload.
15983 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15984
15985 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15986
15987 PR target/47385
15988 * config/rs6000/altivec.md (vector constant splitters): Add
15989 support for creating vector single precision constants if -mvsx is
15990 used and we would create the constant using Altivec primitives.
15991
15992 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15993 Richard Sandiford <rdsandiford@googlemail.com>
15994
15995 PR rtl-optimization/47166
15996 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15997 mechanism for PRE_MODIFY and POST_MODIFY.
15998 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15999 reloadreg.
16000
16001 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16002
16003 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16004
16005 2011-01-22 Jan Hubicka <jh@suse.cz>
16006
16007 PR lto/47333
16008 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16009
16010 2011-01-22 Jan Hubicka <jh@suse.cz>
16011
16012 PR tree-optimization/43884
16013 PR lto/44334
16014 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16015 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16016
16017 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16018
16019 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16020 * config/s390/s390.c (s390_register_move_cost,
16021 s390_memory_move_cost): New.
16022 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16023
16024 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16025
16026 PR middle-end/47401
16027 * except.c (sjlj_assign_call_site_values): Move setting the
16028 crtl->uses_eh_lsda flag to ...
16029 (sjlj_mark_call_sites): ... here.
16030 (sjlj_emit_function_enter): Support NULL dispatch label.
16031 (sjlj_build_landing_pads): In a function with no landing pads
16032 that still has must-not-throw regions, generate code to register
16033 a personality function with empty LSDA.
16034
16035 2011-01-21 Richard Henderson <rth@redhat.com>
16036
16037 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16038
16039 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16040
16041 * compare-elim.c: New file.
16042 * Makefile.in (OBJS-common): Add it.
16043 (compare-elim.o): New.
16044 * common.opt (fcompare-elim): New.
16045 * opts.c (default_options_table): Add OPT_fcompare_elim.
16046 * tree-pass.h (pass_compare_elim_after_reload): New.
16047 * passes.c (init_optimization_passes): Add it.
16048 * recog.h: Protect against re-inclusion.
16049 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16050 * doc/invoke.texi (-fcompare-elim): Document it.
16051 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16052 * doc/tm.texi: Rebuild.
16053
16054 2011-01-22 Nick Clifton <nickc@redhat.com>
16055
16056 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16057 rx_split_fp_compare.
16058
16059 2011-01-22 Nick Clifton <nickc@redhat.com>
16060
16061 * config/rx/rx.md (UNSPEC_CONST): New.
16062 (deallocate_and_return): Wrap the amount popped off the stack in
16063 an UNSPEC_CONST in order to stop it being rejected by
16064 -mmax-constant-size.
16065 (pop_and_return): Add a "(return)" rtx.
16066 (call): Drop the immediate operand.
16067 (call_internal): Likewise.
16068 (call_value): Likewise.
16069 (call_value_internal): Likewise.
16070 (sibcall_internal): Likewise.
16071 (sibcall_value_internal): Likewise.
16072 (sibcall): Likewise. Generate an explicit call using
16073 sibcall_internal.
16074 (sibcall_value): Likewise.
16075 (mov<>): FAIL if a constant operand is not legitimate.
16076 (addsi3_unpsec): New pattern.
16077
16078 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16079 (ok_for_max_constant): New function.
16080 (gen_safe_add): New function.
16081 (rx_expand_prologue): Use gen_safe_add.
16082 (rx_expand_epilogue): Likewise.
16083 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16084 UNSPEC CONSTs.
16085
16086 2011-01-21 Jeff Law <law@redhat.com>
16087
16088 PR tree-optimization/47053
16089 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16090 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16091 statements are deleted.
16092 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16093 is nonempty, then purge dead edges and cleanup the CFG.
16094
16095 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16096
16097 PR debug/47402
16098 Temporarily revert:
16099 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16100 PR debug/47106
16101 * tree-dfa.c (create_var_ann): Mark variable as used.
16102
16103 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16104
16105 PR middle-end/45566
16106 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16107 notes from other section in hot/cold partitioning even if
16108 last_action is -3. Increment call_site_base.
16109
16110 PR rtl-optimization/47366
16111 * fwprop.c (forward_propagate_into): Return bool. If
16112 any changes are made, -fnon-call-exceptions is used and
16113 REG_EH_REGION note is present, call purge_dead_edges
16114 and return true if it purged anything.
16115 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16116 any EH edges were purged.
16117
16118 2011-01-21 Jeff Law <law@redhat.com>
16119
16120 PR rtl-optimization/41619
16121 * caller-save.c (setup_save_areas): Break out code to determine
16122 which hard regs are live across calls by examining the reload chains
16123 so that it is always used.
16124 Eliminate code which checked REG_N_CALLS_CROSSED.
16125
16126 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16127
16128 PR tree-optimization/47355
16129 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16130 NOP has non-debug uses beyond PHIs in new_bb.
16131
16132 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16133
16134 PR debug/47106
16135 * cfgexpand.c (account_used_vars_for_block): Only account vars
16136 that are annotated as used.
16137 (estimated_stack_frame_size): Don't set TREE_USED.
16138 * tree-dfa.c (create_var_ann): Mark variable as used.
16139
16140 2011-01-21 Richard Guenther <rguenther@suse.de>
16141
16142 PR middle-end/47395
16143 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16144
16145 2011-01-21 Richard Guenther <rguenther@suse.de>
16146
16147 PR tree-optimization/47365
16148 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16149 (vn_reference_lookup_pieces): Adjust.
16150 (vn_reference_lookup): Likewise.
16151 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16152 (vn_reference_lookup_3): Only look through kills if in
16153 VN_WALKREWRITE mode.
16154 (vn_reference_lookup_pieces): Adjust.
16155 (vn_reference_lookup): Likewise.
16156 (visit_reference_op_load): Likewise.
16157 (visit_reference_op_store): Likewise.
16158 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16159 (compute_avail): Likewise.
16160 (eliminate): Likewise.
16161
16162 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16163
16164 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16165 DECL_IGNORED_P non-reg vars if they are used.
16166
16167 PR tree-optimization/47391
16168 * varpool.c (const_value_known_p): Return false if
16169 decl is volatile.
16170
16171 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16172
16173 PR bootstrap/47215
16174 * config/i386/i386.c (ix86_local_alignment): Handle
16175 case for va_list_type_node is nil.
16176 (ix86_canonical_va_list_type): Likewise.
16177
16178 2011-01-21 Alan Modra <amodra@gmail.com>
16179
16180 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16181 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16182
16183 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16184
16185 * config/arm/arm.md (define_attr type): Rename f_load
16186 and f_store to f_fpa_load and f_fpa_store. Update.
16187 (write_conflict): Deal with rename fallout.
16188 (*push_fp_multi): Likewise.
16189 * config/arm/fpa.md (f_load): Use f_fpa_load.
16190 (f_store): Use f_fpa_store.
16191 (*movsf_fpa): Likewise.
16192 (*movdf_fpa): Likewise.
16193 (*movxf_fpa): Likewise.
16194 (*thumb2_movsf_fpa): Likewise.
16195 (*thumb2_movdf_fpa): Likewise.
16196 (*thumb2_movxf_fpa): Likewise.
16197 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16198 f_loadd and f_stored.
16199 (*thumb2_movdi_vfp): Likewise.
16200 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16201 (*thumb2_movsi_vfp): Likewise.
16202 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16203 Use f_loads instead of f_load.
16204 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16205
16206 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16207
16208 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16209 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16210 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16211 (xtensa_mode_dependent_address_p): New function.
16212 (constantpool_address_p): Make static. Change return type to bool.
16213 Change argument type to const_rtx. Use CONST_INT_P predicate.
16214
16215 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16216
16217 PR debug/46583
16218 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16219
16220 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16221
16222 PR debug/47283
16223 * cfgexpand.c (expand_debug_expr): Instead of generating
16224 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16225 etc. handling.
16226
16227 2011-01-20 Richard Guenther <rguenther@suse.de>
16228
16229 PR middle-end/47370
16230 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16231 the pointer operand of MEM_REFs.
16232
16233 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16234
16235 PR tree-optimization/46130
16236 * ipa-split.c (consider_split): If return_bb contains non-virtual
16237 PHIs other than for retval or if split_function would not adjust it,
16238 refuse to split.
16239
16240 2011-01-20 Richard Guenther <rguenther@suse.de>
16241
16242 PR tree-optimization/47167
16243 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16244 Revert previous change, only avoid enumeral type changes.
16245
16246 2011-01-19 Mike Stump <mikestump@comcast.net>
16247
16248 * doc/tm.texi.in (BRANCH_COST): Englishify.
16249 * doc/tm.texi (BRANCH_COST): Likewise.
16250
16251 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16252
16253 PR c++/47291
16254 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16255 (gen_scheduled_generic_parms_dies): New functions.
16256 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16257 generation for the end of CU compilation.
16258 (dwarf2out_finish): Generate template parameters DIEs here.
16259
16260 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16261
16262 PR debug/46240
16263 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16264 debug bind stmt on merge edges.
16265
16266 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16267
16268 PR debug/47079
16269 PR debug/46724
16270 * function.c (instantiate_expr): Instantiate incoming rtl of
16271 implicit arguments, and recurse on VALUE_EXPRs.
16272 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16273 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16274
16275 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16276
16277 * c-parser.c (c_parser_for_statement): Initialize
16278 collection_expression.
16279
16280 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16281
16282 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16283
16284 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16285
16286 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16287 (LINK_SHLIB_SPEC): Don't use %(link_path).
16288 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16289
16290 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16291
16292 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16293 (NO_SHARED_LIB_SUPPORT): Remove.
16294 (LINK_SHLIB_SPEC): Remove one conditional definition.
16295
16296 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16297
16298 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16299 %{call_shared}.
16300 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16301 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16302 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16303 %{call_shared} and conditionals on these options not being passed.
16304 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16305 %{call_shared}.
16306
16307 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16308
16309 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16310 simplify.
16311
16312 * ipa-split.c: Spelling fixes.
16313
16314 2011-01-19 Richard Henderson <rth@redhat.com>
16315
16316 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16317 (*mulsi3): Likewise.
16318
16319 * longlong.h [__mn10300__] (count_leading_zeros): New.
16320 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16321 [__mn10300__] (add_ssaaaa, subddmmss): New.
16322 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16323 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16324
16325 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16326
16327 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16328
16329 2011-01-19 Richard Henderson <rth@redhat.com>
16330
16331 * config/mn10300/mn10300.md (addsi3_flags): New.
16332 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16333 (subsi3_flags, subc_internal, subdi3): New.
16334 (subdi3_internal, *subdi3_degenerate): New.
16335 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16336
16337 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16338 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16339 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16340 * config/mn10300/mn10300-protos.h: Update.
16341 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16342 (return_ret): Likewise. Rename from return_internal_regs.
16343 (return_internal): Remove.
16344
16345 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16346 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16347 (mn10300_legitimate_constant_p): Likewise.
16348 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16349 (mn10300_frame_size): New.
16350 (mn10300_expand_prologue): Use it.
16351 (mn10300_expand_epilogue): Likewise.
16352 (mn10300_initial_offset): Likewise.
16353 * config/mn10300/mn10300-protos.h: Update.
16354 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16355 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16356 (prologue, epilogue, return_internal): Tidy output code.
16357 (mn10300_store_multiple_operation, return): Likewise.
16358 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16359 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16360 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16361 (load_pic, am33_load_pic): New.
16362 (mn10300_load_pic0, mn10300_load_pic1): New.
16363
16364 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16365 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16366 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16367 (cc_flags_for_mode, cc_flags_for_code): New.
16368 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16369 overflow flag is not valid. Validate that the flags we need
16370 for the comparison are valid.
16371 (mn10300_output_cmp): Remove.
16372 (mn10300_output_add): New.
16373 (mn10300_select_cc_mode): Use cc_flags_for_code.
16374 (mn10300_split_cbranch): New.
16375 (mn10300_match_ccmode): New.
16376 (mn10300_split_and_operand_count): New.
16377 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16378 to the function.
16379 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16380 (addsi3): ... here. Use mn10300_output_add.
16381 (*addsi3_flags): New.
16382 (*am33_subsi3, *mn10300_subsi3): Merge...
16383 (subsi3): ... here. Use attribute isa.
16384 (*subsi3_flags): New.
16385 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16386 when possible.
16387 (*am33_andsi3, *mn10300_andsi3): Merge...
16388 (andsi3): ... here.
16389 (*andsi3_flags): New.
16390 (andsi3 splitters): New.
16391 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16392 (iorsi3): ... here.
16393 (*iorsi3_flags): New.
16394 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16395 (xorsi3): ... here.
16396 (*xorsi3_flags): New.
16397 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16398 (one_cmplsi2): ... here.
16399 (*one_cmplsi2_flags): New.
16400 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16401 instead of "dax" in constraints. Use mn10300_split_cbranch.
16402 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16403 use matching constraints to eliminate a self-comparison.
16404 (*integer_conditional_branch): Rename from integer_conditional_branch.
16405 Use int_mode_flags to match CC_REG.
16406 (*cbranchsi4_btst, *btstsi): New.
16407 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16408 mn10300_split_cbranch.
16409 (*am33_cmpsf): Rename from am33_cmpsf.
16410 (*float_conditional_branch): Rename from float_conditional_branch.
16411 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16412 (zero_extendqisi2): ... here.
16413 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16414 (zero_extendhisi2): ... here.
16415 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16416 (extendqisi2): ... here.
16417 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16418 (extendhisi2): ... here.
16419 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16420 (ashlsi3): ... here.
16421 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16422 (lshrsi3): ... here.
16423 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16424 (ashrsi3): ... here.
16425 (consecutive add peephole): Remove.
16426 * config/mn10300/predicates.md (label_ref_operand): New.
16427 (int_mode_flags): New.
16428 (CCZN_comparison_operator): New.
16429
16430 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16431 (throughput_42_latency_43): New reservation.
16432 (mulsidi3, umulsidi3): New expanders.
16433 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16434 the MDR register to allocation; separately allocate the low and
16435 high parts of the DImode result.
16436 (umulsidi3_internal): Similarly.
16437 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16438 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16439 (udivsi3, umodsi3): Remove.
16440 (udivmodsi4, divmodsi4): New expanders.
16441 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16442 (*divmodsi4): Simiarly.
16443 (ext_internal): New.
16444
16445 * config/mn10300/constraints.md ("z"): New constraint.
16446 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16447 (FIXED_REGISTERS): Don't fix MDR.
16448 (CALL_USED_REGSITERS): Reformat nicely.
16449 (REG_ALLOC_ORDER): Add MDR.
16450 (enum regclass): Add MDR_REGS.
16451 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16452 (IRA_COVER_CLASSES): Add MDR_REGS.
16453 (REGNO_REG_CLASS): Handle MDR_REG.
16454 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16455 (mn10300_register_move_cost): Likewise.
16456 * config/mn10300/mn10300.md (MDR_REG): New.
16457 (*movsi_internal): Handle moves to/from MDR_REGS.
16458
16459 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16460 POST_MODIFY.
16461 (mn10300_secondary_reload): Tidy combination reload classes.
16462 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16463 addresses for AM33. Allow symbolic offsets for reg+imm.
16464 (mn10300_regno_in_class_p): New.
16465 (mn10300_legitimize_reload_address): New.
16466 * config/mn10300/mn10300.h (enum reg_class): Remove
16467 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16468 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16469 SP_OR_GENERAL_REGS.
16470 (REG_CLASS_NAMES): Update to match.
16471 (REG_CLASS_CONTENTS): Likewise.
16472 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16473 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16474 (REGNO_IN_RANGE_P): Remove.
16475 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16476 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16477 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16478 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16479 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16480 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16481 (REGNO_GENERAL_P): New.
16482 (HAVE_POST_MODIFY_DISP): New.
16483 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16484 (LEGITIMIZE_RELOAD_ADDRESS): New.
16485 * config/mn10300/mn10300-protos.h: Update.
16486
16487 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16488 DATA_REGS for AM33 stack-pointer destination.
16489 (mn10300_preferred_output_reload_class): Likewise.
16490 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16491 into a form appropriate for ...
16492 (TARGET_SECONDARY_RELOAD): New.
16493 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16494 * config/mn10300/mn10300-protos.h: Update.
16495 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16496 reload_insi; use the "A" constraint for the scratch; handle AM33
16497 moves of sp to non-address registers.
16498
16499 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16500 (*movqi_internal): ... here.
16501 (*am33_movhi, *mn10300_movhi): Merge into...
16502 (*movhi_internal): ... here.
16503 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16504 as the source/destination of moves from/to SP.
16505 (movsf): Only allow for AM33-2.
16506 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16507 any integer constant constraint. Only allow for AM33-2. Tidy
16508 all of the alternative outputs.
16509 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16510 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16511 for MN103.
16512 (udivsi3, umodsi3): New patterns for MN103 only.
16513
16514 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16515
16516 * doc/tm.texi.in: Spell out that a lack of register class unions
16517 can lead to ICEs.
16518 * doc/tm.texi: Regenerate.
16519
16520 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16521
16522 PR rtl-optimization/47337
16523 * dce.c (check_argument_store): New function.
16524 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16525
16526 PR tree-optimization/47290
16527 * tree-eh.c (infinite_empty_loop_p): New function.
16528 (cleanup_empty_eh): Use it.
16529
16530 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16531
16532 PR target/46997
16533 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16534 (a64_expand_widen_sum): Ditto.
16535 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16536 (vec_extract_evenodd_help): Ditto.
16537 (vec_extract_evenv4hi): Ditto.
16538 (vec_extract_oddv4hi): Ditto.
16539 (vec_extract_evenv2si): Ditto.
16540 (vec_extract_oddv2si): Ditto.
16541 (vec_extract_evenv2sf): Ditto.
16542 (vec_extract_oddv2sf): Ditto.
16543 (vec_pack_trunc_v4hi: Ditto.
16544 (vec_pack_trunc_v2si): Ditto.
16545 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16546 (vec_interleave_highv8qi): Ditto.
16547 (mix1_r): Ditto.
16548 (vec_extract_oddv8qi): Ditto.
16549 (vec_interleave_lowv4hi): Ditto.
16550 (vec_interleave_highv4hi): Ditto.
16551 (vec_interleave_lowv2si): Ditto.
16552 (vec_interleave_highv2si): Ditto.
16553
16554 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16555
16556 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16557 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16558 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16559 (pa_c_mode_for_suffix): New.
16560 (TARGET_EXPAND_BUILTIN): Define.
16561 (TARGET_C_MODE_FOR_SUFFIX): Define.
16562 (pa_builtins): Define.
16563 (pa_init_builtins): Register __float128 type and init new support
16564 builtins.
16565 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16566 * config/pa/quadlib.c (_U_Qfcopysign): New.
16567
16568 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16569
16570 PR middle-end/46894
16571 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16572 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16573 are defined.
16574
16575 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16576
16577 PR tree-optimization/47179
16578 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16579 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16580
16581 2011-01-18 Richard Guenther <rguenther@suse.de>
16582
16583 PR rtl-optimization/47216
16584 * emit-rtl.c: Include tree-flow.h.
16585 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16586 of replicating it with different semantics.
16587 * Makefile.in (emit-rtl.o): Adjust.
16588
16589 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16590
16591 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16592 (cortex_a9_dp): Handle neon types correctly.
16593
16594 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16595
16596 PR rtl-optimization/47299
16597 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16598 subtarget. Use normal multiplication if both operands are constants.
16599 * expmed.c (expand_widening_mult): Don't try to optimize constant
16600 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16601 before using it.
16602
16603 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16604
16605 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16606 spacing after 'e.g.', typos, comma, hyphenation.
16607
16608 2011-01-17 Richard Henderson <rth@redhat.com>
16609
16610 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16611 (rx_restricted_mem_operand): New.
16612 (rx_shift_operand): Use register_operand.
16613 (rx_source_operand, rx_compare_operand): Likewise.
16614 * config/rx/rx.md (addsi3_flags): New expander.
16615 (adddi3): Rewrite as expander.
16616 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16617 (subsi3_flags): New expander.
16618 (subdi3): Rewrite as expander.
16619 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16620
16621 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16622 (rx_init_builtins): Remove sat builtin.
16623 (rx_expand_builtin): Likewise.
16624 * config/rx/rx.md (ssaddsi3): New.
16625 (*sat): Rename from sat. Represent the CC_REG input.
16626
16627 * config/rx/predicates.md (rshift_operator): New.
16628 * config/rx/rx.c (rx_expand_insv): Remove.
16629 * config/rx/rx-protos.h: Update.
16630 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16631 operand to the canonical position.
16632 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16633 (*bitclr, *bitclr_in_memory): Similarly.
16634 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16635 (insv): Retain the zero_extract in the expansion.
16636
16637 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16638 (bswaphi2, bitinvert, revw): Likewise.
16639
16640 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16641 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16642 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16643 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16644 (bitset, bitset_in_memory): Likewise.
16645 (bitinvert, bitinvert_in_memory): Likewise.
16646 (bitclr, bitclr_in_memory): Likewise.
16647 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16648 (rx_strend, rx_cmpstrn): Likewise.
16649 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16650 (bitop peep2 patterns): Remove.
16651
16652 * config/rx/rx.c (rx_match_ccmode): New.
16653 * config/rx/rx-protos.h: Update.
16654 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16655 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16656 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16657 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16658 (fix_truncsfsi2, floatsisf2): Likewise.
16659 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16660 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16661 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16662 (*subsi3_flags, *xorsi3_flags): New.
16663
16664 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16665
16666 * config/rx/rx.c (rx_print_operand): Remove workaround for
16667 unsplit comparison operations.
16668
16669 * config/rx/rx.md (movsicc): Split after reload.
16670 (*movsicc): Merge *movsieq and *movsine via match_operator.
16671 (*stcc): New pattern.
16672
16673 * config/rx/rx.c (rx_float_compare_mode): Remove.
16674 * config/rx/rx.h (rx_float_compare_mode): Remove.
16675 * config/rx/rx.md (cstoresi4): Split after reload.
16676 (*sccc): New pattern.
16677
16678 * config/rx/predicates.md (label_ref_operand): New.
16679 (rx_z_comparison_operator): New.
16680 (rx_zs_comparison_operator): New.
16681 (rx_fp_comparison_operator): New.
16682 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16683 Validate that the flags are set properly for the comparison.
16684 (rx_gen_cond_branch_template): Remove.
16685 (rx_cc_modes_compatible): Remove.
16686 (mode_from_flags): New.
16687 (flags_from_code): Rename from flags_needed_for_conditional.
16688 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16689 (rx_select_cc_mode): Likewise.
16690 (rx_split_fp_compare): New.
16691 (rx_split_cbranch): New.
16692 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16693 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16694 (*cbranchsf4): Similarly.
16695 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16696 match_operator and rx_split_cbranch.
16697 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16698 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16699 (*cmpsi): Rename from cmpsi.
16700 (*tstsi): Rename from tstsi.
16701 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16702 (*conditional_branch): Rename from conditional_branch.
16703 (*reveresed_conditional_branch): Remove.
16704 (b<code>): Remove expander.
16705 * config/rx/rx-protos.h: Update.
16706
16707 * config/rx/rx.c (rx_compare_redundant): Remove.
16708 * config/rx/rx.md (cmpsi): Don't use it.
16709 * config/rx/rx-protos.h: Update.
16710
16711 * config/rx/rx-modes.def (CC_F): New mode.
16712 * config/rx/rx.c (rx_select_cc_mode): New.
16713 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16714 * config/rx/rx-protos.h: Update.
16715
16716 2011-01-17 Richard Henderson <rth@redhat.com>
16717
16718 * except.c (dump_eh_tree): Fix stray ; after for statement.
16719
16720 2011-01-17 Richard Guenther <rguenther@suse.de>
16721
16722 PR tree-optimization/47313
16723 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16724 handling before copying the body. Properly deal with
16725 by-reference result in SSA form.
16726
16727 2011-01-17 Ian Lance Taylor <iant@google.com>
16728
16729 PR target/47219
16730 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16731 (struct_value_alias_set): Don't define.
16732 (sparc_option_override): Don't set sparc_sr_alias_set and
16733 struct_value_alias_set.
16734 (save_or_restore_regs): Use gen_frame_mem rather than calling
16735 set_mem_alias_set.
16736 (sparc_struct_value_rtx): Likewise.
16737
16738 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16739
16740 PR target/47318
16741 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16742 (_mm_maskstore_pd): Likewise.
16743 (_mm_maskload_ps): Likewise.
16744 (_mm_maskstore_ps): Likewise.
16745 (_mm256_maskload_pd): Change mask to __m256i.
16746 (_mm256_maskstore_pd): Likewise.
16747 (_mm256_maskload_ps): Likewise.
16748 (_mm256_maskstore_ps): Likewise.
16749
16750 * config/i386/i386-builtin-types.def: Updated.
16751 (ix86_expand_special_args_builtin): Likewise.
16752
16753 * config/i386/i386.c (bdesc_special_args): Update
16754 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16755 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16756 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16757 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16758
16759 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16760 Use <avxpermvecmode> on mask register.
16761 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16762
16763 2011-01-17 Olivier Hainque <hainque@adacore.com>
16764 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16765 Eric Botcazou <ebotcazou@adacore.com>
16766
16767 PR target/46655
16768 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16769 if <= USHRT_MAX in 32-bit mode.
16770
16771 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16772
16773 * doc/install.texi (Configuration, Specific): Wrap long
16774 lines in examples. Allow line wrapping in long options
16775 and URLs where beneficial for PDF output.
16776
16777 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16778
16779 * config/mips/mips.c (mips_classify_symbol): Don't return
16780 SYMBOL_PC_RELATIVE for nonlocal labels.
16781
16782 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16783
16784 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16785
16786 2011-01-15 Jan Hubicka <jh@suse.cz>
16787
16788 PR tree-optimization/47276
16789 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16790 declarations as needed.
16791
16792 2011-01-15 Martin Jambor <mjambor@suse.cz>
16793
16794 * common.opt (fdevirtualize): New flag.
16795 * doc/invoke.texi (Option Summary): Document it.
16796 * opts.c (default_options_table): Add devirtualize flag.
16797 * ipa-prop.c (detect_type_change): Return immediately if
16798 devirtualize flag is not set.
16799 (detect_type_change_ssa): Likewise.
16800 (compute_known_type_jump_func): Likewise.
16801 (ipa_analyze_virtual_call_uses): Likewise.
16802
16803 2011-01-14 Martin Jambor <mjambor@suse.cz>
16804
16805 PR tree-optimization/45934
16806 PR tree-optimization/46302
16807 * ipa-prop.c (type_change_info): New type.
16808 (stmt_may_be_vtbl_ptr_store): New function.
16809 (check_stmt_for_type_change): Likewise.
16810 (detect_type_change): Likewise.
16811 (detect_type_change_ssa): Likewise.
16812 (compute_complex_assign_jump_func): Check for dynamic type change.
16813 (compute_complex_ancestor_jump_func): Likewise.
16814 (compute_known_type_jump_func): Likewise.
16815 (compute_scalar_jump_functions): Likewise.
16816 (ipa_analyze_virtual_call_uses): Likewise.
16817 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16818
16819 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16820
16821 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16822 * config/i386/i386.opt (msse5): New Alias.
16823
16824 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16825
16826 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16827 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16828 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16829 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16830
16831 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16832
16833 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16834 -mcpu options.
16835 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16836 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16837 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16838 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16839 Likewise.
16840 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16841
16842 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16843
16844 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16845
16846 2011-01-14 Mike Stump <mikestump@comcast.net>
16847
16848 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16849 * config/fr30/fr30.md: Likweise
16850 (movsi_push): Likewise.
16851 (movsi_pop): Likewise.
16852 (enter_func): Likewise.
16853 * config/moxie/moxie.md (movsi_push): Likewise.
16854 (movsi_pop): Likewise.
16855
16856 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16857
16858 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16859 %{no_archive} %{exact_version}.
16860 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16861 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16862 %{no_archive} %{exact_version}.
16863 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16864 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16865 * config/mips/vxworks.h: Likewise.
16866
16867 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16868
16869 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16870
16871 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16872
16873 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16874 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16875
16876 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16877
16878 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16879 -nodefaultlib.
16880
16881 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16882
16883 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16884 for mcpu not cpu.
16885 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16886 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16887 not cpu.
16888 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16889 Don't handle -shlib.
16890
16891 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16892
16893 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16894 (CC1_SPEC): Don't handle -profile.
16895
16896 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16897
16898 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16899 * config/mips/mips.h (CC1_SPEC): Likewise.
16900
16901 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16902
16903 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16904 * config/mips/mips.h (CC1_SPEC): Likewise.
16905
16906 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16907
16908 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16909 * config/m32r/linux.h (LINK_SPEC): Likewise.
16910 * config/mips/linux.h (LINK_SPEC): Likewise.
16911 * config/mips/linux64.h (LINK_SPEC): Likewise.
16912 * config/sparc/linux.h (LINK_SPEC): Likewise.
16913 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16914 LINK_SPEC): Likewise.
16915 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16916
16917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16918
16919 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16920 %{version:-v}.
16921 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16922
16923 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16924
16925 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16926 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16927
16928 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16929
16930 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16931
16932 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16933
16934 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16935 supports -Bstatic/-Bdynamic.
16936 * configure: Regenerate.
16937
16938 2011-01-14 Jan Hubicka <jh@suse.cz>
16939 Jack Howarth <howarth@bromo.med.uc.edu>
16940
16941 PR target/46037
16942 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16943 when checking debug_info_level. Test write_symbols instead of
16944 debug_hooks->var_location when setting flag_var_tracking_uninit.
16945
16946 2011-01-14 Richard Guenther <rguenther@suse.de>
16947
16948 PR tree-optimization/47179
16949 * target.def (ref_may_alias_errno): New target hook.
16950 * targhooks.h (default_ref_may_alias_errno): Declare.
16951 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16952 (default_ref_may_alias_errno): New function.
16953 * target.h (struct ao_ref_s): Declare.
16954 * tree-ssa-alias.c: Include target.h.
16955 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16956 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16957 (targhooks.o): Likewise.
16958 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16959 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16960
16961 2011-01-14 Richard Guenther <rguenther@suse.de>
16962
16963 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16964
16965 2011-01-14 Richard Guenther <rguenther@suse.de>
16966
16967 PR tree-optimization/47280
16968 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16969 return CFG changes.
16970 (tree_ssa_forward_propagate_single_use_vars): Deal with
16971 CFG changes from associate_plusminus.
16972
16973 2011-01-14 Richard Guenther <rguenther@suse.de>
16974
16975 PR middle-end/47281
16976 Revert
16977 2011-01-11 Richard Guenther <rguenther@suse.de>
16978
16979 PR tree-optimization/46076
16980 * tree-ssa.c (useless_type_conversion_p): Conversions from
16981 unprototyped to empty argument list function types are useless.
16982
16983 2011-01-14 Richard Guenther <rguenther@suse.de>
16984
16985 PR tree-optimization/47286
16986 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16987
16988 2011-01-14 Martin Jambor <mjambor@suse.cz>
16989
16990 PR middle-end/46823
16991 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16992
16993 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16994
16995 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16996 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16997 * config/xtensa/xtensa.c (xtensa_libcall_value,
16998 xtensa_function_value_regno_p): New functions.
16999 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17000
17001 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17002
17003 PR c++/47213
17004 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17005 PE specific hook.
17006 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17007 New function prototype.
17008 * config/i386/winnt.c (i386_pe_assemble_visibility):
17009 Warn only if attribute was specified by user.
17010
17011 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17012
17013 PR target/47251
17014 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17015 floating point.
17016 (floatunsdidf2_fcfidu): Ditto.
17017
17018 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17019
17020 * config/s390/s390.c (print_operand_address): Replace 'error' with
17021 'output_operand_lossage'.
17022 (print_operand): Likewise.
17023
17024 2011-01-13 Jeff Law <law@redhat.com>
17025
17026 PR rtl-optimization/39077
17027 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17028 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17029 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17030 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17031 * gcse.c (prune_insertions_deletions): New function.
17032 (compute_pre_data): Use it.
17033
17034 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17035
17036 PR debug/PR46973
17037 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17038 static function.
17039 (prune_unused_types_mark): Use it.
17040
17041 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17042
17043 PR rtl-optimization/45352
17044 * sel-sched.c: Update copyright years.
17045 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17046 in the advancing loop when we have issued issue_rate insns.
17047
17048 2011-01-12 Richard Henderson <rth@redhat.com>
17049
17050 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17051 (TARGET_MD_ASM_CLOBBERS): New.
17052
17053 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17054 (TARGET_DELEGITIMIZE_ADDRESS): New.
17055
17056 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17057 (clzsi2, *bsch): New patterns.
17058
17059 * config/mn10300/mn10300.md (INT): New mode iterator.
17060 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17061
17062 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17063 flag_split_wide_types.
17064
17065 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17066 (mn10300_trampoline_init): Rewrite without a template, an immediate
17067 load and a direct branch.
17068 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17069
17070 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17071
17072 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17073 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17074 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17075 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17076
17077 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17078
17079 PR debug/47209
17080 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17081 of type.
17082
17083 2011-01-12 Jan Hubicka <jh@suse.cz>
17084
17085 PR driver/47244
17086 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17087 (PLUGIN_COND_CLOSE): New macro.
17088 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17089
17090 2011-01-12 Richard Guenther <rguenther@suse.de>
17091
17092 PR lto/47259
17093 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17094 register variables in a MEM_REF.
17095
17096 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17097
17098 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17099 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17100 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17101 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17102 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17103 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17104 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17105 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17106 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17107 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17108 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17109 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17110 * config/gnu-user.h: New. Copied from linux.h.
17111 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17112 GNU_USER_TARGET_STARTFILE_SPEC.
17113 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17114 GNU_USER_TARGET_ENDFILE_SPEC.
17115 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17116 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17117 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17118 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17119 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17120 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17121 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17122 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17123 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17124 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17125 * config/arm/linux-eabi.h (CC1_SPEC): Use
17126 GNU_USER_TARGET_CC1_SPEC.
17127 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17128 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17129 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17130 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17131 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17132 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17133 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17134 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17135
17136 2011-01-12 Richard Guenther <rguenther@suse.de>
17137
17138 PR other/46946
17139 * doc/invoke.texi (ffast-math): Document it is turned on
17140 with -Ofast.
17141
17142 2011-01-12 Jan Hubicka <jh@suse.cz>
17143
17144 PR tree-optimization/47233
17145 * opts.c (common_handle_option): Disable ipa-reference with profile
17146 feedback.
17147
17148 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17149
17150 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17151 error message.
17152
17153 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17154
17155 * c-parser.c (c_lex_one_token): Updated and reindented some
17156 comments. No changes in code.
17157
17158 2011-01-11 Ian Lance Taylor <iant@google.com>
17159
17160 * godump.c (go_output_var): Don't output the variable if there is
17161 already a type with the same name.
17162
17163 2011-01-11 Ian Lance Taylor <iant@google.com>
17164
17165 * godump.c (go_format_type): Don't generate float80.
17166
17167 2011-01-11 Richard Henderson <rth@redhat.com>
17168
17169 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17170 declaration. Rewrite for both speed and size.
17171 (mn10300_address_cost_1): Remove.
17172 (mn10300_register_move_cost): New.
17173 (mn10300_memory_move_cost): New.
17174 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17175 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17176 extensions, shifts, BSWAP, CLZ.
17177 (mn10300_wide_const_load_uses_clr): Remove.
17178 (TARGET_REGISTER_MOVE_COST): New.
17179 (TARGET_MEMORY_MOVE_COST): New.
17180 * config/mn10300/mn10300-protos.h: Update.
17181 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17182
17183 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17184 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17185 * config/mn10300/mn10300-protos.h: Update.
17186 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17187 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17188 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17189 (*test_int_bitfield, *test_byte_bitfield): Remove.
17190 (*bit_test, *subreg_bit_test): Remove.
17191 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17192
17193 * config/mn10300/constraints.md ("c"): Rename from "A".
17194 ("A", "D"): New constraint letters.
17195 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17196 (fmssf4, fnmasf4, fnmssf4): Likewise.
17197
17198 * config/mn10300/mn10300.md (isa): New attribute.
17199 (enabled): New attribute.
17200
17201 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17202 (abssf2, negsf2): Define only for hardware fp.
17203 (sqrtsf2): Reformat.
17204 (addsf3, subsf3, mulsf3): Merge expander and insn.
17205
17206 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17207 (DEBUGGER_AUTO_OFFSET): Remove.
17208 (DEBUGGER_ARG_OFFSET): Remove.
17209
17210 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17211 Emit register stores with the same offsets as the hardware.
17212 (mn10300_store_multiple_operation): Don't check that the register
17213 save offsets are monotonic.
17214 * config/mn10300/mn10300-protos.h: Update.
17215
17216 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17217
17218 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17219 in terms of the value on the stack, not the MDR register.
17220
17221 2011-01-11 Jan Hubicka <jh@suse.cz>
17222
17223 PR lto/45721
17224 PR lto/45375
17225 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17226 (symbol_alias_set_destroy, symbol_alias_set_contains,
17227 propagate_aliases_backward): Declare.
17228 * lto-streamer-out.c (struct sets): New sturcture.
17229 (trivally_defined_alias): New function.
17230 (output_alias_pair_p): Rewrite.
17231 (output_unreferenced_globals): Fix output of alias pairs.
17232 (produce_symtab): Likewise.
17233 * ipa.c (function_and_variable_visibility): Set weak alias destination
17234 as needed in lto.
17235 * varasm.c (symbol_alias_set_t): Remove.
17236 (symbol_alias_set_destroy): Export.
17237 (propagate_aliases_forward, propagate_aliases_backward): New functions
17238 based on ...
17239 (compute_visible_aliases): ... this one; remove.
17240 (trivially_visible_alias): New
17241 (trivially_defined_alias): New.
17242 (remove_unreachable_alias_pairs): Rewrite.
17243 (finish_aliases_1): Reorganize code checking if alias is defined.
17244 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17245 in LTO mode.
17246
17247 2011-01-11 Richard Guenther <rguenther@suse.de>
17248
17249 PR tree-optimization/46076
17250 * tree-ssa.c (useless_type_conversion_p): Conversions from
17251 unprototyped to empty argument list function types are useless.
17252
17253 2011-01-11 Richard Guenther <rguenther@suse.de>
17254
17255 PR middle-end/45235
17256 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17257 volatile MEMs as MEM_READONLY_P.
17258
17259 2011-01-11 Richard Guenther <rguenther@suse.de>
17260
17261 PR tree-optimization/47239
17262 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17263
17264 2011-01-11 Jeff Law <law@redhat.com>
17265
17266 PR tree-optimization/47086
17267 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17268 IVs from statements that might throw.
17269
17270 2011-01-10 Jan Hubicka <jh@suse.cz>
17271
17272 PR lto/45375
17273 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17274
17275 2011-01-10 Jan Hubicka <jh@suse.cz>
17276
17277 PR lto/45375
17278 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17279 when correcting profile.
17280
17281 2011-01-10 Jan Hubicka <jh@suse.cz>
17282
17283 PR lto/46083
17284 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17285 DECL_FINI_PRIORITY.
17286 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17287 Restore DECL_FINI_PRIORITY.
17288
17289 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17290
17291 * doc/gimple.texi: Fix quoting of multi-word return values in
17292 @deftypefn statements. Ensure presence of return value. Wrap
17293 overlong @deftypefn lines.
17294 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17295 descriptions of removed functions.
17296 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17297 of multi-word return value in @deftypefn statement.
17298
17299 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17300
17301 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17302 (Conditional Expressions, Logical Operators)
17303 (Statement and operand traversals): Do not indent smallexample
17304 code. Fix duplicate function argument in example.
17305
17306 2011-01-10 Jeff Law <law@redhat.com>
17307
17308 PR tree-optimization/47141
17309 * ipa-split.c (split_function): Handle case where we are
17310 returning a value and the return block has a virtual operand phi.
17311
17312 2011-01-10 Jan Hubicka <jh@suse.cz>
17313
17314 PR tree-optimization/47234
17315 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17316 (pass_feedback_split_functions): Declare.
17317 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17318 tree-profile.
17319 * ipa-split.c (gate_split_functions): Update comments; disable
17320 split-functions for profile_arc_flag and branch_probabilities.
17321 (gate_feedback_split_functions): New function.
17322 (execute_feedback_split_functions): New function.
17323 (pass_feedback_split_functions): New global var.
17324
17325 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17326
17327 PR lto/46760
17328 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17329 calling gimple_call_set_cannot_inline.
17330
17331 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17332
17333 * config/darwin-sections.def: Remove unused section.
17334
17335 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17336
17337 PR c++/47218
17338 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17339
17340 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17341
17342 PR objc/47232
17343 * c-parser.c (c_parser_declaration_or_fndef): Improved
17344 error message.
17345
17346 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17347
17348 * config/i386/winnt.c (i386_pe_start_function): Make sure
17349 to switch back to function's section.
17350
17351 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17352
17353 PR gcc/46902
17354 PR testsuite/46912
17355 * plugin.c: Move include of dlfcn.h from here...
17356 * system.h: ... to here.
17357
17358 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17359
17360 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17361 file name.
17362 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17363 two extra empty pages in PDF output.
17364
17365 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17366
17367 PR objc/47078
17368 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17369 for error recovery purposes behave as if it was not specified so
17370 that the default type is usd.
17371
17372 2011-01-07 Jan Hubicka <jh@suse.cz>
17373
17374 PR tree-optmization/46469
17375 * ipa.c (function_and_variable_visibility): Clear needed flags on
17376 nodes with external decls; handle weakrefs merging correctly.
17377
17378 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17379
17380 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17381 not false.
17382
17383 2011-01-07 Jan Hubicka <jh@suse.cz>
17384
17385 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17386 and no longer claim that gold is required for linker plugin.
17387 * configure: Regenerate.
17388 * gcc.c (PLUGIN_COND): New macro.
17389 (LINK_COMMAND_SPEC): Use it.
17390 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17391 * config.in (HAVE_LTO_PLUGIN): New.
17392 * configure.ac (--with-lto-plugin): New parameter; autodetect
17393 HAVE_LTO_PLUGIN.
17394
17395 2011-01-07 Jan Hubicka <jh@suse.cz>
17396
17397 PR tree-optimization/46367
17398 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17399 when we can update original.
17400 (cgraph_mark_inline_edge): Sanity check.
17401 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17402
17403 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17404
17405 * config/spu/spu.h (ASM_COMMENT_START): Define.
17406
17407 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17408
17409 PR driver/42445
17410 * gcc.c (%>S): New.
17411 (SWITCH_KEEP_FOR_GCC): Likewise.
17412 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17413 (do_spec_1): Handle "%>".
17414
17415 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17416
17417 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17418
17419 PR target/47201
17420 * config/i386/i386.c (ix86_delegitimize_address): If
17421 simplify_gen_subreg fails, return orig_x.
17422
17423 PR bootstrap/47187
17424 * value-prof.c (gimple_stringop_fixed_value): Handle
17425 lhs of the call properly.
17426
17427 2011-01-07 Jan Hubicka <jh@suse.cz>
17428
17429 PR lto/45375
17430 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17431
17432 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17433
17434 * target.def (function_switched_text_sections): New hook.
17435 * doc/tm.texi: Regenerated.
17436 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17437 * final.c (default_function_switched_text_sections): New.
17438 (final_scan_insn): Call function_switched_text_sections when a
17439 mid-function section change occurs.
17440 * output.h (default_function_switched_text_sections): Declare.
17441 * config/darwin-protos.h (darwin_function_switched_text_sections):
17442 Likewise.
17443 * config/darwin.c (darwin_function_switched_text_sections): New.
17444 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17445
17446 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17447
17448 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17449 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17450 the secondary code fragment when outputting for DWARF == 2.
17451
17452 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17453
17454 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17455 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17456 Remove.
17457 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17458 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17459
17460 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17461
17462 PR debug/46704
17463 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17464 when it is not empty.
17465
17466 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17467
17468 Bobcat Enablement
17469 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17470 (case ${target}): Add btver1.
17471 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17472 -march=native recognize btver1 processors.
17473 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17474 btver1 def_and_undef
17475 * config/i386/i386.c (struct processor_costs btver1_cost): New
17476 btver1 cost table.
17477 (m_BTVER1): New definition.
17478 (m_AMD_MULTIPLE): Includes m_BTVER1.
17479 (initial_ix86_tune_features): Add btver1 tune.
17480 (processor_target_table): Add btver1 entry.
17481 (static const char *const cpu_names): Add btver1 entry.
17482 (software_prefetching_beneficial_p): Add btver1.
17483 (ix86_option_override_internal): Add btver1 instruction sets.
17484 (ix86_issue_rate): Add btver1.
17485 (ix86_adjust_cost): Add btver1.
17486 * config/i386/i386.h (TARGET_BTVER1): New definition.
17487 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17488 (enum processor_type): Add PROCESSOR_BTVER1.
17489 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17490
17491 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17492
17493 PR target/43309
17494 * config/i386/i386.c (legitimize_tls_address)
17495 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17496 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17497 (tls_initial_exec_64_sun): New pattern.
17498
17499 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17500
17501 * doc/invoke.texi (Overall Options): Improve wording and markup
17502 of the description of -wrapper.
17503
17504 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17505
17506 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17507 rdynamic, threads): New Driver options.
17508
17509 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17510
17511 PR target/38118
17512 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17513 if coming from .tdata.
17514 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17515
17516 2011-01-06 Jan Hubicka <jh@suse.cz>
17517
17518 PR lto/47188
17519 * collect2.c (main): Do not enable LTOmode when plugin is active.
17520
17521 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17522
17523 PR other/45915
17524 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17525 --version output if supported.
17526 * configure: Regenerate.
17527
17528 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17529
17530 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17531 Driver options.
17532
17533 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17534
17535 PR c/47150
17536 * c-convert.c (convert): When converting a complex expression
17537 other than COMPLEX_EXPR to a different complex type, ensure
17538 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17539 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17540 when converting COMPLEX_TYPE.
17541
17542 2011-01-06 Ira Rosen <irar@il.ibm.com>
17543
17544 PR tree-optimization/47139
17545 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17546 only the last reduction value is used outside the loop. Update
17547 documentation.
17548
17549 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17550
17551 * config/rtems.opt: New.
17552 * config.gcc (*-*-rtems*): Use rtems.opt.
17553
17554 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17555
17556 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17557 processors do not support 3DNow instructions.
17558
17559 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17560
17561 * config/spu/spu.c (spu_option_override): Set parameter
17562 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17563
17564 2011-01-05 Jan Hubicka <jh@suse.cz>
17565
17566 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17567 at the command line.
17568
17569 2011-01-05 Martin Jambor <mjambor@suse.cz>
17570
17571 PR lto/47162
17572 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17573 deltas on streamed outgoing edges.
17574 (output_node_opt_summary): Output info for outgoing edges only when
17575 the node is in new parameter set.
17576 (output_cgraph_opt_summary): New parameter set, passed to the two
17577 aforementioned functions. Update its forward declaration and its
17578 callee too.
17579
17580 2011-01-05 Tom Tromey <tromey@redhat.com>
17581
17582 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17583 operator to c_finish_omp_atomic.
17584 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17585 (build_unary_op): Update.
17586 (build_modify_expr): Update.
17587 (build_asm_expr): Update.
17588
17589 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17590
17591 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17592 newly inserted insns.
17593 (pad_bb): Likewise.
17594 (spu_emit_branch_hint): Likewise.
17595 (insert_hbrp_for_ilb_runout): Likewise.
17596 (spu_machine_dependent_reorg): Call df_finish_pass after
17597 schedule_insns returns.
17598
17599 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17600
17601 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17602
17603 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17604
17605 PR tree-optimization/47005
17606 * tree-sra.c (struct access): Add 'non_addressable' bit.
17607 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17608 (decide_one_param_reduction): Return 0 if the parameter is passed by
17609 reference and one of the accesses in the group is non_addressable.
17610
17611 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17612
17613 PR tree-optimization/47056
17614 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17615 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17616 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17617
17618 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17619
17620 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17621 initializer. Skip view conversions from aggregate types.
17622
17623 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17624
17625 PR bootstrap/47055
17626 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17627
17628 2011-01-04 Philipp Thomas <pth@suse.de>
17629
17630 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17631 obvious typo.
17632
17633 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17634
17635 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17636 on empty epilogue sequences.
17637
17638 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17639
17640 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17641 non-static): New Driver options.
17642
17643 2011-01-04 Jie Zhang <jie@codesourcery.com>
17644
17645 PR driver/47137
17646 * gcc.c (default_compilers[]): Set combinable field to 0
17647 for all assembly languages.
17648
17649 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17650
17651 * config/mips/loongson3a.md: New file.
17652 * config/mips/mips.md: Include loongson3a.md.
17653 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17654 TUNE_LOONGSON_3A.
17655
17656 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17657
17658 PR middle-end/47017
17659 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17660 instead of convert_memory_address_addr_space on the base expression.
17661
17662 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17663
17664 * config/spu/spu.c (spu_option_override): Update error text
17665 for bad -march= / -mtune= values.
17666
17667 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17668
17669 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17670 if branch-hint optimization will be performed.
17671
17672 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17673
17674 PR tree-optimization/47148
17675 * ipa-split.c (split_function): Convert arguments to
17676 DECL_ARG_TYPE if possible.
17677
17678 PR tree-optimization/47155
17679 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17680 when computing uns.
17681
17682 PR rtl-optimization/47157
17683 * combine.c (try_combine): If undobuf.other_insn becomes
17684 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17685 and set *new_direct_jump_p too.
17686
17687 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17688
17689 PR tree-optimization/47021
17690 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17691
17692 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17693
17694 * gcc.c (process_command): Update copyright notice dates.
17695 * gcov.c (print_version): Likewise.
17696 * gcov-dump.c (print_version): Likewise.
17697 * mips-tfile.c (main): Likewise.
17698 * mips-tdump.c (main): Likewise.
17699
17700 2011-01-03 Martin Jambor <mjambor@suse.cz>
17701
17702 PR tree-optimization/46801
17703 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17704 aggregate fields start at byte boundary instead of the bit-field flag.
17705
17706 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17707
17708 PR driver/47137
17709 * gcc.c (main): Revert revision 168407.
17710
17711 2011-01-03 Martin Jambor <mjambor@suse.cz>
17712
17713 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17714
17715 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17716
17717 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17718 vector optab to expand vector/scalar shift, update gimple to vector.
17719
17720 2011-01-03 Martin Jambor <mjambor@suse.cz>
17721
17722 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17723 a thunk.
17724
17725 2011-01-03 Martin Jambor <mjambor@suse.cz>
17726
17727 PR tree-optimization/46984
17728 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17729 HOST_WIDE_INT.
17730 (cgraph_create_indirect_edge): Fixed line length.
17731 (cgraph_indirect_call_info): Declare.
17732 (cgraph_make_edge_direct) Update declaration.
17733 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17734 (cgraph_create_indirect_edge): Use it.
17735 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17736 callees.
17737 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17738 the new thunk_delta representation.
17739 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17740 HOST_WIDE_INT.
17741 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17742 (ipa_read_indirect_edge_info): Likewise.
17743 * lto-cgraph.c (output_edge_opt_summary): New function.
17744 (output_node_opt_summary): Call it on all outgoing edges.
17745 (input_edge_opt_summary): New function.
17746 (input_node_opt_summary): Call it on all outgoing edges.
17747
17748 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17749
17750 PR driver/47137
17751 * gcc.c (main): Don't check have_o when settting combine_inputs.
17752
17753 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17754
17755 * regrename.c: Add general comment describing the pass.
17756 (struct du_head): Remove 'length' field.
17757 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17758 (regrename_optimize): Do not sort chains. Rework comments, add others.
17759 Force renaming to the preferred class (if any) in the first pass and do
17760 not consider registers that belong to it in the second pass.
17761 (create_new_chain): Do not set 'length' field.
17762 (scan_rtx_reg): Likewise.
17763
17764 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17765
17766 PR tree-optimization/47140
17767 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17768 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17769 to bit_value_binop.
17770
17771 PR rtl-optimization/47028
17772 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17773 parm_birth_insn instead of at the beginning of first bb.
17774
17775 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17776
17777 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17778 Remove the word "see" before "@pxref".
17779 * doc/rtl.texi: Remove the word "see" before "@pxref".
17780
17781 2011-01-01 Jan Hubicka <jh@suse.cz>
17782
17783 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17784 memory.
17785
17786 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17787
17788 PR target/38662
17789 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17790
17791 \f
17792 Copyright (C) 2011 Free Software Foundation, Inc.
17793
17794 Copying and distribution of this file, with or without modification,
17795 are permitted in any medium without royalty provided the copyright
17796 notice and this notice are preserved.