re PR rtl-optimization/49390 (GCSE miscompilation)
[gcc.git] / gcc / ChangeLog
1 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2
3 PR rtl-optimization/49390
4 Revert:
5 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
6
7 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8 MEM_ALIAS_SET.
9
10 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
11 Tom de Vries <tom@codesourcery.com>
12
13 PR target/45098
14 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
15 Document changed semantics.
16 (max_stmt_executions, max_stmt_executions_int): Declare.
17 * tree-data-ref.c (estimated_loop_iterations)
18 (estimated_loop_iterations_int): Move functions...
19 * tree-ssa-loop-niter.c (estimated_loop_iterations)
20 (estimated_loop_iterations_int): here.
21 (record_estimate): Change nb_iterations_upper_bound and
22 nb_iterations_estimate semantics.
23 (max_stmt_executions, max_stmt_executions_int): New function.
24 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
25 (max_stmt_executions_tree): this.
26 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
27 estimated_loop_iterations_tree.
28 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
29 max_stmt_executions_int instead of estimated_loop_iterations_int.
30 * predict.c (predict_loops): Idem.
31 * tree-parloops.c (parallelize_loops): Idem.
32 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
33 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
34 (init_omega_for_ddr_1): Idem.
35 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
36 (loop_prefetch_arrays): Idem
37 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
38 max_stmt_executions instead of estimated_loop_iterations.
39 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
40 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
41 instead of nb_iterations_upper_bound.
42
43 2011-06-13 Jan Hubicka <jh@suse.cz>
44
45 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
46
47 2011-06-14 Richard Henderson <rth@redhat.com>
48
49 PR debug/48459
50 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
51 (based_loc_descr): Assert it's true.
52 (compute_frame_pointer_to_fb_displacement): Set it, rather than
53 aborting immediately.
54
55 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
56 Mingfeng Wu <mingfeng@faraday-tech.com>
57
58 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
59
60 2011-06-13 Jan Hubicka <jh@suse.cz>
61
62 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
63
64 2011-06-13 Jan Hubicka <jh@suse.cz>
65
66 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
67 similarly to DECL_COMDAT.
68 * cgraphunit.c (cgraph_analyze_function): Likewise.
69 * ipa.c (function_and_variable_visibility): Likewise.
70
71 2011-06-13 Jan Hubicka <jh@suse.cz>
72
73 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
74 BINFO_VIRTUALS when streaming for ltrans unit.
75
76 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
77
78 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
79 (movdi_internal64): Same.
80
81 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
82
83 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
84 with a set of similar patterns, where the MATCH_OPERAND for the
85 function argument is replaced with individual references to hardware
86 registers.
87 (save_fpregs_<mode>): Ditto
88 (restore_gpregs_<mode>): Ditto
89 (return_and_restore_gpregs_<mode>): Ditto
90 (return_and_restore_fpregs_<mode>): Ditto
91 (return_and_restore_fpregs_aix_<mode>): Ditto
92
93 2011-06-13 Jan Hubicka <jh@suse.cz>
94
95 * ipa-utils.c (postorder_stack): New structure.
96 (ipa_reverse_postorder): Handle aliases.
97
98 2011-06-13 Jan Hubicka <jh@suse.cz>
99
100 * ipa-inline.c (reset_edge_caches): Walk aliases.
101 (update_caller_keys): Do not test inlinability of aliases.
102 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
103 (do_estimate_growth): Fix typo.
104
105 2011-06-13 Jan Hubicka <jh@suse.cz>
106
107 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
108 (can_remove_node_now_p): ... here; handle same comdat groups.
109 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
110 (inline_call): Update use of can_remove_node_now_p.
111
112 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
113
114 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
115 condition to disallow non-identical memory locations.
116 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
117 preference to bit manipulation instructions.
118
119 2011-06-13 Jan Hubicka <jh@suse.cz>
120
121 * cgraph.c (cgraph_for_node_thunks_and_aliases,
122 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
123 (nonremovable_p): New function.
124 (cgraph_can_remove_if_no_direct_calls_p): New function.
125 (used_from_object_file_p): New functoin.
126 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
127 references from aliases.
128 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
129 * ipa-inline.c (check_caller_edge): New function.
130 (want_inline_function_called_once_p): Use it; accept aliases called
131 once, too.
132 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
133
134 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
135
136 PR target/48454
137 * config/arm/neon.md (vec_pack_trunc): Set the lengths
138 correctly for the case with Quad vectors.
139
140 2011-06-13 Jakub Jelinek <jakub@redhat.com>
141 Ira Rosen <ira.rosen@linaro.org>
142
143 PR tree-optimization/49352
144 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
145 all, make sure loop_use_stmt after the loop is a def stmt of a used
146 SSA_NAME that is the only one defined inside of the loop. Don't
147 check for COND_EXPR and GIMPLE_BINARY_RHS.
148 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
149 check_reduction is true.
150
151 2011-06-11 Jan Hubicka <jh@suse.cz>
152
153 PR middle-end/49373
154 * ipa.c (cgraph_externally_visible_p): Check resolution info.
155
156 2011-06-11 Jan Hubicka <jh@suse.cz>
157
158 PR middle-end/48836
159 * ipa-inline-transform.c: Include tree-pass.h
160 (inline_transform): Set TODO_update_ssa_only_virtuals.
161 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
162
163 2011-06-11 Jan Hubicka <jh@suse.cz>
164
165 PR middle-end/49378
166 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
167 aliases and thunks.
168
169 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
170
171 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
172 Take number of iterations to peel into account for equally frequent
173 misalignment values.
174
175 2011-06-11 Jan Hubicka <jh@suse.cz>
176
177 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
178 aliases.
179
180 2011-06-11 Jan Hubicka <jh@suse.cz>
181
182 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
183 args.
184 (ipa_update_after_lto_read): Likewise.
185 (ipa_write_node_info): Do not sream call_with_var_arguments.
186 (ipa_read_node_info): Likewise.
187
188 2011-06-11 Jan Hubicka <jh@suse.cz>
189
190 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
191
192 2011-06-11 Jan Hubicka <jh@suse.cz>
193
194 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
195 (lto_symtab_resolve_can_prevail_p): Likewise.
196 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
197 * cgraph.c (same_body_aliases_done): New global var.
198 (cgraph_same_body_alias_1): Rename to ...
199 (cgraph_create_function_alias): ... this one; reorg to new
200 representation.
201 (cgraph_same_body_alias): Use cgraph_create_function_alias;
202 record references when asked to.
203 (cgraph_add_thunk): Fix formating.
204 (cgraph_get_node): Kill same body alias code.
205 (cgraph_node_for_asm): Likewise.
206 (cgraph_remove_same_body_alias): Remove.
207 (cgraph_remove_node): Kill same body alias code.
208 (cgraph_mark_address_taken_node): Mark also the aliased function
209 as having address taken.
210 (dump_cgraph_node): Dump same body aliases.
211 (cgraph_for_node_thunks_and_aliases): Update for new alias
212 representation.
213 (cgraph_for_node_and_aliases): Likewise.
214 * cgraph.h (same_body): Kll pointer.
215 (same_body_alias): Update comment.
216 (same_body_aliases_done): Declare.
217 (cgraph_remove_same_body_alias): Remove declaration.
218 (cgraph_create_function_alias): Declare.
219 (cgraph_process_same_body_aliases): Declare.
220 (cgraph_function_with_gimple_body_p): Check for alias.
221 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
222 (cgraph_alias_aliased_node): New function.
223 (cgraph_function_node): Update for new aliases.
224 (cgraph_function_or_thunk_node): Likewise.
225 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
226 (inline_call): Remove dead aliases.
227 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
228 name hack for same body aliases.
229 (clone_of_p): Look through aliases.
230 (verify_cgraph_node): Verify aliases.
231 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
232 (cgraph_process_same_body_aliases): New function.
233 (process_function_and_variable_attributes): Disable weakref warning on
234 alias.
235 (cgraph_analyze_functions): Handle aliases.
236 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
237 (assemble_thunks): Rename to ...
238 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
239 (cgraph_expand_function): Remove alias output code.
240 (cgraph_output_in_order): Skip aliases.
241 (cgraph_preserve_function_body_p): Aliases don't need preserving.
242 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
243 (ipa_record_reference): Do not assert on alias references.
244 (ipa_ref_has_aliases_p): New function.
245 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
246 (ipa_ref_has_aliases_p): Declare.
247 * lto-cgraph.c (lto_output_node): Handle aliases.
248 (input_node): Likewise.
249 * lto-streamer-out.c (lto_output): Skip aliases.
250 (produce_symtab): Kill same_body_alias code.
251 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
252 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
253 * ipa-inline.c (update_caller_keys): Walk aliases.
254 (inline_small_functions): Fix thinko in previous patch.
255 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
256 (function_and_variable_visibility): Do not walk same body aliases.
257 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
258 (ipa_pta_execute): Use it.
259
260 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
261
262 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
263 (*vec_dupv2df): Rename from vec_dupv2df.
264 (vec_dupv2df): New expander.
265
266 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
267
268 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
269
270 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
271
272 * config/i386/i386.md: Use default value in "isa" attribute.
273 * config/i386/sse.md: Ditto.
274 * config/i386/mmx.md: Ditto.
275
276 2011-06-10 Wei Guozhi <carrot@google.com>
277
278 PR target/45335
279 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
280 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
281 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
282 related peephole2.
283 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
284 related peephole2.
285 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
286 (arm_legitimate_ldrd_p): New prototype.
287 (arm_output_ldrd): New prototype.
288 * config/arm/arm.c (arm_check_ldrd_operands): New function.
289 (arm_legitimate_ldrd_p): New function.
290 (arm_output_ldrd): New function.
291
292 2011-06-10 David Li <davidxl@google.com>
293
294 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
295 * passes.c (passr_eq): New function.
296 (create_pass_tab): New function.
297 (pass_traverse): New function.
298 (dump_one_pass): New function.
299 (dump_pass_list): New function.
300 (dump_passes): New function.
301
302 2011-06-10 Jan Hubicka <jh@suse.cz>
303
304 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
305 setting the nothrow flag.
306 * ipa-reference.c (propagate): Skip aliases.
307 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
308 (propagate_nothrow): Skip aliases; do not update cgraph.
309 (local_pure_const): Do not update cgraph.
310 * tree-profile.c (tree_profiling): Do fixup_cfg.
311
312 2011-06-10 Jan Hubicka <jh@suse.cz>
313
314 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
315 (cgraph_local_node_p): ... here; handle aliases.
316 (has_addr_references_p): Break out from ...;
317 (cgraph_remove_unreachable_nodes) ... here.
318
319 2011-06-10 Jan Hubicka <jh@suse.cz>
320
321 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
322 * common.opt (flag_inline_functions_called_once): Do not
323 initialize to 1.
324
325 2011-06-10 Jan Hubicka <jh@suse.cz>
326
327 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
328 (ipcp_initialize_node_lattices): Do not deal with aliases;
329 Do not try to propagate through thunks.
330 (ipcp_change_tops_to_bottom): Do not deal with aliases.
331
332 2011-06-10 Jan Hubicka <jh@suse.cz>
333
334 * ipa-prop.c (ipa_write_node_info): Stream jump functions
335 for indirect calls.
336 (ipa_read_node_info): Likewise.
337
338 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
339
340 PR lto/49302
341 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
342 (build_and_insert_call): Likewise.
343 (build_and_insert_ref): New.
344 (gimple_expand_builtin_pow): Minor cleanup.
345 (gimple_expand_builtin_cabs): New.
346 (execute_cse_sincos): Add case for BUILT_IN_CABS.
347
348 2011-06-10 Jan Hubicka <jh@suse.cz>
349
350 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
351 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
352 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
353 (ipcp_propagate_stage): Skip aliases when propagating.
354 (ipcp_need_redirect_p): Skip aliases.
355 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
356 collect_callers_of_node.
357 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
358 for aliases.
359 (ipa_compute_jump_functions): Look through aliases.
360
361 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362
363 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
364
365 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
366
367 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
368 Adjust comments.
369 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
370
371 2011-06-10 Jan Hubicka <jh@suse.cz>
372
373 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
374 Update call of gimple_get_virt_method_for_binfo.
375 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
376 refuse_thunks parameter.
377 (gimple_fold_call): Update.
378 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
379
380 2011-06-10 Jan Hubicka <jh@suse.cz>
381
382 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
383 (not_all_callers_have_enough_arguments_p): ... this one; turn into
384 worker for cgraph_for_node_and_aliases.
385 (convert_callers_for_node): Break out from ...
386 (convert_callers): ... here.
387 (modify_function): Use collect_callers_of_node.
388 (ipa_early_sra): Use cgraph_for_node_and_aliases.
389
390 2011-06-10 Richard Guenther <rguenther@suse.de>
391
392 PR tree-optimization/49361
393 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
394 when not already in gimple form.
395
396 2011-06-10 Richard Guenther <rguenther@suse.de>
397
398 PR bootstrap/49344
399 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
400 FOR_EACH_PHI_OR_STMT_USE.
401
402 2011-06-10 Jan Hubicka <jh@suse.cz>
403
404 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
405 (clone_inlined_nodes): ... here.
406 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
407 to real destination prior inlining.
408 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
409 can_early_inline_edge_p, want_early_inline_function_p,
410 want_early_inline_function_p, want_inline_small_function_p,
411 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
412 edge_badness, update_all_callee_keys, lookup_recursive_calls,
413 add_new_edges_to_heap, inline_small_functions, flatten_function,
414 inline_always_inline_functions, early_inline_small_functions): Use
415 cgraph_function_or_thunk_node.
416 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
417 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
418 (do_estimate_edge_growth_1): Break out from ...
419 (do_estimate_growth) ... here; walk aliases.
420 (inline_generate_summary): Skip aliases.
421
422 2011-06-10 Richard Guenther <rguenther@suse.de>
423
424 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
425 forward when combining, visit inserted stmts when a stmt was changed.
426
427 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
428
429 * tree.h (error_operand_p): Add.
430 * dbxout.c (dbxout_type_fields): Use the latter.
431 * c-decl.c (add_stmt): Likewise.
432 * gimplify.c (omp_add_variable, omp_notice_variable,
433 gimplify_scan_omp_clauses): Likewise.
434
435 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
436
437 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
438 when a value is actually passed in regs.
439
440 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
441 Laurent Rougé <laurent.rouge@menta.fr>
442
443 * doc/invoke.texi (SPARC options): Add -mflat.
444 * config/sparc/sparc.opt: Likewise.
445 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
446 (sparc_flat_expand_prologue): Declare.
447 (sparc_flat_expand_epilogue): Likewise.
448 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
449 (CPP_ENDIAN_SPEC): Replace with...
450 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
451 (CPP_SPEC): Adjust to above change.
452 (EXTRA_SPECS): Likewise.
453 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
454 (INCOMING_REGNO): Likewise.
455 (OUTGOING_REGNO): Likewise.
456 (LOCAL_REGNO): Likewise.
457 (SETUP_FRAME_ADDRESSES): Likewise.
458 (FIXED_REGISTERS): Set 0 for %fp.
459 (CALL_USED_REGISTERS): Likewise.
460 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
461 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
462 (RETURN_ADDR_REGNUM): Define.
463 (RETURN_ADDR_RTX): Use it.
464 (INCOMING_RETURN_ADDR_REGNUM): Define.
465 (INCOMING_RETURN_ADDR_RTX): Use it.
466 (DWARF_FRAME_RETURN_COLUMN): Likewise.
467 (EH_RETURN_REGNUM): Define.
468 (EH_RETURN_STACKADJ_RTX): Use it.
469 (EH_RETURN_HANDLER_RTX): Delete.
470 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
471 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
472 Delete.
473 (struct machine_function): Add frame_size, apparent_frame_size,
474 frame_base_reg, frame_base_offset, n_global_fp_regs and
475 save_local_in_regs_p fields.
476 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
477 sparc_frame_base_offset, sparc_n_global_fp_regs,
478 sparc_save_local_in_regs_p): New macros.
479 (sparc_option_override): Error out if -fcall-saved-REG is specified
480 for Out registers.
481 (eligible_for_restore_insn): Fix formatting.
482 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
483 (eligible_for_sibcall_delay): Likewise.
484 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
485 (sparc_legitimate_address_p): Adjust to above change.
486 (save_global_or_fp_reg_p): New predicate.
487 (return_addr_reg_needed_p): Likewise.
488 (save_local_or_in_reg_p): Likewise.
489 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
490 (SORR_SAVE, SORR_RESTORE): Delete.
491 (sorr_pred_t): New typedef.
492 (sorr_act_t): New enum.
493 (save_or_restore_regs): Rename to...
494 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
495 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
496 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
497 mechanism. Add CFI information for double-word saves in 32-bit mode.
498 (emit_adjust_base_to_offset): New function extracted from...
499 (emit_save_or_restore_regs): ...this. Rename the rest to...
500 (emit_save_or_restore_regs_global_fp_regs): ...this.
501 (emit_save_or_restore_regs_local_in_regs): New function.
502 (gen_create_flat_frame_[123]): New functions.
503 (sparc_expand_prologue): Use SIZE local variable. Adjust.
504 (sparc_flat_expand_prologue): New function.
505 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
506 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
507 (sparc_flat_expand_epilogue): New function.
508 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
509 (output_return): Likewise.
510 (output_sibcall): Likewise.
511 (sparc_output_mi_thunk): Likewise.
512 (sparc_frame_pointer_required): Likewise.
513 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
514 function optimization.
515 * config/sparc/sparc.md (flat): New attribute.
516 (prologue): Add TARGET_FLAT handling.
517 (save_register_window): Disable if TARGET_FLAT.
518 (create_flat_frame_[123]): New patterns.
519 (epilogue): Add TARGET_FLAT handling.
520 (sibcall_epilogue): Likewise.
521 (eh_return): New expander.
522 (eh_return_internal): New insn and splitter.
523 (return_internal): Add TARGET_FLAT handling.
524 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
525 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
526 (nonlocal_goto): Add TARGET_FLAT handling.
527 * config/sparc/t-elf: Add -mflat multilib.
528 * config/sparc/t-leon: Likewise.
529
530 2011-06-10 Jan Hubicka <jh@suse.cz>
531
532 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
533 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
534 (self_recursive_p): Use cgraph_function_node.
535 (propagate_pure_const): Likewise.
536 (propagate_nothrow): Likewise.
537 * ipa-reference.c (ipa_reference_get_not_read_global): Use
538 cgraph_function_node.
539 (propagate_bits): Likewise.
540 (propagate): Likewise.
541
542 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
543 Richard Earnshaw <rearnsha@arm.com>
544
545 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
546 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
547 (*thumb2_movdi_vfp): Delete.
548 (*arm_movdi_vfp_cortexa8): Delete.
549 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
550 (*movdi_vfp_cortexa8): Likewise.
551
552 2011-06-10 Richard Guenther <rguenther@suse.de>
553
554 * stor-layout.c (initialize_sizetypes): Give names to all
555 sizetype kinds.
556
557 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
558
559 PR tree-optimization/49318
560 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
561 irrelevant pattern statements.
562
563 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
564
565 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
566
567 PR bootstrap/49354
568 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
569 to last assignment.
570
571 2011-06-09 Jan Hubicka <jh@suse.cz>
572
573 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
574 do not recompute reachable flag.
575 (cgraph_finalize_function, cgraph_analyze_functions): Set
576 redefined_extern_inline here.
577
578 2011-06-09 Jan Hubicka <jh@suse.cz>
579
580 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
581 (cgraph_only_called_directly_p): ... this one; bring offline.
582 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
583 varpool_used_from_object_file_p): Drop names from the declaratoin.
584 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
585 collect_callers_of_node): New.
586 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
587 (cgraph_edge_recursive_p): Use cgraph_function_node.
588 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
589 (cgraph_node_cannot_be_local_p_1): Break out from ...
590 (cgraph_node_can_be_local_p): ... here; walk aliases.
591 (cgraph_for_node_thunks_and_aliases): New function.
592 (cgraph_for_node_and_aliases): New function.
593 (cgraph_make_node_local_1): Break out from ...
594 (cgraph_make_node_local) ... here; use
595 cgraph_for_node_thunks_and_aliases.
596 (cgraph_set_nothrow_flag_1): Break out from ...
597 (cgraph_set_nothrow_flag) ... here;
598 use cgraph_for_node_thunks_and_aliases.
599 (cgraph_set_const_flag_1): Break out from ...
600 (cgraph_set_const_flag) ... here;
601 use cgraph_for_node_thunks_and_aliases.
602 (cgraph_set_pure_flag_1): Break out from ...
603 (cgraph_set_pure_flag) ... here;
604 use cgraph_for_node_thunks_and_aliases.
605 (cgraph_propagate_frequency_1): Break out from ...
606 (cgraph_propagate_frequency) ... here; use
607 cgraph_for_node_thunks_and_aliases.
608 (cgraph_used_from_object_file_p): Do not care about aliases.
609 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
610 New functions.
611 (collect_callers_of_node_1, collect_callers_of_node): New functions.
612
613 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
614
615 PR rtl-optimization/49154
616 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
617 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
618 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
619 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
620 * config/cris/cris.h (cris_register_move_cost): Remove
621 !TARGET_V32 code. Tweak comments.
622
623 2011-06-09 Jan Hubicka <jh@suse.cz>
624
625 * cgraphbuild.c (record_eh_tables): Mark personality function as having
626 address taken.
627
628 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
629
630 PR rtl-optimization/49154
631 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
632 is a matching slot in the hashtable, assign it to classes_ptr.
633
634 PR rtl-optimization/49154
635 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
636 register classes.
637 * doc/tm.texi: Regenerate.
638
639 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
640
641 PR target/49307
642 * config/sh/sh.md (UNSPEC_CHKADD): New.
643 (chk_guard_add): New define_insn_and_split.
644 (symGOT_load): Use chk_guard_add instead of blockage.
645
646 2011-06-09 Kai Tietz <ktietz@redhat.com>
647
648 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
649
650 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
651
652 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
653
654 2011-06-09 Wei Guozhi <carrot@google.com>
655
656 PR target/46975
657 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
658 (peephole2 for conditional move): Generate 16 bit instructions.
659
660 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
661
662 * config/i386/i386.md (*movdi_internal_rex64): Merge
663 alternatives 6 and 8.
664
665 2011-06-09 David Li <davidxl@google.com>
666
667 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
668 * passes.c (passr_eq): New function.
669 (create_pass_tab): New function.
670 (pass_traverse): New function.
671 (dump_one_pass): New function.
672 (dump_pass_list): New function.
673 (dump_passes): New function.
674
675 2011-06-09 David Li <davidxl@google.com>
676
677 * tree-complex.c (tree_lower_complex): Gate cleanup.
678 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
679 (execute_optimize_stdarg): Ditto.
680 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
681 (execute_cleanup_eh_1): Ditto.
682 (execute_cleanup_eh): Ditto.
683 * gcse.c (gate_rtl_pre): Ditto.
684 (execute_rtl_pre): Ditto.
685 * except.c (finish_eh_generation): Ditto.
686 (convert_to_eh_region_ranges): Ditto.
687 * cprop.c (one_cprop_pass): Ditto.
688
689 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
690
691 PR target/48673
692 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
693 in all basic blocks.
694
695 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
696
697 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
698 (HAVE_ENABLE_EXECUTE_STACK): Define.
699 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
700 (HAVE_ENABLE_EXECUTE_STACK): Define.
701 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
702 (HAVE_ENABLE_EXECUTE_STACK): Define.
703 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
704 (ENABLE_EXECUTE_STACK): Remove.
705 (HAVE_ENABLE_EXECUTE_STACK): Define.
706 [IN_LIBGCC2]: Don't include <windows.h>.
707 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
708 (HAVE_ENABLE_EXECUTE_STACK): Define.
709 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
710 (HAVE_ENABLE_EXECUTE_STACK): Define.
711 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
712 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
713 (HAVE_ENABLE_EXECUTE_STACK): Define.
714 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
715 (HAVE_ENABLE_EXECUTE_STACK): Define.
716 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
717 (HAVE_ENABLE_EXECUTE_STACK): Define.
718 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
719 (HAVE_ENABLE_EXECUTE_STACK): Define.
720 * config/alpha/alpha.c (alpha_trampoline_init): Test
721 HAVE_ENABLE_EXECUTE_STACK.
722 * config/i386/i386.c (ix86_trampoline_init): Likewise.
723 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
724 (sparc64_initialize_trampoline): Likewise.
725 * libgcc2.c [L_enable_execute_stack]: Remove.
726 * system.h (ENABLE_EXECUTE_STACK): Poison.
727 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
728 * doc/tm.texi: Regenerate.
729 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
730
731 2011-06-09 Jakub Jelinek <jakub@redhat.com>
732
733 PR middle-end/49308
734 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
735 variable. After resetting and rescanning insn continue with previous
736 statement.
737
738 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
739
740 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
741 (gcc_cv_ld_hidden): Likewise.
742 * configure: Regenerate.
743 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
744 (ix86_stack_protect_fail): Mark unused.
745 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
746 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
747 [TARGET_MACHO]: Don't define.
748 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
749 (TARGET_STACK_PROTECT_FAIL): Likewise.
750 (rs6000_stack_protect_fail): Mark unused.
751 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
752 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
753
754 2011-06-08 Andi Kleen <ak@linux.intel.com>
755
756 * varasm.c (get_section): Print location of other conflict
757 for section conflicts.
758
759 2011-06-08 Andi Kleen <ak@linux.intel.com>
760
761 * config/i386/driver-i386.c (host_detect_local_cpu):
762 Add model 0x2d Intel CPU.
763
764 2011-06-08 Andi Kleen <ak@linux.intel.com>
765
766 * reginfo.c (global_regs_decl): Add.
767 (globalize_reg): Add decl parameter. Compute location. Pass location
768 to warnings and add inform. Store decl in global_regs_decl.
769 * rtl.h (globalize_reg): Update prototype.
770 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
771
772 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
773
774 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
775
776 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
777
778 PR target/49305
779 * config/sh/predicates.md (general_movsrc_operand): Check
780 mode for memory with indexed address for QI and HImode.
781 (general_movdst_operand): Likewise.
782
783 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
784
785 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
786
787 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
788
789 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
790 (num_ssa_operands): Likewise.
791 (op_iter_init_phiuse): Forward-declare.
792 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
793
794 2011-06-08 Nick Clifton <nickc@redhat.com>
795
796 * doc/invoke.texi (ARM Options): Update description of
797 -mthumb-interwork.
798
799 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
800
801 * config/i386/driver-i386.c (host_detect_local_cpu): Support
802 unknown Intel family 0x6 CPUs.
803
804 2011-06-08 Martin Jambor <mjambor@suse.cz>
805
806 * tree-sra.c (mark_rw_status): Removed.
807 (analyze_access_subtree): New parameter parent instead of
808 mark_read and mark_write, propagate from that.
809
810 2011-06-08 Julian Brown <julian@codesourcery.com>
811
812 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
813 for double-precision helper functions in hard-float mode if only
814 single-precision arithmetic is supported in hardware.
815
816 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
817
818 PR rtl-optimization/49303
819 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
820 code_motion_path_driver returned 0 or 1.
821 (sel_region_finish): Clear h_d_i_d.
822
823 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
824
825 * config/sh/sh.c (prepare_move_operands): Set pic register
826 appropriately for global and local dynamic tls models even
827 if flag_pic is unset.
828
829 2011-06-07 Jason Merrill <jason@redhat.com>
830
831 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
832
833 2011-06-07 Xinliang David Li <davidxl@google.com>
834 * passes.c (enable_disable_pass): Handle assembler name.
835 (is_pass_explicitly_enabled_or_disabled): Ditto.
836
837 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
838
839 PR tree-optimization/48497
840 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
841
842 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
843
844 PR tree-optimization/46728
845 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
846 to use gimple_val_nonnegative_real_p.
847 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
848 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
849
850 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
851
852 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
853
854 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
855
856 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
857 constant vectors.
858
859 2011-06-07 Richard Guenther <rguenther@suse.de>
860
861 * stor-layout.c (initialize_sizetypes): Initialize all
862 sizetypes based on target definitions.
863 (set_sizetype): Remove.
864 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
865 * tree.h (set_sizetype): Remove.
866
867 2011-06-07 Nick Clifton <nickc@redhat.com>
868
869 * config.gcc: Unify V850 architecture options and add support for
870 newer V850 architectures.
871 * config/v850/t-v850e: Delete.
872
873 2011-06-07 Richard Guenther <rguenther@suse.de>
874
875 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
876 Call set_sizetype from here.
877
878 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
879
880 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
881 (*maddhisi4tb, *maddhisi4tt): New define_insns.
882
883 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
884 Andrew Stubbs <ams@codesourcery.com>
885
886 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
887 multiplies.
888 * doc/md.texi (Canonicalization of Instructions): Document widening
889 multiply canonicalization.
890
891 2011-06-07 Jakub Jelinek <jakub@redhat.com>
892
893 PR gcov-profile/49299
894 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
895
896 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
897
898 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
899 a pointer.
900 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
901 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
902 vect_recog_pow_pattern): Likewise.
903 (vect_pattern_recog_1): Remove declaration.
904 (widened_name_p): Remove declaration. Add new argument to specify
905 whether to check that both types are either signed or unsigned.
906 (vect_recog_widen_mult_pattern): Update documentation. Handle
907 unsigned patterns and multiplication by constants.
908 (vect_pattern_recog_1): Update vect_recog_func references. Use
909 statement information from the statement returned from pattern
910 detection functions.
911 (vect_pattern_recog): Update vect_recog_func reference.
912 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
913 multiplication by a constant use the type of the other operand.
914
915 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
916
917 PR rtl-optimization/49145
918 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
919
920 2011-06-06 Jakub Jelinek <jakub@redhat.com>
921
922 PR debug/49262
923 * dwarf2out.c (native_encode_initializer): Decrement count in each
924 iteration.
925
926 PR debug/49294
927 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
928 non-MODE_INT modes.
929
930 PR c++/49264
931 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
932 if stmt folded into nothing.
933 * tree-inline.c (fold_marked_statements): If a builtin at the end of
934 a bb folded into nothing, just update cgraph edges and move to next bb.
935 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
936 to be NULL. Don't compute count and frequency if new_call is NULL.
937
938 2011-06-04 Diego Novillo <dnovillo@google.com>
939
940 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
941 (cgraph.o): Likewise.
942 (cgraphunit.o): Likewise.
943 * cgraphunit.c: Include lto-streamer.h
944 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
945 if LTO is enabled.
946 * lto-streamer-in.c (unpack_value_fields): Call
947 streamer_hooks.unpack_value_fields if set.
948 (lto_materialize_tree): For unhandled nodes, first try to
949 call lto_streamer_hooks.alloc_tree, if it exists.
950 (lto_input_ts_decl_common_tree_pointers): Move reading of
951 DECL_INITIAL to lto_streamer_read_tree.
952 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
953 (lto_streamer_read_tree): New.
954 (lto_reader_init): Rename from lto_init_reader.
955 Move initialization code to lto/lto.c.
956 * lto-streamer-out.c (pack_value_fields): Call
957 streamer_hooks.pack_value_fields if set.
958 (lto_output_tree_ref): For tree nodes that are not normally indexable,
959 call streamer_hooks.indexable_with_decls_p before giving up.
960 (lto_output_ts_decl_common_tree_pointers): Move handling
961 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
962 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
963 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
964 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
965 (lto_streamer_write_tree): New.
966 (lto_output): Call lto_streamer_init directly.
967 (lto_writer_init): Remove.
968 * lto-streamer.c (streamer_hooks): New.
969 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
970 instead of lto_preload_common_nodes.
971 (lto_is_streamable): Move from lto-streamer.h
972 (lto_streamer_hooks_init): New.
973 (streamer_hooks): New.
974 (streamer_hooks_init): New.
975 * lto-streamer.h (struct output_block): Forward declare.
976 (struct lto_input_block): Likewise.
977 (struct data_in): Likewise.
978 (struct bitpack_d): Likewise.
979 (struct streamer_hooks): Declare.
980 (streamer_hooks): Declare.
981 (lto_streamer_hooks_init): Declare.
982 (lto_streamer_write_tree): Declare.
983 (lto_streamer_read_tree): Declare.
984 (streamer_hooks_init): Declare.
985 (lto_is_streamable): Move to lto-streamer.c
986
987 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
988
989 * longlong.h (smul_ppmm): The resulting register pair contains the
990 higher order word first.
991
992 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
993
994 PR tree-optimization/46728
995 * builtins.c (powi_table): Remove.
996 (powi_lookup_cost): Remove.
997 (powi_cost): Remove.
998 (expand_powi_1): Remove.
999 (expand_powi): Remove.
1000 (expand_builtin_pow_root): Remove.
1001 (expand_builtin_pow): Remove.
1002 (expand_builtin_powi): Eliminate handling of constant exponent.
1003 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1004
1005 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1006
1007 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1008
1009 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1010
1011 * dce.c (reset_unmarked_insns_debug_uses): New.
1012 (delete_unmarked_insns): Skip debug insns.
1013 (prescan_insns_for_dce): Likewise.
1014 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1015 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1016 active reg can be found.
1017 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1018 (convert_regs_1): Use it.
1019
1020 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1021
1022 * tree-pretty-print.c (dump_function_header): Add flags.
1023 Don't dump decl_uid with nouid.
1024 * tree-pretty-print.h (dump_function_header): Adjust.
1025 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1026 * passes.c (pass_init_dump_file): Pass dump_flags on.
1027 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1028
1029 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1030
1031 PR bootstrap/49270
1032 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1033
1034 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1035
1036 PR tree-optimization/49243
1037 * calls.c (setjmp_call_p): Also check if fndecl has the
1038 returns_twice attribute.
1039
1040 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1041
1042 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1043 -ffast-math etc.
1044
1045 2011-06-06 Richard Henderson <rth@redhat.com>
1046 Georg-Johann Lay <avr@gjlay.de>
1047
1048 PR target/42210
1049 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1050 New predicates.
1051 * config/avr/avr.md ("insv"): New insn expander.
1052 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1053 "*insv.not.io", "*insv.reg"): New insns.
1054
1055 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1056
1057 PR target/49285
1058 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1059 to nonimmediate_operand from memory_operand for the operand that is to
1060 be forced to memory by the expander. Lose the constraints.
1061
1062 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1063
1064 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1065 EH return when delayed branches are disabled.
1066
1067 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1068
1069 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1070 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1071 calculation.
1072 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1073 Simplify MODE_V1DF and MODE_V2SF handling.
1074 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1075 Simplify MODE_SF handling.
1076
1077 2011-06-04 Jan Hubicka <jh@suse.cz>
1078
1079 PR tree-optimization/48893
1080 PR tree-optimization/49091
1081 PR tree-optimization/49179
1082 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1083 Bounds check.
1084
1085 2011-06-04 Jan Hubicka <jh@suse.cz>
1086
1087 PR lto/48954
1088 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1089 bitmaps.
1090
1091 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1092
1093 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1094
1095 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1096
1097 PR target/49281
1098 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1099 to be strictly smaller than 1 << shiftcount.
1100
1101 2011-06-04 Jan Hubicka <jh@suse.cz>
1102
1103 PR tree-optimize/48929
1104 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1105 of empty predicate.
1106
1107 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1108
1109 PR debug/48333
1110 * calls.c (emit_call_1): Prefer the __builtin declaration of
1111 builtin functions.
1112
1113 2011-06-03 Diego Novillo <dnovillo@google.com>
1114
1115 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1116 (lto_input_tree_pointers): Likewise.
1117 * lto-streamer-out.c (pack_value_fields): Likewise.
1118 (lto_output_tree_pointers): Likewise.
1119 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1120 and OPTIMIZATION_NODE.
1121
1122 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123
1124 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1125 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1126 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1127 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1128 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1129 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1130 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1131 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1132 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1133 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1134 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1135 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1136 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1137 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1138 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1139 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1140 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1141 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1142 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1143 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1144 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1145 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1146 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1147 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1148 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1149 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1150 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1151 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1152 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1153 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1154 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1155 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1156 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1157 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1158 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1159 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1160 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1161 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1162 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1163 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1164 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1165 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1166 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1167 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1168 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1169 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1170 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1171 * system.h (MD_UNWIND_SUPPORT): Poison.
1172 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1173 * doc/tm.texi: Regenerate.
1174 * unwind-dw2.c: Include md-unwind-support.h instead of
1175 MD_UNWIND_SUPPORT.
1176 * config/ia64/unwind-ia64.c: Likewise.
1177 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1178
1179 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1180
1181 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1182
1183 2011-06-03 Richard Henderson <rth@redhat.com>
1184 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1185
1186 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1187 (sigill_hdlr): Correct insn, insn size.
1188 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1189
1190 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1191
1192 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1193 t-slibgcc-dummy.
1194 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1195 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1196 * config/mips/t-iris: Remove.
1197 * config/mips/t-irix6: New file.
1198 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1199
1200 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1201
1202 * Makefile.in (LIB2ADDEHDEP): Remove.
1203 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1204 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1205 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1206 * config/t-darwin (LIB2ADDEHDEP): Remove.
1207 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1208 * config/t-linux (LIB2ADDEHDEP): Remove.
1209
1210 2011-06-03 Diego Novillo <dnovillo@google.com>
1211
1212 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1213 (lto_register_var_decl_in_symtab): Likewise.
1214 (lto_register_function_decl_in_symtab): Likewise.
1215 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1216 logic to uniquify_nodes.
1217
1218 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1219
1220 * config/alpha/t-osf5: Remove.
1221 * config/alpha/t-osf-pthread: Remove.
1222 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1223 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1224
1225 2011-06-03 Julian Brown <julian@codesourcery.com>
1226
1227 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1228 (strongarm1110): Use strongarm tuning.
1229 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1230 * config/arm/arm.c (arm_strongarm_tune): New.
1231 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1232 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1233 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1234 setting, using previous defaults or 1 for Cortex-A5.
1235 (arm_option_override): Set max_insns_skipped from current tuning.
1236
1237 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1238
1239 * doc/install.texi (Options specification): Document --with-specs.
1240
1241 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1242
1243 * config/arm/neon.md (orndi3_neon): Actually split it.
1244
1245 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1246
1247 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1248 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1249
1250 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1251
1252 PR debug/47590
1253 * target.def (delay_sched2, delay_vartrack): New.
1254 * doc/tm.texi.in: Update.
1255 * doc/tm.texi: Rebuild.
1256 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1257 * var-tracking.c (gate_handle_var_tracking): Likewise.
1258 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1259 (bfin_flag_var_tracking): Drop.
1260 (output_file_start): Don't save and override flag_var_tracking.
1261 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1262 (bfin_reorg): Test original variables.
1263 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1264 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1265 (ia64_flag_var_tracking): Drop.
1266 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1267 (ia64_file_start): Don't save and override flag_var_tracking.
1268 (ia64_override_options_after_change): Ditto
1269 flag_schedule_insns_after_reload.
1270 (ia64_reorg): Test original variables.
1271 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1272 (picochip_flag_var_tracking): Drop.
1273 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1274 (picochip_option_override): Don't save and override
1275 flag_schedule_insns_after_reload.
1276 (picochip_asm_file_start): Ditto flag_var_tracking.
1277 (picochip_reorg): Test original variables.
1278 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1279 (TARGET_DELAY_VARTRACK): Define.
1280 (spu_var_tracking): New.
1281 (spu_machine_dependent_reorg): Call it.
1282 (asm_file_start): Don't save and override flag_var_tracking.
1283
1284 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1285
1286 PR target/49163
1287 * config/sh/predicates.md (general_movsrc_operand): Return 0
1288 for memory and memory subreg of which address is an invalid
1289 indexed address for QI and HImode.
1290 (general_movdst_operand): Likewise.
1291
1292 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1293
1294 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1295 edges only, when there is a non-local label in the function.
1296 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1297
1298 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1299
1300 * config/i386/constraints.md (Y3): New register constraint.
1301 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1302 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1303 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1304 *sse2_interleave_lowv2df.
1305
1306 2011-06-02 Julian Brown <julian@codesourcery.com>
1307
1308 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1309 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1310 (arm_cortex_a5_tune): New.
1311
1312 2011-06-02 Julian Brown <julian@codesourcery.com>
1313
1314 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1315 * config/arm/arm.c (arm_default_branch_cost): New.
1316 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1317 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1318 (arm_fa726_tune): Set branch_cost field using
1319 arm_default_branch_cost.
1320 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1321 current_tune structure.
1322 * dojump.c (tm_p.h): Include file.
1323
1324 2011-06-02 Julian Brown <julian@codesourcery.com>
1325
1326 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1327 tuning.
1328 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1329 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1330 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1331 field.
1332 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1333 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1334 (arm_fa726te_tune): Add prefer_constant_pool setting.
1335 (arm_v6t2_tune, arm_cortex_tune): New.
1336 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1337 prefer_constant_pool setting.
1338
1339 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1340
1341 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1342 switch statement.
1343 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1344 (*movdf_internal) <case 6,7,8>: Ditto.
1345
1346 * config/i386/constraints.md (Y4): New register constraint.
1347 * config/i386/sse.md (vec_set<mode>_0): Merge with
1348 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1349 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1350 *vec_extractv2di_1_sse.
1351 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1352 and *vec_concatv2di_rex64_sse.
1353
1354 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1355
1356 PR target/48807
1357 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1358 of cgraph_local_info for null before attempting to use it.
1359
1360 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1361
1362 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1363 (current_function_dynamic_alloc_count): Delete.
1364 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1365 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1366 (expand_builtin_update_setjmp_buf): Remove dead code.
1367 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1368 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1369 support.
1370 * function.c (instantiate_virtual_regs): Likewise.
1371 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1372 for a block with a single abnormal incoming edge.
1373 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1374 (SETJMP_VIA_SAVE_AREA): Delete.
1375 * config/sparc/sparc-protos.h (load_got_register): Declare.
1376 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1377 (load_got_register): Make global.
1378 (sparc_frame_pointer_required): Add 'static'.
1379 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1380 (sparc_builtin_setjmp_frame_value): New function.
1381 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1382 (save_stack_nonlocal): New expander.
1383 (restore_stack_nonlocal): Likewise.
1384 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1385 (nonlocal_goto_internal): New insn.
1386 (goto_handler_and_restore): Delete.
1387 (builtin_setjmp_setup): Likewise.
1388 (do_builtin_setjmp_setup): Likewise.
1389 (setjmp): Likewise.
1390 (builtin_setjmp_receiver): New expander.
1391
1392 2011-06-01 David Li <davidxl@google.com>
1393
1394 PR middle-end/49261
1395 * tree-pretty-print.c (dump_function_header): Format cleanup.
1396
1397 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1398
1399 PR target/49238
1400 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1401 needed when original operands are used for msw_skip comparison.
1402
1403 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1404
1405 PR debug/49250
1406 * var-tracking.c (add_uses, add_stores): Don't call
1407 cselib_subst_to_values on ENTRY_VALUE.
1408
1409 2011-06-01 Diego Novillo <dnovillo@google.com>
1410
1411 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1412 output_record_start with LTO_null instead of output_zero.
1413 (lto_output_ts_binfo_tree_pointers): Likewise.
1414 (lto_output_tree): Likewise.
1415 (output_eh_try_list): Likewise.
1416 (output_eh_region): Likewise.
1417 (output_eh_lp): Likewise.
1418 (output_eh_regions): Likewise.
1419 (output_bb): Likewise.
1420 (output_function): Likewise.
1421 (output_unreferenced_globals): Likewise.
1422 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1423 instead of NUM_TREE_CODES.
1424 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1425 (lto_output_int_in_range): Change << to >> when shifting VAL.
1426
1427 2011-06-01 Diego Novillo <dnovillo@google.com>
1428
1429 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1430 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1431
1432 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1433
1434 PR target/45074
1435 * optabs.h (valid_multiword_target_p): Declare.
1436 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1437 doing multi-word operations.
1438 * optabs.c (expand_binop): Likewise.
1439 (expand_doubleword_bswap): Likewise.
1440 (expand_absneg_bit): Likewise.
1441 (expand_unop): Likewise.
1442 (expand_copysign_bit): Likewise.
1443 (multiword_target_p): New function.
1444
1445 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1446
1447 PR rtl-optimization/48830
1448 PR rtl-optimization/48808
1449 PR rtl-optimization/48792
1450 * reload.c (push_reload): Check contains_reg_of_mode.
1451 * reload1.c (strip_paradoxical_subreg): New function.
1452 (gen_reload_chain_without_interm_reg_p): Use it to handle
1453 paradoxical subregs.
1454 (emit_output_reload_insns, gen_reload): Likewise.
1455
1456 2011-06-01 David Li <davidxl@google.com>
1457
1458 * predict.c : Change pass name
1459 * ipa.c: Ditto.
1460 * dce.c: Ditto.
1461 * tree-profile.c: Ditto.
1462 * except.c: Ditto.
1463
1464 2011-06-01 David Li <davidxl@google.com>
1465
1466 * tree-pretty-print.c (dump_function_header): New function.
1467 * final.c (rest_of_clean_state): Use header dumper.
1468 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1469 * passes.c (pass_init_dump_file): Use header dumper.
1470
1471 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1472
1473 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1474 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1475 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1476 New functions.
1477 (mem_loc_descriptor): Use them.
1478
1479 * var-tracking.c (create_entry_value): New function.
1480 (vt_add_function_parameter): Use it.
1481
1482 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1483
1484 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1485 Include <signal.h>, <ucontext.h>.
1486 (sigill_caught): Define.
1487 (sigill_hdlr): New function.
1488 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1489 insns can be executed.
1490 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1491 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1492
1493 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1494
1495 * config/t-slibgcc-darwin: Move to ...
1496 * config/t-slibgcc-dummy: ... this. Clarify comments.
1497 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1498 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1499 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1500 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1501 Remove i386/t-crtstuff from tmake_file.
1502 (i[34567]86-*-solaris2*): Remove t-svr4,
1503 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1504 t-slibgcc-dummy.
1505 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1506 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1507 sparc/t-crtfm from tmake_file.
1508 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1509 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1510 Remove extra_parts.
1511 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1512 * config/i386/t-nwld (SHLIB_LINK): Remove.
1513 * config/i386/t-rtems-i386: Rename to ...
1514 * config/i386/t-rtems: ... this.
1515 ($(T)crti.o, $(T)crtn.o): Remove.
1516 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1517 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1518 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1519 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1520 EXTRA_MULTILIB_PARTS): Remove.
1521 * config/sparc/t-sol2-64: Likewise.
1522 * config/sparc/t-sol2: Remove.
1523 * config/sparc/t-crtin: Remove.
1524 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1525 * config/i386/gmon-sol2.c: Remove.
1526 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1527 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1528 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1529 * config/i386/sol2-gc1.asm: Remove.
1530 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1531 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1532 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1533 * config/t-slibgcc-sld: Remove.
1534
1535 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1536
1537 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1538 base_type_for_mode with op_mode instead of mode.
1539
1540 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1541
1542 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1543 Cortex-A15.
1544 * config/arm/arm-tune.md: Regenerate.
1545 * config/arm/arm-tables.opt: Regenerate.
1546 * config/arm/arm.c (FL_DIV): Rename...
1547 (FL_THUMB_DIV): ... to this.
1548 (FL_ARM_DIV): Define.
1549 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1550 (arm_arch_hwdiv): Remove.
1551 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1552 (arm_issue_rate): Add cortexr5.
1553 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1554 __ARM_ARCH_EXT_IDIV__.
1555 (TARGET_IDIV): Define.
1556 (arm_arch_hwdiv): Remove.
1557 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1558 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1559 (divsi3, udivsi3): New patterns.
1560 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1561 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1562
1563 2011-06-01 Martin Jambor <mjambor@suse.cz>
1564
1565 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1566 * ipa-utils.c (searchc): Set scc_no.
1567
1568 2011-06-01 Martin Jambor <mjambor@suse.cz>
1569
1570 * ipa-utils.c (searchc_env): New field allow_overwritable.
1571 (searchc): do not ignore edges to overwritable nodes if indicated
1572 by env->allow_overwritable.
1573 (ipa_reduced_postorder): Set env.allow_overwritable.
1574
1575 2011-06-01 Richard Guenther <rguenther@suse.de>
1576
1577 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1578 char_type_node.
1579 * lto-streamer.c (lto_record_common_node): Take node pointer,
1580 do not register types.
1581 (lto_preload_common_nodes): Explicitly skip preloading nodes
1582 that differ between frontends.
1583
1584 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1585
1586 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1587 NON_FLOAT_REGS.
1588
1589 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1590
1591 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1592 parameter value for dump. Dump cost on outermost call only.
1593 (rs6000_memory_move_cost): Dump cost on outermost call only.
1594
1595 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1596
1597 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1598 DW_OP_GNU_convert ops.
1599
1600 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1601 cselib_preserve_constants.
1602 (cselib_lookup_1): If cselib_preserve_constants,
1603 a new VALUE is being created for REG and there is a VALUE for the
1604 same register in wider mode, add another loc with lowpart SUBREG of
1605 the wider VALUE.
1606 (cselib_subst_to_values): Handle ENTRY_VALUE.
1607 * var-tracking.c (replace_expr_with_values): Return NULL for
1608 ENTRY_VALUE too.
1609 * dwarf2out.c (convert_descriptor_to_signed): New function.
1610 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1611 instead of two shifts.
1612 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1613 the right mode if needed.
1614 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1615 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1616 convert_descriptor_to_signed.
1617 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1618 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1619
1620 PR target/48688
1621 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1622
1623 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1624
1625 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1626 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1627 (SWI248x): New mode iterator, rename from X87MODEI.
1628 (X87MODEI): Remove mode iterator.
1629 (X87MODEI12): Ditto.
1630 (SSEMODEI24): Ditto.
1631
1632 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1633
1634 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1635 * doc/invoke.texi: Document max-vartrack-expr-depth.
1636 * var-tracking.c (EXPR_DEPTH): New.
1637 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1638
1639 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1640
1641 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1642 * config/i386/sse.md: Add n to negated FMA pattern names.
1643
1644 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1645
1646 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1647
1648 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1649
1650 * gengtype-state.c (read_state_params_structs): Initialize previous.
1651
1652 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1653
1654 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1655 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1656
1657 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1658
1659 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1660 registers. Penalize F*r->o alternative to prevent partial memory
1661 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1662 CONST_DOUBLE immediates when optimizing function for size. Do not move
1663 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1664 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1665 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1666 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1667 alternatives.
1668 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1669
1670 (fp_register_operand splitters): Use fp_register_operand
1671 constraint. Do not use FP_REG_P in insn condition.
1672 (any_fp_register_operand splitters): Use any_fp_register_operand
1673 constraint. Do not use ANY_FP_REG_P in insn condition.
1674
1675 2011-05-31 Jan Hubicka <jh@suse.cz>
1676
1677 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1678 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1679 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1680 (lto_output_edge): Use output_enum and var_len_unsigned.
1681 (lto_output_varpool_node): Likewise.
1682 (input_overwrite_node): Do not take resolution parameter;
1683 extract it from a bitpack.
1684 (input_node): Do not read resolution; use input_enum and
1685 var_len_unsigned.
1686 (input_varpool_node): Likewise.
1687 (input_edge): Likewise.
1688 (input_cgraph_1): Likewise.
1689
1690 2011-05-31 Richard Guenther <rguenther@suse.de>
1691
1692 * gimple.c (gimple_register_canonical_type): Do not register
1693 any types via gimple_register_type.
1694
1695 2011-05-31 Jan Hubicka <jh@suse.cz>
1696
1697 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1698 of thunks.
1699
1700 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR rtl-optimization/49235
1703 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1704 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1705
1706 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1707
1708 PR tree-optimization/49093
1709 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1710 data references.
1711
1712 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1713
1714 PR debug/49047
1715 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1716 for concrete functions containing the code of cloned functions.
1717
1718 2011-05-31 Richard Guenther <rguenther@suse.de>
1719
1720 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1721 to ...
1722 (forward_propagate_into_comparison_1): ... this.
1723 (forward_propagate_comparison): Rename to ...
1724 (forward_propagate_into_comparison): ... this. Split out
1725 real forward propagation code to ...
1726 (forward_propagate_comparison): ... this.
1727 (forward_propagate_into_gimple_cond): Remove looping.
1728 (forward_propagate_into_cond): Likewise.
1729 (simplify_not_neg_expr): Return whether we have done something.
1730 (simplify_gimple_switch): Likewise.
1731 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1732 (ssa_forward_propagate_and_combine): ... this. Re-structure
1733 to do a forward forward-propagation walk on BBs and a backward
1734 stmt combining walk on BBs. Consistently re-scan changed statements.
1735 (pass_forwprop): Adjust.
1736
1737 2011-05-30 Ian Lance Taylor <iant@google.com>
1738
1739 * godump.c (go_format_type): Correct length of name added to
1740 obstack for anonymous field.
1741
1742 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1743
1744 PR target/49186
1745 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1746 part of the second operand is 0.
1747
1748 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1749
1750 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1751 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1752 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1753 (*movdf_internal_rex64): Do not penalize F->r alternative.
1754 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1755 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1756 when optimizing function for size. Do not move CONST_DOUBLEs
1757 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1758 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1759 SUBREGs. Do not check for MEM_P operands in the insn condition,
1760 check for ANY_FP_REGNO_P instead.
1761 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1762 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1763 function for speed.
1764 * config/i386/i386.c (ix86_option_override_internal): Do not
1765 set TARGET_INTEGER_DFMODE_MOVES here.
1766
1767 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1768
1769 PR target/49168
1770 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1771
1772 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1773
1774 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1775 DW_TAG_rvalue_reference_type even for
1776 -gdwarf-4 -fno-debug-types-section.
1777
1778 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1779
1780 PR tree-optimization/46728
1781 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1782 (build_and_insert_binop): New.
1783 (gimple_expand_builtin_pow): Reorder args for
1784 build_and_insert_call; use build_and_insert_binop; add more
1785 optimizations for fractional exponents.
1786
1787 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1788
1789 PR bootstrap/49190
1790
1791 Revert:
1792 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1793
1794 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1795 tree_common.
1796 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1797 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1798 TS_BASE instead of TS_COMMON.
1799 * varasm.c (assemble_name): Remove assert.
1800
1801 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1802
1803 * config.gcc: Keep obselete list sorted.
1804
1805 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1806 Eric Botcazou <ebotcazou@adacore.com>
1807
1808 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1809 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1810 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1811 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1812 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1813
1814 2011-05-30 Richard Guenther <rguenther@suse.de>
1815
1816 * gimple.c (gimple_types_compatible_p_1): Compare record
1817 and union type members properly.
1818
1819 2011-05-30 Richard Guenther <rguenther@suse.de>
1820
1821 PR tree-optimization/49210
1822 * ipa-split.c (split_function): Care for the case where the call
1823 result is not trivially convertible to the result holding variable.
1824
1825 2011-05-30 Richard Guenther <rguenther@suse.de>
1826
1827 PR tree-optimization/49218
1828 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1829 overflow occured.
1830
1831 2011-05-30 Richard Guenther <rguenther@suse.de>
1832
1833 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1834 New function split out from ...
1835 (forward_propagate_into_gimple_cond): ... here. Adjust.
1836 (forward_propagate_into_cond): Likewise.
1837 (forward_propagate_comparison): Also propagate into
1838 comparisons on assignment RHS. Change return value to
1839 behave similar to forward_propagate_into_cond.
1840 (tree_ssa_forward_propagate_single_use_vars): Handle
1841 strict-overflow warnings properly for forward_propagate_comparison.
1842
1843 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1844
1845 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1846 from plugin linker.
1847 * configure: Regenerate.
1848
1849 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1850
1851 PR tree-optimization/49199
1852 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1853 non-reduction operands are either defined in the loop or by induction.
1854
1855 2011-05-29 Xinliang David Li <davidxl@google.com>
1856
1857 * opts-global.c (handle_common_deferred_options): Handle new options.
1858 * passes.c (register_one_dump_file): Call register_pass_name.
1859 (execute_one_pass): Check explicit enable/disable flag.
1860 (passr_hash): New function.
1861 (passr_eq): Ditto.
1862 (register_pass_name): Ditto.
1863 (get_pass_by_name): Ditto.
1864 (pass_hash): Ditto.
1865 (pass_eq): Ditto.
1866 (enable_pass): Ditto.
1867 (disable_pass): Ditto.
1868 (is_pass_explicitly_enabled_or_disabled): Ditto.
1869
1870 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1871
1872 * config/i386/i386.md (*movoi_internal_avx): Use
1873 standard_sse_constant_opcode for alternative 0.
1874 (*movti_internal_sse): Ditto.
1875 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1876 alternative 2.
1877 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1878 sselog1 type moves.
1879 (*movsi_internal): Ditto.
1880 (*movdi_internal): Ditto. Add ssecvt type moves.
1881
1882 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1883
1884 PR target/48830
1885 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1886
1887 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1888
1889 PR rtl-optimization/49095
1890 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1891 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1892
1893 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1894
1895 PR target/43995
1896 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1897 recurse_p argument. Only follow register copies if it is set,
1898 and prevent mips_find_pic_call_symbol from recursing.
1899 (mips_find_pic_call_symbol): Add a recurse_p argument.
1900 Pass it to mips_pic_call_symbol_from_set.
1901 (mips_annotate_pic_calls): Update accordingly.
1902
1903 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1904
1905 * emit-rtl.c (try_split): Use a loop to search for
1906 NOTE_INSN_CALL_ARG_LOCATIONs.
1907
1908 2011-05-29 Richard Guenther <rguenther@suse.de>
1909
1910 PR tree-optimization/49217
1911 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1912
1913 2011-05-28 Jan Hubicka <jh@suse.cz>
1914
1915 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1916 length.
1917 (string_slot_free): Remove
1918 (create_output_block): Initialize obstack.
1919 (destroy_output_block): Free obstack.
1920 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1921 the string unless it needs to be added into the hash.
1922 (lto_output_string_with_length): Add persistent attribute;
1923 handle NULL strings.
1924 (lto_output_string): Add PERSISTENT parameter.
1925 (output_string_cst, output_identifier): Simplify.
1926 (lto_output_location_bitpack): Update.
1927 (lto_output_builtin_tree): Update.
1928 * lto-streamer.h (struct output_block): Add obstack.
1929 (lto_output_string, lto_output_string_with_length): Remove
1930 declarations; functions are static now.
1931
1932 2011-05-28 Jan Hubicka <jh@suse.cz>
1933
1934 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1935 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1936 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1937 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1938 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1939 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1940 unpack_ts_decl_with_vis_value_fields,
1941 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1942 lto_get_builtin_tree): Use enum and variable length i/o.
1943 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1944 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1945 New functions.
1946 (bp_pack_enum, bp_unpack_enum): New macros.
1947
1948 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1949
1950 * genrecog.c: Remove redundant forward declarations.
1951
1952 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1953
1954 * config.gcc: Deprecate mips*-*-openbsd*.
1955
1956 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1957
1958 PR bootstrap/49195
1959 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1960 for match_op_dup.
1961
1962 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1963
1964 PR middle-end/48981
1965 * gengtype.c (vec_prefix_type): New function.
1966 (note_def_vec): Use vec_prefix_type and change the length
1967 attribute to be based on the prefix.
1968 * vec.c: Include coretypes.h before vec.h.
1969 (struct vec_prefix): Remove.
1970 (vec_gc_p_reserve): Change the offsetof to sizeof.
1971 (vec_gc_p_reserve_exact): Likewise.
1972 (vec_heap_p_reserve): Likewise.
1973 (vec_heap_p_reserve_exact): Likewise.
1974 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1975 (vec_stack_p_reserve): Change the offsetof to sizeof.
1976 (vec_stack_p_reserve_exact): Likewise.
1977 * vec.h (struct vec_prefix): New struct definition.
1978 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1979 (VEC_T_GTY(T,B)): Likewise.
1980 (DEF_VEC_FUNC_P(T)): Use prefix field.
1981 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1982 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1983
1984 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1985
1986 PR tree-optimization/46728
1987 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1988 (powi_as_mults): Add gimple_set_location.
1989 (build_and_insert_call): New.
1990 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1991 0.5, 0.25, 0.75, 1./3., or 1./6.
1992
1993 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1994
1995 * doc/contrib.texi: Update copyright years.
1996 (Contributors): Add Zdenek Sojka.
1997
1998 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1999
2000 * c-decl.c (c_push_function_context): Copy the current statement
2001 list stack.
2002 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2003 (finish_struct): Call building_stmt_list_p instead of checking
2004 cur_stmt_list.
2005 * c-parser.c (c_parser_postfix_expression): Likewise.
2006 * c-typeck.c (c_end_compound_stmt): Likewise.
2007 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2008 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2009 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2010 (free_stmt_list): Likewise.
2011 * tree.h (struct tree_statement_list): Include typed_tree instead
2012 of tree_common.
2013 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2014 as TS_TYPED instead of TS_COMMON.
2015
2016 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2017 Uros Bizjak <ubizjak@gmail.com>
2018
2019 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2020 (HAVE_AS_IX86_TLSGDPTL): Define.
2021 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2022 (HAVE_AS_IX86_TLSLDMPLT): Define.
2023 * configure: Regenerate.
2024 * config.in: Regenerate.
2025 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2026 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2027 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2028 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2029 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2030 @tlsldmplt or @plt.
2031 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2032
2033 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2034
2035 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2036 and reverse_cond.
2037 (INSN_COND, INSN_REVERSE_COND): New macros.
2038 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2039 once.
2040 (sched_get_condition_with_rev): Cache the results, and look them up
2041 if possible.
2042 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2043 are clobbered by the current insn.
2044 * target.def (exposed_pipline): New sched data hook.
2045 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2046 * doc/tm.texi: Regenerate.
2047
2048 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2049
2050 PR tree-optimization/49170
2051 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2052 sincos or cexp.
2053
2054 2011-05-27 Richard Guenther <rguenther@suse.de>
2055
2056 PR middle-end/49189
2057 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2058 of comparisons.
2059
2060 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2061
2062 * haifa-sched.c (sched_scan_info): Remove.
2063 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2064 with NULL args.
2065 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2066 Remove functions.
2067 (sched_scan): Remove.
2068 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2069 static. All callers changed.
2070 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2071 static. All callers changed.
2072 (sched_init_luids): Remove all arguments except the first. All
2073 callers changed. Don't use sched_scan.
2074 (haifa_init_h_i_d): Likewise.
2075 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2076 manually rather than using sched_init_luids. Likewise with
2077 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2078 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2079 rather than sched_init_luids with NULL args.
2080 * sel-sched-ir.c (new_insns): Remove variable.
2081 (sched_scan): New static function, previously in haifa-sched.c. Remove
2082 all arguments but the first two; all callers changed.
2083 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2084 rather than sched_init_luids.
2085 (sel_init_bbs): Remove second argument. All callers changed.
2086 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2087 with NULL arguments.
2088 (create_insn_rtx_from_pattern): Likewise.
2089 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2090 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2091 (sched_init_insn_luid, sched_extend_luids): Declare.
2092 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2093 declarations.
2094
2095 2011-05-27 Richard Guenther <rguenther@suse.de>
2096
2097 PR middle-end/49177
2098 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2099 A CMP B ? (T) true : (T) false for non-integral types T again.
2100
2101 2011-05-27 Jan Hubicka <jh@suse.cz>
2102
2103 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2104 so 0 means NULL string.
2105 (lto_output_string_with_length): ... here.
2106 (lto_output_string, output_string_cst, output_identifier): Update
2107 handling of NULL strings.
2108 (lto_output_location_bitpack): New function.
2109 (lto_output_location): Use it.
2110 (lto_output_tree_ref): Use output_record_start.
2111 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2112 len values.
2113 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2114 values by 1.
2115 (input_string_internal): ... here;
2116 (input_string_cst, input_identifier, lto_input_string): Update handling
2117 of NULL strings.
2118 (lto_input_location_bitpack): New function
2119 (lto_input_location): Use it.
2120 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2121 values.
2122 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2123 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2124 (bp_pack_value): Sanity check the value range.
2125 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2126 New functions.
2127 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2128 New functions.
2129
2130 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2131
2132 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2133 call_arg_location instructions down the floor.
2134
2135 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2136
2137 PR rtl-optimization/49154
2138 * ira.c (setup_pressure_classes): Process class without sublcasses
2139 as a candidate for pressure classes.
2140
2141 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2142
2143 PR rtl-optimization/48575
2144 * genrecog.c (position_type): New enum.
2145 (position): New structure.
2146 (decision): Use position structure instead of a string.
2147 (root_pos, peep2_insn_pos_list): New variables.
2148 (next_position, compare_positions): New functions.
2149 (new_decision): Use position structures instead of strings.
2150 (maybe_both_true): Likewise.
2151 (change_state): Likewise.
2152 (write_tree): Likewise.
2153 (make_insn_sequence): Likewise.
2154
2155 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2156
2157 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2158 TS_BASE instead of TS_COMMON.
2159 (find_decls_types_r): Check for TS_TYPED structure before looking at
2160 TREE_TYPE.
2161 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2162 Add chain field.
2163 (BLOCK_CHAIN): Use new chain field.
2164
2165 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2166
2167 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2168 moves expensive on Power7 also.
2169
2170 2011-05-26 Richard Guenther <rguenther@suse.de>
2171
2172 * fold-const.c (fold_unary_loc): Remove bogus code.
2173
2174 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2175
2176 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2177 tree_common.
2178 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2179 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2180 TS_BASE instead of TS_COMMON.
2181 * varasm.c (assemble_name): Remove assert.
2182
2183 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2184
2185 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2186 substituted first.
2187 * libgcc-std.ver: Delete file.
2188
2189 2011-05-26 Richard Guenther <rguenther@suse.de>
2190
2191 PR tree-optimization/48702
2192 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2193 only when we know the base address is within bounds.
2194 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2195 assume the base address of TARGET_MEM_REFs is in bounds.
2196
2197 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198
2199 PR target/49099
2200 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2201 declaration in TARGET_SOLARIS.
2202
2203 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2204
2205 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2206 The instruction is then expanded explicitly.
2207 (supported_compare): Callable instruction.
2208 (compare): Likewise.
2209
2210 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2211
2212 PR c++/49165
2213 * gimplify.c (shortcut_cond_r): Don't special case
2214 COND_EXPRs if they have void type on one of their arms.
2215
2216 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2217
2218 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2219 to reduce duplication, and to achieve a slightly more logical order
2220 of operations.
2221
2222 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR tree-optimization/49161
2225 * tree-vrp.c (struct case_info): New type.
2226 (compare_case_labels): Sort case_info structs instead of
2227 trees, and not primarily by CASE_LABEL uids but by
2228 label_for_block indexes.
2229 (find_switch_asserts): Put case labels into struct case_info
2230 array instead of TREE_VEC, adjust sorting, compare label_for_block
2231 values instead of CASE_LABELs.
2232
2233 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2234
2235 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2236 ("orndi3_neon"): Likewise.
2237 ("bic<mode>3_neon"): Likewise.
2238
2239 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2240
2241 PR tree-optimization/49038
2242 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2243 Ensure at least one epilogue iteration if required by data
2244 accesses with gaps.
2245 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2246 to mark loops that require peeling for gaps.
2247 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2248 (vect_get_known_peeling_cost): Take peeling for gaps into
2249 account.
2250 (vect_transform_loop): Generate epilogue if required by data
2251 access with gaps.
2252 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2253 loop as requiring an epilogue if there are gaps in the end of
2254 the strided group.
2255
2256 2011-05-25 Ian Lance Taylor <iant@google.com>
2257
2258 * godump.c (go_format_type): Output the first field with a usable
2259 Go type, if any.
2260
2261 2011-05-25 Ian Lance Taylor <iant@google.com>
2262
2263 * godump.c (go_format_type): Check for invalid type names, pointer
2264 target types, and struct field types.
2265
2266 2011-05-25 Jason Merrill <jason@redhat.com>
2267
2268 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2269
2270 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2271
2272 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2273
2274 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2275
2276 * config/i386/i386.md (*movqi_extv_1)): Put back
2277 "register_operand" check in "type" calculation.
2278 (*movqi_extzv_2): Likewise.
2279
2280 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2281
2282 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2283
2284 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2285
2286 PR bootstrap/49160
2287 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2288 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2289 __divxc3, __divtc3): Wrap definitions in #ifndef.
2290
2291 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2292
2293 PR target/49142
2294 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2295 "register_operand" check and replace q_regs_operand with
2296 QIreg_operand in "type" calculation.
2297 (*movqi_extv_1): Likewise.
2298 (*movqi_extzv_2_rex64): Likewise.
2299 (*movqi_extzv_2): Likewise.
2300
2301 * config/i386/predicates.md (QIreg_operand): New.
2302
2303 2011-05-25 Richard Guenther <rguenther@suse.de>
2304
2305 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2306 type-based offset disambiguation, streamline MEM_REF and
2307 TARGET_MEM_REF handling.
2308
2309 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2310
2311 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2312 (bdesc_special_args): Add pause intrinsic.
2313
2314 * config/i386/i386.md (UNSPEC_PAUSE): New.
2315 (pause): Likewise.
2316 (*pause): Likewise.
2317 * config/i386/ia32intrin.h (__pause): Likewise.
2318
2319 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2320 pause intrinsic.
2321
2322 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2323
2324 PR tree-optimization/46728
2325 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2326 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2327
2328 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2329
2330 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2331 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2332 instead of TS_COMMON.
2333
2334 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2335
2336 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2337 LIBGCC2_GNU_PREFIX is defined.
2338 (__N): New macro.
2339 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2340 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2341 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2342 __clz_tab): Define using __N.
2343 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2344 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2345 * target.def (libfunc_gnu_prefix): New hook.
2346 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2347 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2348 * doc/tm.texi: Regenerate.
2349 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2350 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2351 account.
2352 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2353 (init_optabs): Likewise for the bswap libfuncs.
2354 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2355 and divide.
2356 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2357 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2358 * libgcc-std.ver: Remove.
2359 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2360 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2361 libgcc-std.ver.
2362 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2363 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2364 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2365 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2366 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2367 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2368 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2369 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2370 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2371 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2372
2373 2011-05-25 Jan Hubicka <jh@suse.cz>
2374
2375 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2376 (lto_output_tree): Use output_record_start.
2377 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2378 (lto_get_pickled_tree): Use input_record_start.
2379 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2380 (lto_value_range_error): New function.
2381 * lto-streamer.h (lto_value_range_error): Declare.
2382 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2383 (lto_output_enum, lto_input_enum): New macros.
2384
2385 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2386
2387 * common.opt (flag_stack_usage_info): New variable.
2388 (-Wstack-usage): New option.
2389 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2390 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2391 <OPT_fstack_usage>: Likewise.
2392 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2393 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2394 of flag_stack_usage.
2395 (emit_library_call_value_1): Likewise.
2396 * explow.c (allocate_dynamic_stack_space): Likewise.
2397 * function.c (instantiate_virtual_regs ): Likewise.
2398 (prepare_function_start): Likewise.
2399 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2400 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2401 * config/arm/arm.c (arm_expand_prologue): Likewise.
2402 (thumb1_expand_prologue): Likewise.
2403 * config/avr/avr.c (expand_prologue): Likewise.
2404 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2405 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2406 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2407 * config/mips/mips.c (mips_expand_prologue): Likewise.
2408 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2409 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2410 * config/s390/s390.c (s390_emit_prologue): Likewise.
2411 * config/sh/sh.c (sh_expand_prologue): Likewise.
2412 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2413 * config/spu/spu.c (spu_expand_prologue): Likewise.
2414
2415 2011-05-25 Richard Guenther <rguenther@suse.de>
2416
2417 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2418 (gimple_canonical_types_compatible_p): Likewise.
2419
2420 2011-05-25 Jan Hubicka <jh@suse.cz>
2421
2422 PR middle-end/49062
2423 * ipa.c (function_and_variable_visibility): Only add to same
2424 comdat group list if DECL_ONE_ONLY.
2425
2426 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2427
2428 PR rtl-optimization/49014
2429 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2430
2431 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2432
2433 PR target/49128
2434 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2435
2436 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2437
2438 PR rtl-optimization/48757
2439 * ira-build.c (loop_with_eh_edge_p): Rename to
2440 loop_with_complex_edge_p, check edges on complexity, make function
2441 conditional.
2442 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2443 conditional.
2444
2445 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2446
2447 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2448 force flag_ira_share_save_slots to 0.
2449
2450 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2451
2452 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2453 (vt_initialize): Set PROLOGUE_BB unconditionally.
2454 Add block comment about CFA_BASE_RTX machinery.
2455 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2456 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2457
2458 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2459
2460 PR objc/48187
2461 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2462 parsing of syntax error in ObjC instance variable lists. In
2463 particular, avoid an infinite loop if there is a stray ']'.
2464 Updated error message.
2465
2466 2011-05-24 Ian Lance Taylor <iant@google.com>
2467
2468 * godump.c (go_define): Don't accept a string immediately after
2469 another operand.
2470
2471 2011-05-24 Ian Lance Taylor <iant@google.com>
2472
2473 * godump.c (struct godump_container): Add invalid_hash field.
2474 (go_format_type): Return false if type is found in invalid_hash.
2475 (go_output_typedef): Add invalid type to invalid_hash.
2476 (go_finish): Create and delete invalid_hash.
2477
2478 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2479
2480 PR tree-optimization/46728
2481 * tree-ssa-math-opts.c (powi_table): New.
2482 (powi_lookup_cost): New.
2483 (powi_cost): New.
2484 (powi_as_mults_1): New.
2485 (powi_as_mults): New.
2486 (gimple_expand_builtin_powi): New.
2487 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2488 (gate_cse_sincos): Remove sincos/cexp restriction.
2489
2490 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2491
2492 PR target/3746
2493 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2494 mips-tdump native.
2495 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2496 * mips-tdump.c: Likewise.
2497
2498 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2499
2500 PR target/49128
2501 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2502 add -mno-XXX. Handle FMA.
2503
2504 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2505
2506 PR rtl-optimization/48633
2507 * ira-build.c (loop_with_eh_edge_p): New function.
2508 (mark_loops_for_removal): Use it.
2509
2510 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2511
2512 PR rtl-optimization/48971
2513 * ira.c (setup_pressure_classes): Don't check register move cost
2514 for classes with one registers. Don't add pressure class if there
2515 is a pressure class with the same available hard registers.
2516 Check contains_reg_of_mode. Fix a typo in collecting
2517 temp_hard_regset. Ignore hard registers not belonging to a class.
2518
2519 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2520
2521 PR target/49133
2522 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2523
2524 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2525 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2526
2527 PR gcov-profile/48845
2528 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2529
2530 2011-05-24 Richard Guenther <rguenther@suse.de>
2531
2532 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2533 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2534 (gimple_types_compatible_p_1): Adjust.
2535 (iterative_hash_canonical_type): Do not bother about complete vs.
2536 incomplete types.
2537 (gimple_canonical_types_compatible_p): Likewise.
2538
2539 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2540
2541 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2542
2543 2011-05-24 Richard Guenther <rguenther@suse.de>
2544
2545 PR bootstrap/49078
2546 * gimple.c (gimple_register_canonical_type): Revert
2547 previous change.
2548 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2549 does not for a tree for the case where it matters. Cache
2550 pointer-type alias-sets.
2551
2552 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2553
2554 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2555 (OBJS): Remove options.o, opts-common.o and prefix.o.
2556 (OBJS-libcommon-target): New.
2557 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2558 (BACKEND): Include libcommon-target.a.
2559 (MOSTLYCLEANFILES): Include libcommon-target.a.
2560 (libcommon-target.a): New.
2561 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2562 prefix.o.
2563
2564 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2565
2566 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2567 parts of output shared with the driver.
2568 * optc-gen.awk: Don't generate parts of output not shared with the
2569 driver.
2570 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2571 * doc/options.texi (SourcerInclude): Mention options-save.c.
2572 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2573 (OBJS): Add options-save.o.
2574 (options-save.c, options-save.o): New.
2575 (options.o): Update dependencies.
2576 (gcc-options.o): Remove.
2577 (mostlyclean): Remove options-save.c.
2578
2579 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR debug/49032
2582 * dbxout.c: Include cgraph.h.
2583 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2584 and without value expr, return NULL if no varpool node exists for
2585 it or if it is not needed.
2586 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2587
2588 PR c/49120
2589 * c-decl.c (start_decl): Convert expr to void_type_node.
2590
2591 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2592
2593 PR rtl-optimization/48826
2594 * emit-rtl.c (try_split): When splitting a call that is followed
2595 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2596
2597 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2598
2599 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2600 parameters passed in memory prefer using DECL_INCOMING_RTL over
2601 the pseudos it will be copied into.
2602
2603 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2604
2605 PR target/47315
2606 * config/i386/i386.c (ix86_option_override_internal): Save the
2607 initial options after checking vzeroupper.
2608
2609 2011-05-23 David Li <davidxl@google.com>
2610
2611 PR tree-optimization/48988
2612 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2613 Initialize has_valid_pred for each pred chain.
2614
2615 2011-05-23 Richard Guenther <rguenther@suse.de>
2616
2617 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2618 (iterative_hash_gimple_type): Always hash type names.
2619
2620 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2621
2622 * c-typeck.c (build_function_call_vec): Tweak call to
2623 check_function_arguments.
2624
2625 2011-05-23 Richard Guenther <rguenther@suse.de>
2626
2627 PR tree-optimization/49115
2628 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2629 is not necessarily carried out, do not claim it kills the ref.
2630 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2631
2632 2011-05-23 Richard Guenther <rguenther@suse.de>
2633
2634 PR middle-end/15419
2635 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2636 what pointer types we accept for folding.
2637
2638 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2639
2640 * gthr-gnat.c: Remove.
2641 * gthr-gnat.h: Remove.
2642 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2643 * config/t-freebsd (LIB2ADDEH): Likewise.
2644 * config/t-linux (LIB2ADDEH): Likewise.
2645 * config/t-sol2 (LIB2ADDEH): Likewise.
2646 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2647 * configure.ac (target_thread_file): Remove gnat handling.
2648 * configure: Regenerate.
2649 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2650
2651 2011-05-23 Tristan Gingold <gingold@adacore.com>
2652 Eric Botcazou <ebotcazou@adacore.com>
2653
2654 * gcov.c (create_file_names): If no object directory is specified,
2655 keep the directory of the file.
2656
2657 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2658
2659 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2660 * configure: Regenerate.
2661
2662 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2663
2664 PR middle-end/48973
2665 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2666 failed and the comparison has a single bit signed type, use
2667 constm1_rtx instead of const1_rtx for true value.
2668 (do_store_flag): If ops->type is single bit signed type, disable
2669 signel bit test optimization and pass -1 instead of 1 as last
2670 parameter to emit_store_flag_force.
2671
2672 2011-05-23 Tom de Vries <tom@codesourcery.com>
2673
2674 PR target/45098
2675 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2676 function.
2677 (infer_loop_bounds_from_undefined): Use new function.
2678
2679 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2680
2681 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2682 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2683 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2684 and -O0 otherwise.
2685 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2686
2687 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2688
2689 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2690 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2691 returns true.
2692
2693 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2694
2695 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2696
2697 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2698
2699 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2700 UNSPEC_MOVE_PIC pattern.
2701
2702 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2703
2704 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2705 (sparc-*-rtems*): Likewise.
2706 (sparc64-*-elf*): Likewise.
2707 (sparc64-*-rtems*): Likewise.
2708 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2709 * config/sparc/t-crtin: New file.
2710 * config/sparc/t-sol2 (crti.o): Delete rule.
2711 (crtn.o): Likewise.
2712 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2713 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2714 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2715 (ENDFILE_SPEC): Add crtn.o.
2716
2717 2011-05-22 Tom de Vries <tom@codesourcery.com>
2718
2719 PR middle-end/48689
2720 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2721 CODE_CONTAINS_STRUCT (TS_COMMON).
2722
2723 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR middle-end/49029
2726 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2727 only after deciding which mode to use.
2728
2729 2011-05-22 Tom de Vries <tom@codesourcery.com>
2730
2731 PR target/45098
2732 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2733 for call to get_shiftadd_cost.
2734
2735 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2736
2737 PR target/49104
2738 * config/i386/cpuid.h (bit_MMXEXT): New define.
2739
2740 2011-05-22 Nick Clifton <nickc@redhat.com>
2741
2742 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2743 initialisation of non-existant args[2] element. Use args[] array
2744 not arg[] array to pass arguments to build_function_type_list.
2745
2746 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2747
2748 PR tree-optimization/49087
2749 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2750
2751 2011-05-21 Jason Merrill <jason@redhat.com>
2752
2753 PR c++/49092
2754 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2755 static storage duration.
2756
2757 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2758
2759 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2760 frame pointer.
2761
2762 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2763
2764 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2765 false if there are call-saved registers here...
2766 (sparc_can_use_return_insn_p): ...but here instead.
2767 (save_or_restore_regs): Fix thinko.
2768 (sparc_expand_prologue): Use current_function_is_leaf.
2769 (sparc_frame_pointer_required): Likewise.
2770
2771 2011-05-21 Nick Clifton <nickc@redhat.com>
2772
2773 PR target/49098
2774 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2775
2776 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2777
2778 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2779 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2780
2781 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2782
2783 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2784 * optc-gen.awk: Move common code to opt-read.awk.
2785 * opth-gen.awk: Likewise.
2786 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2787
2788 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2789
2790 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2791
2792 2011-05-20 Tom de Vries <tom@codesourcery.com>
2793
2794 PR target/45098
2795 * tree-ssa-loop-ivopts.c: Include expmed.h.
2796 (get_shiftadd_cost): New function.
2797 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2798
2799 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2800
2801 PR bootstrap/49086
2802 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2803 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2804
2805 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2806
2807 * Makefile.in: Update comment referring to $(OBJS-common).
2808
2809 2011-05-20 Ian Lance Taylor <iant@google.com>
2810
2811 * godump.c (go_output_typedef): Put enum constants in the macro
2812 hash table to avoid duplicate Go const definitions.
2813
2814 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2815
2816 * Makefile.in (LIBDEPS): Add libcommon.a.
2817 (LIBS): Likewise.
2818 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2819 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2820 pretty-print.o and version.o.
2821 (OBJS-libcommon): New.
2822 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2823 (BACKEND): Add libcommon.a.
2824 (MOSTLYCLEANFILES): Likewise.
2825 (libcommon.a): New.
2826 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2827 (cpp$(exeext)): Likewise.
2828 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2829 pretty-print.o and input.o.
2830 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2831 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2832 (errors.o): Remove.
2833 (mips-tfile): Don't explicitly use version.o.
2834 (mips-tdump): Likewise.
2835 (gcov.o): Depend on $(DIAGNOSTIC_H).
2836 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2837 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2838 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2839 * gcov-dump.c: Include intl.h and diagnostic.h.
2840 (main): Initialize diagnostics.
2841 * gcov.c: Include diagnostic.h.
2842 (fnotice): Remove.
2843 (main): Initialize diagnostics.
2844 * lto-wrapper.c: Include diagnostic.h.
2845 (main): Initialize diagnostics.
2846
2847 2011-05-20 Michael Matz <matz@suse.de>
2848
2849 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2850
2851 2011-05-20 Michael Matz <matz@suse.de>
2852 Richard Guenther <rguenther@suse.de>
2853
2854 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2855 use lto_streamer_cache_append directly instead of returning a VEC.
2856 (preload_common_node): Remove.
2857 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2858 track seen nodes.
2859 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2860
2861 2011-05-20 Richard Guenther <rguenther@suse.de>
2862
2863 PR tree-optimization/49079
2864 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2865 MEM_REFs correctly for the trailing array access detection.
2866 Special case constants the same way as decls for overall size
2867 constraining.
2868
2869 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2870
2871 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2872 argument expansion.
2873
2874 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2875
2876 PR tree-optimization/49073
2877 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2878 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2879 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2880
2881 2011-05-20 Richard Guenther <rguenther@suse.de>
2882
2883 PR middle-end/48849
2884 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2885 of pointer types the same way the middle-end does.
2886
2887 2011-05-20 Richard Guenther <rguenther@suse.de>
2888
2889 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2890 or pointer-to chains. Delay all fixup to uniquify_nodes.
2891
2892 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2893
2894 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2895 (fma4_fmaddsub): Likewise
2896
2897 2011-05-19 Jan Hubicka <jh@suse.cz>
2898
2899 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2900 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2901 (type_pair_cache): New static var.
2902 (lookup_type_pair): Use fixed sized custom hash; make inline.
2903 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2904 calls of lookup_type_pair.
2905 (print_gimple_types_stats): Remove cache stats.
2906 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2907 and gtc_ob.
2908
2909 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2910
2911 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2912 when TARGET_RDRND is active.
2913 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2914 Generate dummy SImode target register when target is NULL.
2915
2916 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2917
2918 * config/arm/arm-fpus.def: New.
2919 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2920 arm-fpus.def.
2921 * config/arm/arm-tables.opt: Regenerate.
2922 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2923 (arm_option_override): Don't decode FPU name to string here.
2924 * config/arm/arm.opt (mfpu=): Use Enum.
2925 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2926 Update dependencies.
2927
2928 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2929
2930 * collect2.c: Include diagnostic.h.
2931 (fatal_perror, fatal, error, fancy_abort): Remove.
2932 (main): Set progname. Call xmalloc_set_program_name and
2933 diagnostic_initialize.
2934 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2935 scan_libraries, resolve_lib_name): Call fatal_error instead of
2936 fatal and fatal_perror.
2937 * collect2.h (error, fatal, fatal_perror): Don't declare.
2938 * tlink.c: Include diagnostic-core.h.
2939 (recompile_files): Call fatal_error instead of fatal_perror.
2940 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2941 pretty-print.o and input.o.
2942 (collect2.o, tlink.o): Update dependencies.
2943
2944 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2945
2946 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2947
2948 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2949
2950 PR target/40483
2951 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2952 COMDAT group syntax, both SPARC and x86 variants.
2953 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2954 * configure: Regenerate.
2955 * config/sol2.h (TARGET_SOLARIS): Define.
2956 (PUSHSECTION_FORMAT): Remove.
2957 (SECTION_NAME_FORMAT): Define.
2958 * config/sol2.c: Include hashtab.h.
2959 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2960 expansion, using SECTION_NAME_FORMAT.
2961 (solaris_comdat_htab): New variable.
2962 (struct comdat_entry): Define.
2963 (comdat_hash): New function.
2964 (comdat_eq): New function.
2965 (solaris_elf_asm_comdat_section): New function.
2966 (solaris_define_comdat_signature): New function.
2967 (solaris_code_end): New function.
2968 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2969 (solaris_code_end): Declare.
2970 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2971 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2972 solaris_code_end.
2973 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2974 Remove ATTRIBUTE_UNUSED.
2975 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2976 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2977 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2978 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2979 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2980 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2981 (PUSHSECTION_FORMAT): Remove.
2982 (SECTION_NAME_FORMAT): Redefine.
2983
2984 2011-05-19 Kai Tietz <ktietz@redhat.com>
2985
2986 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2987 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2988 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2989
2990 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2991 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2992
2993 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2994
2995 2011-05-19 Richard Guenther <rguenther@suse.de>
2996
2997 PR middle-end/48985
2998 * tree-object-size.c (addr_object_size): If the pointed-to
2999 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3000
3001 2011-05-19 Richard Guenther <rguenther@suse.de>
3002
3003 * gimple.c (gimple_types_compatible_p_1): Compare names of
3004 the types themselves.
3005 (iterative_hash_gimple_type): And hash them that way.
3006 (gimple_register_type_1): If we register a main variant properly
3007 initialize the leader to ourselves.
3008
3009 2011-05-19 Tom de Vries <tom@codesourcery.com>
3010
3011 PR target/45098
3012 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3013 get_loop_invariant_expr_id.
3014 (get_loop_invariant_expr_id): Use get_expr_id.
3015 (parm_decl_cost): New function.
3016 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3017 Improve bound cost estimation. Use different inv_expr_id for elim and
3018 express cases.
3019
3020 2011-05-19 Tom de Vries <tom@codesourcery.com>
3021
3022 PR target/45098
3023 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3024 cost_base.cost == 0.
3025
3026 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3027
3028 PR target/49002
3029 * config/i386/sse.md
3030 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3031 load cast.
3032
3033 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3034
3035 PR tree-optimization/49039
3036 * tree-vrp.c (extract_range_from_binary_expr): For
3037 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3038 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3039
3040 2011-05-18 Tom de Vries <tom@codesourcery.com>
3041
3042 PR target/45098
3043 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3044
3045 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3046
3047 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3048 (*tls_global_dynamic_64): Ditto.
3049 (*tls_local_dynamic_base_32_gnu): Ditto.
3050 (*tls_local_dynamic_base_64): Ditto.
3051 (tls_initial_exec_64_sun): Ditto.
3052
3053 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3054
3055 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3056 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3057 bf592-none.
3058 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3059 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3060 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3061 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3062 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3063 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3064 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3065
3066 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3067
3068 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3069 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3070 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3071 target_thread_pointer, arm_structure_size_boundary, struct
3072 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3073 struct abi_name, arm_all_abis): Remove.
3074 (arm_option_override) Don't process most enumerated option values here.
3075 Don't process target_fpe_name here. Work with integer not string for
3076 structure size boundary; use separate diagnostics for each case.
3077 * config/arm/arm.h (enum float_abi_type, enum
3078 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3079 to arm-opts.h.
3080 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3081 arm_structure_size_boundary): Remove.
3082 * config/arm/arm.opt (mabi=): Use Enum and Init.
3083 (arm_abi_type): New Enum and EnumValue entries.
3084 (mfloat-abi=): Use Enum and Init.
3085 (float_abi_type): New Enum and EnumValue entries.
3086 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3087 (mfp16-format=): Use Enum and Init.
3088 (arm_fp16_format_type): New Enum and EnumValue entries.
3089 (mstructure-size-boundary=): Use UInteger and Init.
3090 (mtp=): Use Enum and Init.
3091 (arm_tp_type): New Enum and EnumValue entries.
3092
3093 2011-05-18 Richard Guenther <rguenther@suse.de>
3094
3095 PR tree-optimization/49018
3096 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3097 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3098 gimple_has_side_effects.
3099
3100 2011-05-18 Richard Guenther <rguenther@suse.de>
3101
3102 * gimple.c (gimple_register_type_1): New function, split out from ...
3103 (gimple_register_type): ... here. Avoid infinite recursion.
3104
3105 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3106
3107 PR tree-optimization/41881
3108 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3109 reduction_chains along with a macro for its access.
3110 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3111 (destroy_loop_vec_info): Free reduction chains.
3112 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3113 (vect_is_slp_reduction): New function.
3114 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3115 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3116 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3117 definition types for reduction chains.
3118 (vect_supported_load_permutation_p): Don't allow permutations for
3119 reduction chains.
3120 (vect_analyze_slp_instance): Support reduction chains.
3121 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3122 (vect_get_constant_vectors): Handle reduction chains.
3123 (vect_schedule_slp_instance): Mark the first statement of the
3124 reduction chain as reduction.
3125
3126 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3127
3128 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3129 names for group elements access.
3130 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3131 reduction chains as well. Remove data reference and interleaving
3132 related words from the fields names.
3133 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3134 elements access.
3135 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3136 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3137 vect_update_interleaving_chain, vect_same_range_drs,
3138 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3139 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3140 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3141 vect_analyze_group_access, vect_analyze_data_ref_access,
3142 vect_create_data_ref_ptr, vect_transform_strided_load,
3143 vect_record_strided_load_vectors): Likewise.
3144 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3145 vect_model_load_cost, vectorizable_store, vectorizable_load,
3146 vect_remove_stores, new_stmt_vec_info): Likewise.
3147 * tree-vect-slp.c (vect_build_slp_tree,
3148 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3149
3150 2011-05-18 Richard Guenther <rguenther@suse.de>
3151
3152 PR middle-end/48989
3153 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3154 operand verification.
3155 (verify_gimple_assign_binary): Likewise.
3156 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3157 to non-1-precision BOOLEAN_TYPEs.
3158
3159 2011-05-18 Tom de Vries <tom@codesourcery.com>
3160
3161 PR target/45098
3162 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3163
3164 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3165
3166 PR tree-optimization/49000
3167 * tree-ssa.c (execute_update_addresses_taken): Call
3168 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3169 be rewritten and decl has been marked for renaming, reset
3170 the debug stmt.
3171
3172 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3173
3174 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3175 enum_opts_set when testing if attributes have set -mfpmath=.
3176
3177 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3178
3179 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3180
3181 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3182
3183 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3184 info->entry with 0
3185 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3186 id.transform_lang_insert_block with NULL.
3187
3188 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3189
3190 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3191 (output_fp_compare): Change args 3 and 4 to bool.
3192 (ix86_expand_call): Change arg 6 to bool.
3193 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3194 (ix86_attr_length_vex_default): Change arg 3 to bool.
3195 * config/i386/i386.md: Update all uses.
3196 * config/i386/i386.c: Ditto.
3197 (ix86_flags_dependent): Change return type to bool.
3198
3199 2011-05-17 Richard Guenther <rguenther@suse.de>
3200
3201 * gimple.c (type_hash_pair_compare): Fix comparison.
3202
3203 2011-05-17 Richard Guenther <rguenther@suse.de>
3204
3205 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3206 case some more, fix final hash value of the non-singleton case.
3207
3208 2011-05-17 Richard Guenther <rguenther@suse.de>
3209
3210 PR bootstrap/49013
3211 Revert
3212 2011-05-16 Richard Guenther <rguenther@suse.de>
3213
3214 * gimple.c (gimple_types_compatible_p_1): Use names of the
3215 type itself, not its main variant.
3216 (iterative_hash_gimple_type): Likewise.
3217
3218 2011-05-17 Richard Guenther <rguenther@suse.de>
3219
3220 * gimple.c (gimple_register_canonical_type): Use the main-variant
3221 leader for computing the canonical type.
3222
3223 2011-05-17 Nick Clifton <nickc@redhat.com>
3224
3225 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3226 moves.
3227
3228 * config/rx/rx.md: Add peephole to remove redundant extensions
3229 after loads.
3230 (bitset_in_memory): Use rx_restricted_mem_operand.
3231 (bitinvert_in_memory): Likewise.
3232 (bitclr_in_memory): Likewise.
3233
3234 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3235 Nick Clifton <nickc@redhat.com>
3236
3237 * config/rx/rx.md: Add peepholes to match a register move followed
3238 by a comparison of the moved register. Replace these with an
3239 addition of zero that does both actions in one instruction.
3240
3241 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3242
3243 PR target/48986
3244 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3245 predicate to allow CONST_INT.
3246 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3247
3248 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3249
3250 * opts-common.c (opt_enum_arg_to_value): New.
3251 * opts.h (opt_enum_arg_to_value): Declare.
3252 * config/i386/i386.opt (fpmath): Remove.
3253 (mfpmath=): Use Enum, Init and Save.
3254 (fpmath_unit): New Enum and EnumValue entries.
3255 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3256 name for function fpmath state.
3257 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3258 * config/i386/i386.c: Include diagnostic.h.
3259 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3260 (ix86_target_string): Take enum fpmath_unit value instead of string.
3261 (ix86_debug_options): Update call to ix86_target_string.
3262 (ix86_option_override_internal): Don't process fpmath strings here.
3263 (x86_function_specific_save, ix86_function_specific_restore):
3264 Don't handle fpmath state specially.
3265 (ix86_function_specific_print): Pass fpmath state to
3266 ix86_target_string instead of printing in this function.
3267 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3268 Handle enum attributes.
3269 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3270 (ix86_valid_target_attribute_tree): Update option_strings
3271 handling. Handle fpmath as enum option.
3272 (ix86_can_inline_p): Update field names for function fpmath state.
3273 (ix86_expand_builtin): Update call to ix86_target_string.
3274 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3275 (ix86_fpmath): Remove.
3276 * config/i386/t-i386 (i386.o): Update dependencies.
3277
3278 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3279
3280 PR preprocessor/48677
3281 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3282 from decoded_options[0], not from itself.
3283
3284 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3285
3286 * config/i386/constraints.md (z): New constraint.
3287 * config/i386/i386.c (c): New mode attribute.
3288 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3289 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3290 constraint for operand 0.
3291 (*call_vzeroupper): Ditto.
3292 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3293 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3294 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3295 Use "lzm" constraint for operand 0.
3296 (*call_pop_vzeroupper): Ditto.
3297 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3298 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3299 constraint for operand 0.
3300 (*sibcall_vzeroupper): Ditto.
3301 (*sibcall_rex64_ms_sysv): Ditto.
3302 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3303 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3304 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3305 (*sibcall_pop_vzeroupper): Ditto.
3306 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3307 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3308 mode iterator. Use "<c>zm" constraint for operand 1.
3309 (*call_value_vzeroupper): Ditto.
3310 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3311 for operand 1.
3312 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3313 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3314 *call_value_pop_1. Use "lzm" constraint for operand 1.
3315 (*call_value_pop_vzeroupper): Ditto.
3316 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3317 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3318 mode iterator. Use "Uz" constraint for operand 1.
3319 (*sibcall_value_vzeroupper): Ditto.
3320 (*sibcall_value_rex64_ms_sysv): Ditto.
3321 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3322 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3323 constraint for operand 1.
3324 (*sibcall_value_pop_vzeroupper): Ditto.
3325 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3326 and "z" constraint for operand 2.
3327 (*tls_global_dynamic_32_gnu): Ditto.
3328 (*tls_local_dynamic_base_32_gnu): Ditto.
3329 (*tls_local_dynamic_base_64): Ditto.
3330 (*tls_local_dynamic_32_once): Ditto.
3331 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3332 Update all callers.
3333 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3334
3335 2011-05-16 Richard Guenther <rguenther@suse.de>
3336
3337 * gimple.c (gimple_types_compatible_p_1): Use names of the
3338 type itself, not its main variant.
3339 (iterative_hash_gimple_type): Likewise.
3340
3341 2011-05-16 Richard Guenther <rguenther@suse.de>
3342
3343 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3344 always visit pointer target and function result and argument types.
3345
3346 2011-05-16 Jason Merrill <jason@redhat.com>
3347
3348 PR c++/48999
3349 * tree-inline.c (copy_statement_list): Put back recursion.
3350
3351 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3352
3353 PR target/27663
3354 PR target/41076
3355 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3356 * config/avr/avr.md ("*ior<mode>qi.byte0",
3357 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3358
3359 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3360
3361 PR target/45099
3362 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3363 register is needed for a function argument.
3364
3365 2011-05-16 Richard Guenther <rguenther@suse.de>
3366
3367 * gimple.c (struct type_hash_pair): New type.
3368 (type_hash_pair_compare): New function.
3369 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3370
3371 2011-05-16 Revital Eres <revital.eres@linaro.org>
3372
3373 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3374
3375 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3376
3377 * config/i386/i386.md (floating point move splitters): Fix
3378 usage of standard_80387_constant_p.
3379 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3380
3381 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3382
3383 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3384
3385 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3386
3387 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3388 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3389 (tree_ssa_lim_finalize): Likewise.
3390
3391 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3392
3393 * config/i386/constraint.md (Yd, Yx): New register constraints.
3394 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3395 Yd conditional register constraint.
3396 (*movtf_internal): Use standard_sse_constant_opcode.
3397 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3398 Yx conditional register constraint.
3399 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3400 Yd conditional register constraint. Use standard_sse_constant_p to
3401 check for valid SSE constants and call standard_sse_constant_opcode to
3402 output SSE insn.
3403 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3404 constants and call standard_sse_constant_opcode to output SSE insn.
3405 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3406 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3407 optimize_size is set.
3408 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3409
3410 2011-05-14 Tobias Burnus <burnus@net-b.de>
3411
3412 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3413
3414 2011-05-13 Martin Jambor <mjambor@suse.cz>
3415
3416 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3417 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3418 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3419 (evaluate_conditions_for_ipcp_clone): Removed.
3420 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3421 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3422 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3423
3424 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3425
3426 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3427 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3428 lieu of MAY_HAVE_DEBUG_STMTS.
3429 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3430 debug statements if !MAY_HAVE_DEBUG_STMTS.
3431
3432 2011-05-13 Martin Thuresson <martint@google.com>
3433
3434 PR gcov-profile/47793
3435 * libgcov.c (gcov_exit): Support relative profile paths.
3436 * doc/invoke.texi (-fprofile-dir): Update for above change.
3437
3438 2011-05-13 Richard Guenther <rguenther@suse.de>
3439
3440 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3441 type-pair caching, do not compare hashes.
3442
3443 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3444
3445 PR middle-end/48965
3446 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3447 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3448
3449 2011-05-13 Kai Tietz <ktietz@redhat.com>
3450
3451 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3452 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3453 compatible type for TRUTH_NOT_EXPR.
3454
3455 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3456
3457 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3458 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3459 can_create_pseudo_p ().
3460
3461 2011-05-13 Richard Guenther <rguenther@suse.de>
3462
3463 PR lto/48978
3464 * gimple.c (iterative_hash_gimple_type): Revert change in
3465 pointer target and function result and argument hashing.
3466
3467 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3468
3469 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3470 (*movxf_internal_nointeger): Ditto.
3471 (*movdf_internal_rex64): Ditto.
3472 (*movdf_internal): Ditto.
3473 (*movdf_internal_nointeger): Ditto.
3474 (*movsf_internal): Ditto.
3475 (sincos splitters): Use can_create_pseudo ().
3476
3477 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3478
3479 * config/i386/i386-opts.h: New.
3480 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3481 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3482 ix86_section_threshold): Remove.
3483 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3484 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3485 OPT_mbranch_cost_.
3486 (ix86_option_override_internal): Don't decode strings for options
3487 other than -march=, -mtune= and -mfpmath=. Don't allow for
3488 __attribute__ uses in remaining diagnostics for options with
3489 string arguments. Don't check for integer arguments being negative.
3490 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3491 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3492 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3493 ix86_branch_cost, ix86_section_threshold): Remove.
3494 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3495 HeaderInclude.
3496 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3497 but not Var.
3498 (masm=): Use Enum and Init.
3499 (asm_dialect): New Enum and EnumValue entries.
3500 (mbranch-cost=): Use UInteger.
3501 (mlarge-data-threshold=): Use UInteger and Init.
3502 (mcmodel=): Use Enum and Init.
3503 (cmodel): New Enum and EnumValue entries.
3504 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3505 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3506 mregparm=): Use UInteger.
3507 (mstringop-strategy=): Use Enum and Init.
3508 (stringop_alg): New Enum and EnumValue entries.
3509 (mtls-dialect=): Use Enum and Init.
3510 (tls_dialect): New Enum and EnumValue entries.
3511 (mabi=): Use Enum and Init.
3512 (calling_abi): New Enum and EnumValue entries.
3513 (mveclibabi=): Use Enum and Init.
3514 (ix86_veclibabi): New Enum and EnumValue entries.
3515
3516 2011-05-13 Nick Clifton <nickc@redhat.com>
3517
3518 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3519 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3520
3521 2011-05-13 Kai Tietz <ktietz@redhat.com>
3522
3523 PR middle-end/48984
3524 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3525 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3526 (gimple_boolify): Check for cast for boolean_type_node instead for
3527 BOOLEAN_TYPE.
3528
3529 2011-05-13 Richard Guenther <rguenther@suse.de>
3530
3531 PR tree-optimization/48172
3532 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3533 multiplying by number of iterations for equal step.
3534 (vect_create_cond_for_alias_checks): Likewise.
3535
3536 2011-05-13 Andreas Schwab <schwab@redhat.com>
3537
3538 * configure.ac: Use AS_HELP_STRING throughout.
3539 * configure: Regenerate.
3540
3541 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3542
3543 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3544 (ix86_emit_restore_regs_using_mov): Likewise.
3545 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3546
3547 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3548
3549 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3550 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3551 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3552 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3553 RTX_OK_FOR_OLO10_P): ...here.
3554 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3555 SYMBOLIC_CONST.
3556
3557 2011-05-12 Kai Tietz <ktietz@redhat.com>
3558
3559 * gimplify.c (gimple_boolify): Re-boolify expression
3560 arguments even if expression type is of kind BOOLEAN_TYPE.
3561 (gimplify_boolean_expr): Removed.
3562 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3563 and XOR. Additional take care that we keep expression's type.
3564 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3565 of TRUTH_AND|OR|XOR_EXPR.
3566
3567 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3568
3569 PR tree-optimization/48975
3570 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3571 on all bbs here and free and clear ifc_bbs at the end.
3572
3573 2011-05-12 Richard Guenther <rguenther@suse.de>
3574
3575 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3576 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3577 until after simple checks.
3578 (gimple_types_compatible_p): Likewise.
3579 (iterative_hash_gimple_type): Always hash pointer targets
3580 and function return and argument types.
3581 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3582 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3583 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3584 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3585 completely in the simple compare section.
3586 (gimple_register_canonical_type): Query the cache again after
3587 registering.
3588
3589 2011-05-12 Richard Guenther <rguenther@suse.de>
3590
3591 PR tree-optimization/48172
3592 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3593 the number of iterations from the segment size calculation.
3594 (vect_create_cond_for_alias_checks): Adjust.
3595
3596 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3597
3598 PR debug/48967
3599 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3600 if validate_subreg fails.
3601
3602 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3603
3604 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3605 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3606 early.
3607
3608 2011-05-12 DJ Delorie <dj@redhat.com>
3609
3610 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3611 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3612 created builtin into rx_builtins array.
3613 (rx_builtin_decl): New function.
3614 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3615
3616 2011-05-12 DJ Delorie <dj@redhat.com>
3617 Nick Clifton <nickc@redhat.com>
3618
3619 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3620 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3621 (rx_is_legitimate_address): Add pre-decrement and post-increment
3622 addressing in HImode and QImode. Fix test for out of range
3623 REG+INT addressing.
3624 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3625 (rx_align_for_label): Test label before extracting its usage count.
3626 (rx_adjust_insn_lengths): Fix selection of insn codes.
3627 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3628
3629 2011-05-11 Jason Merrill <jason@redhat.com>
3630
3631 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3632
3633 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3634
3635 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3636 reindent the subsequent block.
3637
3638 2011-05-11 Satoru Takabayashi <satorux@google.com>
3639 Paul Pluzhnikov <ppluzhnikov@google.com>
3640
3641 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3642 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3643 * config.in: Add LINKER_HASH_STYLE.
3644 * configure.ac: Add --with-linker-hash-style.
3645 * configure: Regenerate.
3646
3647 2011-05-11 Richard Guenther <rguenther@suse.de>
3648
3649 PR middle-end/48964
3650 * gimple.c (iterative_hash_canonical_type): Fix typo.
3651
3652 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3653
3654 * config/i386/i386.c (legitimize_tls_address)
3655 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3656 expanders directly for TARGET_GNU2_TLS. Determine pic and
3657 __tls_get_addr symbol reference here. Update call to
3658 gen_tls_global_dynamic_{32,64} for added arguments.
3659 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3660 expanders directly for TARGET_GNU2_TLS. Determine
3661 __tls_get_addr symbol reference here. Update call to
3662 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3663 unique UNSPEC REG_EQUIV to libcall block.
3664 (ix86_tls_get_addr): Declare static.
3665 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3666 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3667 Do not determine pic and __tls_get_addr symbol reference here. Do not
3668 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3669 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3670 (tls_global_dynamic_64): Add operand 2. Do not determine
3671 __tls_get_addr symbol reference here. Do not call
3672 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3673 (tls_local_dynamic_base64): Ditto for operand 1.
3674
3675 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3676
3677 * function.c (expand_function_start): Initialize stack_check_probe_note
3678 only if the generic stack checking mechanism is used.
3679
3680 2011-05-11 Richard Guenther <rguenther@suse.de>
3681
3682 PR tree-optimization/15256
3683 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3684 (A & B) | C, combine (A op CST1) op CST2.
3685 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3686 visit assigns that have uses.
3687
3688 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3689
3690 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3691 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3692 (unpack_ts_type_common_value_fields): ...this. Update comment.
3693 (unpack_value_fields): Adjust for renaming.
3694 (lto_input_ts_type_tree_pointers): Split into...
3695 (lto_input_ts_type_common_tree_pointer): ...this and...
3696 (lto_input_ts_type_non_common_tree_pointers): ...this.
3697 (lto_input_tree_pointers): Adjust for above split.
3698 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3699 (pack_ts_type_common_value_fields): ...this. Update comment.
3700 (lto_output_ts_type_tree_pointers): Split into...
3701 (lto_output_ts_type_common_tree_pointers): ...this and...
3702 (lto_output_ts_type_non_common_tree_pointers): ...this.
3703 (lto_output_tree_pointers): Adjust for above split.
3704 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3705 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3706 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3707 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3708 Define.
3709 (struct tree_type): Split into...
3710 (struct tree_type_common: ...this and...
3711 (struct tree_type_with_lang_specific): ...this and...
3712 (struct tree_type_non_common): ...this. Adjust accessor macros
3713 accordingly.
3714 (TYPE_VALUES_RAW): Define.
3715 (union tree_node): Update for above changes.
3716 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3717 TS_TYPE_NON_COMMON.
3718 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3719 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3720 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3721 * treestructu.def (TS_TYPE): Remove.
3722 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3723 Define.
3724
3725 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3726
3727 PR debug/48159
3728 * tree-ssa.c (reset_debug_uses): New function.
3729 * tree-flow.h (reset_debug_uses): New prototype.
3730 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3731 * tree-loop-distribution.c (generate_loops_for_partition): Call
3732 reset_debug_uses on the stmts that will be removed. Keep around
3733 all debug stmts, don't count them as bits in partition bitmap.
3734 (generate_builtin): Don't count debug stmts or labels as bits in
3735 partition bitmap.
3736
3737 2011-05-11 Richard Guenther <rguenther@suse.de>
3738
3739 * gimple.c (gimple_type_hash_1): Merge with ...
3740 (gimple_type_hash): ... this.
3741 (gtc_visit): Remove mode parameter and simplify accordingly.
3742 (gimple_types_compatible_p_1): Likewise.
3743 (gimple_types_compatible_p): Likewise.
3744 (iterative_hash_gimple_type): Likewise.
3745 (visit): Likewise.
3746 (gimple_type_eq): Adjust.
3747
3748 2011-05-11 Revital Eres <revital.eres@linaro.org>
3749
3750 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3751 enters the branch create an anti edge in the opposite direction
3752 to prevent the creation of reg-moves.
3753 * modulo-sched.c: Adjust comment to reflect the fact we are
3754 scheduling closing branch.
3755 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3756 (stage_count): New field in struct partial_schedule.
3757 (calculate_stage_count): New function.
3758 (normalize_sched_times): Rename to reset_sched_times and handle
3759 incrementing the sched time of the nodes by a constant value
3760 passed as parameter.
3761 (duplicate_insns_of_cycles): Skip closing branch.
3762 (sms_schedule_by_order): Schedule closing branch.
3763 (ps_insn_find_column): Handle closing branch.
3764 (sms_schedule): Call reset_sched_times and adjust the code to
3765 support scheduling of the closing branch.
3766 (ps_insert_empty_row): Update calls to normalize_sched_times
3767 and rotate_partial_schedule functions.
3768
3769 2011-05-11 Richard Guenther <rguenther@suse.de>
3770
3771 PR middle-end/48953
3772 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3773
3774 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3775
3776 * opts.c (finish_options): Move warning settings from process_options.
3777 * toplev.c (process_options): Move warning settings to finish_options.
3778
3779 2011-05-11 Richard Guenther <rguenther@suse.de>
3780
3781 PR tree-optimization/18041
3782 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3783 (simplify_bitwise_binary): ... this. Handle operand conversions
3784 by applying them to the result instead.
3785 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3786
3787 2011-05-11 Richard Guenther <rguenther@suse.de>
3788
3789 * gimple.c (gimple_canonical_types_compatible_p): Split out
3790 from gimple_types_compatible_p and friends. Do not recurse
3791 to pointed-to types.
3792 (gimple_canonical_type_eq): Use it.
3793 (iterative_hash_canonical_type): Split out from
3794 iterative_hash_gimple_type and friends. Do not recurse
3795 to pointed-to types.
3796 (gimple_canonical_type_hash): Use it, allocate the hash here.
3797
3798 2011-05-11 Revital Eres <revital.eres@linaro.org>
3799
3800 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3801 recognizing doloop.
3802
3803 2011-05-11 Revital Eres <revital.eres@linaro.org>
3804
3805 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3806 instead of PREV_INSN.
3807
3808 2011-05-11 Revital Eres <revital.eres@linaro.org>
3809
3810 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3811 * loop-doloop.c (doloop_condition_get): Likewise.
3812 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3813 (doloop_end): New.
3814 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3815
3816 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3817
3818 * tree.def (CASE_LABEL_EXPR): Add an operand.
3819 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3820
3821 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3822
3823 * c-decl.c (c_override_global_bindings_to_false): Remove.
3824 (global_bindings_p): Don't check
3825 c_override_global_bindings_to_false.
3826 * c-tree.h (c_override_global_bindings_to_false): Remove.
3827 * c-typeck.c (composite_type): Don't set
3828 c_override_global_bindings_to_false.
3829
3830 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3831
3832 PR target/48857, 48495
3833 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3834 (VSX_MODE): Ditto.
3835 (VSX_MOVE_MODE): Ditto.
3836 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3837 VSX vector types. Add V2DImode.
3838 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3839 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3840 (MODES_TIEABLE_P): Ditto.
3841
3842 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3843 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3844 VSX_VECTOR_MODE.
3845 (init_cumulative_args): Ditto.
3846 (rs6000_function_arg_boundary): Ditto.
3847 (rs6000_function_arg_advance_1): Ditto.
3848 (rs6000_function_arg): Ditto.
3849 (rs6000_function_ok_for_sibcall): Ditto.
3850 (emit_frame_save): Ditto.
3851 (rs6000_function_value): Ditto.
3852 (rs6000_libcall_value): Ditto.
3853
3854 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3855
3856 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3857 i386/darwin-lib.h to $libgcc_tm_file.
3858 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3859
3860 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3861
3862 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3863
3864 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3865
3866 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3867 * config/rs6000/rs6000-tables.opt: New file (generated).
3868 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3869 rs6000/rs6000-tables.opt to extra_options.
3870 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3871 * config/rs6000/rs6000.c (rs6000_select): Remove.
3872 (processor_target_table): Move contents to rs6000-cpus.def.
3873 (darwin_rs6000_override_options): Check
3874 global_options_set.x_rs6000_cpu_index instead of
3875 rs6000_select[1].string.
3876 (rs6000_option_override_internal): Likewise.
3877 (rs6000_handle_option): Don't assert that global structures are in
3878 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3879 (rs6000_default_cpu): New variable.
3880 (rs6000_file_start): Set it instead of local default_cpu. Check
3881 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3882 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3883 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3884 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3885 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3886 rs6000_select): Remove.
3887 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3888 Remove.
3889 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3890 * config/rs6000/t-rs6000
3891 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3892 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3893 global_options_set.x_rs6000_cpu_index instead of
3894 rs6000_select[1].string.
3895 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3896 global_options_set.x_rs6000_cpu_index instead of
3897 rs6000_select[1].string.
3898
3899 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3900
3901 * config.gcc (libgcc_tm_file): Define instead of including files
3902 from ../../libgcc/config/ in tm_file.
3903 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3904 * configure: Regenerate.
3905 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3906 libgcc_tm.h, cs-libgcc_tm.h): New.
3907 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3908 (clean): Remove libgcc_tm.h.
3909 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3910 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3911 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3912
3913 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3914
3915 PR target/48896
3916 * config/avr/avr.c (avr_ret_register): Return unsigned int
3917 instead of int.
3918 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3919 it to avr_libcall_value.
3920 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3921 expand_expr.
3922 (avr_expand_binop_builtin): Ditto.
3923 (avr_expand_unop_builtin): Ditto.
3924
3925 2011-05-10 DJ Delorie <dj@redhat.com>
3926
3927 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3928 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3929 * config/rx/rx.c (rx_align_for_label): Add label and
3930 uses_threshold parameters. Do not align when the label is not
3931 used enough.
3932 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3933
3934 2011-05-10 Richard Guenther <rguenther@suse.de>
3935
3936 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3937 a series of conversions and apply foldings similar to what
3938 fold-const does.
3939 (tree_ssa_forward_propagate_single_use_vars): Call it.
3940
3941 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3942
3943 PR tree-optimization/48611
3944 PR tree-optimization/48794
3945 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3946 referenced from RESX or EH_DISPATCH arguments.
3947
3948 PR debug/48928
3949 * dfp.c (decimal_to_decnumber): Handle conversion from
3950 dconst{1,2,m1,half}.
3951
3952 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3953
3954 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3955 for !flag_prefer_avx128.
3956 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3957
3958 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3959
3960 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3961 (fold_ternary_loc): Use expr_location_or.
3962
3963 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3964
3965 PR debug/48853
3966 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3967 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3968 Pmode and mem_mode is not VOIDmode.
3969
3970 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3971
3972 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3973 TYPE_QUAL_RESTRICT): Convert to enum.
3974
3975 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3976
3977 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3978 (const_pow2_1_to_8_operand): Ditto.
3979 (const_pow2_1_to_128_operand): Ditto.
3980 (const_pow2_1_to_32768_operand): Ditto.
3981 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3982 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3983 in insn constraint to check integer value of operand 3.
3984 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3985
3986 (PINSR_MODE): New mode iterator.
3987 (sse2p4_1): New mode attribute.
3988 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3989 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3990 iterator. Use const_int_operand instead of
3991 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3992 exact_log2 in insn constraint to check integer value of operand 3.
3993
3994 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3995
3996 * config/i386/sse.md (blendbits): Remove mode attribute.
3997 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3998 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3999 Check integer value of operand 3 in insn constraint.
4000
4001 2011-05-09 Richard Guenther <rguenther@suse.de>
4002
4003 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4004 for diagnostics.
4005 (lto_symtab_merge): Likewise. Do not register types here.
4006 (lto_symtab_merge_decls_2): Likewise.
4007 (lto_symtab_merge_decls_1): Likewise.
4008 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4009 * gimple.c (enum gtc_mode): Declare.
4010 (gimple_types_compatible_p): Make static.
4011
4012 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4013
4014 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4015 temporary register to match Pmode.
4016
4017 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4018
4019 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4020 and *vec_concatv4si_1_avx.
4021
4022 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4023
4024 PR rtl-optimization/48927
4025 * ira-conflicts.c (commutative_constraint_p): Use
4026 recog_data.alternative_enabled_p to disable alternatives where
4027 "enabled" attribute is false.
4028 (get_dup_num): Ditto.
4029 * ira-lives.c (single_reg_class): Ditto.
4030 (ira_implicitly_set_insn_hard_regs): Ditto.
4031
4032 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4033
4034 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4035 (dataflow_set_preserve_mem_locs): Likewise.
4036
4037 2011-05-09 Philipp Thomas <pth@suse.de>
4038
4039 * config/mep/mep.c (mep_validate_vliw): Syntax description
4040 should not be translated.
4041
4042 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4043
4044 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4045 * config/mips/mips-tables.opt: New file (generated).
4046 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4047 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4048 MIPS_ARCH_OPTION_NATIVE): Define.
4049 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4050 mips-cpus.def.
4051 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4052 mips_parse_cpu): Remove.
4053 (mips_cpu_info_from_opt, mips_default_arch): New.
4054 (mips_handle_option): Don't assert that global structures are in
4055 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4056 (mips_option_override): Use new variables and functions to set
4057 state of these options. Use strcmp to check for individual CPU names.
4058 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4059 definition.
4060 * config/mips/mips.opt (march=): Use ToLower and Enum.
4061 (mips): Use ToLower, Enum and Var.
4062 (mtune=): Use ToLower and Enum.
4063 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4064
4065 2011-05-08 Jan Hubicka <jh@suse.cz>
4066
4067 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4068 Arrange type pairs to be UID ordered.
4069 (gimple_lookup_type_leader): Make inline.
4070
4071 2011-05-09 Nick Clifton <nickc@redhat.com>
4072
4073 PR target/48899
4074 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4075 PROCESSOR_DEFAULT.
4076
4077 PR target/48897
4078 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4079 variable 's'.
4080
4081 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4082
4083 * combine.c (simplify_comparison): Abstract out parts into...
4084 (simplify_compare_const): ... new function.
4085 (try_combine): Generalize parallel arithmetic/compare combining
4086 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4087
4088 2011-05-08 Jan Hubicka <jh@suse.cz>
4089
4090 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4091 (cgraph_create_virtual_clone): Call hooks once virtual clone
4092 is finished.
4093 * cgraph.h (cgraph_clone_node): Update prototype.
4094 * ipa-cp.c (ipcp_estimate_growth): Use
4095 estimate_ipcp_clone_size_and_time.
4096 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4097 * lto-cgraph.c (input_node): Update.
4098 * ipa-inline.c (recursive_inlining): Update.
4099 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4100 (evaluate_conditions_for_known_args): Break out from ...
4101 (evaluate_conditions_for_edge): ... here.
4102 (evaluate_conditions_for_ipcp_clone): New function.
4103 (inline_node_duplication_hook): Update clone summary based
4104 on parameter map.
4105 (estimate_callee_size_and_time): Rename to ...
4106 (estimate_node_size_and_time): take NODE instead of EDGE;
4107 take POSSIBLE_TRUTHS as argument.
4108 (estimate_callee_size_and_time): Update.
4109 (estimate_ipcp_clone_size_and_time): New function.
4110 (do_estimate_edge_time): Update.
4111
4112 2011-05-08 Richard Guenther <rguenther@suse.de>
4113
4114 PR middle-end/48908
4115 PR middle-end/48905
4116 * expmed.c (expand_shift_1): Compute adjusted constant shift
4117 amount manually.
4118
4119 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4120
4121 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4122
4123 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4124
4125 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4126
4127 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4128
4129 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4130
4131 2011-05-07 Jan Hubicka <jh@suse.cz>
4132
4133 * ipa-inline-transform.c (inline_call): Account when program size
4134 decreases.
4135 * ipa-inline.c (relative_time_benefit): New function.
4136 (edge_badness): Reorganize to be power 2 based; fix thinko when
4137 computing badness for negative growth; update comments to match
4138 reality; better dumps.
4139
4140 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4141
4142 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4143 type to bool and adjust comment.
4144 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4145 (fold_mathfn_compare): Remove calls to global_bindings_p.
4146 (fold_inf_compare): Likewise.
4147 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4148 * c-tree.h (global_bindings_p): Adjust prototype.
4149 * c-decl.c (global_bindings_p): Return bool and simplify.
4150
4151 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4152
4153 PR tree-optimization/48837
4154 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4155 when accumulator transformation is performed.
4156
4157 2011-05-06 Jan Hubicka <jh@suse.cz>
4158
4159 * i386.h (ix86_tune_indices): Add
4160 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4161 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4162 * i386.c (initial_ix86_tune_features): Add
4163 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4164 (software_prefetching_beneficial_p): Remove predicate.
4165 (ix86_option_override_internal): Use new macro.
4166
4167 2011-05-06 Jan Hubicka <jh@suse.cz>
4168
4169 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4170
4171 2011-05-06 Jan Hubicka <jh@suse.cz>
4172
4173 * cgraph.c (cgraph_add_thunk): Create real function node instead
4174 of alias node; finalize it and mark needed/reachale; arrange visibility
4175 to be right and add it into the corresponding same comdat group list.
4176 (dump_cgraph_node): Dump thunks.
4177 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4178 cgraph_function_with_gimple_body_p,
4179 cgraph_first_function_with_gimple_body,
4180 cgraph_next_function_with_gimple_body): New functions.
4181 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4182 New macros.
4183 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4184 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4185 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4186 devirtualization when optimizing.
4187 (verify_cgraph_node): Verify thunks.
4188 (cgraph_analyze_function): Analyze thunks.
4189 (cgraph_mark_functions_to_output): Output thunks only in combination
4190 with function they are assigned to.
4191 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4192 alias into normal node.
4193 (assemble_thunks): New functoin.
4194 (cgraph_expand_function): Use it.
4195 * lto-cgraph.c (lto_output_node): Stream thunks.
4196 (input_overwrite_node): Stream in thunks.
4197 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4198 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4199 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4200 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4201 (inline_analyze_function): Do not care about thunk jump functions.
4202 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4203 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4204 cgraph_function_with_gimple_body_p.
4205 * passes.c (do_per_function_toporder): Use
4206 cgraph_function_with_gimple_body_p.
4207 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4208 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4209 (function_called_by_processed_nodes_p): Likewise.
4210
4211 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4212
4213 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4214 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4215 entries.
4216 (mabi=): Replace with separate entries for mabi=altivec,
4217 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4218 mabi=ieeelongdouble and mabi=ibmlongdouble.
4219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4220 check for -mabi=spe without SPE ABI support here.
4221 (rs6000_handle_option): Replace OPT_mabi_ handling with
4222 OPT_mabi_altivec and OPT_mabi_spe handling.
4223
4224 2011-05-06 Cary Coutant <ccoutant@google.com>
4225
4226 * dwarf2out.c (contains_subprogram_definition): New function.
4227 (should_move_die_to_comdat): Call it.
4228
4229 2011-05-06 Jeff Law <law@redhat.com>
4230
4231 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4232 remove_ctrl_stmt_and_useless_edges.
4233 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4234 (fixup_template_block, thread_single_edge): Likewise.
4235 (mark_threaded_blocks): Use THREAD_TARGET.
4236
4237 2011-05-06 Alan Modra <amodra@gmail.com>
4238
4239 PR target/48900
4240 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4241 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4242
4243 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4244
4245 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4246 constraint modifier to "r".
4247
4248 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4249
4250 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4251 fall through for OPT_mcmodel_.
4252
4253 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4254
4255 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4256 instruction sizes.
4257 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4258
4259 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4260
4261 PR target/47930
4262 * config/arm/arm.opt (marm): Document it.
4263 (mthumb): Reject negative variant.
4264
4265 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4266
4267 PR target/48898
4268 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4269 Fix typo in "ccvt" variable name.
4270
4271 2011-05-06 Tristan Gingold <gingold@adacore.com>
4272
4273 PR target/48895
4274 * config/vms/vms-ar.c (main): Remove cwd variable.
4275
4276 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4277
4278 PR debug/48902
4279 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4280
4281 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4282
4283 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4284 * gimplify.c (gimplify_switch_expr): Likewise.
4285 * omp-low.c (expand_omp_sections): Likewise.
4286 * tree-eh.c (lower_try_finally_switch): Likewise.
4287 (lower_eh_dispatch): Likewise.
4288 * tree.h (build_case_label): Declare.
4289 * tree.c (build_case_label): Define.
4290
4291 2011-05-05 Jason Merrill <jason@redhat.com>
4292
4293 PR c++/40975
4294 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4295 (copy_statement_list): Don't recurse.
4296 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4297 STATEMENT_LIST.
4298
4299 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4300
4301 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4302 through from -mfpu= handling.
4303 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4304
4305 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4306
4307 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4308 POST_MODIFY.
4309
4310 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4311
4312 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4313 for 11.31.
4314 (hppa[12]*-*-hpux11*): Ditto.
4315 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4316 * config/ia64/hpux-unix2003.h: New.
4317 * config/pa/pa-hpux1131.opt: New.
4318 * config/pa/pa-hpux1131.h: New.
4319 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4320 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4321 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4322
4323 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4324
4325 PR debug/48853
4326 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4327 instead of mode as 3rd argument to recursive call.
4328 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4329 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4330 VOIDmode.
4331 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4332 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4333 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4334 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4335
4336 2011-05-05 Julian Brown <julian@codesourcery.com>
4337
4338 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4339 parenthesis in D-register case.
4340
4341 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4342
4343 * opt-functions.awk (var_type_struct): Handle Enum options.
4344 * optc-gen.awk: Don't check range of variables of character type.
4345 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4346 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4347 rs6000_sdata_name, rs6000_explicit_options): Remove.
4348 (rs6000_option_override_internal): Check for -malign-power here.
4349 Use global_options_set instead of rs6000_explicit_options.
4350 (rs6000_parse_fpu_option): Remove.
4351 (rs6000_handle_option): Access variables via opts and opts_set
4352 pointers. Use error_at and warning_at. Add fall-through
4353 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4354 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4355 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4356 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4357 here. Don't use rs6000_parse_fpu_option.
4358 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4359 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4360 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4361 (mrecip=): Use Var.
4362 (mspe): Use Var and Save.
4363 (mtraceback=): Use Enum and Var.
4364 (rs6000_traceback_type): New Enum and EnumValue entries.
4365 (mfloat-gprs=): Use Enum, Var and Save.
4366 (rs6000_float_gprs): New Enum and EnumValue entries.
4367 (mlong-double-): use Var and Save.
4368 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4369 (malign-): Use Enum and Var.
4370 (rs6000_alignment_flags): New Enum and EnumValue entries.
4371 (mfpu=): Use Enum.
4372 (fpu_type_t): New Enum and EnumValue entries.
4373 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4374 global_options_set instead of rs6000_explicit_options.
4375 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4376 global_options_set instead of rs6000_explicit_options.
4377 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4378 global_options_set instead of rs6000_explicit_options.
4379 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4380 global_options_set instead of rs6000_explicit_options.
4381 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4382 global_options_set instead of rs6000_explicit_options.
4383 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4384 global_options_set instead of rs6000_explicit_options.
4385 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4386 definition.
4387 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4388 global_options_set instead of rs6000_explicit_options.
4389 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4390 (rs6000_cmodel): New Enum and EnumValue entries.
4391 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4392 global_options_set instead of rs6000_explicit_options.
4393 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4394 (mtls-size=): Use Enum and Var.
4395 (rs6000_tls_size): New Enum and EnumValue entries.
4396
4397 2011-05-05 Michael Matz <matz@suse.de>
4398
4399 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4400 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4401 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4402 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4403 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4404 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4405 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4406 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4407 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4408 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4409 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4410 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4411 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4412 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4413 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4414 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4415
4416 2011-05-05 Richard Guenther <rguenther@suse.de>
4417
4418 * expmed.c (expand_variable_shift): Rename to ...
4419 (expand_shift_1): ... this. Take an expanded shift amount.
4420 For rotates recurse directly not building trees for the shift amount.
4421 (expand_variable_shift): Wrap around expand_shift_1.
4422 (expand_shift): Adjust.
4423
4424 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4425
4426 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4427
4428 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4429
4430 * tree.h (get_pending_sizes): Remove prototype.
4431 (put_pending_size): Likewise.
4432 (put_pending_sizes): Likewise.
4433 * stor-layout.c (pending_sizes): Delete.
4434 (get_pending_sizes): Likewise.
4435 (put_pending_size): Likewise.
4436 (put_pending_sizes): Likewise.
4437 (variable_size): Do not call put_pending_size and tidy up.
4438 * function.h (struct function): Remove dont_save_pending_sizes_p.
4439 * lto-streamer-in.c (input_function): Do not stream it.
4440 * lto-streamer-out.c (output_function): Likewise.
4441 * tree-inline.c (initialize_cfun): Do not copy it.
4442 * c-decl.c (store_parm_decls): Do not set it.
4443 * omp-low.c (create_task_copyfn): Likewise.
4444 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4445
4446 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4447
4448 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4449 conditions.
4450 (*movdf_internal): Ditto.
4451 (*movdf_internal_nointeger): Ditto.
4452 (*movsf_internal): Ditto.
4453
4454 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4455
4456 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4457 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4458 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4459 (c_variable_size): Remove.
4460 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4461 call put_pending_sizes.
4462 (get_parm_info): Add parameter expr. Use it to set
4463 arg_info->pending_sizes.
4464 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4465 get_pending_sizes.
4466 * c-parser.c (c_parser_parms_declarator): Update call to
4467 c_parser_parms_list_declarator.
4468 (c_parser_parms_list_declarator): Take parameter expr. Update
4469 call to push_parm_decl. Update recursive call. Don't call
4470 get_pending_sizes. Update calls to get_parm_info.
4471 (c_parser_objc_method_definition): Update calls to
4472 c_parser_objc_method_decl and objc_start_method_definition.
4473 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4474 (c_parser_objc_method_decl): Add parameter expr. Update call to
4475 grokparm.
4476 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4477 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4478 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4479
4480 2011-05-05 Michael Hope <michael.hope@linaro.org>
4481
4482 PR pch/45979
4483 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4484 __ARM_EABI__ hosts.
4485
4486 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4487
4488 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4489 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4490 (spu_output_mi_thunk): New function.
4491
4492 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4493
4494 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4495 targetm.asm_out.print_operand.
4496 * config/sol2.c: Include target.h.
4497
4498 2011-05-04 Jan Hubicka <jh@suse.cz>
4499
4500 * ipa-inline.c (reset_edge_caches): New function.
4501 (update_caller_keys): Add check_inlinablity_for; do not
4502 reset edge caches; remove now unnecesary loop.
4503 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4504 (update_all_callee_keys): Likewise.
4505 (inline_small_functions): Sanity check cache; update code
4506 recomputing it.
4507
4508 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4509
4510 PR rtl-optimization/47612
4511 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4512 as the last insn of the sequence to be moved.
4513
4514 2011-05-04 Tobias Burnus <burnus@net-b.de>
4515
4516 PR fortran/48864
4517 * doc/invoke.texi (Ofast): Document that it
4518 enables Fortran's -fno-protect-parens.
4519
4520 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4521
4522 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4523
4524 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4525
4526 * stor-layout.c (variable_size): Do not issue errors.
4527
4528 2011-05-04 Richard Guenther <rguenther@suse.de>
4529
4530 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4531 for array-ref indices.
4532 (tree_coverage_counter_addr): Likewise.
4533 (build_fn_info_type): Use size_int for index types.
4534 (build_gcov_info): Likewise.
4535
4536 2011-05-04 Richard Guenther <rguenther@suse.de>
4537
4538 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4539 to build_int_cst.
4540 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4541 for constructor indices.
4542 (push_init_level): Likewise.
4543
4544 2011-05-04 Richard Guenther <rguenther@suse.de>
4545
4546 * explow.c (promote_mode): Move variable declarations before code.
4547
4548 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4549
4550 * tree.h (build_function_type_array): Declare.
4551 (build_varargs_function_type_array): Declare.
4552 (build_function_type_vec, build_varargs_function_type_vec): Define.
4553 * tree.c (build_function_type_array_1): New function.
4554 (build_function_type_array): New function.
4555 (build_varargs_function_type_array): New function.
4556
4557 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4558
4559 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4560 before setting STMT_VINFO_TYPE.
4561
4562 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4563
4564 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4565 instead of spu_pass_by_reference.
4566
4567 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4568
4569 * calls.c (emit_library_call_value_1): Invoke
4570 promote_function_mode hook on libcall arguments.
4571 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4572 argument being NULL.
4573 * targhooks.c (default_promote_function_mode): Lisewise.
4574 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4575 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4576
4577 * doc/tm.texi: Document that TYPE argument might be NULL.
4578
4579 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4580
4581 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4582
4583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4584
4585 From Bernd Schmidt
4586 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4587
4588 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4589
4590 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4591 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4592 Move ...
4593 * mips-tfile.c: ... here.
4594 Don't include coretypes.h, tm.h, filenames.h.
4595 (saber_stop): Remove definition and all calls.
4596 [__SABER__]: Remove.
4597 (__LINE__): Remove default.
4598 (Size_t, Ptrdiff_t): Remove definitions.
4599 Replace by size_t, ptrdiff_t.
4600 [!MIPS_DEBUGGING_INFO]: Remove.
4601 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4602 (progname): Add const.
4603 (STATIC): Remove.
4604 Replace all uses by static.
4605 (ALIGN_SYMTABLE_OFFSET): Remove default.
4606 * mips-tdump.c: Don't include coretypes.h, tm.h.
4607 Remove !MIPS_IS_STAB guard.
4608 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4609 $(TM_H), filenames.h dependencies.
4610 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4611
4612 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4613
4614 From Jie Zhang
4615 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4616 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4617
4618 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4619
4620 From Bernd Schmidt
4621 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4622 account and save/restore RETS.
4623 (PROFILE_BEFORE_PROLOGUE): Define.
4624 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4625 the push insn to use predecrement.
4626
4627 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4628
4629 From Jie Zhang
4630 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4631
4632 2011-05-04 Nick Clifton <nickc@redhat.com>
4633
4634 * config/mn10300/mn10300.c: Include cfgloop.h.
4635 (DUMP): New macro.
4636 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4637 Lcc or a FLcc insn into the instruction stream.
4638 (mn10300_block_contains_call): New function. Returns true if the
4639 given basic block contains a CALL insn.
4640 (mn10300_loop_contains_call_insn): New function. Returns true if
4641 the given loop contains a CALL insn.
4642 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4643 to use the SETLB and Lcc or FLcc insns.
4644 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4645 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4646 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4647 disable the SETLB optimization.
4648 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4649 __SETLB__ or __NO_SETLB__.
4650 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4651 (movsf_internal): Handle MDR register.
4652 (cmpsi): Make visible.
4653 (setlb): New pattern.
4654 (Lcc): New pattern.
4655 (FLcc): New pattern.
4656
4657 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4658
4659 PR target/48860
4660 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4661 for reg<->xmm moves.
4662 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4663 (vec_concatv2di_rex64_sse): Ditto.
4664 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4665 (*vec_extractv2di_1_rex64): Ditto.
4666
4667 Revert:
4668 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4669
4670 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4671 reg<->xmm moves.
4672 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4673
4674 2011-05-04 Richard Guenther <rguenther@suse.de>
4675
4676 * tree.h (int_const_binop): Remove notrunc argument.
4677 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4678 create integer constants that are properly truncated.
4679 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4680 (const_binop): Remove zero notrunc argument to int_const_binop.
4681 (size_binop_loc): Likewise.
4682 (fold_div_compare): Likewise.
4683 (maybe_canonicalize_comparison_1): Likewise.
4684 (fold_comparison): Likewise.
4685 (fold_binary_loc): Likewise.
4686 (multiple_of_p): Likewise.
4687 * expr.c (store_constructor): Likewise.
4688 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4689 (maybe_fold_stmt_addition): Likewise.
4690 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4691 * stor-layout.c (layout_type): Likewise.
4692 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4693 * tree-sra.c (build_ref_for_offset): Likewise.
4694 (build_user_friendly_ref_for_offset): Likewise.
4695 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4696 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4697 * tree-ssa-loop-niter.c (inverse): Likewise.
4698 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4699 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4700 * tree-switch-conversion.c (check_range): Likewise.
4701 (build_constructors): Likewise.
4702 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4703 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4704 (extract_range_from_assert): Likewise.
4705 (vrp_int_const_binop): Likewise.
4706 (extract_range_from_binary_expr): Likewise.
4707 (extract_range_from_unary_expr): Likewise.
4708 (check_array_ref): Likewise.
4709 (find_case_label_range): Likewise.
4710 (simplify_div_or_mod_using_ranges): Likewise.
4711 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4712 comparing case labels for merging.
4713
4714 2011-05-03 Mark Wielaard <mjw@redhat.com>
4715
4716 * dwarf2out.c (debug_str_hash_forced): Removed.
4717 (gen_label_for_indirect_string): Removed.
4718 (get_debug_string_label): Removed.
4719 (AT_string_form): Generate label directly.
4720 (output_indirect_string): Test indirect_string_node for
4721 DW_FORM_strp instead of checking label and refcount.
4722 (prune_indirect_string): Removed.
4723 (prune_unused_types): Don't check debug_str_hash_forced or
4724 call prune_indirect_string.
4725
4726 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4727
4728 PR other/48093
4729 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4730
4731 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4732
4733 PR debug/47994
4734 PR debug/47919
4735 * combine.c (try_combine): Skip debug insns at m_split tests.
4736
4737 2011-04-26 Mark Wielaard <mjw@redhat.com>
4738
4739 PR42288
4740 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4741 when info_section_emitted.
4742
4743 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4744
4745 * config/mips/mips-opts.h: New.
4746 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4747 to mips-opts.h.
4748 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4749 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4750 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4751 via opts pointer.
4752 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4753 mips-opts.h.
4754 (mips_abi, mips_code_readable): Don't declare.
4755 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4756 (mabi=): Use Enum and Var.
4757 (mips_abi): New Enum and EnumValue entries.
4758 (mcode-readable=): Use Enum and Var.
4759 (mips_code_readable_setting): New Enum and EnumValue entries.
4760 (mr10k-cache-barrier=): Use Enum and Var.
4761 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4762
4763 2011-05-03 Jan Hubicka <jh@suse.cz>
4764
4765 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4766 replace hash by pointer map.
4767 (cgraph_node_set_element_def, cgraph_node_set_element,
4768 const_cgraph_node_set_element, varpool_node_set_element_def,
4769 varpool_node_set_element, const_varpool_node_set_element): Remove.
4770 (free_cgraph_node_set, free_varpool_node_set): New function.
4771 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4772 * tree-emutls.c: Free varpool node set.
4773 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4774 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4775 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4776 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4777 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4778 Move here from ipa.c; implement using pointer_map
4779 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4780 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4781 debug_cgraph_node_set, varpool_node_set_new,
4782 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4783 dump_varpool_node_set, debug_varpool_node_set):
4784 Move to ipa-uitls.c.
4785 * passes.c (ipa_write_summaries): Update.
4786
4787 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4788
4789 From Mike Frysinger:
4790 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4791 bf542/bf544/bf547/bf548/bf549.
4792
4793 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4794
4795 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4796
4797 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4798
4799 From Bernd Schmidt:
4800 * config/bfin/bfin.md (MOVCC): New mode_macro.
4801 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4802 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4803 comments from generated assembly.
4804
4805 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4806
4807 From Bernd Schmidt
4808 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4809 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4810 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4811 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4812 * config/bfin/lib1funcs.asm (___muldi3): New function.
4813
4814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4815
4816 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4817 build_function_type_list instead of build_function_type.
4818 Rearrange initialization of `args' to do so.
4819
4820 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4821
4822 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4823 instead of build_function_type.
4824
4825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4826
4827 * config/rs6000/rs6000.c (spe_init_builtins): Call
4828 build_function_type_list instead of build_function_type.
4829 (paired_init_builtins, altivec_init_builtins): Likewise.
4830 (builtin_function_type): Likewise.
4831
4832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4833
4834 * config/sh/sh.c (sh_media_init_builtins): Call
4835 build_function_type_list instead of build_function_type.
4836
4837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4838
4839 * config/sparc/sparc.c (sparc_file_end): Call
4840 build_function_type_list instead of build_function_type.
4841
4842 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4843
4844 * config/alpha/alpha.c (alpha_init_builtins): Call
4845 build_function_type_list instead of build_function_type.
4846
4847 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4848
4849 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4850 build_function_type_list instead of build_function_type.
4851
4852 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4853
4854 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4855 build_function_type_list instead of build_function_type.
4856 Delete `endlink' variable.
4857
4858 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4859
4860 * config/avr/avr.c (avr_init_builtins): Call
4861 build_function_type_list instead of build_function_type.
4862
4863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4864
4865 * config/picochip/picochip.c (picochip_init_builtins): Call
4866 build_function_type_list instead of build_function_type.
4867 Delete `endlink' variable.
4868
4869 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4870
4871 * config/bfin/bfin.c (bfin_init_builtins): Call
4872 build_function_type_list instead of build_function_type.
4873
4874 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4875
4876 From Bernd Schmidt
4877 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4878 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4879
4880 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4881
4882 From Jie Zhang:
4883 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4884 libbffastfp overrides libgcc when -mfast-fp.
4885
4886 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4887
4888 Originally from Bernd Schmidt
4889 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4890 * config/bfin/bfin.c (override_options): Test it and error if
4891 TARGET_FDPIC.
4892
4893 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4894
4895 Originally From Bernd Schmidt
4896 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4897 FD-PIC.
4898
4899 2011-05-03 Jeff Law <law@redhat.com>
4900
4901 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4902 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4903 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4904 than accessing AUX field directly. Free the AUX field before
4905 clearing it.
4906 (thread_block, thread_through_loop_header): Likewise.
4907 (thread_single_edge, mark_threaded_blocks): Likewise.
4908 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4909 (register_jump_thread): Do not attempt to thread to a NULL edge.
4910
4911 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4912
4913 * function.c (init_function_start): Call decide_function_section.
4914 * varasm.c (decide_function_section): New function.
4915 (assemble_start_function): When not using
4916 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4917 or first_function_block_is_cold.
4918 * rtl.h (decide_function_section): Declare.
4919
4920 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4921 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR target/48774
4924 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4925 only succeed if req_mode is the same as set_mode.
4926
4927 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4928
4929 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4930 * genemit.c (gen_exp): Handle RETURN.
4931 * emit-rtl.c (verify_rtx_sharing): Likewise.
4932 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4933 * rtl.c (copy_rtx): RETURN is shared.
4934 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4935 (ret_rtx): New.
4936 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4937 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4938 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4939 * config/cris/cris.c (cris_expand_return): Likewise.
4940 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4941 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4942 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4943 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4944 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4945 Likewise.
4946 * config/v850/v850.c (expand_epilogue): Likewise.
4947 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4948 * config/arm/arm.md (epilogue): Likewise.
4949 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4950 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4951 variable to ret_reg.
4952
4953 2011-05-03 Richard Guenther <rguenther@suse.de>
4954
4955 PR lto/48846
4956 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4957 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4958 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4959
4960 2011-05-03 Richard Guenther <rguenther@suse.de>
4961
4962 * c-decl.c (grokdeclarator): Instead of looking at
4963 TREE_OVERFLOW check if the constant fits in the index type.
4964
4965 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4966
4967 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4968 (vec_store_lanes<mode><mode>): Likewise.
4969
4970 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4971
4972 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4973 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4974 convert_optab_index values.
4975 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4976 * genopinit.c (optabs): Initialize the new optabs.
4977 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4978 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4979 (expand_STORE_LANES): New functions.
4980 * tree.h (build_array_type_nelts): Declare.
4981 * tree.c (build_array_type_nelts): New function.
4982 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4983 (vect_model_load_cost): Likewise.
4984 (vect_store_lanes_supported, vect_load_lanes_supported)
4985 (vect_record_strided_load_vectors): Declare.
4986 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4987 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4988 (vect_transform_strided_load): Split out statement recording into...
4989 (vect_record_strided_load_vectors): ...this new function.
4990 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4991 (write_vector_array, create_array_ref): New functions.
4992 (vect_model_store_cost): Add store_lanes_p argument.
4993 (vect_model_load_cost): Add load_lanes_p argument.
4994 (vectorizable_store): Try to use store-lanes functions for
4995 interleaved stores.
4996 (vectorizable_load): Likewise load-lanes and loads.
4997 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4998 to vect_model_store_cost.
4999 (vect_build_slp_tree): Likewise vect_model_load_cost.
5000
5001 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5002
5003 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5004 * hooks.c (hook_bool_mode_uhwi_false): New function.
5005 * target.def (array_mode_supported_p): New hook.
5006 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5007 * doc/tm.texi: Regenerate.
5008 * stor-layout.c (mode_for_array): New function.
5009 (layout_type): Use it.
5010 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5011 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5012
5013 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5014
5015 PR target/48723
5016 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5017 for -fstack-check if the size to allocate is negative.
5018
5019 2011-05-02 Lawrence Crowl <crowl@google.com>
5020
5021 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5022 (timevar_cond_start): New for starting a timer only when it is not
5023 already running.
5024 (timevar_cond_stop): New for stopping a timer when it was not already
5025 running.
5026
5027 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5028 (timevar_cond_start): New as above.
5029 (timevar_cond_stop): New as above.
5030
5031 * timevar.def: Add start/stop timers for compiler phases,
5032 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5033 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5034 and TV_PHASE_FINALIZE.
5035 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5036 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5037 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5038 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5039 Make unused TV_OVERLOAD into a start/stop timer.
5040
5041 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5042 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5043 to indicate that they are start/stop timers.
5044
5045 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5046 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5047 Move initialization to do_compile.
5048 (do_compile): Add initialization from above.
5049 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5050
5051 * c-decl.c (c_write_global_declarations): Add start/stop of
5052 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5053
5054 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5055 or TV_PARSE_INLINE, as appropriate.
5056 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5057 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5058
5059 2011-05-02 Jason Merrill <jason@redhat.com>
5060
5061 PR c++/40975
5062 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5063
5064 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5065
5066 PR c/35445
5067 * c-decl.c (finish_decl): Only create a composite if the types are
5068 compatible.
5069
5070 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5071
5072 * config/fr30/fr30-protos.h (Mmode): Don't define.
5073 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5074 definition where used.
5075 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5076 define. Expand definitions where used.
5077 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5078 Expand definitions where used.
5079 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5080 rx_function_arg, rx_function_arg_advance,
5081 rx_function_arg_boundary): Expand definitions of those macros.
5082 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5083 definition where used.
5084
5085 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5086
5087 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5088 reg<->xmm moves.
5089 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5090 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5091 with *movv2sf_internal_rex64_avx.
5092 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5093 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5094 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5095 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5096 "vex" in "prefix" attribute calculation.
5097 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5098
5099 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5100
5101 PR target/47951
5102 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5103 inputs match the output.
5104
5105 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5106
5107 PR target/47955
5108 * config/m68k/m68k.c (m68k_expand_prologue): Set
5109 current_function_static_stack_size.
5110
5111 2011-05-02 Jan Hubicka <jh@suse.cz>
5112
5113 * lto-streamer.c (lto_streamer_cache_insert_1,
5114 lto_streamer_cache_lookup, lto_streamer_cache_create,
5115 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5116 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5117
5118 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5119
5120 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5121 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5122 config/m68k/t-opts: New files.
5123 * config/m68k/m68k-tables.opt: New file (generated).
5124 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5125 extra_options and m68k/t-opts to tmake_file.
5126 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5127 (all_isas): Initialize using m68k-isas.def.
5128 (all_microarchs): Initialize using m68k-microarchs.def.
5129 (m68k_find_selection): Remove.
5130 (m68k_handle_option): Don't assert that global structures are in
5131 use. Use error_at. Access variables via opts pointer. Don't
5132 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5133 directly for -m68020-40 and -m68020-60.
5134 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5135 m68k_tune_entry here.
5136 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5137 to m68k-opts.h.
5138 (m68k_library_id_string): Remove declaration.
5139 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5140 (m68k_library_id_string): New Variable.
5141 (march=, mcpu=, mtune=): Use Enum and Var.
5142
5143 2011-05-02 Richard Guenther <rguenther@suse.de>
5144
5145 * varasm.c (output_constructor_regular_field): Compute zero-based
5146 index with double-ints. Make sure to ICE instead of producing
5147 wrong code.
5148 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5149 in asserts. Properly use a signed type.
5150
5151 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5152
5153 * config/i386/sse.md (V): New mode iterator.
5154 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5155 TARGET_SSE2.
5156 (V_256): Rename from AVX256MODE.
5157 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5158 condition to all users.
5159 (VF1): Ditto.
5160 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5161 condition to all users.
5162 (VF_128): Make V4SF mode unconditional.
5163 (VF_256): Rename from AVX256MODEF2P.
5164 (VI4F_128): Rename from SSEMODE4S.
5165 (VI8F_128): Rename from SSEMODE2D.
5166 (VI4F_256): Rename from AVX256MODE8P.
5167 (VI8F_256): Rename from AVX256MODE4P.
5168 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5169 (ssescalarmodesuffix): Remove SF and DF modes.
5170 (SSEMODE124): Remove.
5171 (SSEMODE1248): Ditto.
5172 (SSEMODEF2P): Ditto.
5173 (AVXMODEF2P): Ditto.
5174 (AVXMODEFDP): Ditto.
5175 (AVXMODEFSP): Ditto.
5176 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5177 unconditional.
5178 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5179 unconditional.
5180 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5181 xop_pcmov_<mode>256. Use V mode iterator.
5182
5183 Adjust RTX patterns globally for renamed mode attributes.
5184
5185 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5186
5187 * haifa-sched.c (sched_emit_insn): Emit insn before first
5188 non-scheduled insn. Inform back-end about new insn. Add
5189 new insn to scheduled_insns list.
5190
5191 2011-05-02 Richard Guenther <rguenther@suse.de>
5192
5193 PR tree-optimization/48822
5194 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5195 (process_scc): Indicate which iteration we start.
5196
5197 2011-05-02 Jan Hubicka <jh@suse.cz>
5198
5199 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5200 (lto_section_overrun): New.
5201 * lto-section-out.c (append_block): Rename to ...
5202 (lto_append_block): ... this one; export.
5203 (lto_output_1_stream): Move lto lto-streamer.h
5204 (lto_output_data_stream): Update.
5205 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5206 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5207 functions.
5208
5209 2011-05-02 Richard Guenther <rguenther@suse.de>
5210
5211 * tree.c (tree_code_counts): New global array.
5212 (record_node_allocation_statistics): Count individual tree codes.
5213 (dump_tree_statistics): Dump individual code stats.
5214
5215 2011-05-01 Jan Hubicka <jh@suse.cz>
5216
5217 * ipa-inline.c (caller_growth_limits): Fix thinko when
5218 looking for largest stack frame.
5219 * ipa-inline.h (dump_inline_summary): Declare.
5220 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5221 on stack usage.
5222 (dump_inline_summary): Export.
5223 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5224
5225 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5226
5227 * reginfo.c (memory_move_cost): Change rclass argument type form
5228 'enum reg_class' to reg_class_t.
5229 * reload.h (memory_move_cost): Update prototype.
5230 * postreload.c reload_cse_simplify_set): Change type dclass var to
5231 reg_class_t.
5232 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5233 Update prototype.
5234 (ira_allocate_and_set_costs): Change aclass argument type form
5235 'enum reg_class' to reg_class_t.
5236 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5237 Change aclass argument type to reg_class_t.
5238 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5239 to reg_class_t.
5240 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5241 memory_move_cost call.
5242
5243 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5244 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5245 Change type tmp var to reg_class_t.
5246
5247 2011-04-30 Jan Hubicka <jh@suse.cz>
5248
5249 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5250 inlining into function with flatten attribute.
5251 (want_inline_small_function_p): Be more realistic about inlining
5252 cold calls where callee size grows.
5253
5254 2011-04-30 Jan Hubicka <jh@suse.cz>
5255
5256 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5257 flags.
5258
5259 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5260
5261 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5262 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5263 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5264 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5265 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5266 (print_operand): Rename to...
5267 (sparc_print_operand): ...this. Make static. Adjust
5268 sparc_print_operand function call.
5269 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5270 functions.
5271
5272 2011-04-30 Jan Hubicka <jh@suse.cz>
5273
5274 PR middle-end/48752
5275 * ipa-inline.c (early_inliner): Disable when doing late
5276 addition of function.
5277
5278 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5279
5280 * dwarf2out.c (get_address_mode): New inline.
5281 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5282 if not dwarf_strict emit
5283 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5284 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5285 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5286 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5287 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5288 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5289 mem_loc_descriptor callers.
5290 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5291 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5292 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5293 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5294 (base_types): New variable.
5295 (get_base_type_offset, calc_base_type_die_sizes,
5296 base_type_for_mode, mark_base_types, base_type_cmp,
5297 move_marked_base_types): New functions.
5298 (calc_die_sizes): Assert that die_offset is 0 or equal to
5299 next_die_offset.
5300 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5301 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5302 callers. If not dwarf_strict, call mem_loc_descriptor even for
5303 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5304 (gen_subprogram_die): Don't give up on call site parameters
5305 with non-integral or large integral modes. Adjust
5306 mem_loc_descriptor callers.
5307 (prune_unused_types): Call prune_unused_types_mark on base_types
5308 vector entries.
5309 (resolve_addr): Call mark_base_types.
5310 (dwarf2out_finish): Call move_marked_base_types.
5311
5312 PR tree-optimization/48809
5313 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5314 type.
5315 (gen_inbound_check): Don't compute index_expr - range_min in utype
5316 again, instead reuse SSA_NAME initialized in build_arrays.
5317 Remove two useless gsi_for_stmt calls.
5318
5319 2011-04-29 Jeff Law <law@redhat.com>
5320
5321 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5322
5323 2011-04-29 Martin Jambor <mjambor@suse.cz>
5324
5325 * cgraph.h (cgraph_postorder): Remove declaration.
5326 * ipa-utils.h (ipa_free_postorder_info): Declare.
5327 (ipa_reverse_postorder): Likewise.
5328 * cgraphunit.c: Include ipa-utils.h.
5329 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5330 * ipa-inline.c: Include ipa-utils.h.
5331 (ipa_inline): Update call to ipa_reverse_postorder.
5332 * ipa-pure-const.c (propagate_pure_const): Update call to
5333 ipa_reduced_postorder and ipa_print_order. Call
5334 ipa_free_postorder_info to clean up.
5335 (propagate_nothrow): Likewise.
5336 * ipa-reference.c (propagate): Removed a useless call to
5337 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5338 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5339 * ipa.c: Include ipa-utils.h.
5340 (ipa_profile): Update call to ipa_reverse_postorder.
5341 (cgraph_postorder): Moved to...
5342 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5343 (ipa_utils_print_order): Renamed to ipa_print_order.
5344 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5345 comments.
5346 (ipa_free_postorder_info): New function.
5347 * passes.c: Include ipa-utils.h.
5348 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5349 (ipa_write_summaries): Likewise.
5350 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5351 (cgraphunit.o): Likewise.
5352 (ipa.o): Likewise.
5353 (ipa-inline.o): Likewise.
5354
5355 2011-04-29 Jan Hubicka <jh@suse.cz>
5356
5357 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5358 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5359 * ipa-inline.h (clause_t): Turn into unsigned int.
5360 * ipa-inline-analysis.c (add_clause): Do more simplification.
5361 (and_predicates): Shortcut more cases.
5362 (predicates_equal_p): Move forward; check that clauses are properly
5363 ordered.
5364 (or_predicates): Shortcut more cases.
5365 (edge_execution_predicate): Rewrite as...
5366 (set_cond_stmt_execution_predicate): ... this function; handle
5367 __builtin_constant_p.
5368 (set_switch_stmt_execution_predicate): New .
5369 (compute_bb_predicates): New.
5370 (will_be_nonconstant_predicate): Update TODO.
5371 (estimate_function_body_sizes): Use compute_bb_predicates
5372 and free them later, always try to estimate if stmt is constant.
5373 (estimate_time_after_inlining, estimate_size_after_inlining):
5374 Gracefully handle optimized out edges.
5375 (read_predicate): Fix off by one error.
5376
5377 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5378
5379 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5380
5381 2011-04-27 Xinliang David Li <davidxl@google.com>
5382
5383 * tree-profile.c (init_ic_make_global_vars): Set
5384 tls attribute on ic vars.
5385 * coverage.c (coverage_end_function): Initialize
5386 function_list with zero.
5387
5388 2011-04-29 Richard Guenther <rguenther@suse.de>
5389
5390 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5391 for the type of the result.
5392 (fold_builtin_isascii): Likewise.
5393 (fold_builtin_toascii): Use integer_type_node where appropriate.
5394 (fold_builtin_logb): Likewise.
5395 (fold_builtin_frexp): Likewise.
5396 (fold_builtin_strstr): Likewise.
5397 (fold_builtin_strpbrk): Likewise.
5398 (fold_builtin_fputs): Likewise.
5399 (fold_builtin_sprintf): Likewise.
5400 (fold_builtin_snprintf): Likewise.
5401 (fold_builtin_printf): Likewise.
5402 (do_mpfr_remquo): Use a proper type for the assigned constant.
5403 (do_mpfr_lgamma_r): Likewise.
5404 * dwarf2out.c (resolve_one_addr): Use size_int.
5405 * except.c (init_eh): Likewise.
5406 (assign_filter_values): Use integer_type_node for filter values.
5407 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5408 indices.
5409 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5410 for EH region numbers.
5411 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5412 for the shift amount.
5413
5414 2011-04-29 Richard Guenther <rguenther@suse.de>
5415
5416 * expr.h (expand_shift): Rename to ...
5417 (expand_variable_shift): ... this.
5418 (expand_shift): Take a constant shift amount.
5419 * expmed.c (expand_shift): Rename to ...
5420 (expand_variable_shift): ... this.
5421 (expand_shift): New wrapper around expand_variable_shift.
5422 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5423 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5424 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5425 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5426 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5427 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5428 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5429 emit_store_flag_1, emit_store_flag): Likewise.
5430 * builtins.c (expand_builtin_signbit): Likewise.
5431 * calls.c (load_register_parameters): Likewise.
5432 * function.c (assign_parm_setup_block): Likewise.
5433 * lower-subreg.c (resolve_shift_zext): Likewise.
5434 * optabs.c (widen_bswap, expand_abs_nojump,
5435 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5436 * spu/spu.c (spu_expand_extv): Likewise.
5437 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5438
5439 2011-04-29 Richard Guenther <rguenther@suse.de>
5440
5441 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5442 for the remapped region number.
5443 * predict.c (build_predict_expr): Use integer_type_node for the
5444 predict kind.
5445 * fold-const.c (fold_binary_loc): Use integer_type_node for
5446 the shift amount. Use a proper type for the PLUS_EXPR operand.
5447
5448 2011-04-29 Michael Matz <matz@suse.de>
5449
5450 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5451 other trees that just builtins.
5452 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5453
5454 2011-04-29 Richard Guenther <rguenther@suse.de>
5455
5456 * tree-nested.c (get_trampoline_type): Use size_int.
5457 (get_nl_goto_field): Likewise.
5458 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5459 for all indexes.
5460 (lower_eh_constructs_2): Likewise.
5461 (lower_resx): Likewise.
5462 (lower_eh_dispatch): Likewise.
5463 * tree-mudflap.c (mf_build_string): Use size_int.
5464 (mudflap_register_call): Use integer_type_node for the flag.
5465 (mudflap_enqueue_constant): Use size_int.
5466 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5467 instead of rebuilding it.
5468
5469 2011-04-29 Richard Guenther <rguenther@suse.de>
5470
5471 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5472 Handle OBJ_TYPE_REF.
5473 (find_func_aliases_for_call): Use it more consistently.
5474
5475 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5476
5477 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5478 (rank_for_schedule): Use it.
5479 (schedule_block): Set it.
5480
5481 2011-04-28 David Li <davidxl@google.com>
5482
5483 * tree.c (crc32_string): Use crc32_byte.
5484 (crc32_byte): New function.
5485 * tree.h (crc32_byte): New function.
5486 * gcov.c (read_graph_file): Handle new cfg_cksum.
5487 (read_count_file): Ditto.
5488 * profile.c (instrument_values): Ditto.
5489 (get_exec_counts): Ditto.
5490 (read_profile_edge_counts): Ditto.
5491 (compute_branch_probabilities): Ditto.
5492 (compute_value_histograms): Ditto.
5493 (branch_prob): Ditto.
5494 (end_branch_prob): Ditto.
5495 * coverage.c (read_counts_file): Ditto.
5496 (get_coverage_counts): Ditto.
5497 (tree_coverage_counter_addr): Ditto.
5498 (coverage_checksum_string): Ditto.
5499 (coverage_begin_output): Ditto.
5500 (coverage_end_function): Ditto.
5501 (build_fn_info_type): Ditto.
5502 (build_fn_info_value): Ditto.
5503 * libgcov.c (gcov_exit): Ditto.
5504 * gcov-dump.c (tag_function): Ditto.
5505 (compute_checksum): Remove.
5506
5507 2011-04-29 Alan Modra <amodra@gmail.com>
5508
5509 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5510 unspec plus offset. Tidy macho code.
5511
5512 2011-04-29 Martin Jambor <mjambor@suse.cz>
5513
5514 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5515 node instead of a decl. Update all callers.
5516 * cgraph.h: Update declaration.
5517
5518 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5519
5520 PR tree-optimization/48765
5521 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5522 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5523 to indicate if loop aware SLP is being used. Scan the statements
5524 and update the vectorization factor according to the type of
5525 vectorization before statement analysis.
5526 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5527 pass it to vect_analyze_loop_operations.
5528 (vectorizable_reduction): Set number of copies to 1 in case of pure
5529 SLP statement.
5530 * tree-vect-stmts.c (vectorizable_conversion,
5531 vectorizable_assignment, vectorizable_shift,
5532 vectorizable_operation, vectorizable_type_demotion,
5533 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5534 Likewise.
5535 (vectorizable_condition): Move the check that it is not SLP
5536 vectorization before the number of copies check.
5537 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5538 to vectorize the loop using SLP.
5539
5540 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5541
5542 PR middle-end/48597
5543 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5544 inline asm.
5545
5546 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5547
5548 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5549 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5550 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5551 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5552 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5553 linux*.h headers.
5554 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5555 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5556 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5557 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5558 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5559 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5560 REG_NAME.
5561 * config/i386/linux.h (REG_NAME): Don't define.
5562 * config/i386/linux64.h (REG_NAME): Don't define.
5563 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5564 Undefine before defining.
5565
5566 2011-04-28 Jan Hubicka <jh@suse.cz>
5567
5568 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5569 nonconstant_names array.
5570 (estimate_function_body_sizes): Build nonconstant_names array; handle
5571 BUILT_IN_CONSTANT_P.
5572
5573 2011-04-28 Richard Guenther <rguenther@suse.de>
5574
5575 PR bootstrap/48804
5576 Revert
5577 2011-04-28 Richard Guenther <rguenther@suse.de>
5578
5579 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5580 as late as possible.
5581
5582 2011-04-28 Richard Guenther <rguenther@suse.de>
5583
5584 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5585 (debug_constraint): Do it here.
5586 (dump_constraints): And here.
5587 (rewrite_constraints): And here.
5588 (dump_constraint_edge): Remove.
5589 (dump_constraint_graph): Rewrite to produce DOT output.
5590 (solve_constraints): Build succ graph as late as possible.
5591 Dump constraint graphs before and after solving.
5592
5593 2011-04-28 Richard Guenther <rguenther@suse.de>
5594
5595 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5596 New function split out from ...
5597 (find_func_aliases): ... here. Call it.
5598 (find_func_aliases_for_call): Likewise.
5599
5600 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5601
5602 * internal-fn.h (internal_fn_name_array): Declare.
5603 (internal_fn_flags_array): Likewise.
5604
5605 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5606
5607 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5608 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5609 Move from sse.md.
5610 (ssemodefsuffix): Remove.
5611 (ssevecmodesuffix): New mode attribute.
5612 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5613 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5614 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5615 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5616 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5617 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5618 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5619 ssemodesuffix mode attribute.
5620 (float splitters): Use ssevecmodesuffix mode attribute.
5621 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5622 (sseinsmode): Rename from avxvecmode.
5623 (avxsizesuffix): Rename from avxmodesuffix.
5624 (sseintvecmode): Rename from avxpermvecmode.
5625 (ssedoublevecmode): Rename from ssedoublesizemode.
5626 (ssehalfvecmode): Rename from avxhalfvecmode.
5627 (ssescalarmode): Rename from avxscalarmode.
5628 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5629 templates for ssemodesuffix mode attribute.
5630 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5631 mode attribute.
5632
5633 Adjust RTX patterns globally for renamed mode attributes.
5634
5635 2011-04-27 Jan Hubcika <jh@suse.cz>
5636
5637 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5638 * ipa-inline-analysis.c: Include alloc-pool.h.
5639 (edge_predicate_pool): New.
5640 (trye_predicate_p): New function
5641 (false_predicate_p): New function.
5642 (add_clause): Sanity check that false clauses are "optimized";
5643 never add clauses to predicate that is already known to be false.
5644 (and_predicate): Use flase_predicate_p.
5645 (evaulate_predicate): Rename to ...
5646 (evaluate_predicate): ... this one; update all callers; assert
5647 that false is not listed among possible truths.
5648 (dump_predicate): Use true_predicate_p.
5649 (account_size_time): Use false_predicate_p.
5650 (evaulate_conditions_for_edge): Rename to ...
5651 (evaluate_conditions_for_edge) ... this one.
5652 (edge_set_predicate): New function.
5653 (inline_edge_duplication_hook): Duplicate edge predicates.
5654 (inline_edge_removal_hook): Free edge predicates.
5655 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5656 (dump_inline_summary): Update.
5657 (estimate_function_body_sizes): Set edge predicates.
5658 (estimate_calls_size_and_time): Handle predicates.
5659 (estimate_callee_size_and_time): Update.
5660 (remap_predicate): Add toplev_predicate; update comment.
5661 (remap_edge_predicates): New function.
5662 (inline_merge_summary): Compute toplev predicate; update.
5663 (read_predicate): New function.
5664 (read_inline_edge_summary): Use it.
5665 (inline_read_section): Likewise.
5666 (write_predicate): New function.
5667 (write_inline_edge_summary): Use it.
5668 (inline_write_summary): Likewise.
5669 (inline_free_summary): Free alloc pool and edge summary vec.
5670
5671 2011-04-27 Richard Guenther <rguenther@suse.de>
5672
5673 * tree-ssa-structalias.c (changed_count): Remove.
5674 (changed): Use a bitmap.
5675 (unify_nodes): Adjust.
5676 (do_sd_constraint): Likewise.
5677 (do_ds_constraint): Likewise.
5678 (do_complex_constraint): Likewise.
5679 (solve_graph): Likewise.
5680
5681 2011-04-27 Jan Hubicka <jh@suse.cz>
5682
5683 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5684
5685 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5686
5687 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5688 (avx_vperm2f128_*_operand): Ditto.
5689 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5690 Use avx_vpermilp_parallel in insn condition.
5691 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5692 Use avx_vperm2f128_parallel in insn condition.
5693
5694 2011-04-27 Richard Guenther <rguenther@suse.de>
5695
5696 * Makefile.in (tree-ssa-structalias.o): Remove
5697 gt-tree-ssa-structalias.h dependency.
5698 (GTFILES): Remove tree-ssa-structalias.c.
5699 * tree.c (allocate_decl_uid): New function.
5700 (make_node_stat): Use it.
5701 (copy_node_stat): Likewise.
5702 * tree.h (allocate_decl_uid): Declare.
5703 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5704 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5705 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5706 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5707 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5708 (struct heapvar_map): Likewise.
5709 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5710 heapvar_insert): Likewise.
5711 (make_heapvar_for): Rename to ...
5712 (make_heapvar): ... this. Simplify.
5713 (fake_var_decl_obstack): New global var.
5714 (build_fake_var_decl): New function.
5715 (make_constraint_from_heapvar): Adjust.
5716 (handle_lhs_call): Likewise.
5717 (create_function_info_for): Likewise.
5718 (intra_create_variable_infos): Likewise.
5719 (init_alias_vars): Allocate fake_var_decl_obstack.
5720 (init_alias_heapvars, delete_alias_heapvars): Remove.
5721 (compute_points_to_sets): Do not call init_alias_heapvars.
5722 (ipa_pta_execute): Likewise.
5723 (delete_points_to_sets): Free fake_var_decl_obstack.
5724
5725 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5726
5727 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5728 (si_from_UTItype, si_to_UTItype): New functions.
5729 (__udivmodti4): Use them to implement type-punning.
5730 * config/spu/multi3.c (union qword_TItype): New data type.
5731 (si_from_TItype, si_to_TItype): New functions.
5732 (__multi3): Use them to implement type-punning.
5733
5734 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5735
5736 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5737
5738 2011-04-27 Jan Hubicka <jh@suse.cz>
5739
5740 * ipa-prop.c (function_insertion_hook_holder): New holder.
5741 (ipa_add_new_function): New function.
5742 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5743 Register/deregister holder.
5744
5745 2011-04-27 Richard Guenther <rguenther@suse.de>
5746
5747 PR tree-optimization/48772
5748 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5749
5750 2011-04-27 Richard Guenther <rguenther@suse.de>
5751
5752 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5753 TARGET_MEM_REF handling.
5754
5755 2011-04-27 Nick Clifton <nickc@redhat.com>
5756
5757 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5758 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5759 (REG_CLASS_NAMES): Likewise.
5760 (REG_CLASS_CONTENTS): Likewise.
5761 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5762 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5763 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5764 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5765 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5766 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5767 duplicate register classes.
5768 (frv_class_likely_spilled_p): Likewise.
5769 (frv_register_move_cost): Likewise.
5770
5771 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5772 end of the regno_reg_class array.
5773
5774 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5775
5776 PR c/48742
5777 * c-typeck.c (build_binary_op): Don't wrap arguments if
5778 int_operands is true.
5779
5780 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5781
5782 PR target/48767
5783 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5784 targetm.calls.must_pass_in_stack for void type.
5785
5786 2011-04-26 Jan Hubicka <jh@suse.cz>
5787
5788 * cgraphbuild.c (build_cgraph_edges): Update call
5789 of cgraph_create_edge and cgraph_create_indirect_edge.
5790 * cgraph.c (cgraph_create_edge_including_clones,
5791 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5792 cgraph_update_edges_for_call_stmt_node): Do not take nest
5793 argument; do not initialize call_stmt_size/time.
5794 (dump_cgraph_node): Do not dump nest.
5795 (cgraph_clone_edge): Do not take loop_nest argument;
5796 do not propagate it; do not clone call_stmt_size/time.
5797 (cgraph_clone_node): Likewise.
5798 (cgraph_create_virtual_clone): Update.
5799 * cgraph.h (struct cgraph_edge): Remove
5800 call_stmt_size/call_stmt_time/loop_nest.
5801 (cgraph_create_edge, cgraph_create_indirect_edge,
5802 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5803 prototype.
5804 * tree-emutls.c (gen_emutls_addr): Update.
5805 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5806 loop_nest; handle indirect calls, too.
5807 (clone_inlined_nodes): Do not care about updating inline summaries.
5808 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5809 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5810 stream call_stmt_size/call_stmt_time/loop_nest.
5811 * ipa-inline.c (edge_badness): Update.
5812 (ipa_inline): dump summaries after inlining.
5813 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5814 New.
5815 (inline_edge_summary): New function.
5816 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5817 (inline_edge_removal_hook): Handle edge summaries.
5818 (inline_edge_duplication_hook): New hook.
5819 (inline_summary_alloc): Alloc hooks.
5820 (initialize_growth_caches): Do not register removal hooks.
5821 (free_growth_caches); Do not free removal hook.
5822 (dump_inline_edge_summary): New function.
5823 (dump_inline_summary): Use it.
5824 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5825 (inline_update_callee_summaries): New function.
5826 (inline_merge_summary): Use it.
5827 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5828 (read_inline_edge_summary): New function.
5829 (inline_read_section): Use it.
5830 (write_inline_edge_summary): New function.
5831 (inline_write_summary): Use it.
5832 (inline_free_summary): Free edge new holders.
5833 * tree-inline.c (copy_bb): Update.
5834
5835 2011-04-26 Jason Merrill <jason@redhat.com>
5836
5837 * tree-eh.c (lower_try_finally_switch): Create the label along with
5838 the CASE_LABEL_EXPR.
5839
5840 2011-04-26 David S. Miller <davem@davemloft.net>
5841 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5842
5843 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5844 * configure: Regenerate.
5845
5846 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5847
5848 PR target/48258
5849 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5850 reduction.
5851 (VEC_reduc): New code iterator and splitters for vector reduction.
5852 (VEC_reduc_name): Ditto.
5853 (VEC_reduc_rtx): Ditto.
5854 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5855 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5856
5857 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5858 support for extracting SF on VSX.
5859
5860 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5861 generating xscvspdp.
5862 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5863 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5864 double add, minimum, maximum vector reduction.
5865 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5866 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5867 optimize double vector reduction.
5868 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5869
5870 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5871
5872 * config/fr30/fr30.h (inhibit_libc): Don't define.
5873 * config/m32r/m32r-protos.h: Correct comment.
5874 * config/v850/v850.h (GHS_default_section_names,
5875 GHS_current_section_names): Use tree, not union tree_node *.
5876
5877 2011-04-26 Xinliang David Li <davidxl@google.com>
5878
5879 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5880 * c-family/c-opts.c (c_common_handle_option): Set
5881 warn_maybe_uninitialized.
5882 * opts.c (common_handle_option): Ditto.
5883 * common.opt: New option.
5884 * tree-ssa.c (warn_uninit): Add one more parameter.
5885 (warn_uninitialized_var): Pass warning code.
5886 * tree-flow.h: Interface change.
5887
5888 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5889
5890 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5891 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5892 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5893
5894 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5895
5896 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5897 * config/mips/mips.opt (mmips-tfile): Remove.
5898
5899 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5900 mips-tdump reference to ...
5901 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5902 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5903 reference by Tru64 UNIX.
5904
5905 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5906
5907 PR debug/48768
5908 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5909 is error_mark_node, set value to NULL.
5910
5911 PR tree-optimization/48734
5912 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5913 if return value from maybe_fold_*_comparsions isn't something
5914 the code is prepared to handle.
5915
5916 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5917
5918 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5919 mode check.
5920 (ext_QIreg_nomode_operands): Remove.
5921 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5922 (*andsi_1): Ditto.
5923 (*andhi_1): Ditto.
5924
5925 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5926
5927 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5928
5929 2011-04-26 Richard Guenther <rguenther@suse.de>
5930
5931 * c-typeck.c (build_unary_op): Do not expand array-refs via
5932 pointer arithmetic. Only adjust qualifiers for function types.
5933
5934 2011-04-26 Richard Guenther <rguenther@suse.de>
5935
5936 PR middle-end/48694
5937 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5938 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5939 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5940 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5941
5942 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5943
5944 * doc/extend.texi: Document __underlying_type.
5945
5946 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5947
5948 * config/rs6000/titan.md (automata_option "progress"): Remove.
5949
5950 2011-04-25 Jeff Law <law@redhat.com>
5951
5952 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5953
5954 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 * system.h (ENUM_BITFIELD): Remove.
5957
5958 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5959 Eric Botcazou <ebotcazou@adacore.com>
5960
5961 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5962 for STORE_FLAG_VALUE==-1 case.
5963
5964 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5965
5966 PR target/43804
5967 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5968 LEGITIMATE_PIC_OPERAND_P.
5969
5970 2011-04-24 Jan Hubicka <jh@suse.cz>
5971
5972 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5973 WPA hack.
5974 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5975 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5976 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5977 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5978 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5979 Sanity check predicate length.
5980 (remap_predicate): Likewise; sanity check jump functions.
5981 (inline_read_section, inline_write_summary): Sanity check
5982 predicate length.
5983
5984 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5985
5986 PR other/48748
5987 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5988 __is_literal_type, and __is_trivial; update throughout about
5989 possibly cv-qualified void types.
5990
5991 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5992
5993 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5994 testsuite and make it version agnostic.
5995
5996 2011-04-22 Jan Hubicka <jh@suse.cz>
5997
5998 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5999
6000 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6001
6002 PR c/48685
6003 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6004 to VOID_TYPE even around MODIFY_EXPR.
6005
6006 2011-04-22 Mike Stump <mikestump@comcast.net>
6007
6008 * gensupport.c (read_md_rtx): Fix typo in comment.
6009 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6010 comment.
6011
6012 2011-04-22 Jan Hubicka <jh@suse.cz>
6013
6014 * gengtype.c (open_base_files): Add ipa-inline.h include.
6015 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6016 ipa-prop.c; update all uses.
6017 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6018 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6019 merge summary of inlined function into former caller.
6020 * ipa-inline.c (max_benefit): Remove.
6021 (edge_badness): Compensate for removal of benefits.
6022 (update_caller_keys): Use
6023 reset_node_growth_cache/reset_edge_growth_cache.
6024 (update_callee_keys): Likewise.
6025 (update_all_callee_keys): Likewise.
6026 (inline_small_functions): Do not collect max_benefit; do not reset
6027 estimated_growth; call free_growth_caches and initialize_growth_caches.
6028 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6029 struct size_time_entry): New structures.
6030 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6031 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6032 and estimated_growth.
6033 (edge_growth_cache_entry): New structure.
6034 (node_growth_cache, edge_growth_cache): New global vars.
6035 (estimate_growth): Turn into inline.
6036 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6037 initialize_growth_caches, free_growth_caches): Declare.
6038 (estimate_edge_growth): Rewrite.
6039 (estimate_edge_time): Implement as inline cache lookup.
6040 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6041 functions.
6042 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6043 (NUM_CONDITIONS): New constant.
6044 (predicate_conditions): New enum.
6045 (IS_NOT_CONSTANT): New constant.
6046 (edge_removal_hook_holder): New var.
6047 (node_growth_cache, edge_growth_cache): New global vars.
6048 (true_predicate, single_cond_predicate, false_predicate,
6049 not_inlined_predicate, add_condition, add_clause, and_predicates,
6050 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6051 dump_clause, dump_predicate, account_size_time,
6052 evaulate_conditions_for_edge): New functions.
6053 (inline_summary_alloc): Move to heap.
6054 (inline_node_removal_hook): Clear condition and entry vectors.
6055 (inline_edge_removal_hook): New function.
6056 (initialize_growth_caches, free_growth_caches): New function.
6057 (dump_inline_summary): Update.
6058 (edge_execution_predicate): New function.
6059 (will_be_nonconstant_predicate): New function.
6060 (estimate_function_body_sizes): Compute BB and constantness predicates.
6061 (compute_inline_parameters): Do not clear estimated_growth.
6062 (estimate_edge_size_and_time): New function.
6063 (estimate_calls_size_and_time): New function.
6064 (estimate_callee_size_and_time): New function.
6065 (remap_predicate): New function.
6066 (inline_merge_summary): New function.
6067 (do_estimate_edge_time): New function based on...
6068 (estimate_edge_time): ... this one.
6069 (do_estimate_edge_growth): New function.
6070 (do_estimate_growth): New function based on....
6071 (estimate_growth): ... this one.
6072 (inline_analyze_function): Analyze after deciding on jump functions.
6073 (inline_read_section): New function.
6074 (inline_read_summary): Use it.
6075 (inline_write_summary): Write all the new data.
6076 * ipa-prop.c (ipa_get_param_decl_index): Export.
6077 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6078 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6079 Declare.
6080 (ipa_get_lattice): Move here from ipa-cp.c
6081 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6082 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6083 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6084 cgraph_edge_inlinable_p): Remove.
6085 * cgraphunit.c: Include ipainline.h
6086 (cgraph_process_new_functions): Update call of
6087 compute_inline_parameters.
6088
6089 2011-04-22 Richard Guenther <rguenther@suse.de>
6090
6091 * tree.c (build_int_cst): Properly create canonicalized integer
6092 constants.
6093 (build_int_cst_type): Remove scary comments.
6094
6095 2011-04-22 Xinliang David Li <davidxl@google.com>
6096
6097 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6098 by default when -Wno-error is not specified.
6099 * opts-global.c (decode_options): Remove call to
6100 control_warning_options.
6101
6102 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6103
6104 PR tree-optimization/48717
6105 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6106 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6107
6108 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6109
6110 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6111 definition where used.
6112
6113 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6114
6115 PR c/48716
6116 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6117 TREE_STATIC variables declared inside of some OpenMP construct.
6118
6119 2011-04-22 Martin Jambor <mjambor@suse.cz>
6120
6121 PR middle-end/48585
6122 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6123
6124 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6125
6126 PR c/36750
6127 * c-typeck.c (pop_init_level): Do not warn about initializing
6128 with ` = {0}'.
6129
6130 2011-04-22 Alan Modra <amodra@gmail.com>
6131
6132 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6133 when returning call_cookie.
6134 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6135 pointers, to functions with no more vector args than the current
6136 function, and some non-local calls for ABI_V4.
6137 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6138 sibcall_nonlocal_aix64): Combine to ..
6139 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6140 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6141 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6142 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6143 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6144 operand.
6145 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6146 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6147 sibcall_value_symbolic_64): Delete.
6148
6149 2011-04-21 Xinliang David Li <davidxl@google.com>
6150
6151 * cgraph.h: Remove pid.
6152 * cgraph.c: Remove pid.
6153 * value-prof.c (init_node_map): New function.
6154 (del_node_map): New function.
6155 (find_func_by_funcdef_no): New function.
6156 (gimple_ic_transform): Call new function.
6157 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6158 * function.c (get_last_funcdef_no): New function.
6159 * function.h (get_last_funcdef_no): New function.
6160 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6161 to libgcov function.
6162 (tree-profiling): Call node map init and delete function.
6163
6164 2011-04-21 Ian Lance Taylor <iant@google.com>
6165
6166 * godump.c (go_format_type): Use exported Go name for anonymous
6167 field name.
6168
6169 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6170
6171 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6172 Call builtin_function_type_list instead of builtin_function_type.
6173 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6174
6175 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6176
6177 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6178 build_function_type_list instead of build_function_type.
6179 Delete variable `endlink'.
6180
6181 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6182
6183 * config/s390/s390.c (s390_init_builtins): Call
6184 build_function_type_list instead of build_function_type.
6185
6186 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6187
6188 * config/ia64/ia64.c (ia64_init_builtins): Call
6189 build_function_type_list instead of builtin_function_type.
6190
6191 2011-04-21 Easwaran Raman <eraman@google.com>
6192
6193 * cfgexpand.c (stack_var): Remove OFFSET...
6194 (add_stack_var): ...and its reference here...
6195 (expand_stack_vars): ...and here.
6196 (stack_var_cmp): Sort by descending order of size.
6197 (partition_stack_vars): Change heuristic.
6198 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6199 (dump_stack_var_partition): Add newline after each partition.
6200
6201 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6202 Jeff Law <law@redhat.com>
6203
6204 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6205 * gengtype.c (matching_file_name_substitute): Likewise.
6206
6207 2011-04-21 Richard Guenther <rguenther@suse.de>
6208
6209 PR lto/48703
6210 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6211
6212 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6213
6214 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6215
6216 2011-04-21 Richard Guenther <rguenther@suse.de>
6217
6218 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6219 file name.
6220
6221 2011-04-21 Richard Guenther <rguenther@suse.de>
6222
6223 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6224 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6225 Use DECL_P, not SSA_VAR_P.
6226 (ptr_derefs_may_alias_p): Likewise.
6227 (ptr_deref_may_alias_ref_p_1): Likewise.
6228 (decl_refs_may_alias_p): Likewise.
6229 (refs_may_alias_p_1): Likewise.
6230 (ref_maybe_used_by_call_p_1): Likewise.
6231 (call_may_clobber_ref_p_1): Likewise.
6232 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6233 are either MEM_REF or TARGET_MEM_REF.
6234 (indirect_refs_may_alias_p): Likewise.
6235 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6236 for MEM_EXPR of indirect calls.
6237
6238 2011-04-21 Tristan Gingold <gingold@adacore.com>
6239
6240 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6241 (dst_file_info_struct): Remove flen field.
6242 (lookup_filename): Remove code that set flen field.
6243
6244 2011-04-21 Tristan Gingold <gingold@adacore.com>
6245
6246 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6247
6248 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6249
6250 PR target/48708
6251 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6252 vec_extract and vec_concat for non-SSE4_1 targets.
6253
6254 2011-04-21 Richard Guenther <rguenther@suse.de>
6255
6256 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6257 return statements.
6258
6259 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6260
6261 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6262 undefine.
6263 (FILE): Don't undefine.
6264
6265 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6266
6267 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6268 struct rtx_def *.
6269 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6270 struct rtx_def *.
6271 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6272 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6273 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6274 rtx_def *.
6275 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6276 definitions where used.
6277 * config/microblaze/microblaze.h (struct microblaze_args): Use
6278 rtx, not struct rtx_def *.
6279 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6280 rtx_def *.
6281 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6282 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6283 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6284 not struct rtx_def *.
6285 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6286 struct rtx_def *.
6287 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6288 rtx_def *.
6289 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6290
6291 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6292
6293 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6294 operand_equal_p to compare DR_BASE_ADDRESSes.
6295 (vect_check_interleaving): Likewise.
6296
6297 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6298
6299 PR target/46329
6300 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6301 for all Neon struct constants.
6302
6303 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6304
6305 * target.def (legitimate_constant_p): New hook.
6306 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6307 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6308 * doc/tm.texi: Regenerate.
6309 * hooks.h (hook_bool_mode_rtx_true): Declare.
6310 * hooks.c (hook_bool_mode_rtx_true): Define.
6311 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6312 * calls.c (precompute_register_parameters): Replace uses of
6313 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6314 (emit_library_call_value_1): Likewise.
6315 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6316 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6317 * ira-costs.c (scan_one_insn): Likewise.
6318 * recog.c (general_operand, immediate_operand): Likewise.
6319 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6320 * reload1.c (init_eliminable_invariants): Likewise.
6321
6322 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6323 mode argument.
6324 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6325 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6326 argument.
6327 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6328 * config/alpha/predicates.md (input_operand): Update call to
6329 alpha_legitimate_constant_p.
6330
6331 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6332 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6333 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6334 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6335 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6336 (arm_legitimate_constant_p): New functions.
6337 (arm_cannot_force_const_mem): Make static.
6338
6339 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6340
6341 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6342 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6343 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6344 instead of bfin_legitimate_constant_p.
6345 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6346 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6347
6348 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6349
6350 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6351
6352 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6353 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6354 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6355 (frv_legitimate_constant_p): Make static. Add a mode argument.
6356
6357 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6358 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6359 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6360
6361 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6362 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6363 * config/i386/i386.c (legitimate_constant_p): Rename to...
6364 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6365 argument.
6366 (ix86_cannot_force_const_mem): Update accordingly.
6367 (ix86_legitimate_address_p): Likewise.
6368 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6369 * config/i386/i386.md: Update commentary.
6370
6371 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6372 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6373 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6374 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6375
6376 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6377
6378 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6379 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6380 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6381 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6382
6383 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6384 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6385 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6386
6387 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6388 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6389 (m32r_legitimate_constant_p): New function.
6390
6391 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6392 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6393 LEGITIMATE_CONSTANT_P.
6394 (LEGITIMATE_CONSTANT_P): Delete.
6395 * config/m68k/m68k.c (m68k_expand_prologue): Call
6396 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6397 (m68k_legitimate_constant_p): New function.
6398 * config/m68k/m68k.md: Update comments.
6399
6400 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6401 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6402 (mcore_legitimate_constant_p): New function.
6403
6404 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6405 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6406 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6407 Add a mode argument.
6408 (mep_legitimate_address): Update accordingly.
6409 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6410
6411 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6412 Delete.
6413 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6414 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6415 static. Check OP's mode for VOIDmode.
6416 (microblaze_legitimate_constant_p): New function.
6417 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6418
6419 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6420 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6421 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6422 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6423 * config/mips/predicates.md: Update comments.
6424
6425 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6426 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6427 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6428 (mmix_legitimate_constant_p): Make static, return a bool, and take
6429 a mode argument.
6430 (mmix_print_operand_address): Update accordingly.
6431
6432 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6433 Delete.
6434 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6435 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6436 static. Add a mode argument.
6437 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6438
6439 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6440
6441 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6442 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6443 (pa_legitimate_constant_p): New function.
6444
6445 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6446
6447 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6448 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6449 (pdp11_legitimate_constant_p): New function.
6450
6451 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6452 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6453 (rs6000_legitimate_constant_p): New function.
6454
6455 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6456 (rx_legitimate_constant_p): ...this.
6457 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6458 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6459 (rx_legitimate_constant_p): ...this.
6460 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6461 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6462
6463 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6464 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6465 * config/s390/s390.c (legitimate_constant_p): Rename to...
6466 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6467 and add a mode argument.
6468 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6469
6470 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6471
6472 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6473 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6474 (sh_legitimate_constant_p): New function.
6475
6476 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6477 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6478 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6479 (legitimate_constant_p): Rename to...
6480 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6481 argument.
6482 (constant_address_p): Update accordingly.
6483
6484 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6485 argument and return a bool.
6486 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6487 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6488 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6489 (spu_rtx_costs): Update accordingly.
6490 * config/spu/predicates.md (vec_imm_operand): Likewise.
6491
6492 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6493
6494 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6495 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6496 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6497
6498 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6499 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6500 * config/vax/vax.c (legitimate_constant_p): Likewise.
6501
6502 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6503 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6504 (xtensa_legitimate_constant_p): New function.
6505
6506 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6507
6508 * target.def (cannot_force_const_mem): Add a mode argument.
6509 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6510 * doc/tm.texi: Regenerate.
6511 * hooks.h (hook_bool_mode_rtx_false): Declare.
6512 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6513 (hook_bool_mode_const_rtx_true): Likewise.
6514 (hook_bool_mode_rtx_false): New function.
6515 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6516 to be non-VOID. Update call to cannot_force_const_mem.
6517 (find_reloads): Update accordingly.
6518 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6519 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6520 argument.
6521 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6522 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6523 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6524 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6525 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6526 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6527 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6528 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6529 (m68k_cannot_force_const_mem): ...this new function.
6530 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6531 argument.
6532 (mips_const_insns, mips_legitimize_const_move): Update calls.
6533 (mips_secondary_reload_class): Likewise.
6534 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6535 (pa_cannot_force_const_mem): ...this new function.
6536 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6537 (rs6000_cannot_force_const_mem): ...this new function.
6538 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6539 argument.
6540 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6541 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6542 to...
6543 (xtensa_cannot_force_const_mem): ...this new function.
6544
6545 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6546
6547 * config/mips/mips.c (mips16_build_function_stub): Call
6548 build_function_type_list instead of build_function_type.
6549 (mips16_build_call_stub): Likewise.
6550
6551 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6552
6553 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6554 instead of build_function_type.
6555
6556 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6557
6558 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6559 instead of build_function_type.
6560
6561 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6562
6563 PR target/48678
6564 * config/i386/i386.md (insv): Change operand 0 constraint to
6565 "register_operand". Change operand 1 and 2 constraint to
6566 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6567 * config/i386/sse.md (sse4_1_pinsrb): Export.
6568 (sse2_pinsrw): Ditto.
6569 (sse4_1_pinsrd): Ditto.
6570 (sse4_1_pinsrq): Ditto.
6571 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6572 * config/i386/i386.c (ix86_expand_pinsr): New.
6573
6574 2011-04-20 Easwaran Raman <eraman@google.com>
6575
6576 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6577 containing union type only with -fstrict-aliasing.
6578
6579 2011-04-20 Jim Meyering <meyering@redhat.com>
6580
6581 Remove useless if-before-free tests.
6582 * calls.c (expand_call, save_area): Likewise.
6583 * cfgcleanup.c (try_forward_edges): Likewise.
6584 * collect2.c (collect_execute): Likewise.
6585 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6586 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6587 * coverage.c (coverage_checksum_string): Likewise.
6588 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6589 * cselib.c (cselib_init): Likewise.
6590 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6591 (df_set_clean_cfg): Likewise.
6592 * function.c (free_after_compilation): Likewise.
6593 * gcc.c (do_spec_1, main): Likewise.
6594 * gcov.c (create_file_names): Likewise.
6595 * gensupport.c (identify_predicable_attribute): Likewise.
6596 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6597 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6598 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6599 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6600 * ipa-pure-const.c (local_pure_const): Likewise.
6601 * ipa-reference.c (propagate): Likewise.
6602 * ira-costs.c (free_ira_costs): Likewise.
6603 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6604 * matrix-reorg.c (mat_free): Likewise.
6605 * prefix.c (get_key_value): Likewise.
6606 * profile.c (compute_value_histograms): Likewise.
6607 * reload1.c (free_reg_equiv): Likewise.
6608 * sched-deps.c (free_deps): Likewise.
6609 * sel-sched-ir.c (fence_clear): Likewise.
6610 * sese.c (set_rename, if_region_set_false_region): Likewise.
6611 * tree-data-ref.c (free_rdg): Likewise.
6612 * tree-eh.c (lower_try_finally): Likewise.
6613 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6614 * tree-ssa-live.c (delete_var_map): Likewise.
6615 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6616 * tree-ssa-pre.c (phi_trans_add): Likewise.
6617
6618 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6619
6620 PR tree-optimization/48611
6621 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6622 beyond ERT_MUST_NOT_THROW region.
6623
6624 2011-04-20 Catherine Moore <clm@codesourcery.com>
6625
6626 * config/mips/mips.opt (mfix-24k): New.
6627 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6628 * config/mips/mips.md (length): Increase by 4 for stores if
6629 fixing 24K errata.
6630 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6631 all noreorder if fixing 24K errata.
6632 * doc/invoke.texi: Document mfix-24k.
6633
6634 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6635
6636 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6637 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6638
6639 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6640
6641 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6642 (const_ok_for_op): ... to here.
6643
6644 2011-04-20 Kai Tietz <ktietz@redhat.com>
6645
6646 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6647 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6648
6649 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6650
6651 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6652
6653 2011-04-20 Richard Guenther <rguenther@suse.de>
6654
6655 PR tree-optimization/47892
6656 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6657 are if-convertible.
6658
6659 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6660
6661 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6662
6663 2011-04-20 Tristan Gingold <gingold@adacore.com>
6664
6665 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6666
6667 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6668
6669 PR target/18145
6670
6671 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6672 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6673 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6674 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6675 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6676
6677 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6678 New prototype.
6679
6680 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6681 (avr_asm_named_section, avr_asm_output_aligned_common,
6682 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6683 New functions to update...
6684 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6685 (avr_asm_init_sections): Overwrite section callbacks for
6686 data_section, bss_section.
6687 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6688 from here to...
6689 (avr_file_end): ...here.
6690
6691 2011-04-20 Richard Guenther <rguenther@suse.de>
6692
6693 PR middle-end/48695
6694 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6695 objects and types here. Adjust for their offset before comparing.
6696
6697 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6698
6699 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6700 statement per copy.
6701
6702 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6703
6704 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6705 (GIMPLE_H): Include $(INTERNAL_FN_H).
6706 (OBJS-common): Add internal-fn.o.
6707 (internal-fn.o): New rule.
6708 * internal-fn.def: New file.
6709 * internal-fn.h: Likewise.
6710 * internal-fn.c: Likewise.
6711 * gimple.h: Include internal-fn.h.
6712 (GF_CALL_INTERNAL): New gf_mask.
6713 (gimple_statement_call): Put fntype into a union with a new
6714 internal_fn field.
6715 (gimple_build_call_internal): Declare.
6716 (gimple_build_call_internal_vec): Likewise.
6717 (gimple_call_same_target_p): Likewise.
6718 (gimple_call_internal_p): New function.
6719 (gimple_call_internal_fn): Likewise.
6720 (gimple_call_fntype): Return null for internal calls.
6721 (gimple_call_set_fntype): Assert that the function is not internal.
6722 (gimple_call_set_fn): Likewise.
6723 (gimple_call_set_fndecl): Likewise.
6724 (gimple_call_set_internal_fn): New function.
6725 (gimple_call_addr_fndecl): Handle null functions.
6726 (gimple_call_return_type): Likewise null types.
6727 * gimple.c (gimple_build_call_internal_1): New function.
6728 (gimple_build_call_internal): Likewise.
6729 (gimple_build_call_internal_vec): Likewise.
6730 (gimple_call_same_target_p): Likewise.
6731 (gimple_call_flags): Handle calls to internal functions.
6732 (gimple_call_fnspec): New function.
6733 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6734 (gimple_has_side_effects): Handle null functions.
6735 (gimple_rhs_has_side_effects): Likewise.
6736 (gimple_call_copy_skip_args): Handle calls to internal functions.
6737 * cfgexpand.c (expand_call_stmt): Likewise.
6738 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6739 * gimple-fold.c (gimple_fold_call): Handle null functions.
6740 (gimple_fold_stmt_to_constant_1): Don't fold
6741 calls to internal functions.
6742 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6743 functions.
6744 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6745 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6746 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6747 (do_warn_unused_result): Likewise.
6748 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6749 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6750 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6751 the target of a call.
6752 (initialize_hash_element): Update accordingly.
6753 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6754 (iterative_hash_hashable_expr): Handle calls to internal functions.
6755 (print_expr_hash_elt): Likewise.
6756 * tree-ssa-pre.c (can_value_number_call): Likewise.
6757 (eliminate): Handle null functions.
6758 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6759 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6760 (find_func_aliases): Likewise.
6761 * value-prof.c (gimple_ic_transform): Likewise.
6762 (gimple_indirect_call_to_profile): Likewise.
6763 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6764 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6765
6766 2011-04-19 Jan Hubicka <jh@suse.cz>
6767
6768 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6769 * ipa-inline.c (inline_small_functions): Compute summaries first,
6770 populate heap later.
6771
6772 2011-04-19 Jan Hubicka <jh@suse.cz>
6773
6774 * cgraph.h (save_inline_function_body): Remove.
6775 * ipa-inline-transform.c: New file, broke out of...
6776 * ipa-inline.c: ... this one; Update toplevel comment.
6777 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6778 make global.
6779 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6780 (cgraph_mark_inline_edge): Rename to inline_call; move to
6781 ipa-inline-transform.c.
6782 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6783 move to ipa-inline-transform.c
6784 (recursive_inlining, inline_small_functions, flatten_function,
6785 ipa_inline, inline_always_inline_functions,
6786 early_inline_small_functions): Update.
6787 (inline_transform): Move to ipa-inline-transform.c.
6788 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6789 Declare.
6790 * Makefile.in (ipa-inline-transform.o): New file.
6791 * cgraphunit.c (save_inline_function_body): Move to
6792 ipa-inline-transform.c
6793
6794 2011-04-19 DJ Delorie <dj@redhat.com>
6795
6796 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6797 registers if we already know there aren't any.
6798 (m32c_emit_epilogue): Don't emit a barrier here.
6799 (m32c_emit_eh_epilogue): Likewise.
6800 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6801 operands at expand time.
6802 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6803 int" wchar type.
6804 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6805 duplicates. Provide aliases instead.
6806 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6807 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6808 the compiler.
6809
6810 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6811
6812 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6813 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6814 (general_or_i64_p, sparc_register_move_cost): New function.
6815
6816 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6817
6818 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6819 Add lynx, mipssde. Sort table.
6820
6821 2011-04-19 Xinliang David Li <davidxl@google.com>
6822
6823 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6824 not negative.
6825
6826 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6827
6828 PR target/48678
6829 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6830 is a SUBREG with non-MODE_INT mode inside of it.
6831
6832 2011-04-19 Martin Jambor <mjambor@suse.cz>
6833
6834 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6835 also according to actual contants.
6836 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6837 (gimple_fold_call): Use it.
6838 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6839
6840 2011-04-19 Martin Jambor <mjambor@suse.cz>
6841
6842 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6843 non-pointer assignments.
6844
6845 2011-04-19 Martin Jambor <mjambor@suse.cz>
6846
6847 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6848 account anc_offset and otr_type from the indirect edge info.
6849 * ipa-prop.c (get_ancestor_addr_info): New function.
6850 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6851 get_ancestor_addr_info, call it.
6852 (ipa_note_param_call): Do not initialize information about polymorphic
6853 calls, return the indirect call graph edge. Remove the last
6854 parameter, adjust all callers.
6855 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6856 parameters. Initialize polymorphic information in the indirect edge.
6857
6858 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6859
6860 PR lto/48148
6861 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6862 the types if they have different enumeration identifiers.
6863
6864 2011-04-19 Jan Hubicka <jh@suse.cz>
6865
6866 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6867 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6868 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6869 (optimize_function_for_size_p) ... here.
6870
6871 2011-04-19 Richard Guenther <rguenther@suse.de>
6872
6873 PR lto/48207
6874 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6875 langhook.
6876
6877 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6878
6879 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6880 if DECL_NO_INLINE_WARNING_P is set on the function.
6881
6882 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6883
6884 PR fortran/47976
6885 * reload1.c (inc_for_reload): Return void. All callers changed.
6886 (emit_input_reload_insns): Don't try to delete previous output
6887 reloads to a register, or record spill_reg_store for autoincs.
6888
6889 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6890
6891 * gengtype.h: Updated copyright year.
6892 (struct input_file_st): Add inpisplugin field.
6893 (type_fileloc): New function.
6894 * gengtype.c
6895 (write_typed_struct_alloc_def): Add gcc_assert.
6896 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6897 (write_typed_alloc_defns): Don't output for plugin files.
6898 (input_file_by_name): Clear inpisplugin field.
6899 (main): Set inpisplugin field for plugin files.
6900
6901 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6902
6903 * gengtype-state.c (string_eq): New.
6904 (read_state): Use string_eq instead of strcmp when creating the
6905 state_ident_tab.
6906
6907 2011-04-19 Wei Guozhi <carrot@google.com>
6908
6909 PR target/47855
6910 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6911 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6912 linkage.
6913 * config/arm/constraints.md (Uu): New constraint.
6914 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6915
6916 2011-04-19 Tristan Gingold <gingold@adacore.com>
6917
6918 * config.gcc (-*-*-*vms): Added.
6919 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6920 definitions moved.
6921 * config/vms/vms-ld.c: New file.
6922 * config/vms/vms-ar.c: New file.
6923 * config/vms/t-vmsnative: New file.
6924
6925 2011-04-18 Xinliang David Li <davidxl@google.com>
6926
6927 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6928
6929 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6930
6931 PR middle-end/48661
6932 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6933 if TREE_TYPE (v) is non-NULL.
6934
6935 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6936 gimple_get_virt_mehtod_for_binfo.
6937 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6938 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6939 callers.
6940 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6941
6942 2011-04-18 Michael Matz <matz@suse.de>
6943 Steve Ellcey <sje@cup.hp.com>
6944
6945 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6946 use its mode as source mode if it isn't VOIDmode.
6947
6948 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6949
6950 * doc/passes.texi: Fill crossref nodes.
6951
6952 2011-04-18 Jim Meyering <meyering@redhat.com>
6953
6954 Fix doubled-word typos in comments and strings
6955 * config/alpha/vms-unwind.h: s/for for/for/
6956 * config/arm/unwind-arm.h: Likewise.
6957 * config/microblaze/microblaze.c: Likewise.
6958 * config/sh/constraints.md: s/in in/in/
6959 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6960
6961 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6962
6963 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6964 (AVX_FLOAT_MODE_P): Ditto.
6965 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6966 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6967 (AVX_VEC_FLOAT_MODE_P): Ditto.
6968 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6969 (UNSPEC_MASKSTORE): Ditto.
6970 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6971 Merge from <sse>_movmsk<ssemodesuffix> and
6972 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6973 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6974 iterator.
6975 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6976 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6977 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6978
6979 2011-04-18 Jan Hubicka <jh@suse.cz>
6980
6981 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6982
6983 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6984 (want_inline_function_called_once_p): Break out the logic from
6985 ipa_inline.
6986 (edge_badness): Ensure that profile is not misupdated.
6987 (lookup_recursive_calls): Prioritize by call frequencies.
6988 (inline_small_functions): Move program size estimates here;
6989 actually process whole queue even when unit growth has been
6990 met. (to properly compute inline_failed reasons and for the
6991 case unit size decrease.) Revisit comments on recursive inlining.
6992 (ipa_inline): Remove unit summary code; first inline hot calls
6993 of functions called once, cold calls next.
6994 (order, nnodes): Remove unused variables.
6995 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6996 (GTFILES): Remove ipa-inline.c
6997 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6998
6999 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7000
7001 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7002
7003 2011-04-18 Jie Zhang <jie@codesourcery.com>
7004 Richard Earnshaw <rearnsha@arm.com>
7005
7006 * arm.c (neon_builtin_type_bits): Remove.
7007 (typedef enum neon_builtin_mode): New.
7008 (T_MAX): Don't define.
7009 (typedef enum neon_builtin_datum): Remove bits, codes[],
7010 num_vars and base_fcode. Add mode, code and fcode.
7011 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7012 VAR10): Change accordingly.
7013 (neon_builtin_data[]): Change accordingly
7014 (arm_init_neon_builtins): Change accordingly.
7015 (neon_builtin_compare): Remove.
7016 (locate_neon_builtin_icode): Remove.
7017 (arm_expand_neon_builtin): Change accordingly.
7018
7019 * arm.h (enum arm_builtins): Move to ...
7020 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7021
7022 * arm.c (arm_builtin_decl): Declare.
7023 (TARGET_BUILTIN_DECL): Define.
7024 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7025 (arm_builtin_decls[]): New.
7026 (arm_init_neon_builtins): Store builtin declarations in
7027 arm_builtin_decls[].
7028 (arm_init_tls_builtins): Likewise.
7029 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7030 (arm_builtin_decl): New.
7031
7032 2011-04-18 Richard Guenther <rguenther@suse.de>
7033
7034 * tree.c (upper_bound_in_type): Build properly canonicalized
7035 INTEGER_CSTs.
7036 (lower_bound_in_type): Likewise.
7037
7038 2011-04-18 Richard Guenther <rguenther@suse.de>
7039
7040 * gimple.h (gimple_call_addr_fndecl): New function.
7041 (gimple_call_fndecl): Use it.
7042 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7043 for direct calls.
7044 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7045 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7046
7047 2011-04-18 Richard Guenther <rguenther@suse.de>
7048
7049 PR middle-end/48650
7050 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7051
7052 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7053
7054 PR lto/48492
7055 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7056 DECL_IN_CONSTANT_POOL without RTL.
7057
7058 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7059 Ira Rosen <ira.rosen@linaro.org>
7060
7061 PR target/48252
7062 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7063 to match neon_vzip/vuzp/vtrn_internal.
7064 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7065 outputs explicitly dependent on both inputs.
7066 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7067
7068 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7069
7070 PR tree-optimization/48616
7071 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7072 whether the shift is by scalar or vector based on whether all SLP
7073 scalar stmts have the same rhs.
7074
7075 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7076
7077 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7078 memory operands.
7079
7080 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7081
7082 PR target/43700
7083 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7084 registers.
7085
7086 2011-04-17 Jan Hubicka <jh@suse.cz>
7087
7088 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7089 * cgrpahunit.c (cgraph_finalize_function): Do not set
7090 finalized_by_frontend.
7091 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7092 finalized_by_frontend.
7093
7094 2011-04-17 Jan Hubicka <jh@suse.cz>
7095
7096 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7097 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7098 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7099 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7100 method.
7101 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7102 gimple-fold.c
7103 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7104
7105 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7106
7107 PR lto/48538
7108 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7109 is non-null before accessing it.
7110 (input_cgraph): Remove trailing spaces.
7111
7112 2011-04-17 Revital Eres <revital.eres@linaro.org>
7113
7114 * params.def (sms-min-sc): New param flag.
7115 * modulo-sched.c (sms_schedule): Use it.
7116 * doc/invoke.texi (sms-min-sc): Document it.
7117
7118 2011-04-17 Jan Hubicka <jh@suse.cz>
7119
7120 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7121 present, also set gimple_call_set_cannot_inline.
7122 * ipa-inline.c: Update toplevel comment.
7123 (MAX_TIME): Remove.
7124 (cgraph_clone_inlined_nodes): Fix linebreaks.
7125 (cgraph_check_inline_limits): Restructure to ...
7126 (caller_growth_limits): ... this one; be more tolerant
7127 on growth in nested inline chains; add explanatory comment;
7128 fix stack accounting thinko introduced by previous patch.
7129 (cgraph_default_inline_p): Remove.
7130 (report_inline_failed_reason): New function.
7131 (can_inline_edge_p): New function.
7132 (can_early_inline_edge_p): New function.
7133 (leaf_node_p): Move upwards in file.
7134 (want_early_inline_function_p): New function.
7135 (want_inline_small_function_p): New function.
7136 (want_inline_self_recursive_call_p): New function.
7137 (cgraph_edge_badness): Rename to ...
7138 (edge_badness) ... this one; fix linebreaks.
7139 (update_edge_key): Update call of edge_baddness; add
7140 detailed dump about queue updates.
7141 (update_caller_keys): Use can_inline_edge_p and
7142 want_inline_small_function_p.
7143 (cgraph_decide_recursive_inlining): Rename to...
7144 (recursive_inlining): Use can_inline_edge_p and
7145 want_inline_self_recursive_call_p; simplify and remove no longer
7146 valid FIXME.
7147 (cgraph_set_inline_failed): Remove.
7148 (add_new_edges_to_heap): Use can_inline_edge_p and
7149 want_inline_small_function_p.
7150 (cgraph_decide_inlining_of_small_functions): Rename to ...
7151 (inline_small_functions): ... this one; cleanup; use
7152 can/want predicates; cleanup debug ouput; work edges till fibheap
7153 is exhausted and do not stop once unit growth is reached; remove
7154 later loop processing remaining edges.
7155 (cgraph_flatten): Rename to ...
7156 (flatten_function): ... this one; use can_inline_edge_p
7157 and can_early_inline_edge_p predicates.
7158 (cgraph_decide_inlining): Rename to ...
7159 (ipa_inline): ... this one; remove unreachable nodes before
7160 inlining functions called once; simplify the pass.
7161 (cgraph_perform_always_inlining): Rename to ...
7162 (inline_always_inline_functions): ... this one; use
7163 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7164 (cgraph_decide_inlining_incrementally): Rename to ...
7165 (early_inline_small_functions): ... this one; simplify
7166 using new predicates; cleanup; make dumps prettier.
7167 (cgraph_early_inlining): Rename to ...
7168 (early_inliner): newer inline regular functions into always-inlines;
7169 fix updating of call stmt summaries.
7170 (pass_early_inline): Update for new names.
7171 (inline_transform): Fix formating.
7172 (gate_cgraph_decide_inlining): Rename to ...
7173 (pass_ipa_inline): ... this one.
7174 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7175 * ipa-inline-analysis.c (dump_inline_summary): Update.
7176 (compute_inline_parameters): Do not compute disregard_inline_limits;
7177 look for mismatching arguments.
7178 (estimate_growth): Fix handlig of non-trivial self recursion.
7179 (inline_read_summary): Do not read info->disregard_inline_limits.
7180 (inline_write_summary): Do not write info->disregard_inline_limits.
7181 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7182 and move all checks into can_inline_edge_p predicate; re-enable code
7183 comparing optimization levels.
7184 (expand_call_inline): Do not test inline_forbidden_into_p.
7185 * Makefile.in (ipa-inline.o): Update arguments.
7186
7187 2011-04-17 Revital Eres <revital.eres@linaro.org>
7188
7189 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7190
7191 2011-04-17 Revital Eres <revital.eres@linaro.org>
7192
7193 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7194
7195 2011-04-17 Michael Matz <matz@suse.de>
7196
7197 PR tree-optimization/48622
7198 PR lto/48645
7199 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7200 in same order as they're written.
7201
7202 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7203
7204 * config/pa/predicates.md: Reorganize and simplify predicates.
7205 Eliminate duplicate code checks.
7206 (arith_operand): Rename to arith14_operand
7207 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7208 * config/pa/pa.md: Use renamed operands.
7209 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7210 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7211 arith11_operand, adddi3_operand, indexed_memory_operand,
7212 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7213 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7214 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7215 move_dest_operand, move_src_operand, prefetch_cc_operand,
7216 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7217 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7218 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7219 div_operand, int5_operand, movb_comparison_operator,
7220 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7221 arith_double_operand, ireg_operand, lhs_lshift_operand,
7222 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7223 integer_store_memory_operand): Likewise.
7224 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7225 (integer_store_memory_operand, read_only_operand,
7226 function_label_operand, borx_reg_operand,
7227 non_hard_reg_operand): Likewise.
7228 (eq_neq_comparison_operator): Delete unused operator.
7229 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7230 function_label_operand.
7231 (emit_move_sequence): Likewise.
7232
7233 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7234
7235 * config/i386/sse.md (sseunpackmode): New mode attribute.
7236 (ssepackmode): Ditto.
7237 (vec_pack_trunc_<mode>): Macroize expander from
7238 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7239 (vec_unpacks_lo_<mode>): Macroize expander from
7240 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7241 (vec_unpacks_hi_<mode>): Macroize expander from
7242 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7243 (vec_unpacku_lo_<mode>): Macroize expander from
7244 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7245 (vec_unpacku_hi_<mode>): Macroize expander from
7246 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7247 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7248 ix86_expand_sse4_unpack.
7249 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7250
7251 2011-04-16 Jan Hubicka <jh@suse.cz>
7252
7253 * cgraphbuild.c: Include ipa-inline.h.
7254 (reset_inline_failed): Use initialize_inline_failed.
7255 * cgraph.c: Include ipa-inline.h.
7256 (cgraph_create_node_1): Do not initialize estimated_growth.
7257 (initialize_inline_failed): More to ipa-inline-analysis.c
7258 (dump_cgraph_node): Do not dump inline flags.
7259 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7260 and disregard_inline_limits flags.
7261 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7262 time, size, estimated_growth.
7263 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7264 Update.
7265 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7266 DECL_DISREGARD_INLINE_LIMITS.
7267 (cgraph_analyze_function): Do not initialize
7268 node->local.disregard_inline_limits.
7269 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7270 inlinable, versionable and disregard_inline_limits.
7271 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7272 cgraph_check_inline_limits, cgraph_default_inline_p,
7273 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7274 add_new_edges_to_heap): Update.
7275 (cgraph_decide_inlining_of_small_function): Update; set
7276 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7277 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7278 cgraph_decide_inlining_incrementally): Update.
7279 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7280 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7281 time, size and estimated_growth parameters.
7282 (estimate_edge_growth): Update.
7283 (initialize_inline_failed): Declare.
7284 * ipa-split.c: Include ipa-inline.h
7285 (execute_split_functions): Update.
7286 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7287 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7288 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7289 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7290 estimated_growth to INT_MIN.
7291 (inline_node_duplication_hook): Likewise.
7292 (dump_inline_summary): Dump new fields.
7293 (compute_inline_parameters): Update.
7294 (estimate_edge_time, estimate_time_after_inlining,
7295 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7296 inline_write_summary):
7297 (initialize_inline_failed): Move here from cgraph.c.
7298 * tree-sra.c: Include ipa-inline.h.
7299 (ipa_sra_preliminary_function_checks): Update.
7300 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7301 ipa-inline.h.
7302
7303 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7304
7305 * config/i386/sse.md (V16): New mode iterator.
7306 (VI1, VI8): Ditto.
7307 (AVXMODEQI, AVXMODEDI): Remove.
7308 (sse2, sse3): New mode attribute.
7309 (mov<mode>): Use V16 mode iterator.
7310 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7311 (push<mode>1): Use V16 mode iterator.
7312 (movmisalign<mode>): Ditto.
7313 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7314 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7315 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7316 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7317 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7318 avx_movdqu<avxmodesuffix>.
7319 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7320 *avx_movdqu<avxmodesuffix>.
7321 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7322 avx_lddqu<avxmodesuffix>.
7323 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7324 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7325 avx_movnt<AVXMODEDI:mode>.
7326 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7327 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7328
7329 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7330
7331 PR target/48629
7332 * haifa-sched.c (prune_ready_list, schedule_block): Use
7333 sched_pressure_p rather than flag_sched_pressure.
7334
7335 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7336
7337 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7338 cgraph_get_node instead of cgraph_get_create_node.
7339
7340 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7341
7342 * cfgexpand.c (expand_debug_expr): Use
7343 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7344
7345 2011-04-15 Michael Matz <matz@suse.de>
7346
7347 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7348 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7349 * function.c (gimplify_parameters): Ditto.
7350 * gimplify.c (gimplify_vla_decl): Ditto.
7351
7352 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7353 (gimple_call_set_alloca_for_var): New inline function.
7354 (gimple_call_alloca_for_var_p): Ditto.
7355 * gimple.c (gimple_build_call_from_tree): Remember
7356 CALL_ALLOCA_FOR_VAR_P state.
7357 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7358
7359 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7360 calls if they were for VLA objects.
7361
7362 2011-04-15 Martin Jambor <mjambor@suse.cz>
7363
7364 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7365 of ADR_EXPRs.
7366
7367 2011-04-15 Martin Jambor <mjambor@suse.cz>
7368
7369 PR middle-end/48601
7370 * tree-emutls.c (lower_emutls_function_body): Call
7371 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7372 result is non-NULL.
7373
7374 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7375
7376 * c-decl.c (detect_field_duplicates): Call
7377 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7378
7379 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7380
7381 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7382 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7383 * ipa-pure-const.c (check_stmt): Call it.
7384 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7385
7386 2011-04-15 Richard Guenther <rguenther@suse.de>
7387
7388 PR tree-optimization/48290
7389 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7390 Properly decide inhibiting propagation based on the valueized
7391 operand. Do loop-closed SSA form preserving here ...
7392 (init_copy_prop): ... not here.
7393
7394 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7395
7396 PR target/48612
7397 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7398 (*ieee_smax<mode>3): Likewise.
7399
7400 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7401
7402 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7403 Replace match_operand with match_dup for the third operand in
7404 these expanders.
7405
7406 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7407
7408 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7409 to track processing of conditionals. Update all callers.
7410 (try_combine, simplify_if_then_else): Update.
7411
7412 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7413
7414 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7415 -fsched-pressure.
7416
7417 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7418
7419 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7420 instead of match_operand for operand 3.
7421
7422 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7423
7424 * recog.h (insn_operand_data): Add an "allows_mem" field.
7425 * genoutput.c (output_operand_data): Initialize it.
7426 * optabs.c (maybe_legitimize_operand_same_code): New function.
7427 (maybe_legitimize_operand): Use it when matching the original
7428 op->value.
7429
7430 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7431
7432 * gimplify.c: Fix issues in comments throughout.
7433 (voidify_wrapper_expr): Fix long line.
7434 (build_stack_save_restore): Likewise.
7435 (gimplify_loop_expr): Likewise.
7436 (gimplify_compound_lval): Likewise.
7437 (gimplify_init_ctor_eval): Likewise.
7438 (gimplify_modify_expr_rhs): Likewise.
7439 (omp_notice_threadprivate_variable): Likewise.
7440
7441 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7442
7443 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7444 original one if this is not a builtin function.
7445
7446 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7447
7448 PR target/48605
7449 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7450 offset it as needed based on top 2 bits in operands[3], change
7451 MEM mode to SFmode and mask those 2 bits away from operands[3].
7452
7453 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7454
7455 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7456 change from objc_declare_protocols() to objc_declare_protocol().
7457
7458 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7459
7460 * config/i386/sse.md (sse4_1): New mode attribute.
7461 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7462 avx_blend<ssemodesuffix><avxmodesuffix> and
7463 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7464 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7465 avx_blendv<ssemodesuffix><avxmodesuffix> and
7466 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7467 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7468 avx_dp<ssemodesuffix><avxmodesuffix> and
7469 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7470 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7471 (sse4_1_packusdw): Merge with *avx_packusdw.
7472 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7473 (sse4_1_pblendw): Merge with *avx_pblendw.
7474 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7475 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7476 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7477 VF mode iterator.
7478 (sse4_1_round<ssescalarmodesuffix>): Merge with
7479 *avx_round<ssescalarmodesuffix>.
7480 (aesenc): Merge with *avx_aesenc.
7481 (aesenclast): Merge with *avx_aesenclast.
7482 (aesdec): Merge with *avx_aesdec.
7483 (aesdeclast): Merge with *avx_aesdeclast.
7484 (pclmulqdq): Merge with *pclmulqdq.
7485 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7486 New predicate.
7487 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7488
7489 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7490
7491 PR middle-end/48608
7492 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7493 (align_local_variable): This. Update DECL_ALIGN.
7494 (add_stack_var): Updated.
7495 (expand_one_stack_var): Likewise.
7496
7497 2011-04-14 Richard Guenther <rguenther@suse.de>
7498
7499 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7500 Remove.
7501 (dse_initialize_block_local_data, dse_leave_block,
7502 record_voperand_set, get_stmt_uid): Likewise.
7503 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7504 (dse_optimize_stmt): Remove voperand set handling code.
7505 Simplify and improve to handle any kind of killing stmt.
7506 (dse_record_phi): Remove.
7507 (dse_enter_block): Simplify.
7508 (tree_ssa_dse): Likewise.
7509 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7510
7511 2011-04-14 Jan Hubicka <jh@suse.cz>
7512
7513 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7514 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7515 (cgraph_local_info): Remove inline_summary.
7516 * ipa-cp.c: Include ipa-inline.h.
7517 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7518 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7519 accesor.
7520 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7521 (input_overwrite_node): Do not set inline summary.
7522 (input_node): Do not stream inline summary.
7523 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7524 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7525 growth; we do not have inline parameters computed for that anyway.
7526 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7527 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7528 (inline_summary_t): New type and VECtor.
7529 (debug_inline_summary, dump_inline_summaries): Declare.
7530 (inline_summary): Use VOCtor.
7531 (estimate_edge_growth): Kill hack computing call stmt size directly.
7532 * lto-section-in.c (lto_section_name): Add inline section.
7533 * ipa-inline-analysis.c: Include lto-streamer.h
7534 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7535 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7536 (inline_summary_vec): Define.
7537 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7538 dump_inline_summaries): New functions.
7539 (estimate_function_body_sizes): Properly compute size/time of outgoing
7540 calls.
7541 (compute_inline_parameters): Alloc inline_summary; do not compute
7542 size/time of incomming calls.
7543 (estimate_edge_time): Avoid missing time summary hack.
7544 (inline_read_summary): Read inline summary info.
7545 (inline_write_summary): Write inline summary info.
7546 (inline_free_summary): Free all hooks and inline summary vector.
7547 * lto-streamer.h: Add LTO_section_inline_summary section.
7548 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7549 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7550
7551 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7552
7553 * tree-vectorizer.h (vect_strided_store_supported): Add a
7554 HOST_WIDE_INT argument.
7555 (vect_strided_load_supported): Likewise.
7556 (vect_permute_store_chain): Return void.
7557 (vect_transform_strided_load): Likewise.
7558 (vect_permute_load_chain): Delete.
7559 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7560 count argument. Check that the count is a power of two.
7561 (vect_strided_load_supported): Likewise.
7562 (vect_permute_store_chain): Return void. Update after above changes.
7563 Assert that the access is supported.
7564 (vect_permute_load_chain): Likewise.
7565 (vect_transform_strided_load): Return void.
7566 * tree-vect-stmts.c (vectorizable_store): Update calls after
7567 above interface changes.
7568 (vectorizable_load): Likewise.
7569 (vect_analyze_stmt): Don't check for strided powers of two here.
7570
7571 2011-04-14 Richard Guenther <rguenther@suse.de>
7572
7573 PR tree-optimization/48590
7574 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7575 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7576 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7577 BUILT_IN_STACK_SAVE.
7578 * tree-ssa-dce.c (propagate_necessity): Handle
7579 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7580
7581 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7582
7583 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7584 objc_declare_class.
7585
7586 2011-04-14 Richard Guenther <rguenther@suse.de>
7587
7588 * tree.h (get_object_alignment_1): Declare.
7589 * builtins.c (get_object_alignment_1): Split out worker from ...
7590 (get_object_alignment): ... here.
7591 * fold-const.c (get_pointer_modulus_and_residue): Use
7592 get_object_alignment_1.
7593
7594 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7595
7596 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7597 type parameter.
7598 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7599 parameter. Generalise code to handle arrays as well as vectors.
7600 (vect_setup_realignment): Update accordingly.
7601 * tree-vect-stmts.c (vectorizable_store): Likewise.
7602 (vectorizable_load): Likewise.
7603
7604 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7605
7606 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7607 within the per-copy loop.
7608
7609 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7610
7611 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7612 in the dump file.
7613
7614 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7615
7616 * doc/options.texi (Negative): Explicitly mention that the
7617 Negative chain must be circular.
7618
7619 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7620
7621 * function.h (block_chainon): Declare.
7622 * function.c (block_chainon): Define.
7623
7624 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7625 Eric Weddington <eric.weddington@atmel.com>
7626 Georg-Johann Lay <avr@gjlay.de>
7627
7628 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7629 New Includes
7630 (avr_init_builtins, avr_expand_builtin,
7631 avr_expand_delay_cycles, avr_expand_unop_builtin,
7632 avr_expand_binop_builtin ): New functions.
7633 (avr_builtin_id): New enum
7634 (struct avr_builtin_description): New struct
7635 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7636 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7637
7638 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7639 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7640 UNSPECV_DELAY_CYCLES): new enumeration values
7641 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7642 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7643 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7644 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7645 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7646 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7647 "fmulsu"): New insns
7648
7649 * config/avr/avr-c.c: fix line endings
7650 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7651 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7652 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7653 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7654 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7655
7656 * doc/extend.texi (AVR Built-in Functions): New node
7657 (Target Builtins): Add documentation of AVR
7658 built-in functions.
7659
7660 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7661
7662 PR target/44643
7663 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7664 alone. Error if non-const data has attribute progmem.
7665
7666 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7667
7668 * tree.h (struct tree_constructor): Include tree_typed instead of
7669 tree_common.
7670 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7671 TS_TYPED instead of TS_COMMON.
7672
7673 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7674
7675 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7676 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7677 (sse2_psadbw): Merge with *avx_psadbw.
7678 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7679 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7680 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7681 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7682 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7683 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7684 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7685 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7686 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7687 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7688 (ssse3_palignrti): Merge with *avx_palignrti.
7689
7690 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7691
7692 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7693 * tree-ssanames.c (fini_ssanames): VEC_free it.
7694 (make_ssa_name_fn): Update for VECness of free_ssanames.
7695 (release_ssa_name, release_dead_ssa_names): Likewise.
7696 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7697 tree_common.
7698 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7699 TS_TYPED instead of TS_COMMON.
7700
7701 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7702
7703 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7704 statistics_counter_event.
7705 * tree-ssa-copyrename.c (stats): Define.
7706 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7707 statistics_counter_event.
7708 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7709 (bswap_stats, widen_mul_stats): Define.
7710 (insert_reciprocals): Increment rdivs_inserted.
7711 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7712 rfuncs_inserted. Add calls to statistics_counter_event.
7713 (execute_cse_sincos_1): Increment inserted.
7714 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7715 statistics_counter_event.
7716 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7717 of bswap_stats. Add calls to statistics_counter_event.
7718 (convert_mult_to_widen): Increment widen_mults_inserted.
7719 (convert_plusminus_to_widen): Increment maccs_inserted.
7720 (convert_mult_to_fma): Increment fmas_inserted.
7721 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7722 calls to statistics_counter_event.
7723
7724 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7725
7726 PR rtl-optimization/48455
7727 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7728 `temp_costs->mem_cost'.
7729
7730 2011-04-13 Jan Hubicka <jh@suse.cz>
7731
7732 * ipa-inline.h: New file.
7733 * ipa-inline-analysis.c: New file. Broken out of ...
7734 * ipa-inline.c: ... this file; update toplevel comment;
7735 include ipa-inline.h
7736 (inline_summary): Move to ipa-inline.h
7737 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7738 ipa-inline-analysis.c.
7739 (cgraph_estimate_time_after_inlining): Rename to
7740 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7741 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7742 to estimate_edge_growth.
7743 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7744 rename to estimate_size_after_inlining.
7745 (cgraph_mark_inline_edge): Update for new naming convention.
7746 (cgraph_check_inline_limits): Likewise.
7747 (cgraph_edge_badness): Likewise.
7748 (cgraph_decide_recursive_inlining): Likewise.
7749 (cgraph_decide_inlining_of_small_functions): Likewise.
7750 (cgraph_decide_inlining_incrementally): Likewise.
7751 (cgraph_estimate_growth): Rename to estimate_growth; move to
7752 ipa-inline-analysis.c.
7753 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7754 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7755 (compute_inline_parameters): Likewise.
7756 (compute_inline_parameters_for_current): Likewise.
7757 (pass_inline_parameters): Likewise.
7758 (inline_indirect_intraprocedural_analysis): Likewise.
7759 (analyze_function): Rename to inline_analyze_function; likewise.
7760 (add_new_function): Move to ipa-inline-analysis.c.
7761 (inline_generate_summary): Likewise.
7762 (inline_read_summary): Likewise.
7763 (inline_write_summary): Likewise.
7764 * Makefile.in (ipa-inline-analysis.c): New file.
7765
7766 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7767
7768 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7769 * configure: Regenerate.
7770
7771 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7772
7773 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7774 instead of tree_common.
7775 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7776 Likewise.
7777 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7778 TS_TYPED rather than TS_COMMON.
7779 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7780
7781 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7782
7783 PR target/45263
7784 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7785 r20 around calls of __tablejump_elpm__
7786
7787 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7788
7789 PR middle-end/48591
7790 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7791 NULL.
7792 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7793
7794 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7795
7796 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7797 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7798 (cfi_vec): New typedef.
7799 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7800 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7801 (cie_cfi_vec): New static variable.
7802 (cie_cfi_head): Delete.
7803 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7804 declaration changed. Use vector rather than list operations.
7805 (new_cfi): Don't initialize the dw_cfi_next field.
7806 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7807 rather than list operations.
7808 (lookup_cfa): Use vector rather than list operations.
7809 (output_cfis): New argument upto. Accept a cfi_vec rather than
7810 a dw_cfi_ref list head as argument. All callers changed.
7811 Iterate over the vector using upto as a maximum index.
7812 (output_all_cfis): New static function.
7813 (output_fde): Use vector rather than list operations. Use the
7814 new upto argument for output_cfis rather than manipulating a
7815 list.
7816 (dwarf2out_begin_prologue): Change initializations to match
7817 new struct members.
7818 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7819 from the vector length rather than searching for the end of a list.
7820 Use output_all_cfis.
7821 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7822
7823 2011-04-13 Nick Clifton <nickc@redhat.com>
7824
7825 * config/rx/rx.md (movmemsi): Do not use this pattern when
7826 volatile pointers are involved.
7827
7828 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7829
7830 * config/i386/sse.md (pinsrbits): Remove.
7831 (sse2_packsswb): Merge with *avx_packsswb.
7832 (sse2_packssdw): Merge with *avx_packssdw.
7833 (sse2_packuswb): Merge with *avx_packuswb.
7834 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7835 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7836 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7837 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7838 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7839 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7840 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7841 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7842 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7843 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7844 (sse2_loadld): Merge with *avx_loadld.
7845 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7846 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7847 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7848 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7849 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7850
7851 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7852
7853 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7854 calling TREE_CHAIN.
7855 * print-tree.c (print_node): Likewise.
7856 * tree-inline.c (copy_tree_r): Likewise.
7857 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7858 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7859 instead of TS_COMMON.
7860 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7861 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7862 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7863 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7864 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7865 ...and these...
7866 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7867 * tree.h: ...here.
7868 (TREE_CHAIN): Check for a TS_COMMON structure.
7869 (TREE_TYPE): Check for a TS_TYPED structure.
7870
7871 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7872
7873 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7874 cgraph_get_create_node instead of cgraph_node.
7875
7876 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7877
7878 * c-parser.c (c_parser_initelt): Updated call to
7879 objc_build_message_expr.
7880 (c_parser_postfix_expression): Likewise.
7881
7882 2011-04-12 Kai Tietz <ktietz@redhat.com>
7883
7884 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7885 MASK_MS_BITFIELD_LAYOUT bit.
7886
7887 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7888
7889 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7890 assert it is always true.
7891 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7892 moves.
7893
7894 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7895
7896 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7897 compiling Objective-C to be more efficient.
7898
7899 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7900
7901 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7902 argv_copied.
7903
7904 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7905
7906 * recog.h, genoutput.c, optabs.c: Revert last patch.
7907
7908 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7909
7910 PR target/48090
7911 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7912
7913 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7914
7915 * recog.h (insn_operand_data): Add an "allows_mem" field.
7916 * genoutput.c (output_operand_data): Initialize it.
7917 * optabs.c (maybe_legitimize_operand_same_code): New function.
7918 (maybe_legitimize_operand): Use it when matching the original
7919 op->value.
7920
7921 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7922
7923 * genpreds.c (process_define_predicate): Move most processing
7924 to gensupport.c. Continue to validate the expression.
7925 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7926 (process_define_predicate): Move processing to gensupport.c.
7927 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7928 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7929 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7930 argument.
7931 (valid_predicate_name_p): New function, split out from old
7932 genpreds.c:process_define_predicate.
7933 (process_define_predicate): New function, combining code from
7934 old genpreds.c and genrecog.c functions.
7935 (process_rtx): Call it for DEFINE_PREDICATE and
7936 DEFINE_SPECIAL_PREDICATE.
7937
7938 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7939
7940 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7941 size of a '%A' memory reference.
7942 (T_DREG, T_QREG): New neon_builtin_type_bits.
7943 (arm_init_neon_builtins): Assert that the load and store operands
7944 are neon_struct_operands.
7945 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7946 (NEON_ARG_MEMORY): New builtin_arg.
7947 (neon_dereference_pointer): New function.
7948 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7949 Handle NEON_ARG_MEMORY.
7950 (arm_expand_neon_builtin): Update after above interface changes.
7951 Use NEON_ARG_MEMORY for loads and stores.
7952 * config/arm/predicates.md (neon_struct_operand): New predicate.
7953 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7954 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7955 (V_four_elem): Tweak formatting.
7956 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7957 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7958 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7959 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7960 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7961 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7962 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7963 Use %A in the output template.
7964 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7965 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7966 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7967 the width of the memory access. Remove post-increment.
7968 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7969
7970 2011-04-12 Nick Clifton <nickc@redhat.com>
7971
7972 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7973 instruction for interrupt handlers if the target is the basic V850
7974 architecture.
7975 (expand_epilogue): Likewise.
7976
7977 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7978
7979 PR rtl-optimization/48549
7980 * combine.c (propagate_for_debug): Also stop after BB_END of
7981 this_basic_block. Process LAST and just stop processing after it.
7982 (combine_instructions): If last_combined_insn has been deleted,
7983 set last_combined_insn to its PREV_INSN.
7984
7985 2011-04-12 Richard Guenther <rguenther@suse.de>
7986
7987 PR tree-optimization/46076
7988 * gimple.h (struct gimple_statement_call): Add fntype field.
7989 (gimple_call_fntype): Adjust.
7990 (gimple_call_set_fntype): New function.
7991 * gimple.c (gimple_build_call_1): Set the call function type.
7992 * gimplify.c (gimplify_call_expr): Preserve the function
7993 type the frontend used for the call.
7994 (gimplify_modify_expr): Likewise.
7995 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7996 function type.
7997 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7998 function type.
7999 * tree-ssa.c (useless_type_conversion_p): Function pointer
8000 conversions are useless.
8001
8002 2011-04-12 Martin Jambor <mjambor@suse.cz>
8003
8004 * cgraph.h (cgraph_node): Remove function declaration.
8005 (cgraph_create_node): Declare.
8006 (cgraph_get_create_node): Likewise.
8007 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8008 Updated all callers.
8009 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8010 the decl does not already exist. Call cgraph_get_create_node instead
8011 of cgraph_node.
8012 (cgraph_get_create_node): New function.
8013 (cgraph_same_body_alias): Update comment.
8014 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8015 assert it does not return NULL.
8016 (cgraph_update_edges_for_call_stmt): Likewise.
8017 (cgraph_clone_edge): Likewise.
8018 (cgraph_create_virtual_clone): Likewise.
8019 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8020 instead of cgraph_node.
8021 (cgraph_add_new_function): Call cgraph_create_node or
8022 cgraph_get_create_node instead of cgraph_node.
8023 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8024 instead of cgraph_node.
8025 (record_eh_tables): Likewise.
8026 (mark_address): Likewise.
8027 (mark_load): Likewise.
8028 (build_cgraph_edges): Call cgraph_get_create_node instead
8029 of cgraph_node.
8030 (rebuild_cgraph_edges): Likewise.
8031 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8032 instead of cgraph_node.
8033 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8034 cgraph_node.
8035 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8036 cgraph_create_node instead of cgraph_node.
8037 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8038 of cgraph_node.
8039 * lto-cgraph.c (input_node): Likewise.
8040 * lto-streamer-in.c (input_function): Likewise.
8041 * varasm.c (mark_decl_referenced): Likewise.
8042 (assemble_alias): Likewise.
8043
8044 2011-04-12 Martin Jambor <mjambor@suse.cz>
8045
8046 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8047 instead of cgraph_node and assert it does not return NULL.
8048 * lto-streamer-in.c (lto_read_body): Likewise.
8049 * omp-low.c (new_omp_context): Likewise.
8050 (create_task_copyfn): Likewise.
8051 * tree-emutls.c (lower_emutls_function_body): Likewise.
8052 * matrix-reorg.c (transform_allocation_sites): Likewise.
8053
8054 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8055
8056 PR c/48552
8057 * c-typeck.c (build_asm_expr): Error out on attempts to use
8058 void type outputs or inputs for constraints that allow reg or
8059 don't allow memory.
8060
8061 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8062 Richard Earnshaw <rearnsha@arm.com>
8063
8064 PR target/48250
8065 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8066 to use sign-magnitude offsets. Reject unsupported unaligned
8067 cases. Add detailed description in comments.
8068 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8069 condition from TARGET_32BIT to TARGET_ARM.
8070
8071 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8072
8073 * tree.h (struct typed_tree): New.
8074 (struct tree_common): Include it instead of tree_base.
8075 (TREE_TYPE): Update for new location of type field.
8076 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8077 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8078 (union tree_node): Add typed field.
8079 * treestruct.def (TS_TYPED): New.
8080 * lto-streamer.c (check_handled_ts_structures): Handle it.
8081 * tree.c (MARK_TS_TYPED): New macro.
8082 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8083
8084 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8085
8086 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8087 (force_nonfallthru): Do not alter the loop nest if no basic block
8088 was created.
8089
8090 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8091
8092 * config/i386/sse.md (VI): New mode iterator.
8093 (SSEMODEI): Remove.
8094 (AVX256MODEI): Ditto.
8095 (AVXMODEF4P): Ditto.
8096 (avxvecpsmode): Ditto.
8097 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8098 (sse2_andnot<mode>3): New expander.
8099 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8100 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8101 (<any_logic:code><mode>3): Use VI mode iterator.
8102 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8103 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8104 (*andnottf3): Handle AVX three-operand constraints.
8105 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8106
8107 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8108 Robert Millan <rmh@gnu.org>
8109
8110 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8111 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8112 GNU_USER_DYNAMIC_LINKER64): Define.
8113 (REG_NAME): Don't undefine.
8114 (MD_UNWIND_SUPPORT): Undefine.
8115 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8116 (REG_NAME): Don't undefine.
8117 (MD_UNWIND_SUPPORT): Undefine.
8118 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8119
8120 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8121
8122 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8123 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8124
8125 2011-04-11 Xinliang David Li <davidxl@google.com>
8126
8127 * value-profile.c (check_ic_target): New function.
8128 (gimple_ic_transform): Sanity check indirect call target.
8129 * gimple-low.c (gimple_check_call_args): Interface change.
8130 (gimple_check_call_matching_types): New function.
8131 * tree-inline.c (tree_can_inline_p): Call new function.
8132
8133 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8134
8135 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8136 tree-pretty-print.h & realmpfr.h.
8137
8138 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8139
8140 PR middle-end/48464
8141 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8142 (setup_allocno_and_important_classes): Ditto.
8143
8144 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8145
8146 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8147 GNU_USER_DYNAMIC_LINKER.
8148 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8150 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8151 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8152 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8153 GNU_USER_TARGET_OS_CPP_BUILTINS.
8154 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8156 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8158 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8159 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8160 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8161 GNU_USER_TARGET_OS_CPP_BUILTINS.
8162 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8163 GNU_USER_DYNAMIC_LINKER.
8164 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8165 GNU_USER_TARGET_OS_CPP_BUILTINS.
8166 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8168 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8170 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8171 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8172 GNU_USER_DYNAMIC_LINKER64): Remove.
8173 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8174 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8175 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8176 GNU_USER_DYNAMIC_LINKER.
8177 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8178 GNU_USER_TARGET_OS_CPP_BUILTINS.
8179 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8180 GNU_USER_TARGET_OS_CPP_BUILTINS.
8181 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8182 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8183 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8184 GNU_USER_TARGET_OS_CPP_BUILTINS.
8185 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8186 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8187 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8188 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8189 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8190 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8191 GNU_USER_DYNAMIC_LINKER.
8192 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8193 GNU_USER_TARGET_OS_CPP_BUILTINS.
8194 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8196 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8197 GNU_USER_DYNAMIC_LINKER.
8198 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8199 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8200 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8201 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8202 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8203 GNU_USER_DYNAMIC_LINKER.
8204 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8205 GNU_USER_DYNAMIC_LINKERN32.
8206 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8207 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8208 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8209 GNU_USER_DYNAMIC_LINKER32.
8210 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8211 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8212 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8213 GNU_USER_DYNAMIC_LINKER.
8214 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8216 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8217 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8218 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8219 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8220 GNU_USER_DYNAMIC_LINKER32.
8221 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8222 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8223 GNU_USER_DYNAMIC_LINKER.
8224 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8225 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8226 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8227 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8228 GNU_USER_DYNAMIC_LINKER64.
8229 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8230 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8231 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8232 GNU_USER_DYNAMIC_LINKER.
8233 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8234 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8235 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8236 GNU_USER_DYNAMIC_LINKER.
8237 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8238 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8239 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8240 GNU_USER_DYNAMIC_LINKER32.
8241 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8242 GNU_USER_DYNAMIC_LINKER64.
8243 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8244 GNU_USER_DYNAMIC_LINKER64.
8245 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8247 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8248 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8249 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8250
8251 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8252
8253 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8254 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8255 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8256 GNU_USER_DYNAMIC_LINKER.
8257 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8258 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8259 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8260 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8261 GNU_USER_DYNAMIC_LINKER64.
8262 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8263 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8264 GNU_USER_LINK_EMULATION.
8265 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8266 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8267 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8268 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8269 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8270 CPP_SPEC, CC1_SPEC): Remove.
8271 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8272 (GNU_USER_DYNAMIC_LINKER): Define.
8273 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8274 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8275 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8276 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8277 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8278 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8279 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8280 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8281 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8282 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8283 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8284 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8285 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8286 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8287 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8288 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8289 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8290 GNU_USER_DYNAMIC_LINKER.
8291 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8292 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8293 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8294 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8295 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8296 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8297 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8298 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8299 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8300 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8301
8302 2011-04-11 Kai Tietz <ktietz@redhat.com>
8303
8304 PR target/9601
8305 PR target/11772
8306 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8307 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8308 comment.
8309 (ix86_is_msabi_thiscall): Removed.
8310 (ix86_is_type_thiscall): Likewise.
8311 (ix86_get_callcvt): New function.
8312 (ix86_comp_type_attributes): Simplify check.
8313 (ix86_function_regparm): Use ix86_get_callcvt for calling
8314 convention attribute checks.
8315 (ix86_return_pops_args): Likewise.
8316 (ix86_static_chain): Likewise.
8317 (x86_this_parameter): Likewise.
8318 (x86_output_mi_thunk): Likewise.
8319 (ix86_function_type_abi): Optimize check for types without attributes.
8320 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8321 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8322 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8323 by flag-values.
8324 (IX86_BASE_CALLCVT): Helper macro.
8325 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8326 Use ix86_get_callcvt for calling convention attribute checks and avoid
8327 symbol-decoration for stdcall in TARGET_RTD case.
8328 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8329 Likewise.
8330 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8331 for declaration.
8332
8333 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8334
8335 * config/i386/sse.md (VI_128): New mode iterator.
8336 (VI12_128): Rename from SSEMODE12.
8337 (VI14_128): Rename from SSEMODE14.
8338 (VI124_128): New mode iterator.
8339 (VI24_128): Rename from SSEMODE248.
8340 (VI248_128): Rename from SSEMODE248.
8341 (SSEMODE124C8): Remove.
8342 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8343 (*sse2_<plusminus_insn><mode>3): Merge with
8344 *avx_<plusminus_insn><mode>3.
8345 (*mulv8hi3): Merge with *avx_mulv8hi3.
8346 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8347 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8348 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8349 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8350 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8351 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8352 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8353 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8354 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8355 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8356 (*<smaxmin:code>v8hi3): Ditto.
8357 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8358 (*<smaxmin:code>v16qi3): Ditto.
8359 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8360 (*sse2_eq<mode>3): Ditto.
8361 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8362 (*sse2_gt<mode>3): Ditto.
8363 (vcondv2di): Split out of vcond<mode>.
8364 (vconduv2di): Split out of vcondu<mode>.
8365
8366 2011-04-11 Richard Guenther <rguenther@suse.de>
8367
8368 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8369 before calling tree_low_cst.
8370
8371 2011-04-11 Richard Guenther <rguenther@suse.de>
8372
8373 * stor-layout.c (layout_type): Compute all array index size operations
8374 in the original type.
8375 (initialize_sizetypes): Add comment.
8376 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8377
8378 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8379
8380 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8381
8382 2011-04-11 Martin Jambor <mjambor@suse.cz>
8383
8384 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8385 of cgraph_node, handle NULL return value.
8386 (cgraph_global_info): Likewise.
8387 (cgraph_rtl_info): Likewise.
8388 * tree-inline.c (estimate_num_insns): Likewise.
8389 * gimplify.c (unshare_body): Likewise.
8390 (unvisit_body): Likewise.
8391 (gimplify_body): Likewise.
8392 * predict.c (optimize_function_for_size_p): Likewise.
8393 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8394 (call_may_clobber_ref_p_1): Likewise.
8395 * varasm.c (function_section_1): Likewise.
8396 (assemble_start_function): Likewise.
8397
8398 2011-04-11 Martin Jambor <mjambor@suse.cz>
8399
8400 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8401 of cgraph_node.
8402 * final.c (rest_of_clean_state): Likewise.
8403 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8404 * passes.c (pass_init_dump_file): Likewise.
8405 (execute_all_ipa_transforms): Likewise.
8406 (function_called_by_processed_nodes_p): Likewise.
8407 * predict.c (maybe_hot_frequency_p): Likewise.
8408 (probably_never_executed_bb_p): Likewise.
8409 (compute_function_frequency): Likewise.
8410 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8411 (unnest_nesting_tree_1): Likewise.
8412 (lower_nested_functions): Likewise.
8413 * tree-optimize.c (execute_fixup_cfg): Likewise.
8414 (tree_rest_of_compilation): Likewise.
8415 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8416 * tree-sra.c (ipa_early_sra): Likewise.
8417 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8418 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8419 * ipa.c (record_cdtor_fn): Likewise.
8420 * ipa-inline.c (cgraph_early_inlining): Likewise.
8421 (compute_inline_parameters_for_current): Likewise.
8422 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8423 * ipa-pure-const.c (local_pure_const): Likewise.
8424 * ipa-split.c (split_function): Likewise.
8425 (execute_split_functions): Likewise.
8426 * cgraphbuild.c (build_cgraph_edges): Likewise.
8427 (rebuild_cgraph_edges): Likewise.
8428 (cgraph_rebuild_references): Likewise.
8429 (remove_cgraph_callee_edges): Likewise.
8430 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8431 (verify_cgraph_node): Likewise.
8432 (cgraph_analyze_functions): Likewise.
8433 (cgraph_preserve_function_body_p): Likewise.
8434 (save_inline_function_body): Likewise.
8435 (save_inline_function_body): Likewise.
8436 * tree-inline.c (copy_bb): Likewise.
8437 (optimize_inline_calls): Likewise.
8438
8439 2011-04-11 Martin Jambor <mjambor@suse.cz>
8440
8441 PR tree-optimization/48195
8442 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8443 ipa_check_create_edge_args.
8444 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8445 ipa_check_create_edge_args.
8446 * ipa-inline.c (inline_generate_summary): Do not call
8447 ipa_check_create_node_params and ipa_check_create_edge_args.
8448 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8449 ipa_check_create_edge_args.
8450
8451 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8452
8453 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8454 instead of loop.
8455 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8456 * function.c (record_hard_reg_sets): Likewise.
8457 * ira.c (compute_regs_asm_clobbered): Likewise.
8458 * sched-deps.c (sched_analyze_1): Likewise.
8459 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8460
8461 2011-04-09 Xinliang David Li <davidxl@google.com>
8462
8463 PR tree-optimization/PR48484
8464 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8465 has_valid_pred lazily
8466
8467 2011-04-09 Duncan Sands <baldrick@free.fr>
8468
8469 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8470
8471 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8472
8473 * combine.c (combine_validate_cost): Adjust comments. Set registered
8474 cost of I0 to zero at the end, if any.
8475
8476 2011-04-08 Xinliang David Li <davidxl@google.com>
8477
8478 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8479 to insane profile data.
8480
8481 2011-04-08 Xinliang David Li <davidxl@google.com>
8482
8483 * ipa-cp.c (ipcp_update_profiling): Correct
8484 negative scale factor due to insane profile data.
8485
8486 2011-04-08 Xinliang David Li <davidxl@google.com>
8487
8488 * final.c (dump_basic_block_info): New function.
8489 (final): Dump basic block.
8490 (final_scan_insn): Remove old dump.
8491
8492 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8493
8494 PR target/47829
8495 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8496 crtbegin/crtend.
8497
8498 2011-04-08 Michael Matz <matz@suse.de>
8499
8500 PR middle-end/48389
8501 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8502 functions.
8503 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8504 * rtl.h (rebuild_jump_labels_chain): Declare.
8505 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8506 insns inserted on edges.
8507
8508 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8509
8510 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8511 * config/arm/arm-arches.def: New.
8512 * config/arm/arm-opts.h: New.
8513 * config/arm/genopt.sh: New.
8514 * config/arm/arm-tables.opt: New (generated).
8515 * config/arm/arm.c (arm_handle_option, arm_target_help,
8516 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8517 (all_architectures): Get most table contents from arm-arches.def.
8518 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8519 arm_selected_tune here.
8520 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8521 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8522 (march=, mcpu=, mtune=): Use Enum and Var.
8523 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8524 (arm.o): Update dependencies.
8525
8526 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8527
8528 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8529 of header_file.
8530 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8531 (write_typed_alloc_defns): Likewise.
8532 (main): Calls write_typed_alloc_defns with output_header.
8533
8534 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8535
8536 PR inline-asm/48435
8537 * ira-color.c (setup_profitable_hard_regs): Add comments.
8538 Don't take prohibited hard regs into account.
8539 (setup_conflict_profitable_regs): Rename to
8540 get_conflict_profitable_regs.
8541 (check_hard_reg_p): Check prohibited hard regs.
8542
8543 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8544
8545 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8546 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8547 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8548
8549 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8550
8551 PR target/48366
8552 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8553 move from floating point to shift amount register.
8554 (emit_move_sequence): Remove secondary reload support for floating
8555 point to shift amount amount register copies.
8556 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8557 amount register copies.
8558 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8559 register, return false if mode isn't a scalar integer mode.
8560 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8561
8562 2011-04-08 Richard Guenther <rguenther@suse.de>
8563
8564 * gimple.c (gimple_call_flags): Remove kludge.
8565
8566 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8567
8568 * sel-sched.c (sel_region_init): Move call to
8569 sel_setup_region_sched_flags after setup_current_loop_nest.
8570
8571 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8572
8573 PR rtl-optimization/48272
8574 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8575 init_insn_reg_pressure_info. Adjust a caller.
8576 * sched-int.h (init_insn_reg_pressure_info): Declare.
8577 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8578 when sched-pressure is enabled.
8579
8580 2011-04-08 Richard Guenther <rguenther@suse.de>
8581
8582 * gimple.c (gimple_set_modified): Do not queue calls to
8583 MODIFIED_NORETURN_CALLS here ...
8584 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8585
8586 2011-04-08 Richard Guenther <rguenther@suse.de>
8587
8588 PR lto/48467
8589 * toplev.c (lang_dependent_init): Do not open asm_out_file
8590 in WPA mode, nor perform debug machinery initialization.
8591 (finalize): Do not unlink asm_out_file in WPA mode.
8592
8593 2011-04-08 Richard Guenther <rguenther@suse.de>
8594
8595 * gimple.h (gimple_call_fntype): New function.
8596 (gimple_call_return_type): Use it.
8597 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8598 * gimple-low.c (gimple_check_call_args): Likewise.
8599 * gimple.c (gimple_call_flags): Likewise.
8600 (gimple_call_arg_flags): Likewise.
8601 (gimple_call_return_flags): Likewise.
8602 * tree-cfg.c (verify_gimple_call): Likewise.
8603 (do_warn_unused_result): Likewise.
8604 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8605 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8606
8607 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8608
8609 PR rtl-optimization/48235
8610 * sel-sched.c (code_motion_process_successors): Recompute the last
8611 insn in basic block if control flow changed.
8612 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8613 Update condition for ilist_remove.
8614
8615 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8616
8617 PR rtl-optimization/48302
8618 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8619 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8620 it to record added preheader blocks.
8621 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8622 on to sel_add_loop_preheaders.
8623 (sel_region_init): Move call to setup_current_loop_nest after
8624 sel_init_bbs.
8625
8626 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8627
8628 PR target/48273
8629 * cfgloop.h (loop_has_exit_edges): New helper.
8630 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8631 non-clonable.
8632 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8633 that have no exit edges.
8634
8635 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8636
8637 PR rtl-optimization/48442
8638 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8639 all callers. Adjust assert.
8640
8641 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8642
8643 PR tree-optimization/48377
8644 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8645 is_packed to true even for types with smaller TYPE_ALIGN than
8646 TYPE_SIZE.
8647
8648 2011-04-08 Richard Guenther <rguenther@suse.de>
8649
8650 PR bootstrap/48513
8651 * doc/tm.texi: Re-generate.
8652
8653 2011-04-08 Wei Guozhi <carrot@google.com>
8654
8655 PR target/47855
8656 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8657 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8658 * config/arm/arm.md (*push_multi): Change the length computation to
8659 call a C function.
8660
8661 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8662
8663 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8664 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8665 * doc/tm.texi: Regenerate.
8666 * system.h (ASM_OUTPUT_BSS): Poison.
8667 * varasm.c (asm_output_bss): Remove function.
8668 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8669
8670 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8671 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8672 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8673 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8674 Likewise.
8675 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8676 Likewise.
8677 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8678 Likewise.
8679 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8680
8681 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8682
8683 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8684 EnumValue lines.
8685
8686 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8687
8688 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8689 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8690 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8691 OPT_mcpu32.
8692 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8693 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8694 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8695 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8696 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8697 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8698 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8699 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8700 options. Don't map other m68k options manually. Don't handle
8701 old-style options as canonical.
8702 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8703 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8704
8705 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8706
8707 * basic-block.h (force_nonfallthru): Move to...
8708 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8709 (force_nonfallthru): ...here.
8710 * cfghooks.c (force_nonfallthru): New function.
8711 * cfgrtl.c (force_nonfallthru): Rename into...
8712 (rtl_force_nonfallthru): ...this.
8713 (commit_one_edge_insertion): Do not set AUX field.
8714 (commit_edge_insertions): Do not discover new basic blocks.
8715 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8716 (cfg_layout_rtl_cfg_hooks): Likewise.
8717 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8718 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8719 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8720
8721 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8722
8723 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8724 Remove macros.
8725
8726 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8727
8728 * config/i386/sse.md: Update copyright year.
8729 (avxcvtvecmode): Remove.
8730 (sse_movhlps): Merge with *avx_movhlps.
8731 (sse_movlhps): Merge with *avx_movlhps.
8732 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8733 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8734 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8735 (sse_loadhps): Merge with *avx_loadhps.
8736 (sse_storelps): Merge with *avx_storelps.
8737 (sse_loadlps): Merge with *avx_loadlps.
8738 (sse_movss): Merge with *avx_movss.
8739 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8740 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8741 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8742 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8743 (vec_set<mode>_0): Ditto.
8744 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8745 (sse4_1_insertps): Merge with *avx_insertps.
8746 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8747 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8748 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8749 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8750 (sse2_storehpd): Merge with *avx_storehpd.
8751 (sse2_loadhpd): Merge with *avx_loadhpd.
8752 (sse2_loadlpd): Merge with *avx_loadlpd.
8753 (sse2_movsd): Merge with *avx_movsd.
8754 (*vec_concatv2df): Merge with *vec_concatv2df.
8755
8756 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8757
8758 PR debug/48343
8759 * combine.c (combine_instructions): Add last_combined_insn,
8760 update it if insn is after it, pass it to all try_combine calls.
8761 (try_combine): Add last_combined_insn parameter, pass it instead of
8762 i3 to propagate_for_debug.
8763
8764 2011-04-07 Nick Clifton <nickc@redhat.com>
8765
8766 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8767 to handle MDR <-> data register transfers.
8768 (movhi_internal): Likewise.
8769
8770 2011-04-07 Alan Modra <amodra@gmail.com>
8771
8772 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8773 previous stack info.
8774
8775 2011-04-07 Tom de Vries <tom@codesourcery.com>
8776
8777 PR target/43920
8778 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8779 flow_find_cross_jump. Swap variables to implement backward replacement.
8780 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8781
8782 2011-04-07 Tom de Vries <tom@codesourcery.com>
8783
8784 PR target/43920
8785 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8786 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8787 and bb2.
8788 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8789 src1 or src2. Redirect edges to the last basic block. Update
8790 frequency and count on multiple basic blocks in case of fallthru.
8791
8792 2011-04-07 Tom de Vries <tom@codesourcery.com>
8793
8794 PR target/43920
8795 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8796 function.
8797 (old_insns_match_p): Change return type. Replace return false/true
8798 with return dir_none/dir_both. Use can_replace_by.
8799 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8800 direction from dir_p. Register replacement direction in dir, last_dir
8801 and afterlast_dir. Handle new return type of old_insns_match_p using
8802 merge_dir. Return replacement direction in dir_p.
8803 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8804 return type of old_insns_match_p.
8805 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8806 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8807 flow_find_cross_jump.
8808 * basic-block.h (enum replace_direction): New type.
8809 (flow_find_cross_jump): Add parameter to declaration.
8810
8811 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8812
8813 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8814 (AVXMODEDCVTPS2DQ): Ditto.
8815 (VEC_FLOAT_MODE): Ditto.
8816 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8817 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8818 (<any_logic:code><mode>3): Use VF mode iterator.
8819 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8820 Use VF mode iterator.
8821 (copysign<mode>3): Use VF mode iterator.
8822 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8823 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8824 (*<any_logic:code><MODEF:mode>3): Merge with
8825 *avx_<any_logic:code><MODEF:mode>3.
8826 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8827 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8828 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8829 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8830 (sse2_cvtdq2ps): Use %v modifier.
8831 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8832 (avx_cvtps2dq<avxmodesuffix>): Remove.
8833 (sse2_cvtps2dq): Use %v modifier.
8834 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8835 (avx_cvttps2dq<avxmodesuffix>): Remove.
8836 (sse2_cvttps2dq): Use %v modifier.
8837 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8838 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8839 (sse2_cvtsd2siq): Fix insn template.
8840 (sse2_cvtsd2siq_2): Ditto.
8841 (sse2_cvttsd2siq): Ditto.
8842 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8843 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8844
8845 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8846
8847 * gcov-io.c: Use GCC Runtime Library Exception.
8848
8849 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8850
8851 PR debug/48466
8852 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8853 as base_reg whatever register reg has been eliminated to, instead
8854 of hardcoding STACK_POINTER_REGNUM.
8855
8856 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8857
8858 * doc/tm.texi.in: Document C target hooks as separate from general
8859 target hooks.
8860 * doc/tm.texi: Regenerate.
8861 * genhooks.c (struct hook_desc): Add docname field.
8862 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8863 docname field.
8864 (hook_array): Include c-target.def.
8865 (emit_documentation): Use docname field in output.
8866 (emit_init_macros): Take docname argument. Only emit definitions
8867 for hooks matching docname.
8868 (main): Expect additional arguments in all cases. Pass argument
8869 to emit_init_macros.
8870 * target.def: Move initial macro definitions and comments to
8871 target-hooks-macros.h.
8872 (gcc_targetcm): Move to c-family/c-target.def.
8873 * target.h (targetcm): Move declaration to c-family/c-target.h.
8874 * targhooks.c (default_handle_c_option): Move to
8875 c-family/c-opts.c.
8876 * targhooks.h (default_handle_c_option): Move declaration to
8877 c-family/c-common.h.
8878 * target-hooks-macros.h: New file.
8879 * config.gcc (target_has_targetcm): Define and use to add to
8880 c_target_objs and cxx_target_objs.
8881 * config/default-c.c: New file.
8882 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8883 of target.h and target-def.h.
8884 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8885 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8886 darwin_check_cfstring_format_arg): Make static.
8887 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8888 TARGET_STRING_OBJECT_REF_TYPE_P,
8889 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8890 * config/darwin-protos.h (darwin_objc_construct_string,
8891 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8892 declare.
8893 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8894 TARGET_STRING_OBJECT_REF_TYPE_P,
8895 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8896 * config/t-darwin (darwin-c.o): Update dependencies.
8897 * system.h (TARGET_HAS_TARGETCM): Poison.
8898 * Makefile.in (TARGET_H): Update.
8899 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8900 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8901 (default-c.o): New target.
8902 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8903 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8904 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8905 c-target.def.
8906 (build/genhooks.o): Update dependencies.
8907
8908 2011-04-06 Richard Guenther <rguenther@suse.de>
8909
8910 * ipa-inline.c (enum inlining_mode): Remove.
8911 (cgraph_flatten): Use some other token.
8912 (cgraph_edge_early_inlinable_p): New function, split out from ...
8913 (cgraph_perform_always_inlining): New function, split out from ...
8914 (cgraph_decide_inlining_incrementally): ... here.
8915 (cgraph_mark_inline_edge): Adjust.
8916 (cgraph_early_inlining): Re-structure.
8917 (pass_early_inline): Require SSA form.
8918
8919 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8920 Julian Brown <julian@codesourcery.com>
8921 Mark Shinwell <shinwell@codesourcery.com>
8922
8923 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8924 LO_REGS only for Thumb-1.
8925 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8926 be used in short instructions when optimising for size on Thumb-2.
8927
8928 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8929
8930 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8931 associated with user returns to be preserved.
8932
8933 2011-04-06 Tristan Gingold <gingold@adacore.com>
8934
8935 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8936 symbol_queue_size, DBXOUT_DECR_NESTING,
8937 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8938 if XCOFF_DEBUGGING_INFO.
8939
8940 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8941
8942 * config/i386/i386.md (attribute isa): New.
8943 (attribute enabled): New.
8944 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8945 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8946 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8947 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8948 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8949 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8950 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8951 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8952
8953 * config/i386/sse.md (VF): New mode iterator.
8954 (VF1): Ditto.
8955 (VF2): Ditto.
8956 (VF_128): Ditto.
8957 (SSEMODEF4): Remove.
8958 (attribute sse): Handle V8SF and V4DF modes.
8959 (<absneg:code><mode>2): Use VF mode iterator.
8960 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8961 mode iterator.
8962 (<plusminus_insn><mode>3): Use VF mode iterator.
8963 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8964 Use VF mode iterator.
8965 (<sse>_vm<plusminus_insn><mode>3): Merge with
8966 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8967 (mul<mode>3): Use VF mode iterator.
8968 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8969 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8970 mode iterator.
8971 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8972 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8973 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8974 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8975 mode iterator.
8976 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8977 Use VF1 mode iterator.
8978 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8979 (sqrt<VF2:mode>2): New expander.
8980 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8981 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8982 and sqrtv2df2. Use VF mode iterator.
8983 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8984 mode iterator.
8985 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8986 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8987 Use VF1 mode iterator.
8988 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8989 (<smaxmin:code><mode>3): Use VF mode iterator.
8990 (*<smaxmin:code><mode>3_finite): Merge with
8991 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8992 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8993 (<sse>_vm<smaxmin:code><mode>2): Merge with
8994 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8995 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8996 mode iterator.
8997 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8998 mode iterator.
8999 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9000 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9001 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9002 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9003 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9004 VF mode iterator.
9005 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9006 Use VF_128 mode iterator.
9007 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9008 mode iterator.
9009 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9010 VF_128 mode iterator.
9011 (vcond<mode>): Use VF mode iterator.
9012 * config/i386/predicates.md (sse_comparison_operator): Merge with
9013 avx_comparison_float_operator. Do not declare as special_predicate.
9014 * config/i386/i386.c (struct builtin_description): Update for renamed
9015 compare patterns.
9016 (ix86_expand_args_builtin): Ditto.
9017 (ix86_expand_sse_compare_mask): Ditto.
9018
9019 2011-04-06 Richard Guenther <rguenther@suse.de>
9020
9021 * tree-inline.c (estimate_num_insns): For calls simply account
9022 for all passed arguments and a used return value.
9023
9024 2011-04-06 Richard Guenther <rguenther@suse.de>
9025
9026 PR tree-optimization/47663
9027 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9028 call_stmt_time fields.
9029 (cgraph_edge_inlinable_p): Declare.
9030 (cgraph_edge_recursive_p): New inline function.
9031 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9032 (cgraph_clone_edge): Copy it.
9033 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9034 Account for call stmt time.
9035 (cgraph_estimate_time_after_inlining): Take edge argument.
9036 (cgraph_estimate_edge_growth): Account call stmt size.
9037 (cgraph_estimate_size_after_inlining): Take edge argument.
9038 (cgraph_mark_inline_edge): Adjust.
9039 (cgraph_check_inline_limits): Likewise.
9040 (cgraph_recursive_inlining_p): Remove.
9041 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9042 (cgraph_decide_recursive_inlining): Take edge argument and
9043 adjust.
9044 (cgraph_decide_inlining_of_small_functions): Do not avoid
9045 diags for recursive inlining here.
9046 (cgraph_flatten): Adjust.
9047 (cgraph_decide_inlining_incrementally): Likewise.
9048 (estimate_function_body_sizes): Remove call cost handling.
9049 (compute_inline_parameters): Initialize caller edge call costs.
9050 (cgraph_estimate_edge_growth): New function.
9051 (cgraph_estimate_growth): Use it.
9052 (cgraph_edge_badness): Likewise.
9053 (cgraph_check_inline_limits): Take an edge argument.
9054 (cgraph_decide_inlining_of_small_functions): Adjust.
9055 (cgraph_decide_inlining): Likewise.
9056 * tree-inline.c (estimate_num_insns): Only account for call
9057 return value if it is used.
9058 (expand_call_inline): Avoid diagnostics on recursive inline
9059 functions here.
9060 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9061 (input_edge): Input edge call costs.
9062
9063 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9064
9065 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9066
9067 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9068
9069 * doc/invoke.texi (Spec Files): Fix typo.
9070
9071 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9072
9073 * profile.c (branch_prob): Move declaration of local variable. Remove
9074 obsolete ??? comment. Expand the location explicitly instead of using
9075 the LOCATION_FILE and LOCATION_LINE macros.
9076
9077 2011-04-06 Wei Guozhi <carrot@google.com>
9078
9079 PR target/47855
9080 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9081 (arm_cond_branch): Likewise.
9082 (arm_cond_branch_reversed): Likewise.
9083 (arm_jump): Likewise.
9084 (push_multi): Likewise.
9085 * config/arm/constraints.md (Py): New constraint.
9086
9087 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9088
9089 PR bootstrap/48471
9090 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9091 Move these...
9092 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9093 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9094 #ifdef DBX_DEBUGGING_INFO.
9095
9096 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9097
9098 PR bootstrap/48403
9099 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9100 if old and new states differ.
9101
9102 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9103
9104 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9105 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9106 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9107 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9108 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9109 mcfv4e): Use Alias.
9110 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9111 ColdFire options to -mcpu= options.
9112
9113 2011-04-05 Jeff Law <law@redhat.com>
9114
9115 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9116 check if BB is a successor of LOOP->header and return
9117 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9118
9119 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9120
9121 * cprop.c (struct reg_use): Remove.
9122 (reg_use_table): Make an array of RTX.
9123 (find_used_regs, constprop_register, local_cprop_pass,
9124 bypass_block): Simplify users of reg_use_table.
9125 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9126 on one of the uses found by find_used_regs.
9127
9128 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9129
9130 PR bootstrap/48469
9131 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9132 declaration.
9133
9134 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9135
9136 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9137 as an rtx.
9138 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9139
9140 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9141
9142 PR middle-end/48441
9143 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9144
9145 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9146
9147 * combine.c: Include obstack.h.
9148 (struct insn_link): Define.
9149 (uid_log_links): Adjust type.
9150 (FOR_EACH_LOG_LINK): New macro.
9151 (insn_link_obstack): Declare.
9152 (alloc_insn_link): Define.
9153 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9154 type of link variables.
9155 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9156 (try_combine, record_promoted_values, distribute_notes): Likewise.
9157 (distribute_links): Likewise. Tweak prototype.
9158 (clear_log_links): Delete.
9159 (adjust_for_new_dest): Call alloc_insn_link.
9160 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9161
9162 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9163
9164 * gcse.c (modify_mem_list): Convert to an array of VECs.
9165 (canon_modify_mem_list, compute_transp): Tweak formatting.
9166 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9167 (load_killed_in_block_p): Likewise.
9168 (record_last_mem_set_info): Likewise.
9169 (clear_modify_mem_tables): Likewise.
9170
9171 2011-04-05 Tom de Vries <tom@codesourcery.com>
9172
9173 PR middle-end/48461
9174 * function.c (emit_use_return_register_into_block): Only define if
9175 HAVE_return.
9176
9177 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9178
9179 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9180
9181 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9182
9183 * config/rx/rx-opts.h: New.
9184 * config/rx/rx.c (rx_cpu_type): Remove.
9185 (rx_handle_option): Don't assert that global structures are in
9186 use. Access variables via opts pointer. Defer most handling of
9187 OPT_mint_register_. Use error_at.
9188 (rx_option_override): Handle deferred OPT_mint_register_ here.
9189 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9190 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9191 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9192 (rx_cpu_types): New Enum and EnumValue entries.
9193 (mint-register=): Use Defer and use Var accordingly.
9194
9195 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9196
9197 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9198 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9199 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9200 Move these...
9201 (debug_free_queue, debug_nesting, symbol_queue_index):
9202 ...and these...
9203 * dbxout.c: ...to here. Make static.
9204
9205 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9206
9207 * gcse.c (modify_pair): Define. Define a VEC of it.
9208 (canon_modify_mem_list): Convert to an array of VECs.
9209 (free_insn_expr_list_list): Delete.
9210 (clear_modify_mem_tables): Call VEC_free instead.
9211 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9212 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9213 (canon_list_insert, compute_transp): Likewise.
9214
9215 2011-04-05 Tom de Vries <tom@codesourcery.com>
9216
9217 PR target/43920
9218 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9219 for size.
9220
9221 2011-04-05 Tom de Vries <tom@codesourcery.com>
9222
9223 PR target/43920
9224 * function.c (emit_use_return_register_into_block): New function.
9225 (thread_prologue_and_epilogue_insns): Use
9226 emit_use_return_register_into_block.
9227
9228 2011-04-05 Tom de Vries <tom@codesourcery.com>
9229
9230 PR target/43920
9231 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9232 insn.
9233
9234 2011-04-05 Tom de Vries <tom@codesourcery.com>
9235
9236 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9237
9238 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9239
9240 * config/arm/arm.md (define_constants for unspec): Replace with
9241 define_c_enum.
9242 (define_constants for unspecv): Replace with define_c_enum.
9243 * config/arm/neon.md (define_constants for unspec): Replace with
9244 define_c_enum.
9245
9246 2011-04-04 Richard Henderson <rth@redhat.com>
9247
9248 PR bootstrap/48400
9249 * dwarf2out.c (output_line_info): Always emit line info from
9250 at least one section.
9251 (dwarf2out_init): Create text_section_line_info here ...
9252 (set_cur_line_info_table): ... not here.
9253
9254 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9255
9256 PR target/48380
9257 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9258 not called.
9259
9260 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9261
9262 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9263
9264 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9265 (expr_equiv_p): Remove.
9266 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9267 (hash_scan_set): Update call to insert_set_in_table.
9268 (dump_hash_table): Dump <dest, src> pair.
9269 (lookup_set): Simplify. Lookup <dest, src> pair.
9270 (compute_transp): Remove, fold heavily simplified code into...
9271 (compute_local_properties): ...here. Expect COMP and TRANSP
9272 unconditionally.
9273 (find_avail_set): Take set directly from struct expr.
9274 (find_bypass-set): Likewise.
9275 (bypass_block): Likewise.
9276 (cprop_insn): Likewise. Remove redundant INSN_P test.
9277
9278 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9279 checks on form of COND from find_implicit_sets to here.
9280 (find_implicit_sets): Cleanup control flow. Split critical edges
9281 if it exposes implicit sets. Allocate/resize implicit_sets as
9282 necessary.
9283 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9284 changed something. Run df_analyze after find_implicit_sets if any
9285 edges were split. Do not allocate implicit_sets here.
9286
9287 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9288 (gcse_obstack): Renamed to cprop_obstack.
9289 (GNEW, GNEWVEC, GNEWVAR): Remove.
9290 (gmalloc): Remove.
9291 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9292 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9293 (gcse_alloc): Likewise, and rename to cprop_alloc.
9294 (alloc_gcse_men, free_gcse_mem): Remove.
9295 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9296 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9297 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9298
9299 * cprop.c (oprs_not_set_p): Remove.
9300 (mark_set, mark_clobber): Remove.
9301 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9302 (reg_not_set_p): New function.
9303 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9304 (cprop_insn): Likewise.
9305 (cprop_jump): Use FOR_EACH_EDGE.
9306
9307 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9308
9309 PR bootstrap/48403
9310 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9311 (rank_for_schedule): Use scheduled_insns vector instead of
9312 last_scheduled_insn.
9313 (ok_for_early_queue_removal): Likewise.
9314 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9315 we have a dbg_cnt.
9316 (choose_ready): Likewise.
9317 (commit_schedule): Use VEC_iterate.
9318 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9319 a dbg_cnt, use it and ensure the first insn is in the ready list.
9320 (haifa_sched_init): Allocate scheduled_insns.
9321 (sched_extend_ready_list): Don't allocate it; reserve space.
9322 (haifa_sched_finish): Free it.
9323
9324 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9325
9326 * optc-gen.awk: Always remove type from Variable entry before
9327 recording in var_seen.
9328
9329 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9330
9331 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9332 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9333 call to tidy_fallthru_edges.
9334
9335 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9336
9337 * doc/options.texi (ToLower): Document.
9338 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9339 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9340 * opts.h (cl_option): Add cl_tolower field.
9341 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9342 arguments with lowercase strings.
9343 * config/rx/rx.opt (mcpu=): Add ToLower.
9344 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9345 argument.
9346
9347 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9348
9349 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9350
9351 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9352
9353 * config/vax/vax.c: Include reload.h.
9354
9355 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9356
9357 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9358 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9359 (sparc_preferred_reload_class): New function.
9360
9361 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9362
9363 PR debug/48401
9364 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9365 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9366
9367 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9368
9369 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9370 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9371
9372 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9373
9374 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9375 (ASM_OUTPUT_ALIGNED_BSS): Define.
9376
9377 2011-04-03 Michael Matz <matz@suse.de>
9378
9379 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9380 and next_slot members.
9381 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9382 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9383 (lto_streamer_cache_append): Declare.
9384 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9385 unsigned index, remove offset parameter, ensure that we append
9386 or update existing entries.
9387 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9388 parameter, update next_slot for append.
9389 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9390 parameter.
9391 (lto_streamer_cache_insert_at): Likewise.
9392 (lto_streamer_cache_append): New function.
9393 (lto_streamer_cache_lookup): Use unsigned index.
9394 (lto_streamer_cache_get): Likewise.
9395 (lto_record_common_node): Don't test tree_node_can_be_shared.
9396 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9397 (lto_streamer_cache_delete): Don't free offsets member.
9398 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9399 (lto_output_string_with_length): Use lto_output_data_stream.
9400 (lto_output_tree_header): Remove ix parameter, don't write it.
9401 (lto_output_builtin_tree): Likewise.
9402 (lto_write_tree): Adjust callers to above, don't track and write
9403 offset, write unsigned index.
9404 (output_unreferenced_globals): Don't emit all global vars.
9405 (write_global_references): Use unsigned indices.
9406 (lto_output_decl_state_refs): Likewise.
9407 (write_symbol): Likewise.
9408 * lto-streamer-in.c (lto_input_chain): Move earlier.
9409 (input_function): Use unsigned index.
9410 (input_alias_pairs): Don't read and then ignore all global vars.
9411 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9412 don't pass it back, use lto_streamer_cache_append.
9413 (lto_register_var_decl_in_symtab): Use unsigned index.
9414 (lto_register_function_decl_in_symtab): Likewise.
9415 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9416 index.
9417 (lto_get_builtin_tree): Don't read index, use
9418 lto_streamer_cache_append.
9419 (lto_read_tree): Adjust call to lto_materialize_tree.
9420
9421 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9422 don't use function calls in arguments to MIN.
9423
9424 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9425 twice.
9426
9427 * gimple.c (gimple_type_leader_entry): Mark deletable.
9428
9429 2011-04-03 Alan Modra <amodra@gmail.com>
9430
9431 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9432
9433 2011-04-03 Michael Matz <matz@suse.de>
9434
9435 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9436 an integer.
9437 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9438
9439 2011-04-03 Michael Matz <matz@suse.de>
9440
9441 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9442 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9443 without function context.
9444 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9445 current_function_decl and cfun.
9446
9447 2011-04-03 Michael Matz <matz@suse.de>
9448
9449 * tree.c (decl_init_priority_insert): Don't create entry for
9450 default priority.
9451 (decl_fini_priority_insert): Ditto.
9452 (fields_compatible_p, find_compatible_field): Remove.
9453 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9454 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9455
9456 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9457
9458 * combine.c (try_combine): Remove useless local variable.
9459
9460 2011-04-03 Richard Guenther <rguenther@suse.de>
9461 Ira Rosen <ira.rosen@linaro.org>
9462
9463 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9464 non-variable offsets and compare the remaining bases of the two
9465 accesses instead of looking for exact same data-ref.
9466
9467 2011-04-02 Kai Tietz <ktietz@redhat.com>
9468
9469 PR target/48416
9470 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9471
9472 * i386.c (ix86_is_msabi_thiscall): New helper function.
9473 (ix86_is_type_thiscall): New helper function.
9474 (ix86_comp_type_attributes): Handle thiscall for method-functions
9475 special.
9476 (init_cumulative_args): Likewise.
9477 (find_drap_reg): Likewise.
9478 (ix86_static_chain): Likewise.
9479 (x86_this_parameter): Likewise.
9480 (x86_output_mi_thunk): Likewise.
9481
9482 2011-04-01 Olivier Hainque <hainque@adacore.com>
9483 Nicolas Setton <setton@adacore.com>
9484 Eric Botcazou <ebotcazou@adacore.com>
9485
9486 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9487 (add_gnat_descriptive_type_attribute): New function.
9488 (gen_array_type_die): Call it.
9489 (gen_enumeration_type_die): Likewise.
9490 (gen_struct_or_union_type_die): Likewise.
9491 (modified_type_die): Likewise.
9492 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9493 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9494 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9495
9496 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9497
9498 PR bootstrap/48148
9499 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9500 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9501
9502 Revert:
9503 2011-03-17 Richard Guenther <rguenther@suse.de>
9504
9505 PR bootstrap/48148
9506 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9507 origin for decls in other ltrans units.
9508 (input_varpool_node): Likewise.
9509
9510 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9511
9512 PR middle-end/48335
9513 * expr.c (expand_assignment): Handle all possibilities
9514 if TO_RTX is CONCAT.
9515 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9516 (store_split_bit_field): If SUBREG_REG (op0) or
9517 op0 itself has smaller mode than word, return it
9518 for offset 0 and const0_rtx for out-of-bounds stores.
9519 If word is const0_rtx, skip it.
9520
9521 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9522
9523 * config/h8300/h8300.c (print_operand_address): Rename to...
9524 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9525 Call h8300_print_operand and h8300_print_operand_address instead of
9526 print_operand and print_operand_address. Declare.
9527 (print_operand): Renake to...
9528 (h8300_print_operand): ...this. Make static. Adjust comments.
9529 Call h8300_print_operand instead of print_operand. Declare.
9530 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9531 (h8300_register_move_cost): Likewise.
9532 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9533 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9534 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9535 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9536 * config/h8300/h8300-protos.h (print_operand): Delete.
9537 (print_operand_address): Delete.
9538
9539 2011-04-01 Richard Henderson <rth@redhat.com>
9540
9541 PR 48400
9542 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9543 in strict mode before dwarf4. Re-order tests to early out
9544 before switching sections.
9545
9546 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9547
9548 * config/h8300/constraints.md: New file.
9549 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9550 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9551 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9552 * config/h8300/predicates.md (bit_operand): Likewise.
9553 (incdec_operand): Use satisfies_constraint_M and
9554 satisfies_constraint_O. Don't use C code block.
9555 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9556 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9557 (compute_mov_length): Use satisfies_constraint_G.
9558 (fix_bit_operand): Use satisfies_constraint_U.
9559 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9560 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9561 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9562 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9563 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9564 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9565 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9566 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9567 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9568 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9569 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9570 (EXTRA_MEMORY_CONSTRAINT): Delete.
9571
9572 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9573 Michael Meissner <meissner@linux.vnet.ibm.com>
9574
9575 PR target/48262
9576 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9577 operands, as per the specifications.
9578
9579 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9580 (vec_extract_evenv4sf): Ditto.
9581 (vec_extract_evenv8hi): Ditto.
9582 (vec_extract_evenv16qi): Ditto.
9583 (vec_extract_oddv4si): Ditto.
9584
9585 2011-03-31 Mark Wielaard <mjw@redhat.com>
9586
9587 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9588 high_pc attribute if the CU has no associated code. Only output
9589 DW_AT_entry_pc for CU if not generating strict dwarf and
9590 dwarf_version < 4.
9591
9592 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9593
9594 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9595 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9596 out of ...
9597 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9598 * final.c (final_start_function): Call the new function rather
9599 than using a NULL argument for dwarf2out_frame_debug.
9600
9601 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9602 that contains the prologue.
9603
9604 * haifa-sched.c (queue_insn): New arg REASON. All callers
9605 changed. Print it in debugging output.
9606
9607 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9608
9609 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9610 Split most of the code into...
9611 (begin_move_insn): ... here. New function.
9612 (ebb_sched_info): Add a pointer to it.
9613 * haifa-sched.c (scheduled_insns): New static variable.
9614 (sched_extend_ready_list): Allocate it.
9615 (schedule_block): Use it to record the order of scheduled insns.
9616 Perform RTL changes to move insns only after all scheduling
9617 decisions have been made.
9618 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9619 begin_move_insn field.
9620 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9621 * sched-int.h (struct haifa_sched_info): Remove second argument
9622 from begin_schedule_ready hook. Add new member begin_move_insn.
9623 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9624 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9625
9626 * haifa-sched.c (prune_ready_list): New function, broken out of
9627 schedule_block.
9628 (schedule_block): Use it.
9629
9630 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9631
9632 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9633
9634 2011-04-01 Kai Tietz <ktietz@redhat.com>
9635
9636 * config.gcc (*-*-mingw*): Allow as option the
9637 posix threading model.
9638 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9639 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9640 definition.
9641 (CPP_SPEC): Add pthread/no-pthread handling.
9642 (LIB_SPEC): Likewise.
9643 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9644 (LIB_SPEC): Likewise.
9645 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9646 flag to pass -pthread option for shared libgcc build.
9647 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9648 for shared libgcc build.
9649 * config/i386/t-mingw-pthread: New file.
9650 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9651 New define to enable use of library pthread by default.
9652 * config/i386/mingw.opt (pthread): New driver option.
9653 (no-pthread): New driver option.
9654 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9655 * config/i386/mingw-w64.opt: Likewise.
9656
9657 2011-04-01 Gary Funck <gary@intrepid.com>
9658
9659 * c-decl.c (grokdeclarator): Fix formatting.
9660
9661 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9662
9663 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9664 instead of n_operands.
9665 (set_storage_via_setmem): Likewise.
9666 * optabs.c (maybe_gen_insn): Likewise.
9667 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9668 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9669 (mips_expand_builtin_direct): Likewise.
9670 * config/spu/spu.c (expand_builtin_args): Likewise.
9671
9672 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9673
9674 * recog.h (insn_data_d): Add n_generator_args.
9675 * genoutput.c (data): Likewise.
9676 (output_insn_data): Print it.
9677 (max_opno, num_dups): Delete.
9678 (scan_operands): Just fill in "d->operand[...]".
9679 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9680
9681 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9682
9683 * gensupport.h (pattern_stats): New structure.
9684 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9685 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9686 (max_operand_1, max_operand_vec): Delete.
9687 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9688
9689 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9690
9691 * emit-rtl.c (emit_pattern_after_setloc): New function.
9692 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9693 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9694 (emit_pattern_after): New function.
9695 (emit_insn_after, emit_jump_insn_after): Call it.
9696 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9697 (emit_pattern_before_setloc): New function.
9698 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9699 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9700 Likewise.
9701 (emit_pattern_before): New function.
9702 (emit_insn_before, emit_jump_insn_before): Call it.
9703 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9704
9705 2011-03-31 Richard Henderson <rth@redhat.com>
9706
9707 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9708 (dw_separate_line_info_entry): Remove.
9709 (enum dw_line_info_opcode): New.
9710 (dw_line_info_entry): Use it.
9711 (dw_line_info_table, dw_line_info_table_p): New.
9712 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9713 (line_info_table, line_info_label_num): Remove.
9714 (line_info_table_in_use): Remove.
9715 (separate_line_info_table): Remove.
9716 (separate_line_info_table_allocated): Remove.
9717 (separate_line_info_table_in_use): Remove.
9718 (LINE_INFO_TABLE_INCREMENT): Remove.
9719 (line_info_label_num): New.
9720 (cur_line_info_table): New.
9721 (text_section_line_info, cold_text_section_line_info): New.
9722 (separate_line_info): New.
9723 (SEPARATE_LINE_CODE_LABEL): Remove.
9724 (print_dwarf_line_table): Remove.
9725 (debug_dwarf): Don't dump it.
9726 (output_one_line_info_table): New.
9727 (output_line_info): Use it.
9728 (new_line_info_table): New.
9729 (set_cur_line_info_table): New.
9730 (dwarf2out_switch_text_section): Use it.
9731 (dwarf2out_begin_function): Likewise.
9732 (push_dw_line_info_entry): New.
9733 (dwarf2out_source_line): Rewrite for new line info tables.
9734 (dwarf2out_init): Remove dead initailizations.
9735
9736 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9737
9738 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9739 various flags.
9740 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9741 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9742 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9743 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9744 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9745 * opt-functions.awk (flag_init, switch_bit_fields): New.
9746 (switch_flags): Don't handle flags moved to bit-fields. Don't
9747 generate CL_MISSING_OK or CL_SAVE.
9748 * optc-gen.awk: Update to generate bit-field output as well as
9749 flags field.
9750 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9751 bit-field instead of CL_REJECT_DRIVER flag.
9752 * opts-common.c (generate_canonical_option,
9753 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9754 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9755 instead of CL_REJECT_NEGATIVE flag.
9756 * toplev.c (print_switch_values): Use cl_report bit-field instead
9757 of CL_REPORT flag.
9758
9759 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9760
9761 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9762 a zero minimum index only if it is redundant.
9763
9764 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9765
9766 PR rtl-optimization/48381
9767 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9768 instead of ira_class_hard_reg_index for calculating conflicting
9769 hard registers.
9770
9771 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9772
9773 * cprop.c: Clean up hash table building.
9774 (reg_avail_info): Remove.
9775 (oprs_available_p): Remove.
9776 (record_last_reg_set_info): Remove.
9777 (record_last_set_info): Remove.
9778 (reg_available_p): New function.
9779 (gcse_constant_p): Do not treat unfolded conditions as constants.
9780 (make_set_regs_unavailable): New function.
9781 (hash_scan_set): Simplify with new reg_available_p.
9782 (compute_hash_table_work): Traverse insns stream only once.
9783 Do not compute reg_avail_info. Traverse insns in reverse order.
9784 Record implicit sets after recording explicit sets from the block.
9785
9786 2011-03-31 Michael Matz <matz@suse.de>
9787
9788 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9789
9790 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9791
9792 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9793 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9794 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9795 (h8300_mode_dependent_address_p): New function.
9796 (h8300_get_index): Make static.
9797
9798 2011-03-31 Jeff Law <law@redhat.com>
9799
9800 * reload1.c (elimination_effects): Fix typo in recent change.
9801
9802 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9803 typo potentially leading to null pointer dereference.
9804
9805 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9806 (setup_save_areas): Corresponding changes to avoid useless
9807 assignments.
9808
9809 * jump.c (reversed_comparison_code_parts): Avoid successive return
9810 statements when REVERSE_CONDITION is defined.
9811
9812 * expr.c (expand_assignment): Avoid useless assignments.
9813 (expand_expr_real_1): Likewise.
9814 (expand_expr_real_2): Avoid useless statements.
9815
9816 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9817
9818 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9819
9820 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9821 statements.
9822
9823 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9824
9825 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9826
9827 PR target/47109
9828 * doc/tm.texi.in (TARGET_VERSION): Remove.
9829 * doc/tm.texi: Regenerate.
9830 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9831 * collect2.c (main): Don't use TARGET_VERSION.
9832 * mips-tdump.c (main): Don't use TARGET_VERSION.
9833 * mips-tfile.c (main): Don't use TARGET_VERSION.
9834 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9835 * config/rs6000/vxworksae.h: Remove.
9836 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9837 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9838 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9839 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9840 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9841 * config/arm/arm.h (TARGET_VERSION): Remove.
9842 * config/arm/coff.h (TARGET_VERSION): Remove.
9843 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9844 * config/arm/elf.h (TARGET_VERSION): Remove.
9845 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9846 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9847 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9848 * config/arm/pe.h (TARGET_VERSION): Remove.
9849 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9850 * config/arm/semi.h (TARGET_VERSION): Remove.
9851 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9852 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9853 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9854 * config/avr/avr.h (TARGET_VERSION): Remove.
9855 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9856 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9857 * config/frv/frv.h (TARGET_VERSION): Remove.
9858 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9859 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9860 * config/i386/darwin.h (TARGET_VERSION): Remove.
9861 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9862 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9863 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9864 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9865 * config/i386/gnu.h (TARGET_VERSION): Remove.
9866 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9867 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9868 * config/i386/linux.h (TARGET_VERSION): Remove.
9869 * config/i386/linux64.h (TARGET_VERSION): Remove.
9870 * config/i386/lynx.h (TARGET_VERSION): Remove.
9871 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9872 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9873 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9874 * config/i386/netware.h (TARGET_VERSION): Remove.
9875 * config/i386/nto.h (TARGET_VERSION): Remove.
9876 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9877 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9878 * config/ia64/elf.h (TARGET_VERSION): Remove.
9879 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9880 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9881 * config/ia64/linux.h (TARGET_VERSION): Remove.
9882 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9883 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9884 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9885 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9886 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9887 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9888 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9889 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9890 * config/m68k/linux.h (TARGET_VERSION): Remove.
9891 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9892 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9893 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9894 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9895 * config/mep/mep.h (TARGET_VERSION): Remove.
9896 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9897 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9898 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9899 * config/mips/linux.h (TARGET_VERSION): Remove.
9900 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9901 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9902 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9903 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9904 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9905 * config/pa/pa.h (TARGET_VERSION): Remove.
9906 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9907 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9908 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9909 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9910 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9911 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9912 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9913 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9914 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9915 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9916 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9917 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9918 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9919 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9920 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9921 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9922 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9923 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9924 * config/s390/linux.h (TARGET_VERSION): Remove.
9925 * config/s390/s390.h (TARGET_VERSION): Remove.
9926 * config/s390/tpf.h (TARGET_VERSION): Remove.
9927 * config/score/score.h (TARGET_VERSION): Remove.
9928 * config/sh/linux.h (TARGET_VERSION): Remove.
9929 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9930 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9931 * config/sh/sh.h (TARGET_VERSION): Remove.
9932 * config/sh/sh64.h (TARGET_VERSION): Remove.
9933 * config/sh/superh.h (TARGET_VERSION): Remove.
9934 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9935 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9936 * config/sparc/linux.h (TARGET_VERSION): Remove.
9937 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9938 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9939 TARGET_NAME32, TARGET_NAME): Remove.
9940 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9941 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9942 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9943 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9944 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9945 * config/spu/spu.h (TARGET_VERSION): Remove.
9946 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9947 * config/v850/v850.h (TARGET_VERSION): Remove.
9948 * config/vax/linux.h (TARGET_VERSION): Remove.
9949 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9950 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9951 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9952
9953 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9954
9955 PR target/48142
9956 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9957 frame-related from frame-unrelated adjustments to the stack pointer.
9958
9959 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9960
9961 * common.opt (fdebug-types-section): Move earlier.
9962 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9963
9964 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9965
9966 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9967 var.
9968
9969 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9970
9971 * tree.h (CASE_CHAIN): Define.
9972 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9973 (gimple_redirect_edge_and_branch): Likewise.
9974
9975 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9976
9977 PR middle-end/48367
9978 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9979 calculation.
9980
9981 2011-03-30 Jeff Law <law@redhat.com>
9982
9983 * PR bootstrap/48371
9984 * reload1.c (reload): Fix botch in last change.
9985
9986 * reload.h (struct reload): Fix typo introduced in last change.
9987
9988 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9989
9990 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9991 Undocumented. Remove help text.
9992 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9993 -mhard-float.
9994
9995 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9996
9997 * doc/options.texi (NegativeAlias): Document.
9998 (Alias): Mention NegativeAlias.
9999 * opt-functions.awk: Handle NegativeAlias.
10000 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10001 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10002 * opts.h (CL_NEGATIVE_ALIAS): Define.
10003 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10004 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10005 OPT_mspe_.
10006 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10007 Alias entries.
10008 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10009 mno-spe and mno-isel instead of mspe=no and -misel=no.
10010
10011 2011-03-29 Mark Wielaard <mjw@redhat.com>
10012
10013 * common.opt (fdebug-types-section): New flag.
10014 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10015 * dwarf2out.c (use_debug_types): New define.
10016 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10017 (print_die): Guard output of type unit signatures using
10018 use_debug_types.
10019 (build_abbrev_table): Replace assert of dwarf_version >= 4
10020 with assert on use_debug_types.
10021 (size_of_die): Likewise.
10022 (unmark_dies): Likewise.
10023 (value_format): Decide AT_ref_external form on use_debug_types.
10024 (output_die): Replace dwarf_version version check guard with
10025 use_debug_types where appropriate.
10026 (modified_type_die): Likewise.
10027 (gen_reference_type_die): Likewise.
10028 (dwarf2out_start_source_file): Likewise.
10029 (dwarf2out_end_source_file): Likewise.
10030 (prune_unused_types_walk_attribs): Likewise.
10031 (dwarf2out_finish): Likewise.
10032
10033 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10034
10035 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10036
10037 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10038
10039 PR rtl-optimization/48332
10040 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10041 mode of input operand N and modeN to its actual mode.
10042
10043 2011-03-30 Jeff Law <law@redhat.com>
10044
10045 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10046 define accessor macro.
10047 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10048 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10049 (reg_equiv_init): Likewise.
10050 (reg_equivs_size): New variable.
10051 (reg_equiv_init_size): Remove.
10052 (allocate_initial_values): Move prototype to here from....
10053 * integrate.h (allocate_initial_values): Remove prototype.
10054 * integrate.c: Include reload.h.
10055 (allocate_initial_values): Corresponding changes.
10056 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10057 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10058 (update_equiv_regs): Corresponding changes.
10059 (ira): Corresponding changes.
10060 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10061 (push_secondary_reload): Corresponding changes.
10062 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10063 (make_memloc, find_reloads_address): Corresponding changes.
10064 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10065 (find_reloads_address_1): Corresponding changes.
10066 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10067 (refers_to_regno_for_reload_p): Corresponding changes.
10068 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10069 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10070 * reload1.c: Include ggc.h.
10071 (grow_reg_equivs): New function.
10072 (replace_pseudos_in, reload): Corresponding changes.
10073 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10074 (eliminate_regs_1, elimination_effects): Corresponding changes.
10075 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10076 (delete_output_reload): Likewise.
10077 * caller-save.c (mark_referenced_regs): Corresponding changes.
10078 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10079 * frv/predicates.md (frv_load_operand): Corresponding changes.
10080 * microblaze/microblaze.c (double_memory_operand): Corresponding
10081 changes.
10082 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10083 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10084 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10085 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10086 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10087 changes.
10088 * pa/pa.c (emit_move_sequence): Corresponding changes.
10089 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10090
10091 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10092
10093 PR target/47551
10094 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10095 structure modes. Don't check neon_vector_mem_operand for
10096 vector or structure modes.
10097
10098 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10099 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10100
10101 PR target/43590
10102 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10103 operand 1 and reshuffle the operands to match.
10104 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10105
10106 2011-03-30 Christian Schüler <cschueler@gmx.de>
10107
10108 PR driver/48208
10109 * config/c.opt (F): Added 'Driver' to -F option.
10110
10111 PR driver/48260
10112 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10113 handler function.
10114 * config/darwin.opt: Added '-arch' option.
10115
10116 2011-03-30 Nick Clifton <nickc@redhat.com>
10117
10118 * config/rx/rx.md: Add peepholes and patterns to combine
10119 extending loads and simple arithmetic instructions.
10120 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10121 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10122 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10123 modes to use pre-decrement and post-increment addressing.
10124 (rx_is_restricted_memory_address): Add range checking of REG+INT
10125 addresses.
10126 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10127 (rx_memory_move_cost): Adjust cost of stores.
10128 (rx_adjust_insn_length): New function.
10129
10130 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10131
10132 PR c/48305
10133 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10134 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10135 matching arg00/arg01 types.
10136
10137 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10138
10139 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10140 last_location to UNKNOWN_LOCATION.
10141
10142 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10143
10144 PR target/48349
10145 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10146 FLOAT_SSE_REGS.
10147
10148 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10149 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10150
10151 PR bootstrap/48337
10152 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10153 Init(PROCESSOR_V7).
10154 (sparc_cpu): Likewise.
10155 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10156 PROCESSOR_V7.
10157
10158 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10159
10160 PR target/48336
10161 PR middle-end/48342
10162 PR rtl-optimization/48345
10163 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10164 hard regs for given mode from profitable regs when doing secondary
10165 allocation.
10166
10167 2011-03-29 Jeff Law <law@redhat.com>
10168
10169 PR bootstrap/48327
10170 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10171 do_not_duplicate field.
10172 (lookup_redirection_data): Corresponding changes.
10173 (create_duplicates): Always create a template block.
10174 (redirect_edges): Remove code which reused the original block
10175 when it was going to become unreachable code.
10176 (thread_block): Don't set do_not_duplicate field.
10177
10178 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10179
10180 * lto-opts.c (register_user_option_p, lto_register_user_option):
10181 Make type argument unsigned.
10182 * lto-streamer.h (lto_register_user_option): Make type argument
10183 unsigned.
10184 * opth-gen.awk: Make CL_* macros unsigned.
10185 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10186 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10187 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10188 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10189 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10190 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10191 (find_opt): Make lang_mask argument unsigned.
10192
10193 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10194
10195 PR rtl-optimization/48331
10196 PR rtl-optimization/48334
10197 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10198 for any used algorithm.
10199
10200 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10201
10202 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10203 to parent_max.
10204
10205 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10206
10207 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10208 (alpha_option_override): Don't set alpha_sr_alias_set.
10209 (emit_frame_store_1): Use gen_frame_mem rather than calling
10210 set_mem_alias_set.
10211 (alpha_expand_epilogue): Ditto.
10212
10213 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10214
10215 PR tree-optimization/48290
10216 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10217 vectorization, check that relevant phis in the basic block after
10218 the inner loop are really inner loop's exit phis.
10219
10220 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10221
10222 PR debug/48190
10223 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10224 (cached_dw_loc_list_def): New structure.
10225 (cached_dw_loc_list): New typedef.
10226 (cached_dw_loc_list_table): New variable.
10227 (cached_dw_loc_list_table_hash): New function.
10228 (cached_dw_loc_list_table_eq): Likewise.
10229 (add_location_or_const_value_attribute): Take a bool cache_p.
10230 Cache the list when the parameter is true.
10231 (gen_formal_parameter_die): Update caller.
10232 (gen_variable_die): Likewise.
10233 (dwarf2out_finish): Likewise.
10234 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10235 while generating debug info for the decl.
10236 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10237 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10238 (resolve_addr): Cache the result of resolving a chain of
10239 location lists.
10240
10241 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10242
10243 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10244 conflict object hard regset nodes have intersecting hard reg sets.
10245
10246 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10247 after regstat_init_n_sets_and_refs.
10248
10249 * ira.c: Add more comments at the top.
10250 (setup_stack_reg_pressure_class, setup_pressure_classes):
10251 Add comments how we compute the register pressure classes.
10252 (setup_allocno_and_important_classes): Add more comments.
10253 (setup_class_translate_array, reorder_important_classes)
10254 (setup_reg_class_relations): Add comments.
10255
10256 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10257 start of the file.
10258
10259 * ira-color.c: Add 2011 to the Copyright line.
10260 (assign_hard_reg): Add more comments.
10261 (improve_allocation): Ditto.
10262
10263 * ira-costs.c: Add 2011 to the Copyright line.
10264 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10265 comments.
10266 (setup_regno_cost_classes_by_mode): Ditto.
10267
10268 Initial patches from ira-improv branch:
10269
10270 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10271
10272 * ira-build.c (ira_create_object): Remove initialization of
10273 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10274 (ira_create_allocno): Remove initialization of
10275 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10276 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10277 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10278 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10279 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10280 Initialize ALLOCNO_ADD_DATA.
10281 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10282 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10283 ALLOCNO_REG.
10284 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10285 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10286
10287 * ira.c (ira_reallocate): Remove.
10288 (setup_pressure_classes): Call
10289 ira_init_register_move_cost_if_necessary. Use
10290 ira_register_move_cost instead of ira_get_register_move_cost.
10291 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10292 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10293
10294 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10295 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10296 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10297 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10298 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10299 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10300 Fix formatting.
10301 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10302 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10303 (struct allocno_color_data): New.
10304 (allocno_color_data_t): New typedef.
10305 (allocno_color_data): New definition.
10306 (ALLOCNO_COLOR_DATA): New macro.
10307 (struct object_color_data): New.
10308 (object_color_data_t): New typedef.
10309 (object_color_data): New definition.
10310 (OBJECT_COLOR_DATA): New macro.
10311 (update_copy_costs, calculate_allocno_spill_cost): Call
10312 ira_init_register_move_cost_if_necessary. Use
10313 ira_register_move_cost instead of ira_get_register_move_cost.
10314 (move_spill_restore, update_curr_costs): Ditto.
10315 (allocno_spill_priority): Make it inline.
10316 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10317 (struct coalesce_data, coalesce_data_t): New.
10318 (allocno_coalesce_data): New definition.
10319 (ALLOCNO_COALESCE_DATA): New macro.
10320 (merge_allocnos, coalesced_allocno_conflict_p): Use
10321 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10322 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10323 (coalesce_allocnos): Ditto.
10324 (setup_coalesced_allocno_costs_and_nums): Ditto.
10325 (collect_spilled_coalesced_allocnos): Ditto.
10326 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10327 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10328 (coalesce_spill_slots): Ditto.
10329 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10330 free allocno_coalesce_data.
10331
10332 * ira-conflicts.c: Fix formatting.
10333 (process_regs_for_copy): Call
10334 ira_init_register_move_cost_if_necessary. Use
10335 ira_register_move_cost instead of ira_get_register_move_cost.
10336 (build_object_conflicts): Optimize.
10337
10338 * ira-costs.c (record_reg_classes): Optimize. Call
10339 ira_init_register_move_cost_if_necessary. Use
10340 ira_register_move_cost, ira_may_move_in_cost, and
10341 ira_may_move_out_cost instead of ira_get_register_move_cost and
10342 ira_get_may_move_cost.
10343 (record_address_regs): Ditto.
10344 (scan_one_insn): Optimize.
10345 (find_costs_and_classes): Optimize.
10346 (process_bb_node_for_hard_reg_moves): Call
10347 ira_init_register_move_cost_if_necessary. Use
10348 ira_register_move_cost instead of ira_get_register_move_cost.
10349
10350 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10351 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10352 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10353 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10354 definitions.
10355 (ira_initiate_emit_data, ira_finish_emit_data)
10356 (create_new_allocno): New functions.
10357 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10358 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10359 Use ira_register_move_cost instead of ira_get_register_move_cost.
10360
10361 * ira-int.h: Fix some comments.
10362 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10363 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10364 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10365 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10366 add_data.
10367 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10368 bitfield after mode. Make hard_regno a short int. Make
10369 hard_regno short. Remove first_coalesced_allocno and
10370 next_coalesced_allocno. Move mem_optimized_dest_p,
10371 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10372 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10373 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10374 temp, colorable_p. Add new member add_data.
10375 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10376 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10377 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10378 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10379 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10380 (ALLOCNO_ADD_DATA): New macro.
10381 (ira_emit_data_t): New typedef.
10382 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10383 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10384 from struct ira_allocno.
10385 (ALLOCNO_EMIT_DATA): New macro.
10386 (ira_allocno_emit_data, allocno_emit_reg): New.
10387 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10388 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10389 (OBJECT_ADD_DATA): New macro.
10390 (ira_reallocate): Remove.
10391 (ira_initiate_emit_data, ira_finish_emit_data): New.
10392 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10393 (ira_init_register_move_cost_if_necessary): New.
10394 (ira_object_conflict_iter_next): Merge into
10395 ira_object_conflict_iter_cond.
10396 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10397
10398 * ira-live.c (process_single_reg_class_operands): Call
10399 ira_init_register_move_cost_if_necessary. Use
10400 ira_register_move_cost instead of ira_get_register_move_cost.
10401
10402 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10403
10404 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10405
10406 * ira-costs.c: Fix formatting.
10407 (cost_classes, cost_classes_num): Remove.
10408 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10409 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10410 (cost_classes_del, cost_classes_htab): New.
10411 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10412 (initiate_regno_cost_classes, setup_cost_classes): New.
10413 (setup_regno_cost_classes_by_aclass): New.
10414 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10415 (record_reg_classes): Use regno_cost_classes instead of
10416 cost_classes. Move checking opposite operand up.
10417 (record_address_regs): Use regno_cost_classes
10418 instead of cost_classes.
10419 (scan_one_insn): Ditto. Use always general register.
10420 (print_allocno_costs): Use regno_cost_classes instead of
10421 cost_classes.
10422 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10423 (find_costs_and_classes): Set up cost classes for each registers.
10424 Use also their mode for this. Use regno_cost_classes instead of
10425 cost_classes.
10426 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10427 cost_classes.
10428 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10429 (ira_costs, ira_set_pseudo_classes): Call
10430 initiate_regno_cost_classes and finish_regno_cost_classes.
10431
10432 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10433
10434 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10435
10436 * target.def (ira_cover_classes): Remove.
10437
10438 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10439
10440 * doc/tm.texi.in: Ditto.
10441
10442 * ira-conflicts.c: Remove mentioning cover classes from the file.
10443 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10444 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10445
10446 * targhooks.c (default_ira_cover_classes): Remove.
10447
10448 * targhooks.h (default_ira_cover_classes): Ditto.
10449
10450 * haifa-sched.c: Remove mentioning cover classes from the file.
10451 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10452 ira_pressure_classes and ira_pressure_classes_num instead of
10453 ira_reg_class_cover_size and ira_reg_class_cover. Use
10454 sched_regno_pressure_class instead of sched_regno_cover_class.
10455 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10456 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10457
10458 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10459 classes from the file.
10460 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10461 (struct object_hard_regs, struct object_hard_regs_node): New.
10462 (struct ira_object): New members profitable_hard_regs,
10463 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10464 (struct ira_allocno): Rename cover_class to aclass. Rename
10465 cover_class_cost and updated_cover_class_cost to class_cost and
10466 updated_class_cost. Remove splay_removed_p and
10467 left_conflict_size. Add new members colorable_p.
10468 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10469 (ALLOCNO_COLORABLE_P): New macro.
10470 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10471 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10472 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10473 (OBJECT_...): Rename parameter C to O.
10474 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10475 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10476 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10477 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10478 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10479 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10480 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10481 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10482 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10483 x_ira_reg_class_subunion.
10484 (ira_max_memory_move_cost, ira_max_register_move_cost)
10485 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10486 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10487 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10488 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10489 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10490 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10491 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10492 (ira_tune_allocno_costs_and_cover_classes): Rename to
10493 ira_tune_allocno_costs.
10494 (ira_debug_hard_regs_forest): New.
10495 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10496 (ira_object_conflict_iter_next): Fix comments.
10497 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10498 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10499 cover_class to aclass.
10500 (ira_allocate_and_accumulate_costs): Ditto.
10501 (ira_allocate_and_set_or_copy_costs): Ditto.
10502
10503 * opts.c (decode_options): Remove ira_cover_class check.
10504
10505 * ira-color.c: Remove mentioning cover classes from the file. Use
10506 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10507 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10508 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10509 (splay-tree.h): Remove include.
10510 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10511 before copy_freq_compare_func.
10512 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10513 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10514 New definitions.
10515 (hard_regs_roots, hard_regs_node_vec): Ditto.
10516 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10517 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10518 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10519 (create_new_object_hard_regs_node): Ditto.
10520 (add_new_object_hard_regs_node_to_forest): Ditto.
10521 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10522 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10523 Ditto.
10524 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10525 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10526 (remove_unused_object_hard_regs_nodes): Ditto.
10527 (enumerate_object_hard_regs_nodes): Ditto.
10528 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10529 (object_hard_regs_subnode_t): Ditto.
10530 (struct object_hard_regs_subnode): Ditto.
10531 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10532 (setup_object_hard_regs_subnode_index): Ditto.
10533 (get_object_hard_regs_subnodes_num): Ditto.
10534 (form_object_hard_regs_nodes_forest): Ditto.
10535 (finish_object_hard_regs_nodes_tree): Ditto.
10536 (finish_object_hard_regs_nodes_forest): Ditto.
10537 (allocnos_have_intersected_live_ranges_p): Rename to
10538 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10539 (pseudos_have_intersected_live_ranges_p): Rename to
10540 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10541 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10542 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10543 (update_copy_costs): Remove assert. Skip cost update if the hard
10544 reg does not belong the class.
10545 (assign_hard_reg): Process only profitable hard regs.
10546 (uncolorable_allocnos_num): Make it scalar.
10547 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10548 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10549 and ira_reg_class_max_nregs.
10550 (bucket_allocno_compare_func): Check frequency first.
10551 (sort_bucket): Add compare function as a parameter.
10552 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10553 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10554 (push_allocno_to_stack): Rewrite for checking new allocno
10555 colorability.
10556 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10557 (push_only_colorable): Pass new parameter to sort_bucket.
10558 (push_allocno_to_spill): Remove.
10559 (allocno_spill_priority_compare): Make it inline and rewrite.
10560 (splay_tree_allocate, splay_tree_free): Remove.
10561 (allocno_spill_sort_compare): New function.
10562 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10563 build and use splay tree. Choose first allocno in uncolorable
10564 allocno bucket to spill. Remove setting spill cost.
10565 (all_conflicting_hard_regs): Remove.
10566 (setup_allocno_available_regs_num): Check only profitable hard
10567 regs. Print info about hard regs nodes.
10568 (setup_allocno_left_conflicts_size): Remove.
10569 (put_allocno_into_bucket): Don't call
10570 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10571 (improve_allocation): New.
10572 (color_allocnos): Call setup_profitable_hard_regs,
10573 form_object_hard_regs_nodes_forest, improve_allocation,
10574 finish_object_hard_regs_nodes_forest. Setup spill cost.
10575 (print_loop_title): Use pressure classes.
10576 (color_allocnso): Ditto.
10577 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10578 and allocnos_for_spilling.
10579 (ira_sort_regnos_for_alter_reg): Don't setup members
10580 {first,next}_coalesced_allocno.
10581 (color): Remove allocating and freeing removed_splay_allocno_vec.
10582 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10583 prohibited_class_mode_regs.
10584
10585 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10586 formatting.
10587 (update_allocno_pressure_excess_length): Use pressure classes.
10588 (inc_register_pressure, dec_register_pressure): Check for pressure
10589 class.
10590 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10591 pressure class. Use ira_reg_class_nregs instead of
10592 ira_reg_class_max_nregs.
10593 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10594 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10595 (single_reg_class): Use ira_reg_class_nregs instead of
10596 ira_reg_class_max_nregs.
10597 (process_bb_node_lives): Use pressure classes.
10598
10599 * ira-emit.c: Remove mentioning cover classes from the file. Use
10600 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10601 (change_loop): Use pressure classes.
10602 (modify_move_list): Call ira_set_allocno_class instead of
10603 ira_set_allocno_cover_class.
10604
10605 * ira-build.c: Remove mentioning cover classes from the file. Use
10606 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10607 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10608 ALLOCNO_UPDATED_CLASS_COST instead of
10609 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10610 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10611 (ira_create_allocno): Remove initialization of
10612 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10613 ALLOCNO_COLORABLE_P.
10614 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10615 Update conflict regs for the objects.
10616 (create_cap_allocno): Remove assert. Don't propagate
10617 ALLOCNO_AVAILABLE_REGS_NUM.
10618 (ira_free_allocno_costs): New function.
10619 (finish_allocno): Change a part of code into call of
10620 ira_free_allocno_costs.
10621 (low_pressure_loop_node_p): Use pressure classes.
10622 (object_range_compare_func): Don't compare classes.
10623 (setup_min_max_conflict_allocno_ids): Ditto.
10624
10625 * loop-invariant.c: Remove mentioning cover classes from the file.
10626 Use ira_pressure_classes and ira_pressure_classes_num instead of
10627 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10628 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10629 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10630 Use reg_allocno_class instead of reg_cover_class.
10631 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10632 STACK_REG_COVER_CLASS.
10633 (get_regno_cover_class): Rename to get_regno_pressure_class.
10634 (move_loop_invariants): Initialize and finalize regstat.
10635
10636 * ira.c: Remove mentioning cover classes from the file. Add
10637 comments about coloring without cover classes. Use ALLOCNO_CLASS
10638 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10639 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10640 setup_class_subset_and_memory_move_costs.
10641 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10642 (setup_cover_and_important_classes): Rename to
10643 setup_allocno_and_important_classes.
10644 (setup_class_translate_array): New.
10645 (setup_class_translate): Call it for allocno and pressure classes.
10646 (cover_class_order): Rename to allocno_class_order.
10647 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10648 of ira_class_translate.
10649 (reorder_important_classes): Set up ira_important_class_nums.
10650 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10651 (print_class_cover): Rename to print_classes. Add parameter.
10652 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10653 Print pressure classes too.
10654 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10655 setup_reg_subclasses.
10656 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10657 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10658 (setup_prohibited_class_mode_regs): Use
10659 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10660 (clarify_prohibited_class_mode_regs): New function.
10661 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10662 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10663 (ira_init_once): Initialize them.
10664 (free_register_move_costs): Process them.
10665 (ira_init): Move calls of find_reg_classes and
10666 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10667 Call clarify_prohibited_class_mode_regs.
10668 (ira_no_alloc_reg): Remove.
10669 (too_high_register_pressure_p): Use pressure classes.
10670
10671 * sched-deps.c: Remove mentioning cover classes from the file.
10672 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10673 ira_pressure_classes and ira_pressure_classes_num instead of
10674 ira_reg_class_cover_size and ira_reg_class_cover.
10675 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10676 sched_regno_pressure_class instead of sched_regno_cover_class.
10677 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10678 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10679
10680 * ira.h: Add 2010 to Copyright.
10681 (ira_no_alloc_reg): Remove external.
10682 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10683 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10684 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10685 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10686 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10687 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10688 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10689 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10690 x_ira_no_alloc_regs.
10691 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10692 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10693 ira_allocno_classes_num and ira_allocno_classes.
10694 (ira_class_translate): Rename to ira_allocno_class_translate.
10695 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10696 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10697 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10698 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10699 (ira_no_alloc_regs): New.
10700
10701 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10702 classes from the file. Use ALLOCNO_CLASS instead of
10703 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10704 ALLOCNO_COVER_CLASS_COST.
10705 (regno_cover_class): Rename to regno_aclass.
10706 (record_reg_classes): Use ira_reg_class_subunion instead of
10707 ira_reg_class_union.
10708 (record_address_regs): Check overflow.
10709 (scan_one_insn): Ditto.
10710 (print_allocno_costs): Print total mem cost fore regional allocation.
10711 (print_pseudo_costs): Use REG_N_REFS.
10712 (find_costs_and_classes): Use classes intersected with them on the
10713 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10714 ira_reg_class_union. Use ira_allocno_class_translate and
10715 regno_aclass instead of ira_class_translate and regno_cover_class.
10716 Modify code for finding regno_aclass. Setup preferred classes for
10717 the next pass.
10718 (setup_allocno_cover_class_and_costs): Rename to
10719 setup_allocno_class_and_costs. Use regno_aclass instead of
10720 regno_cover_class. Use ira_set_allocno_class instead of
10721 ira_set_allocno_cover_class.
10722 (init_costs, finish_costs): Use regno_aclass instead of
10723 regno_cover_class.
10724 (ira_costs): Use setup_allocno_class_and_costs instead of
10725 setup_allocno_cover_class_and_costs.
10726 (ira_tune_allocno_costs_and_cover_classes): Rename to
10727 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10728 by processing objects. Use ira_reg_class_max_nregs instead of
10729 ira_reg_class_nregs.
10730
10731 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10732
10733 * sched-int.h: Remove mentioning cover classes from the file.
10734 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10735
10736 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10737 classes from the file.
10738 (struct reg_pref): Rename coverclass into allocnoclass.
10739 (reg_cover_class): Rename to reg_allocno_class.
10740
10741 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10742
10743 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10744
10745 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10746
10747 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10748
10749 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10750
10751 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10752
10753 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10754
10755 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10756
10757 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10758
10759 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10760
10761 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10762 (i386_ira_cover_classes): Ditto.
10763
10764 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10765
10766 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10767
10768 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10769
10770 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10771
10772 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10773
10774 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10775
10776 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10777 (mips_ira_cover_classes): Ditto.
10778
10779 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10780
10781 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10782
10783 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10784
10785 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10786
10787 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10788
10789 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10790 (IRA_COVER_CLASSES_VSX): Ditto.
10791
10792 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10793 (rs6000_ira_cover_classes): Ditto.
10794
10795 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10796
10797 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10798
10799 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10800
10801 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10802
10803 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10804
10805 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10806
10807 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10808
10809 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10810
10811 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10812
10813 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10814
10815 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10816
10817 PR debug/48253
10818 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10819 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10820 dw_fde_unlikely_section_end_label, cold_in_std_section,
10821 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10822 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10823 fields.
10824 (output_fde): Use dw_fde_second_{begin,end} if second is
10825 true, otherwise dw_fde_{begin,end}.
10826 (output_call_frame_info): Test dw_fde_second_begin != NULL
10827 instead of dw_fde_switched_sections.
10828 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10829 fields, initialize new fields. Initialize in_std_section
10830 unconditionally from the first partition.
10831 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10832 dw_fde_second_begin is non-NULL.
10833 (dwarf2out_switch_text_section): Stop initializing removed
10834 dw_fde_struct fields, initialize new fields, initialize
10835 also dw_fde_end here. Set dw_fde_switch_cfi even when
10836 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10837 (struct var_loc_list_def): Add last_before_switch field.
10838 (arange_table, arange_table_allocated, arange_table_in_use,
10839 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10840 (size_of_aranges): Count !in_std_section and !second_in_std_section
10841 hunks in fdes, instead of looking at arange_table_in_use.
10842 (output_aranges): Add aranges_length argument, don't call
10843 size_of_aranges here. Instead of using aranges_table*
10844 emit ranges for fdes when !in_std_section resp.
10845 !second_in_std_section.
10846 (dw_loc_list): Break ranges crossing section switch.
10847 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10848 use dw_fde_second_end instead of dw_fde_end as end of last range.
10849 (gen_subprogram_die): Don't call add_arange. Use
10850 dw_fde_{begin,end} for first partition and if switched
10851 section dw_fde_second_{begin,end} for the second.
10852 (var_location_switch_text_section_1,
10853 var_location_switch_text_section): New functions.
10854 (dwarf2out_begin_function): Initialize cold_text_section even
10855 when function_section () isn't text_section.
10856 (prune_unused_types): Don't walk arange_table.
10857 (dwarf2out_finish): Don't needlessly test
10858 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10859 If info_section_emitted, call size_of_aranges and if it indicates
10860 non-empty .debug_aranges, call output_aranges with the computed
10861 size. Stop using removed dw_fde_struct fields, use
10862 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10863 for second.
10864
10865 PR debug/48203
10866 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10867 create ENTRY_VALUE if incoming or address of incoming's MEM
10868 is a hard REG.
10869 * dwarf2out.c (mem_loc_descriptor): Don't emit
10870 DW_OP_GNU_entry_value of DW_OP_fbreg.
10871 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10872 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10873 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10874 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10875 ENTRY_VALUE_EXPs.
10876 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10877 is a REG_P or MEM_P with REG_P address, compute hash directly
10878 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10879 (preserve_only_constants): Don't clear VALUES forwaring
10880 ENTRY_VALUE to some other VALUE.
10881
10882 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10883
10884 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10885 instead of GEN_INT.
10886
10887 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10888
10889 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10890 block before expanding the statement.
10891 (expand_gimple_stmt_1): Likewise. Set them here...
10892 (expand_gimple_stmt): ...and not here. Tidy.
10893 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10894 unknown.
10895
10896 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10897
10898 * Makefile.in: New rule for cprop.o.
10899 * gcse.c: Move constant/copy propagation to cprop.c.
10900 (compute_local_properties): Only handle expression tables.
10901 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10902 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10903 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10904 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10905 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10906 compute_cprop_data, find_used_regs, try_replace_reg,
10907 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10908 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10909 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10910 find_bypass_set, reg_killed_on_edge, bypass_block,
10911 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10912 execute_rtl_cprop, pass_rtl_cprop): Move to...
10913 * cprop.c: ...here. New file, constant/copy propagation for RTL
10914 moved from gcse.c to here with minor cleanups in duplicated code.
10915
10916 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10917
10918 * config/i386/i386.c (flag_opts): Fix a typo in
10919 -mavx256-split-unaligned-store.
10920
10921 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10922
10923 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10924 LIBCALL_VALUE): Remove macros.
10925 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10926 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10927 (h8300_function_value, h8300_libcall_value,
10928 h8300_function_value_regno_p): New functions.
10929
10930 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10931
10932 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10933
10934 2011-03-28 Jeff Law <law@redhat.com>
10935
10936 * tree-ssa-threadupdate.c (redirect_edges): Call
10937 create_edge_and_update_destination_phis as needed.
10938 (create_edge_and_update_destination_phis): Accept new BB argument.
10939 All callers updated.
10940 (thread_block): Do not update the profile when threading around
10941 intermediate blocks.
10942 (thread_single_edge): Likewise.
10943 (determine_bb_domination_status): If BB is not a successor of the
10944 loop header, return NONDOMINATING.
10945 (register_jump_thread): Note when we register a jump thread around
10946 an intermediate block.
10947 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10948 (thread_across_edge): Use it.
10949
10950 2011-03-28 Tristan Gingold <gingold@adacore.com>
10951
10952 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10953 when for_return is 2.
10954
10955 2011-03-28 Jeff Law <law@redhat.com>
10956
10957 * var-tracking.c (canonicalize_values_mark): Delete unused
10958 lhs assignment.
10959 (canonicalize_values_star, set_variable_part): Likewise.
10960 (clobber_variable_part, delete_variable_part): Likewise.
10961
10962 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10963
10964 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10965
10966 2011-03-28 Martin Jambor <mjambor@suse.cz>
10967
10968 * tree-inline.c (expand_call_inline): Do not check that destination
10969 node is analyzed.
10970 (optimize_inline_calls): Assert that destination node is analyzed.
10971 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10972 not call tree_lowering_passes.
10973 * cgraph.h (cgraph_analyze_function): Declare.
10974 * cgraphunit.c (cgraph_analyze_function): Make public.
10975
10976 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10977
10978 * config/sparc/sparc-opts.h: New.
10979 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10980 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10981 (sparc_option_override): Store processor_type enumeration rather
10982 than string in cpu_default. Remove name and enumeration from
10983 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10984 without using sparc_select. Use target_flags_explicit instead of
10985 fpu_option_set.
10986 * config/sparc/sparc.h (enum processor_type): Move to
10987 sparc-opts.h.
10988 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10989 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10990 HeaderInclude entry.
10991 (mcpu=, mtune=): Use Var and Enum.
10992 (sparc_processor_type): New Enum and EnumValue entries.
10993
10994 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10995 Iain Sandoe <iains@gcc.gnu.org>
10996
10997 PR target/48245
10998 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10999
11000 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11001
11002 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11003 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11004 Insert new statements at it in lieu of STMT.
11005 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11006 * tree-vect-stmts.c (vectorizable_store): Likewise.
11007 (vectorizable_load): Likewise.
11008
11009 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11010
11011 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11012 (divtf3): Ditto.
11013 (multf3): Ditto.
11014 (subtf3): Ditto.
11015
11016 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11017
11018 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11019 unaligned 256bit load/store.
11020 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11021 (*avx_movdqu<avxmodesuffix>): Likewise.
11022
11023 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11024
11025 PR target/48288
11026 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11027 * config/pa/pa.md (iordi3): Use new predicate in expander.
11028 (iorsi3): Likewise.
11029
11030 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11031
11032 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11033 FUNCTION_VALUE_REGNO_P): Remove macros.
11034 * config/mips/mips-protos.h (mips_function_value): Remove.
11035 * config/mips/mips.c (mips_function_value): Rename to...
11036 (mips_function_value_1): ... this. Make static. Handle receiving
11037 the function type in 'fn_decl_or_type' argument.
11038 (mips_function_value, mips_libcall_value,
11039 mips_function_value_regno_p): New function.
11040 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11041 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11042
11043 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11044
11045 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11046 and -mavx256-split-unaligned-store.
11047 (ix86_option_override_internal): Split 32-byte AVX unaligned
11048 load/store by default.
11049 (ix86_avx256_split_vector_move_misalign): New.
11050 (ix86_expand_vector_move_misalign): Use it.
11051
11052 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11053 -mavx256-split-unaligned-store.
11054
11055 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11056 256bit load/store. Generate unaligned store on misaligned memory
11057 operand.
11058 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11059 256bit load/store.
11060 (*avx_movdqu<avxmodesuffix>): Likewise.
11061
11062 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11063 -mavx256-split-unaligned-store.
11064
11065 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11066
11067 PR target/38598
11068 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11069 Update commentary.
11070
11071 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11072
11073 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11074 opno arguments with an expand_operand. Use create_input_operand.
11075 (mips_prepare_builtin_target): Delete.
11076 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11077 functions.
11078 (mips_expand_builtin_direct): Use create_output_operand and
11079 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11080 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11081 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11082
11083 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11084
11085 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11086 function.
11087 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11088
11089 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11090
11091 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11092 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11093 basic blocks and call commit_edge_insertions directly.
11094 (fixup_abnormal_edges): Move from here to...
11095 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11096 on the edges and return whether some have actually been inserted.
11097 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11098 compensation code.
11099
11100 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11101
11102 PR rtl-optimization/48144
11103 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11104 (merge_expr_data): ... here.
11105 (av_set_intersect): Rename to av_set_code_motion_filter.
11106 Update all callers. Call merge_history_vect when an expression
11107 is found in both sets.
11108 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11109
11110 2011-03-26 Alan Modra <amodra@gmail.com>
11111
11112 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11113 cmodel medium addresses.
11114 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11115 64-bit gpr loads and stores.
11116 (rs6000_secondary_reload_ppc64): New function.
11117 * config/rs6000/rs6000-protos.h: Declare it.
11118 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11119
11120 2011-03-26 Alan Modra <amodra@gmail.com>
11121
11122 PR target/47487
11123 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11124 GNU Go in traceback table.
11125
11126 2011-03-25 Richard Henderson <rth@redhat.com>
11127
11128 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11129 if there are exactly 6 operands.
11130 (set_storage_via_setmem): Similarly.
11131
11132 2011-03-25 Kai Tietz <ktietz@redhat.com>
11133
11134 * collect2.c (write_c_file_stat): Handle backslash
11135 as right-hand directory separator.
11136 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11137 checking just for slash.
11138 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11139 instead of checking for trailing slash.
11140 * gcc.c (record_temp_file): Use filename_cmp instead
11141 of strcmp.
11142 (do_spec_1): Likewise.
11143 (replace_outfile_spec_function): Likewise.
11144 (is_directory): Use filename_ncmp instead of strncmp.
11145 (print_multilib_info): Likewise.
11146 * gcov.c (find_source): Use filename_cmp instead
11147 instead of strcmp.
11148 (make_gcov_file_name): Fix order of slash/backslash
11149 checks.
11150 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11151 (add_standard_paths): Likewise.
11152 * mips-tfile.c (saber_stop): Handle backslash.
11153 * prefix.c (update_path): Use filename_ncmp instead of
11154 strncmp.
11155 * profile.c (output_location): Use filename_cmp instead
11156 of strcmp.
11157 * read-md.c (handle_toplevel_file): Handle backslash.
11158 * tlink.c (frob_extension): Likewise.
11159 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11160 strcmp.
11161 * tree-dump.c (dequeue_and_dump): Handle backslash.
11162 * tree.c (get_file_function_name): Likewise.
11163 * gengtype.c (read_input_list): Likewise.
11164 (get_file_realbasename): Likewise.
11165 (get_output_file_with_visibility): Use filename_cmp
11166 instead of strcmp.
11167
11168 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11169
11170 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11171 case to VFPv1.
11172
11173 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11174
11175 * fold-const.c (expr_location_or): New function.
11176 (fold_truth_not_expr): Call it.
11177
11178 2011-03-25 Jeff Law <law@redhat.com>
11179
11180 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11181 va_end.
11182 * c-family/c-common.c (def_fn_type): Likewise.
11183 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11184 * emit-rtl.c (gen_rtvec): Likewise.
11185 * lto/lto-lang.c (def_fn_type): Likewise.
11186
11187 2011-03-25 Richard Guenther <rguenther@suse.de>
11188
11189 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11190 also generate copies.
11191 (fini_copy_prop): Handle constant values properly.
11192
11193 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11194
11195 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11196 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11197 (hash_loc_operands, compare_loc_operands): Handle
11198 DW_OP_GNU_entry_value.
11199
11200 2011-03-25 Kai Tietz <ktietz@redhat.com>
11201
11202 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11203 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11204 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11205 comment and use macro TARGET_64BIT_MS_ABI instead.
11206 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11207 and change default behavior for 32-bit MS_ABI.
11208 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11209 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11210 32-bit, too.
11211 (ix86_cfun_abi): Likewise.
11212 (ix86_maybe_switch_abi): Adjust comment.
11213 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11214 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11215 instead of checking for SYSV_ABI.
11216 (ix86_nsaved_sseregs): Likewise.
11217 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11218 to 16 bytes.
11219 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11220 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11221 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11222 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11223 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11224
11225 2011-03-25 Richard Guenther <rguenther@suse.de>
11226
11227 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11228 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11229 (verify_gimple): Remove.
11230 * tree-cfg.c (verify_gimple_call): Merge verification
11231 from verify_stmts.
11232 (verify_gimple_phi): Merge verification from verify_stmts.
11233 (verify_gimple_label): New function.
11234 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11235 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11236 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11237 (verify_stmts): Rename to verify_gimple_in_cfg.
11238 (verify_gimple_in_cfg): New function.
11239 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11240 * tree-ssa.c (verify_ssa): Likewise.
11241 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11242
11243 2011-03-25 Richard Guenther <rguenther@suse.de>
11244
11245 * passes.c (init_optimization_passes): Add FRE pass after
11246 early SRA.
11247
11248 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11249 Andrew Stubbs <ams@codesourcery.com>
11250
11251 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11252 for Cortex-A8.
11253 (arm_movdi_vfp_cortexa8): New pattern.
11254 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11255 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11256 instructions when tuning for Cortex-A8. Set attribute "arch".
11257 * config/arm/arm.md: Move include arm-tune.md up a bit.
11258 (define_attr "arch"): Add "onlya8" and "nota8" values.
11259 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11260
11261 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11262
11263 PR bootstrap/48282
11264 Revert:
11265 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11266
11267 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11268 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11269 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11270 * passes.c (init_optimization_passes): Move
11271 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11272
11273 2011-03-25 Kai Tietz <ktietz@redhat.com>
11274
11275 * c-typeck.c (comptypes_internal): Replace target
11276 hook call of comp_type_attributes by version in tree.c file.
11277 * gimple.c (gimple_types_compatible_p_1): Likewise.
11278 * tree-ssa.c (useless_type_conversion_p): Likewise.
11279 * tree.c (build_type_attribute_qual_variant): Likewise.
11280 (attribute_value_equal): New static helper function.
11281 (comp_type_attributes): New function.
11282 (merge_attributes): Use attribute_value_equal for comparison.
11283 (attribute_list_contained): Likewise.
11284 * tree.h (comp_type_attributes): New prototype.
11285
11286 2011-03-25 Richard Guenther <rguenther@suse.de>
11287
11288 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11289 of complex types at -O0.
11290 (verify_gimple_assign_binary): Likewise.
11291 (verify_gimple_assign_ternary): Likewise.
11292
11293 2011-03-24 Mark Wielaard <mjw@redhat.com>
11294
11295 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11296 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11297
11298 2011-03-24 Mark Wielaard <mjw@redhat.com>
11299
11300 PR debug/48041
11301 * dwarf2out.c (output_abbrev_section): Only write table when
11302 abbrev_die_table_in_use > 1.
11303
11304 2011-02-24 Richard Henderson <rth@redhat.com>
11305
11306 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11307 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11308 (alpha_expand_unaligned_load_words): Use extql.
11309 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11310 (emit_insxl): Handle all modes for consistency.
11311
11312 2011-02-24 Richard Henderson <rth@redhat.com>
11313
11314 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11315 (alpha_expand_unaligned_load): Likewise.
11316 (alpha_expand_unaligned_store): Likewise.
11317 (alpha_expand_unaligned_load_words): Likewise.
11318 (alpha_expand_unaligned_store_words): Likewise.
11319 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11320 (alpha_split_lock_test_and_set_12): Likewise.
11321 (print_operand, alpha_fold_builtin_extxx): Likewise.
11322 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11323 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11324 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11325 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11326 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11327 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11328 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11329 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11330 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11331 (extwl, extll, extql): Similarly.
11332 (inswh, inslh, insqh): Similarly.
11333 (mskbl, mskwl, mskll, mskql): Similarly.
11334 (mskwh, msklh, mskqh): Similarly.
11335
11336 2011-02-24 Richard Henderson <rth@redhat.com>
11337
11338 * config/alpha/alpha.md (attribute isa): Add er, ner.
11339 (attribute enabled): Handle them.
11340 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11341
11342 2011-02-24 Richard Henderson <rth@redhat.com>
11343
11344 * config/alpha/alpha.md (attribute isa): Add vms.
11345 (attribute enabled): Handle it.
11346 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11347 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11348 (*movtf): Rename from *movtf_internal for consistency.
11349 (*movsi): Merge with *movsi_nt_vms.
11350 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11351 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11352 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11353 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11354
11355 2011-02-24 Richard Henderson <rth@redhat.com>
11356
11357 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11358 (extendqisi2, extendhisi2): Likewise.
11359 (extendqidi2): Simplify BWX/non-BWX expansions.
11360 (extendhidi2): Similarly.
11361
11362 2011-02-24 Richard Henderson <rth@redhat.com>
11363
11364 * config/alpha/alpha.md (attribute isa): New.
11365 (attribute enabled): New.
11366 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11367 (zero_extendqisi2, zero_extendqidi2): Similarly.
11368 (zero_extendhisi2, zero_extendhidi2): Similarly.
11369 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11370
11371 2011-02-24 Richard Henderson <rth@redhat.com>
11372
11373 * config/alpha/predicates.md (input_operand): Revert last change;
11374 update comment to mention 32-bit VMS rather than Windows.
11375
11376 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11377
11378 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11379 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11380 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11381 * passes.c (init_optimization_passes): Move
11382 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11383
11384 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11385
11386 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11387
11388 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11389
11390 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11391 correctly.
11392
11393 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR debug/48204
11396 * simplify-rtx.c (simplify_const_unary_operation): Call
11397 real_convert when changing mode class with FLOAT_EXTEND.
11398
11399 2011-03-24 Nick Clifton <nickc@redhat.com>
11400
11401 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11402 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11403 * config/rx/rx.c (rx_option_override): Set align_jumps,
11404 align_loops and align_labels if not set by the user.
11405 (rx_align_for_label): New function.
11406 (rx_max_skip_for_label): New function.
11407 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11408 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11409 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11410 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11411 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11412
11413 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11414
11415 PR rtl-optimization/48263
11416 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11417 and original commutative_p handling. Use maybe_gen_insn.
11418
11419 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11420
11421 * reload.c (find_reloads_subreg_address): Add address_reloaded
11422 parameter and return true there if the full address has been
11423 reloaded.
11424 (find_reloads_toplev): Pass address_reloaded flag.
11425 (find_reloads_address_1): Don't use address_reloaded parameter.
11426
11427 2011-03-24 Jeff Law <law@redhat.com>
11428
11429 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11430 unused variable "ann".
11431 (remove_unused_locals): Likewise.
11432
11433 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11434 statement.
11435
11436 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11437 after it is freed.
11438
11439 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11440
11441 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11442 for invalid symbolic addresses.
11443 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11444 larl operands.
11445
11446 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11447
11448 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11449 the argument in calls to fold_truth_not_expr.
11450
11451 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11452
11453 * tree.c (record_node_allocation_statistics): New function.
11454 (make_node_stat, copy_node_stat, build_string): Call it.
11455 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11456 (build1_stat, build_omp_clause): Likewise.
11457
11458 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11459
11460 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11461 last commit.
11462
11463 2011-03-24 Richard Guenther <rguenther@suse.de>
11464
11465 PR tree-optimization/48271
11466 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11467 blocks that still exist.
11468
11469 2011-03-24 Richard Guenther <rguenther@suse.de>
11470
11471 PR tree-optimization/48270
11472 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11473 not free datarefs before ddrs.
11474
11475 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11476
11477 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11478 from the address built for a reference with variable offset.
11479
11480 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11481
11482 PR target/48237
11483 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11484 alternatives that can be handled with movq or movabsq insn.
11485 (*movdf_internal): Disable for !TARGET_64BIT.
11486 (*movdf_internal_nointeger): Ditto.
11487 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11488
11489 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11490
11491 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11492 (FUNCTION_ARG_ADVANCE): Likewise.
11493 * tm.texi.in: Change references to them to hook references.
11494 * tm.texi: Regenerate.
11495 * targhooks.c (default_function_arg): Eliminate check for target macro.
11496 (default_function_incoming_arg): Likewise.
11497 (default_function_arg_advance): Likewise.
11498 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11499 (function_arg_advance): Likewise.
11500 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11501
11502 2011-03-24 Richard Guenther <rguenther@suse.de>
11503
11504 PR middle-end/48269
11505 * tree-object-size.c (addr_object_size): Do not double-account
11506 for MEM_REF offsets.
11507
11508 2011-03-24 Diego Novillo <dnovillo@google.com>
11509
11510 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11511 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11512 (lto_input_data_block): Move from lto-opts.c. Make extern.
11513 Update all users.
11514 (lto_input_string): Rename from input_string. Make extern.
11515 Update all users.
11516 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11517 output_string_with_length.
11518 Output 0 to indicate a non-NULL string. Update all callers to
11519 not emit 0.
11520 (lto_output_string): Rename from output_string. Make extern.
11521 Update all users.
11522 (lto_output_decl_state_streams): Make extern.
11523 (lto_output_decl_state_refs): Make extern.
11524 * lto-streamer.h (lto_input_string): Declare.
11525 (lto_input_data_block): Declare.
11526 (lto_output_string): Declare.
11527 (lto_output_string_with_length): Declare.
11528 (lto_output_decl_state_streams): Declare.
11529 (lto_output_decl_state_refs): Declare.
11530
11531 2011-03-24 Richard Guenther <rguenther@suse.de>
11532
11533 PR tree-optimization/46562
11534 * tree.c (build_invariant_address): New function.
11535 * tree.h (build_invariant_address): Declare.
11536 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11537 a renamed function moved ...
11538 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11539 Take valueization callback parameter.
11540 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11541 * gimple-fold.h: New file.
11542 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11543 (ccp_fold, fold_const_aggregate_ref,
11544 fold_ctor_reference, fold_nonarray_ctor_reference,
11545 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11546 get_base_constructor): Move ...
11547 * gimple-fold.c: ... here.
11548 (gimple_fold_stmt_to_constant_1): New function
11549 split out from ccp_fold. Take a valueization callback parameter.
11550 Valueize all operands.
11551 (gimple_fold_stmt_to_constant): New wrapper function.
11552 (fold_const_aggregate_ref_1): New function split out from
11553 fold_const_aggregate_ref. Take a valueization callback parameter.
11554 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11555 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11556 invariant POINTER_PLUS_EXPRs to invariant form.
11557 (vn_valueize): New function.
11558 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11559 * tree-vrp.c (vrp_valueize): New function.
11560 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11561 to fold statements to constants.
11562 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11563 function declarations.
11564 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11565 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11566
11567 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11568
11569 * config/h8300/predicates.md (jump_address_operand): Fix register
11570 mode check.
11571
11572 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11573
11574 * doc/invoke.texi (max-stores-to-sink): Document.
11575 * params.h (MAX_STORES_TO_SINK): Define.
11576 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11577 if either vectorization or if-conversion is disabled.
11578 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11579 tree-vect-data-refs.c vect_equal_offsets.
11580 (dr_equal_offsets_p): New function.
11581 (find_data_references_in_bb): Remove static.
11582 * tree-data-ref.h (find_data_references_in_bb): Declare.
11583 (dr_equal_offsets_p): Likewise.
11584 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11585 (vect_drs_dependent_in_basic_block): Update calls to
11586 vect_equal_offsets.
11587 (vect_check_interleaving): Likewise.
11588 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11589 (cond_if_else_store_replacement): Rename to...
11590 (cond_if_else_store_replacement_1): ... this. Change arguments and
11591 documentation.
11592 (cond_if_else_store_replacement): New function.
11593 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11594 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11595
11596 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11597
11598 PR target/46934
11599 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11600 to subtract lower bound instead of GEN_INT().
11601
11602 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11603
11604 PR other/48179
11605 PR other/48221
11606 PR other/48234
11607 * doc/extend.texi (Alignment): Move section to match order in TOC.
11608 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11609 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11610
11611 2011-03-23 Jeff Law <law@redhat.com>
11612
11613 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11614 before removing the edge.
11615
11616 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11617 it may have been freed by redirect_branch_edge or
11618 redirect_edge_succ_nodup.
11619
11620 2011-03-23 Richard Guenther <rguenther@suse.de>
11621
11622 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11623 (check_va_list_escapes): Likewise.
11624 (check_all_va_list_escapes): Likewise.
11625
11626 2011-03-23 Richard Guenther <rguenther@suse.de>
11627
11628 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11629 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11630 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11631 (alias.o): Likewise.
11632 (ipa-type-escape.o): Remove.
11633 (ipa-struct-reorg.o): Likewise.
11634 (GTFILES): Remove ipa-struct-reorg.c.
11635 * alias.c: Do not include ipa-type-escape.h.
11636 * tree-ssa-alias.c: Likewise.
11637 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11638 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11639 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11640 and ipa-type-escape passes.
11641 * tree-pass.h (pass_ipa_type_escape): Remove.
11642 (pass_ipa_struct_reorg): Likewise.
11643 * ipa-struct-reorg.h: Remove.
11644 * ipa-struct-reorg.c: Likewise.
11645 * ipa-type-escape.h: Likewise.
11646 * ipa-type-escape.c: Likewise.
11647 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11648 (--param struct-reorg-cold-struct-ratio): Likewise.
11649 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11650 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11651 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11652
11653 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11654
11655 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11656 cpu attribute value.
11657 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11658 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11659 * config/s390/s390.c (processor_flags_table): New constant array.
11660 (s390_handle_arch_option): Remove.
11661 (s390_handle_option): Remove s390_handle_arch_option invocations
11662 and OPT_mwarn_framesize_ handling.
11663 (s390_option_override): Remove s390_handle_arch_option invocation.
11664 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11665 warnings.
11666 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11667 * config/s390/s390.opt (s390_tune, s390_arch)
11668 (march=): Replace s390_arch_option enum and values with
11669 processor_type. Set variable name to s390_arch. Set
11670 initialization value.
11671 (mtune=): Replace s390_arch_option with processor_type. Set
11672 variable name to s390_tune. Set initialization value.
11673
11674 2011-03-23 Julian Brown <julian@codesourcery.com>
11675
11676 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11677 accesses which are not naturally aligned.
11678
11679 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11680
11681 PR target/47553
11682 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11683
11684 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11685
11686 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11687 parameter from "int" to "enum insn_code".
11688 (expand_operand_type): New enum.
11689 (expand_operand): New structure.
11690 (create_expand_operand): New function.
11691 (create_fixed_operand, create_output_operand): Likewise
11692 (create_input_operand, create_convert_operand_to): Likewise.
11693 (create_convert_operand_from, create_address_operand): Likewise.
11694 (create_integer_operand): Likewise.
11695 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11696 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11697 (expand_insn, expand_jump_insn): Likewise.
11698 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11699 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11700 (expand_movstr, expand_builtin___clear_cache): Likewise.
11701 (expand_builtin_lock_release): Likewise.
11702 * explow.c (allocate_dynamic_stack_space): Likewise.
11703 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11704 and use the default handling in that case.
11705 * expmed.c (check_predicate_volatile_ok): Delete.
11706 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11707 (emit_cstore): Likewise.
11708 * expr.c (emit_block_move_via_movmem): Likewise.
11709 (set_storage_via_setmem, expand_assignment): Likewise.
11710 (emit_storent_insn, try_casesi): Likewise.
11711 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11712 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11713 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11714 (expand_twoval_unop, expand_twoval_binop): Likewise.
11715 (expand_unop_direct, emit_indirect_jump): Likewise.
11716 (emit_conditional_move, vector_compare_rtx): Likewise.
11717 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11718 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11719 (expand_sync_lock_test_and_set): Likewise.
11720 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11721 (emit_unop_insn): Likewise.
11722 (expand_copysign_absneg): Change icode to an insn_code.
11723 (create_convert_operand_from_type): New function.
11724 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11725 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11726 (expand_insn, expand_jump_insn): Likewise.
11727 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11728 than const_int_operand for operand 2.
11729
11730 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11731
11732 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11733 if possible.
11734
11735 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11736
11737 * emit-rtl.c (emit_pattern_before_noloc): New function.
11738 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11739 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11740 (emit_pattern_after_noloc): New function.
11741 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11742 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11743
11744 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11745
11746 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11747 (__ffsDI2): Likewise.
11748
11749 2011-03-22 Richard Henderson <rth@redhat.com>
11750
11751 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11752 of !TARGET_ABI_OPEN_VMS.
11753 (alpha_trampoline_init, alpha_start_function): Likewise.
11754 (alpha_expand_epilogue, alpha_file_start): Likewise.
11755 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11756 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11757 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11758 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11759 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11760
11761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11762
11763 * config/s390/s390-opts.h: New.
11764 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11765 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11766 s390_stack_guard): Remove.
11767 (s390_handle_arch_option): Return void. Take enum
11768 s390_arch_option value instead of string and searching array.
11769 (s390_handle_option): Don't assert that global structures are in
11770 use. Access variables via opts pointer. Use error_at. Don't use
11771 sscanf for -mstack-guard= or -mstack-size=. Update call to
11772 s390_handle_arch_option.
11773 (s390_option_override): Update call to s390_handle_arch_option.
11774 (s390_emit_prologue): Use %d format for s390_stack_size in
11775 diagnostic. Use %wd for HOST_WIDE_INT.
11776 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11777 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11778 * config/s390/s390.opt (config/s390/s390-opts.h): New
11779 HeaderInclude entry.
11780 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11781 s390_arch_flags, s390_warn_framesize): New Variable entries.
11782 (s390_arch_option): New Enum and EnumValue entries.
11783 (march=): Use Enum instead of Var.
11784 (mstack-guard=, mstack-size=): Use UInteger and Var.
11785 (mtune=): Use Enum.
11786
11787 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11788
11789 * config/score/score.c (score_handle_option): Don't assert that
11790 global structures are in use. Access target_flags via opts
11791 pointer. Use value of -march= option to determine target_flags
11792 settings.
11793 * config/score/score.opt (march=): Use Enum.
11794 (score_arch): New Enum and EnumValue entries.
11795
11796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11797
11798 * config/mep/mep.c (option_mtiny_specified): Remove.
11799 (mep_option_override): Move register handling for -mivc2 from
11800 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11801 instead of option_mtiny_specified.
11802 (mep_handle_option): Access target_flags via opts pointer. Don't
11803 assert that global structures are in use. Defer part of -mivc2
11804 handling and move it to mep_option_override.
11805 * config/mep/mep.opt (IVC2): New Mask entry.
11806 (mivc2): Use Var and Defer instead of Mask.
11807
11808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11809
11810 * config/v850/v850-opts.h: New.
11811 * config/v850/v850.c (small_memory): Replace with
11812 small_memory_physical_max array. Make that array static const.
11813 (v850_handle_memory_option): Take integer value of argument. Take
11814 gcc_options pointer, option text and location. Return void.
11815 Update for changes to small memory structures.
11816 (v850_handle_option): Access target_flags via opts pointer. Don't
11817 assert that global structures are in use. Update calls to
11818 v850_handle_memory_option.
11819 (v850_encode_data_area): Update references to small memory settings.
11820 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11821 (enum small_memory_type): Move to v850-opts.h.
11822 * config/v850/v850.opt (config/v850/v850-opts.h): New
11823 HeaderInclude entry.
11824 (small_memory_max): New Variable entry.
11825 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11826 (mtda, mzda): Likewise.
11827
11828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11829
11830 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11831 pointer. Don't assert that global structures are in use.
11832
11833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11834
11835 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11836 via opts pointer. Don't assert that global structures are in use.
11837
11838 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11839
11840 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11841 (munix=93): Use Var.
11842 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11843 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11844 * config/pa/pa-opts.h: New.
11845 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11846 (pa_handle_option): Don't assert that global structures are in
11847 use. Access target_flags via opts pointer. Don't handle
11848 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11849 OPT_munix_98 here.
11850 (pa_option_override): Handle deferred OPT_mfixed_range_.
11851
11852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11853
11854 * config/mn10300/mn10300-opts.h: New.
11855 * config/mn10300/mn10300.c (mn10300_processor,
11856 mn10300_tune_string): Remove.
11857 (mn10300_handle_option): Don't assert that global structures are
11858 in use. Access mn10300_processor via opts pointer. Don't handle
11859 OPT_mtune_ here.
11860 * config/mn10300/mn10300.h (enum processor_type): Move to
11861 mn10300-opts.h.
11862 (mn10300_processor): Remove.
11863 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11864 HeaderInclude entry.
11865 (mn10300_processor): New Variable entry.
11866 (mtune=): Use Var.
11867
11868 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11869
11870 * config/microblaze/microblaze.c: Don't include opts.h.
11871 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11872 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11873 (mno-clearbss): Use Var and Warn.
11874
11875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11876
11877 * config/m32r/m32r-opts.h: New.
11878 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11879 (m32r_handle_option): Don't assert that global structures are in
11880 use. Access target_flags and m32r_cache_flush_func via opts
11881 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11882 OPT_mno_flush_trap here.
11883 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11884 include of m32r-opts.h.
11885 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11886 HeaderInclude entry.
11887 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11888 (mmodel=): Use Enum and Var.
11889 (m32r_model): New Enum and EnumValue entries.
11890 (mno-flush-trap): Use Var.
11891 (msdata=): Use Enum and Var.
11892 (m32r_sdata): New Enum and EnumValue entries.
11893
11894 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11895
11896 * config/m32c/m32c.c: Don't include opts.h.
11897 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11898 m32c_handle_option): Remove.
11899 (m32c_option_override): Check global_options_set.x_target_memregs
11900 instead of target_memregs_set.
11901 * config/m32c/m32c.h (target_memregs): Remove.
11902 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11903 variable.
11904
11905 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11906
11907 * config/iq2000/iq2000-opts.h: New.
11908 * config/iq2000/iq2000.c: Don't include opts.h.
11909 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11910 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11911 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11912 HeaderInclude entry.
11913 (iq2000_tune): New Variable entry.
11914 (march=): Add comment. Use Enum.
11915 (iq2000_arch): New Enum and EnumValue entries.
11916 (mcpu=): Use Enum and Var.
11917 (iq2000_tune): New Enum and EnumValue entries.
11918
11919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11920
11921 * config/ia64/ia64-opts.h: New.
11922 * config/ia64/ia64.c (ia64_tune): Remove.
11923 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11924 here. Use error_at.
11925 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11926 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11927 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11928 HeaderInclude entry.
11929 (ia64_tune): New Variable entry.
11930 (mfixed-range=): Use Defer and Var.
11931 (mtune=): Use Enum and Var.
11932 (ia64_tune): New Enum and EnumValue entries.
11933
11934 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11935
11936 * config/frv/frv-opts.h: New.
11937 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11938 frv-opts.h.
11939 (frv_cpu_type): Remove.
11940 * config/frv/frv.c: Don't include opts.h.
11941 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11942 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11943 (frv_cpu_type): New Variable entry.
11944 (frv_cpu): New Enum and EnumValue entries.
11945
11946 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11947
11948 * config/cris/cris.c (cris_handle_option): Access target_flags via
11949 opts pointer. Don't assert that global structures are in use.
11950 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11951 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11952
11953 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11954
11955 * config/bfin/bfin-opts.h: New.
11956 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11957 bfin_si_revision, bfin_workarounds): Remove.
11958 (bfin_cpus): Make static const.
11959 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11960 not bfin_lib_id_given.
11961 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11962 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11963 pointer. Use error_at. Don't assert that global structures are in use.
11964 * config/bfin/bfin.h: Include bfin-opts.h.
11965 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11966 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11967 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11968 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11969 entries.
11970
11971 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11972
11973 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11974 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11975 or -msoft-float here.
11976 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11977 -msoft-float and -mhard-float.
11978 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11979 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11980 msoft-float.
11981 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11982 -msoft-float.
11983 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11984 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11985 not mhard-float.
11986 (LIBGCC_SPEC): Don't handle -msoft-float.
11987 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11988 -mhard-float.
11989 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11990 msoft-float.
11991 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11992 -mfloat-abi=*, not -msoft-float and -mhard-float.
11993 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11994 -msoft-float.
11995 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11996 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11997 mhard-float and msoft-float.
11998 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11999 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12000 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12001 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12002 mhard-float.
12003 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12004 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12005 msoft-float.
12006 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12007 not mhard-float.
12008 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12009 not msoft-float.
12010
12011 2011-03-22 Richard Henderson <rth@redhat.com>
12012
12013 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12014 TARGET_ABI_WINDOWS_NT.
12015 (alpha_output_function_end_prologue): Likewise.
12016 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12017 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12018 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12019 (trap, *movsi_nt_vms): Likewise.
12020 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12021 (*tablejump_osf_nt_internal): Remove.
12022 * config/alpha/predicates.md (input_operand): Only test Pmode.
12023
12024 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12025
12026 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12027 via opts pointer. Use error_at. Don't assert that global
12028 structures are in use.
12029
12030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12031
12032 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12033 (ix86_handle_option): Access ix86_isa_flags and
12034 ix86_isa_flags_explicit via opts pointer. Don't assert that
12035 global structures are in use.
12036 (ix86_function_specific_save, ix86_function_specific_restore):
12037 Update ix86_isa_flags_explicit field name.
12038 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12039 (ix86_isa_flags_explicit): Rename TargetSave entry to
12040 x_ix86_isa_flags_explicit.
12041
12042 2011-03-22 Richard Henderson <rth@redhat.com>
12043
12044 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12045 (alpha_option_override, direct_return): Likewise.
12046 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12047 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12048 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12049 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12050 (alpha_expand_epilogue, alpha_end_function): Likewise.
12051 (alpha_init_libfuncs): Likewise.
12052 (struct machine_function): Remove unicosmk members.
12053 (print_operand) ['t']: Remove.
12054 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12055 unicosmk_output_module_name, unicosmk_output_common,
12056 current_section_align, unicosmk_output_text_section_asm_op,
12057 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12058 unicosmk_section_type_flags, unicosmk_unique_section,
12059 unicosmk_asm_named_section, unicosmk_insert_attributes,
12060 unicosmk_output_align, unicosmk_defer_case_vector,
12061 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12062 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12063 unicosmk_output_ssib, unicosmk_add_call_info_word,
12064 unicosmk_extern_head, unicosmk_output_default_externs,
12065 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12066 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12067 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12068 * config/alpha/alpha-protos.h: Update.
12069 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12070 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12071 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12072 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12073 (*mulsi_se, mulvsi3): Likewise.
12074 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12075 (*divmodsi_internal, call, call_value, realign): Likewise.
12076 (moddi3, umoddi3): Likewise; remove duplicate expander.
12077 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12078 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12079 (*movdi_nofix): Remove r/U alternative.
12080 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12081 * config/alpha/constraints.md ("U"): Remove.
12082 * config/alpha/predicates.md (call_operand"): Don't test
12083 TARGET_ABI_UNICOSMK.
12084
12085 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12086
12087 * target.def (handle_option): Take gcc_options and
12088 cl_decoded_option pointers and location_t.
12089 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12090 * doc/tm.texi: Regenerate.
12091 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12092 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12093 * lto-opts.c (lto_reissue_options): Generate option structure for
12094 targetm.handle_option call.
12095 * opts.c (target_handle_option): Update call to
12096 targetm.handle_option. Remove assertions about values now passed
12097 down to hook.
12098 * targhooks.c (default_target_handle_option): New.
12099 * targhooks.h (default_target_handle_option): Declare.
12100 * config/alpha/alpha.c: Include opts.h.
12101 (alpha_handle_option): Update to new hook interface.
12102 * config/arm/arm.c: Include opts.h.
12103 (arm_handle_option): Update to new hook interface.
12104 * config/arm/t-arm (arm.o): Update dependencies.
12105 * config/bfin/bfin.c: Include opts.h.
12106 (bfin_handle_option): Update to new hook interface.
12107 * config/cris/cris.c: Include opts.h.
12108 (cris_handle_option): Update to new hook interface.
12109 * config/frv/frv.c: Include opts.h.
12110 (frv_handle_option): Update to new hook interface.
12111 * config/i386/i386.c: Include opts.h.
12112 (ix86_handle_option): Update to new hook interface.
12113 (ix86_valid_target_attribute_inner_p): Generate option structure
12114 for call to ix86_handle_option.
12115 * config/i386/t-i386 (i386.o): Update dependencies.
12116 * config/ia64/ia64.c: Include opts.h.
12117 (ia64_handle_option): Update to new hook interface.
12118 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12119 * config/iq2000/iq2000.c: Include opts.h.
12120 (iq2000_handle_option): Update to new hook interface.
12121 * config/m32c/m32c.c: Include opts.h.
12122 (m32c_handle_option): Update to new hook interface.
12123 * config/m32r/m32r.c: Include opts.h.
12124 (m32r_handle_option): Update to new hook interface.
12125 * config/m68k/m68k.c: Include opts.h.
12126 (m68k_handle_option): Update to new hook interface.
12127 * config/mep/mep.c: Include opts.h.
12128 (mep_handle_option): Update to new hook interface.
12129 * config/microblaze/microblaze.c: Include opts.h.
12130 (microblaze_handle_option): Update to new hook interface.
12131 * config/mips/mips.c: Include opts.h.
12132 (mips_handle_option): Update to new hook interface.
12133 * config/mn10300/mn10300.c: Include opts.h.
12134 (mn10300_handle_option): Update to new hook interface.
12135 * config/pa/pa.c: Include opts.h.
12136 (pa_handle_option): Update to new hook interface.
12137 * config/pdp11/pdp11.c: Include opts.h.
12138 (pdp11_handle_option): Update to new hook interface.
12139 * config/rs6000/rs6000.c: Include opts.h.
12140 (rs6000_handle_option): Update to new hook interface.
12141 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12142 * config/rx/rx.c: Include opts.h.
12143 (rx_handle_option): Update to new hook interface.
12144 * config/s390/s390.c: Include opts.h.
12145 (s390_handle_option): Update to new hook interface.
12146 * config/score/score.c: Include opts.h.
12147 (score_handle_option): Update to new hook interface.
12148 * config/sh/sh.c: Include opts.h.
12149 (sh_handle_option): Update to new hook interface.
12150 * config/sparc/sparc.c: Include opts.h.
12151 (sparc_handle_option): Update to new hook interface.
12152 * config/v850/v850.c: Include opts.h.
12153 (v850_handle_option): Update to new hook interface.
12154
12155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12156
12157 * gcc.c (driver_unknown_option_callback): Only permit and save
12158 unknown -Wno- options.
12159 (driver_wrong_lang_callback): Save options directly instead of via
12160 driver_unknown_option_callback.
12161
12162 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12163
12164 * combine.c (simplify_set): Try harder to find the best CC mode when
12165 simplifying a nested COMPARE on the RHS.
12166
12167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12168
12169 * config/alpha/gnu.h: Remove.
12170 * config/arc: Remove directory.
12171 * config/arm/netbsd.h: Remove.
12172 * config/arm/t-pe: Remove.
12173 * config/crx: Remove directory.
12174 * config/i386/netbsd.h: Remove.
12175 * config/m68hc11: Remove directory.
12176 * config/m68k/uclinux-oldabi.h: Remove.
12177 * config/mcore/mcore-pe.h: Remove.
12178 * config/mcore/t-mcore-pe: Remove.
12179 * config/netbsd-aout.h: Remove.
12180 * config/rs6000/gnu.h: Remove.
12181 * config/sh/sh-symbian.h: Remove.
12182 * config/sh/symbian-base.c: Remove.
12183 * config/sh/symbian-c.c: Remove.
12184 * config/sh/symbian-cxx.c: Remove.
12185 * config/sh/symbian-post.h: Remove.
12186 * config/sh/symbian-pre.h: Remove.
12187 * config/sh/t-symbian: Remove.
12188 * config/svr3.h: Remove.
12189 * config/vax/netbsd.h: Remove.
12190 * config.build: Don't handle i[34567]86-*-pe.
12191 * config.gcc: Remove handling of deprecations for most deprecated
12192 targets.
12193 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12194 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12195 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12196 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12197 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12198 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12199 Remove cases.
12200 * config.host: Don't handle i[34567]86-*-pe.
12201 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12202 (ASM_SPEC32): Don't handle -mcall-gnu.
12203 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12204 -mcall-gnu.
12205 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12206 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12207 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12208 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12209 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12210 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12211 conditional on SYMBIAN.
12212 * configure.ac: Don't handle powerpc*-*-gnu*.
12213 * configure: Regenerate.
12214 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12215 * doc/install-old.texi (m6811, m6812): Don't mention.
12216 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12217 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12218 (m68k-uclinuxoldabi): Don't mention.
12219 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12220 Remove.
12221 (-mcall-gnu): Remove.
12222 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12223 families): Remove constraint documentation.
12224
12225 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12226
12227 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12228 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12229 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12230
12231 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12232
12233 PR target/48226
12234 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12235 vector when peeking at the next token for vector, don't expand the
12236 keywords.
12237
12238 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12239
12240 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12241 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12242 * config/avr/avr.c (init_cumulative_args)
12243 (avr_function_arg_advance): Use it.
12244 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12245 sibcall epilogues.
12246 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12247 (avr_function_ok_for_sibcall): ...this new function.
12248 (avr_lookup_function_attribute1): New static Function.
12249 (avr_naked_function_p, interrupt_function_p)
12250 (signal_function_p, avr_OS_task_function_p)
12251 (avr_OS_main_function_p): Use it.
12252 * config/avr/avr.md ("sibcall", "sibcall_value")
12253 ("sibcall_epilogue"): New expander.
12254 ("*call_insn", "*call_value_insn"): New insn.
12255 ("call_insn", "call_value_insn"): Remove
12256 ("call", "call_value", "epilogue"): Change expander to handle
12257 sibling calls.
12258
12259 2011-03-21 Nick Clifton <nickc@redhat.com>
12260
12261 * doc/invoke.texi (Overall Options): Move closing brace to end of
12262 options list.
12263 (Optimization Options): Add missing @gol.
12264 (Directory Options): Likewise.
12265 (i386 and x86-64 Options): Likewise.
12266 (RS6000 and PowerPC Options): Likewise.
12267 (i386 and x86-64 Windows Options): Likewise.
12268 (V850 Options): Add text missing from descriptions.
12269
12270 2011-03-22 Richard Henderson <rth@redhat.com>
12271
12272 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12273 (avr_incoming_return_addr_rtx): New.
12274 (emit_push_byte): New.
12275 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12276 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12277 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12278 (emit_pop_byte): New.
12279 (expand_epilogue): Use it. Pop frame pointer by bytes.
12280 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12281 (INCOMING_RETURN_ADDR_RTX): New.
12282 (INCOMING_FRAME_SP_OFFSET): New.
12283 (ARG_POINTER_CFA_OFFSET): New.
12284 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12285 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12286 (pophi): Remove.
12287
12288 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12289
12290 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12291
12292 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12293 (FUNCTION_ARG_ADVANCE): Likewise.
12294 * tm.texi.in: Change references to them to hook references.
12295 * tm.texi: Regenerate.
12296 * targhooks.c (default_function_arg): Eliminate check for target
12297 macro.
12298 (default_function_incoming_arg): Likewise.
12299 (default_function_arg_advance): Likewise.
12300 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12301 (function_arg_advance): Likewise.
12302 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12303
12304 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12305
12306 * tree.c (build_call_1): New function.
12307 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12308
12309 2011-03-22 Richard Guenther <rguenther@suse.de>
12310
12311 PR tree-optimization/48228
12312 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12313 for single-arg PHIs.
12314
12315 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12316
12317 PR rtl-optimization/48143
12318 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12319 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12320 sse2_cvtps2pd): Likewise.
12321
12322 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12323
12324 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12325
12326 2011-03-22 Richard Guenther <rguenther@suse.de>
12327
12328 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12329 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12330 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12331 and REALIGN_LOAD_EXPR.
12332 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12333 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12334 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12335 DOT_PROD_EXPR case ...
12336 (expand_expr_real_2): ... here.
12337 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12338 and REALIGN_LOAD_EXPR.
12339 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12340 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12341 (vect_create_epilog_for_reduction): Likewise.
12342 (vectorizable_reduction): Likewise.
12343 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12344 * tree-vect-stmts.c (vectorizable_load): Likewise.
12345
12346 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12347
12348 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12349
12350 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12351
12352 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12353 handling for PLTOFF/GOTOFF.
12354
12355 2011-03-22 Nick Clifton <nickc@redhat.com>
12356
12357 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12358 trailing backslash from the end of the macro definition.
12359
12360 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12361
12362 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12363 and PLT unspecs.
12364
12365 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12366
12367 * expr.h (prepare_operand): Move to...
12368 * optabs.h (prepare_operand): ...here and change the insn code
12369 parameter from "int" to "enum insn_code".
12370 (insn_operand_matches): Declare.
12371 * expr.c (init_expr_target): Use insn_operand_matches.
12372 (compress_float_constant): Likewise.
12373 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12374 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12375 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12376 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12377 Likewise.
12378 (gen_cond_trap): Likewise.
12379 (prepare_operand): Likewise. Change icode to an insn_code.
12380 (insn_operand_matches): New function.
12381 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12382 * reload1.c (gen_reload): Likewise.
12383 * targhooks.c (default_secondary_reload): Likewise.
12384
12385 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12386
12387 * config/alpha/alpha.md (unspec): New define_c_enum.
12388 (unspecv): Ditto.
12389
12390 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12391
12392 PR debug/48214
12393 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12394 between a call and its CALL_ARG_LOCATION note.
12395
12396 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12397
12398 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12399
12400 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12401
12402 PR c/42544
12403 PR c/48197
12404 * c-common.c (shorten_compare): If primopN is first sign-extended
12405 to opN and then zero-extended to result type, set primopN to opN.
12406
12407 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12408
12409 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12410 for barrier handlers.
12411
12412 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12413
12414 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12415 UNSPEC constants to be in the unspec enumeration, and redefine
12416 all UNSPECV constants to be in the unspecv enumeration, so that
12417 dumps print which unspec/unspec_volatile this is.
12418 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12419 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12420 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12421 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12422 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12423
12424 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12425 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12426 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12427 * config/rs6000/sync.md (isync, lwsync): Ditto.
12428
12429 2011-03-21 Richard Guenther <rguenther@suse.de>
12430
12431 * params.def (lto-min-partition): Fix typo.
12432
12433 2011-03-21 Richard Guenther <rguenther@suse.de>
12434
12435 PR c/47939
12436 * c-decl.c (grokdeclarator): Drop to the main variant only
12437 for array types. Drop flag_gen_aux_info check.
12438
12439 2011-03-21 Richard Guenther <rguenther@suse.de>
12440
12441 PR translation/47911
12442 * params.def (lto-partitions): Fix typo.
12443 (lto-min-partition): Fix wording.
12444
12445 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12446
12447 * config/rs6000/t-freebsd: Remove duplication from file.
12448
12449 2011-03-21 Richard Guenther <rguenther@suse.de>
12450
12451 PR middle-end/47661
12452 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12453
12454 2011-03-21 Richard Guenther <rguenther@suse.de>
12455
12456 PR lto/48210
12457 * params.def (lto-partitions): Require at least 1 partition.
12458
12459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12460
12461 * gthr-solaris.h: Remove.
12462 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12463 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12464 (LIB_SPEC): Likewise.
12465 * config/sol2.opt (threads): Remove.
12466 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12467 (sparc*-*-solaris2*): Likewise.
12468 * configure.ac (enable_threads): Enable solaris support.
12469 * configure: Regenerate.
12470 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12471 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12472 solaris.
12473
12474 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12475
12476 * config.gcc: Obsolete *-*-solaris2.8*.
12477 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12478
12479 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12480
12481 PR bootstrap/48135
12482 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12483 reference. Solaris 8 perl works.
12484
12485 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12486
12487 PR bootstrap/48135
12488 * doc/install.texi (Prerequisites): Move jar etc. up.
12489 Explain support library version requirements.
12490
12491 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12492
12493 PR bootstrap/48135
12494 * doc/install.texi (Prerequisites): Move Perl to build
12495 requirements. Always necessary on Solaris 2 with Sun ld.
12496
12497 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12498
12499 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12500 binutils 2.21.
12501 (Specific, i?86-*-solaris2.[89]): Likewise.
12502 (Specific, i?86-*-solaris2.10): Likewise.
12503 (Specific, mips-sgi-irix6): Likewise.
12504 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12505 Update for binutils 2.21.
12506
12507 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12508
12509 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12510 Allow -fuse-linker-plugin for non-default plugin linker.
12511 * configure: Regenerate.
12512
12513 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12514
12515 PR bootstrap/48167
12516 * gengtype.c (files_rules): Added rule for cp/parser.h.
12517
12518 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12519
12520 PR target/48213
12521 * config/s390/s390.c (s390_delegitimize_address): Don't call
12522 lowpart_subreg if orig_x has BLKmode.
12523
12524 2011-03-21 Kai Tietz <ktietz@redhat.com>
12525
12526 PR target/12171
12527 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12528 * tree.h (attribute_spec): Add new member affects_type_identity.
12529 * attribs.c (empty_attribute_table): Adjust attribute_spec
12530 initializers.
12531 * config/alpha/alpha.c: Likewise.
12532 * config/arc/arc.c: Likewise.
12533 * config/arm/arm.c: Likewise.
12534 * config/avr/avr.c: Likewise.
12535 * config/bfin/bfin.c: Likewise.
12536 * config/crx/crx.c: Likewise.
12537 * config/darwin.h: Likewise.
12538 * config/h8300/h8300.c: Likewise.
12539 * config/i386/cygming.h: Likewise.
12540 * config/i386/i386.c: Likewise.
12541 * config/ia64/ia64.c: Likewise.
12542 * config/m32c/m32c.c: Likewise.
12543 * config/m32r/m32r.c: Likewise.
12544 * config/m68hc11/m68hc11.c: Likewise.
12545 * config/m68k/m68k.c: Likewise.
12546 * config/mcore/mcore.c: Likewise.
12547 * config/mep/mep.c: Likewise.
12548 * config/microblaze/microblaze.c: Likewise.
12549 * config/mips/mips.c: Likewise.
12550 * config/rs6000/rs6000.c: Likewise.
12551 * config/rx/rx.c: Likewise.
12552 * config/sh/sh.c: Likewise.
12553 * config/sol2.h: Likewise.
12554 * config/sparc/sparc.c: Likewise.
12555 * config/spu/spu.c: Likewise.
12556 * config/stormy16/stormy16.c: Likewise.
12557 * config/v850/v850.c: Likewise.
12558
12559 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12560
12561 * simplify-rtx.c (simplify_binary_operation_1): Handle
12562 (xor (and A B) C) case when B and C are both constants.
12563
12564 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12565
12566 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12567
12568 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12569
12570 PR bootstrap/48168
12571 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12572
12573 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12574
12575 PR rtl-optimization/48156
12576 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12577 assume df and df_lr are not NULL.
12578
12579 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12580
12581 PR debug/48023
12582 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12583 between a call and its CALL_ARG_LOCATION note.
12584
12585 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12586
12587 PR debug/48178
12588 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12589 between a call and its corresponding CALL_ARG_LOCATION note.
12590
12591 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12592
12593 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12594 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12595 * haifa-sched.c (setup_ref_regs): Ditto.
12596 * caller-save.c (add_used_regs_1): Ditto.
12597 * dse.c (look_for_hardregs): Ditto.
12598 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12599 * sched-rgn.c (check_live_1): Ditto.
12600
12601 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12602
12603 * c-decl.c (diagnose_mismatched_decls): Give an error for
12604 redefining a typedef with variably modified type.
12605
12606 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12607
12608 * c-decl.c (grokfield): Don't allow typedefs for structures or
12609 unions with no tag by default.
12610 * doc/extend.texi (Unnamed Fields): Update.
12611
12612 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12613
12614 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12615 Rewrite using indirect functions.
12616 (lwp_slwpcb): Ditto.
12617 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12618 (avx_vinsertf128<mode>): Ditto.
12619
12620 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12621
12622 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12623 unspecs.
12624
12625 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12626
12627 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12628 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12629
12630 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12631
12632 PR rtl-optimization/48170
12633 * gcse.c (hoist_code): Remove bogus asserts.
12634
12635 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12636
12637 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12638 computation for prologue/epilogue.
12639
12640 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12641
12642 * Makefile.in (check-consistency): Remove.
12643
12644 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12645
12646 PR debug/48176
12647 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12648 arange_table_in_use is 0, but either text_section_used or
12649 cold_text_section_used is true. Don't call it if
12650 !info_section_emitted.
12651
12652 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12653
12654 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12655 FUNCTION_VALUE_REGNO_P): Remove.
12656 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12657 Remove.
12658 * config/avr/avr.c (avr_ret_register): Make static inline.
12659 (avr_function_value_regno_p): New function.
12660 (avr_libcall_value): Make static. Add 'func' argument.
12661 (avr_function_value): Make static. Rename 'func' argument to
12662 'fn_decl_or_type', forward it to avr_libcall_value. Call
12663 avr_ret_register function instead of RET_REGISTER macro.
12664 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12665
12666 2011-03-18 Jason Merrill <jason@redhat.com>
12667
12668 PR c++/23372
12669 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12670
12671 2011-03-18 Richard Guenther <rguenther@suse.de>
12672
12673 * doc/install.texi (--enable-gold): Remove.
12674 (--with-plugin-ld): Document.
12675 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12676
12677 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12678
12679 PR middle-end/47790
12680 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12681 again after expansion changes.
12682
12683 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12684
12685 * combine.c (try_combine): Do simplification only call of
12686 subst() on i2 even when i1 is present. Update comments.
12687
12688 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12689
12690 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12691 and UNSPEC_PCREL_SYMOFF.
12692
12693 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12694
12695 * config/s390/s390.md: Use define_c_enum for the unspec constant
12696 definitions.
12697
12698 2011-03-18 Richard Henderson <rth@redhat.com>
12699 Jakub Jelinek <jakub@redhat.com>
12700
12701 PR bootstrap/48161
12702 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12703 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12704
12705 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12706
12707 PR middle-end/47725
12708 * combine.c (cant_combine_insn_p): Don't check zero/sign
12709 extended hard registers.
12710
12711 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12712
12713 PR middle-end/47725
12714 * combine.c (cant_combine_insn_p): Check zero/sign extended
12715 hard registers.
12716
12717 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12718
12719 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12720 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12721 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12722 Change return type to bool.
12723 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12724
12725 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12726
12727 PR debug/48163
12728 * var-tracking.c (prepare_call_arguments): If CALL target
12729 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12730 pc instead of looking it up using cselib_lookup and use
12731 Pmode for it if x has VOIDmode.
12732 * dwarf2out.c (gen_subprogram_die): If also both first and
12733 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12734
12735 PR debug/48163
12736 * function.c (assign_parms): For data.passed_pointer parms
12737 use MEM of data.entry_parm instead of data.entry_parm itself
12738 as DECL_INCOMING_RTL.
12739 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12740 also when passed and declared mode is the same, DECL_RTL
12741 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12742 a MEM too.
12743
12744 2011-03-16 Jeff Law <law@redhat.com>
12745
12746 PR rtl-optimization/37273
12747 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12748 handle them like argument loads from stack slots. Do not double
12749 count memory for memory constants and argument loads from stack slots.
12750
12751 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12752
12753 PR debug/48160
12754 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12755
12756 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12757
12758 PR target/48171
12759 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12760
12761 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12762
12763 PR bootstrap/48153
12764 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12765 if dwarf_strict.
12766 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12767 Clear call_arg_locations and call_arg_loc_last always.
12768
12769 PR middle-end/48152
12770 * var-tracking.c (prepare_call_arguments): If argument needs to be
12771 passed by reference, adjust argtype and mode.
12772
12773 2011-03-17 Richard Guenther <rguenther@suse.de>
12774
12775 PR middle-end/48134
12776 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12777 a value make sure to fold the statement.
12778
12779 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12780
12781 PR target/43872
12782 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12783 return condition with !cfun->calls_alloca.
12784
12785 2011-03-17 Richard Guenther <rguenther@suse.de>
12786
12787 PR bootstrap/48148
12788 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12789 origin for decls in other ltrans units.
12790 (input_varpool_node): Likewise.
12791
12792 2011-03-17 Richard Guenther <rguenther@suse.de>
12793
12794 PR middle-end/48165
12795 * tree-object-size.c (compute_object_offset): Properly return
12796 the offset operand of MEM_REFs as sizetype.
12797
12798 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12799
12800 PR rtl-optimization/48141
12801 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12802 * dse.c: Include params.h.
12803 (active_local_stores_len): New variable.
12804 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12805 to NULL.
12806 (record_store, check_mem_read_rtx): Decrease it when removing
12807 from the chain.
12808 (scan_insn): Likewise. Increase it when adding to chain, if it
12809 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12810 set active_local_stores to NULL before the addition.
12811 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12812
12813 PR rtl-optimization/48141
12814 * dse.c (record_store): If no positions are needed in an insn
12815 that cannot be deleted, at least unchain it from active_local_stores.
12816
12817 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12818
12819 PR debug/47510
12820 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12821 (lookup_type_die_strip_naming_typedef): ... here.
12822 (get_context_die): Use it.
12823 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12824 the anonymous struct named by the naming typedef.
12825
12826 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12827
12828 PR target/48154
12829 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12830 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12831
12832 2011-03-16 Jeff Law <law@redhat.com>
12833
12834 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12835 check for operands of conditional. Allow type to be a pointer.
12836
12837 2011-03-16 Richard Guenther <rguenther@suse.de>
12838
12839 PR tree-optimization/48149
12840 * fold-const.c (fold_binary_loc): Fold
12841 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12842
12843 2011-03-16 Richard Guenther <rguenther@suse.de>
12844
12845 PR tree-optimization/26134
12846 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12847 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12848 (non_rewritable_mem_ref_base): Handle complex type component
12849 accesses, constrain offsets for vector and complex extracts
12850 more properly.
12851
12852 2011-03-16 Richard Guenther <rguenther@suse.de>
12853
12854 PR tree-optimization/48146
12855 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12856 operands avoiding the need for renaming.
12857
12858 2011-03-16 Richard Guenther <rguenther@suse.de>
12859
12860 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12861 constant folding. Move MEM_REF canonicalization first.
12862 Rely on fold_const_aggregate_ref for initializer folding.
12863 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12864
12865 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12866
12867 PR middle-end/48136
12868 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12869 arg0/arg1 or their arguments are always fold converted to matching
12870 types.
12871
12872 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12873 to nargs.
12874
12875 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12876
12877 PR lto/46944
12878 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12879 Handle in-tree gold.
12880 (ld_vers): Extract binutils version for gold.
12881 (gcc_cv_ld_hidden): Handle gold here.
12882 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12883 * configure: Regenerate.
12884 * config.in: Regenerate.
12885 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12886 -fuse-linker-plugin otherwise.
12887 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12888 (LINK_COMMAND_SPEC): Use it.
12889 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12890
12891 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12892
12893 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12894 * calls.c: Remove debug.h include.
12895 (emit_call_1): Don't call virtual_call_token debug hook.
12896 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12897 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12898 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12899 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12900 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12901 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12902 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12903 dwarf2out_virtual_call): Remove.
12904 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12905 copy_call_info and virtual_call hooks.
12906 (dwarf2out_init): Don't initialize vcall_insn_table,
12907 debug_dcall_section and debug_vcall_section.
12908 (prune_unused_types): Don't mark nodes from dcall_table.
12909 (dwarf2out_finish): Don't output dcall or vcall tables.
12910 * final.c (final_scan_insn): Don't call direct_call or
12911 virtual_call debug hooks.
12912 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12913 virtual_call_token, copy_call_info and virtual_call hooks.
12914 (debug_nothing_uid): Remove prototype.
12915 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12916 copy_call_info and virtual_call hooks.
12917 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12918 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12919 * debug.c (do_nothing_debug_hooks): Likewise.
12920 (debug_nothing_uid): Remove.
12921 * doc/invoke.texi (-fenable-icf-debug): Remove.
12922 * common.opt (-fenable-icf-debug): Likewise.
12923
12924 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12925 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12926 call's MEM. Handle functions returning aggregate through a hidden
12927 first pointer. For virtual calls add clobbered pc to call arguments
12928 chain.
12929 * dwarf2out.c (gen_subprogram_die): Emit
12930 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12931 can't be emitted.
12932
12933 PR debug/45882
12934 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12935 * rtl.h (ENTRY_VALUE_EXP): Define.
12936 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12937 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12938 * print-rtl.c (print_rtx): Likewise.
12939 * gengtype.c (adjust_field_rtx_def): Likewise.
12940 * var-tracking.c (vt_add_function_parameter): Adjust
12941 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12942 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12943 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12944 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12945 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12946
12947 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12948 Call var_location debug hook even on CALL_INSNs.
12949 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12950 * rtl.def (ENTRY_VALUE): New.
12951 * dwarf2out.c: Include cfglayout.h.
12952 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12953 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12954 (struct call_arg_loc_node): New type.
12955 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12956 tail_call_site_count): New variables.
12957 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12958 DW_TAG_GNU_call_site_parameter.
12959 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12960 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12961 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12962 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12963 and DW_AT_GNU_all_source_call_sites.
12964 (mem_loc_descriptor): Handle ENTRY_VALUE.
12965 (add_src_coords_attributes): Don't add enything if
12966 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12967 (dwarf2out_abstract_function): Save and clear call_arg_location,
12968 call_site_count and tail_call_site_count around dwarf2out_decl call.
12969 (gen_call_site_die): New function.
12970 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12971 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12972 (dwarf2out_function_decl): Clear call_arg_locations,
12973 call_arg_loc_last, set call_site_count and tail_call_site_count
12974 to -1 and free block_map.
12975 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12976 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12977 followed by any real instructions.
12978 (dwarf2out_begin_function): Set call_site_count and
12979 tail_call_site_count to 0.
12980 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12981 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12982 attempt to force a DIE for it and worst case remove the attribute.
12983 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12984 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12985 the decl itself.
12986 * var-tracking.c: Include tm_p.h.
12987 (vt_stack_adjustments): For calls call note_register_arguments.
12988 (argument_reg_set): New variable.
12989 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12990 ensure the VALUE is resolved.
12991 (call_arguments): New variable.
12992 (prepare_call_arguments): New function.
12993 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12994 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12995 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12996 always use the best expression.
12997 (vt_expand_loc): Add ignore_cur_loc argument.
12998 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12999 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13000 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13001 note for all calls.
13002 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13003 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13004 argument. Don't call cselib_preserve_only_values and
13005 cselib_reset_table.
13006 (note_register_arguments): New function.
13007 (vt_initialize): Compute argument_reg_set. Call
13008 vt_add_function_parameters before processing basic blocks instead of
13009 afterwards. For calls call prepare_call_arguments before calling
13010 cselib_process_insn.
13011 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13012 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13013 (var-tracking.o): Depend on $(TM_P_H).
13014 * cfglayout.h (insn_scope): New prototype.
13015 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13016 * cfglayout.c (insn_scope): No longer static.
13017 * insn-notes.def (CALL_ARG_LOCATION): New.
13018 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13019 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13020 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13021 nothing for DECL_EXTERNAL BLOCK_VARS.
13022
13023 2011-03-16 Alan Modra <amodra@gmail.com>
13024
13025 PR target/45844
13026 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13027 create invalid offset address for vsx splat insn.
13028 * config/rs6000/predicates.md (splat_input_operand): New.
13029 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13030
13031 2011-03-15 Xinliang David Li <davidxl@google.com>
13032
13033 PR c/47837
13034 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13035 (normalize_preds): New function.
13036 (is_use_properly_guarded): Normalize def predicates.
13037
13038 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13039
13040 PR target/46788
13041 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13042 in the output template.
13043
13044 2011-03-15 Richard Guenther <rguenther@suse.de>
13045
13046 PR middle-end/47650
13047 * tree-pretty-print.c (dump_function_declaration): Properly
13048 dump unprototyped and varargs function types.
13049
13050 2011-03-15 Richard Guenther <rguenther@suse.de>
13051
13052 PR tree-optimization/13954
13053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13054 and friends.
13055
13056 2011-03-15 Richard Guenther <rguenther@suse.de>
13057
13058 PR tree-optimization/48037
13059 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13060 selects into BIT_FIELD_REFs.
13061 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13062 vector select.
13063
13064 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13065
13066 PR tree-optimization/48129
13067 * builtins.c (fold_builtin_snprintf): Convert to type of
13068 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13069 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13070
13071 2011-03-15 Richard Guenther <rguenther@suse.de>
13072
13073 PR tree-optimization/41490
13074 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13075 value but with VUSE.
13076 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13077 return statements.
13078 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13079 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13080 * tree-tailcall.c (find_tail_calls): Ignore returns.
13081
13082 2011-03-15 Richard Guenther <rguenther@suse.de>
13083
13084 PR middle-end/48031
13085 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13086 or variable-indexed array accesses when in gimple form.
13087
13088 2011-03-15 Richard Guenther <rguenther@suse.de>
13089
13090 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13091
13092 2011-03-15 Alan Modra <amodra@gmail.com>
13093
13094 PR target/48032
13095 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13096 presume symbol_refs without a symbol_ref_decl are suitably
13097 aligned, nor other trees we may see here. Handle anchor symbols.
13098 (legitimate_constant_pool_address_p): Comment. Add mode param.
13099 Check cmodel=medium addresses. Adjust all calls.
13100 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13101 creating cmodel=medium optimized access to locals.
13102 * config/rs6000/constraints.md (R): Pass QImode to
13103 legitimate_constant_pool_address_p.
13104 * config/rs6000/predicates.md (input_operand): Pass mode to
13105 legitimate_constant_pool_address_p.
13106 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13107 Update prototype.
13108
13109 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13110
13111 PR target/48053
13112 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13113 64-bit constants being loaded into registers other than GPRs such
13114 as loading 0 into a VSX register.
13115
13116 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13117
13118 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13119
13120 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13121
13122 PR middle-end/47917
13123 * builtins.c (fold_builtin_snprintf): New function.
13124 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13125 (fold_builtin_4): Likewise.
13126
13127 PR middle-end/38878
13128 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13129 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13130 and C - X == X also strip nops from +/-/p+ operand.
13131 When optimizing -X == C, fold C to arg0's type.
13132
13133 PR debug/47946
13134 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13135 emit it as add_AT_int instead of add_AT_unsigned.
13136
13137 2011-03-14 Tom Tromey <tromey@redhat.com>
13138
13139 * unwind-dw2.c: Include sys/sdt.h if it exists.
13140 (_Unwind_DebugHook): Use STAP_PROBE2.
13141 * config.in, configure: Rebuild.
13142 * configure.ac: Check for sys/sdt.h.
13143
13144 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13145
13146 * config/i386/i386.md (ROUND_FLOOR): New constant.
13147 (ROUND_CEIL): Ditto.
13148 (ROUND_TRUNC): Ditto.
13149 (ROUND_MXCSR): Ditto.
13150 (ROUND_NO_EXC): Ditto.
13151 (rint<mode>2): Use new defines instead of numerical constants.
13152 (floor<mode>2): Ditto.
13153 (ceil<mode>2): Ditto.
13154 (btrunc<mode>2): Ditto.
13155 * config/i386/i386-builtin-types.def: Define ROUND function type
13156 aliases.
13157 * config/i386/i386.c (enum ix86_builtins): Add
13158 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13159 (struct builtin_description): Add
13160 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13161 (ix86_expand_sse_round): New static function.
13162 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13163 function types.
13164 (ix86_builtin_vectorized_function): Handle
13165 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13166
13167 2011-03-14 Tom Tromey <tromey@redhat.com>
13168
13169 * c-parser.c (c_parser_asm_string_literal): Clear
13170 warn_overlength_strings.
13171
13172 2011-03-14 Tom Tromey <tromey@redhat.com>
13173
13174 * c-parser.c (disable_extension_diagnostics): Save
13175 warn_overlength_strings.
13176 (restore_extension_diagnostics): Restore warn_overlength_strings.
13177
13178 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13179
13180 * BASE-VER: Change to 4.7.0.
13181
13182 2011-03-14 Richard Guenther <rguenther@suse.de>
13183
13184 PR middle-end/48098
13185 * tree.c (build_vector_from_val): Adjust assert to requirements
13186 and reality.
13187
13188 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13189
13190 PR bootstrap/48102
13191 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13192
13193 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13194
13195 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13196 terms of target_flags_explicit. Adjust copyright year.
13197
13198 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13199 * config/rs6000/t-freebsd: New file. Add override for
13200 LIB2FUNCS_EXTRA.
13201
13202 2011-03-13 Chris Demetriou <cgd@google.com>
13203
13204 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13205 (-fno-diagnostics-show-option): this, to reflect current default.
13206 (-Werror=): Update text about -fno-diagnostics-show-option.
13207
13208 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13209
13210 PR target/48053
13211 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13212 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13213 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13214 mode is not V2DImode or V2DFmode.
13215 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13216 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13217 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13218 registers to 0.
13219 (movdi_internal64): Likewise.
13220
13221 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13222
13223 PR tree-optimization/47127
13224 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13225 parameter.
13226 (set_cloog_options): Same.
13227 (scop_to_clast): Same.
13228 (print_clast_stmt): Do not call cloog_state_malloc and
13229 cloog_state_free.
13230 (print_generated_program): Same.
13231 (gloog): Same.
13232 * graphite-clast-to-gimple.h (cloog_state): Declared.
13233 (scop_to_clast): Adjust declaration.
13234 * graphite.c (cloog_state): Defined here.
13235 (graphite_initialize): Call cloog_state_malloc.
13236 (graphite_finalize): Call cloog_state_free.
13237
13238 2011-03-11 Jason Merrill <jason@redhat.com>
13239
13240 * attribs.c (lookup_attribute_spec): Take const_tree.
13241 * tree.h: Adjust.
13242
13243 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13244
13245 * config/sparc/sparc.c (sparc_option_override): Use
13246 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13247
13248 2011-03-11 Richard Guenther <rguenther@suse.de>
13249
13250 PR tree-optimization/48067
13251 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13252 multiplication result will be only used once on the target
13253 stmt.
13254
13255 2011-03-11 Richard Guenther <rguenther@suse.de>
13256
13257 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13258
13259 2011-03-11 Richard Guenther <rguenther@suse.de>
13260
13261 PR lto/48073
13262 * tree.c (find_decls_types_r): Do not walk types only reachable
13263 from IDENTIFIER_NODEs.
13264
13265 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13266
13267 PR middle-end/48044
13268 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13269 all vnode->force_output nodes as needed.
13270
13271 2011-03-11 Jason Merrill <jason@redhat.com>
13272
13273 PR c++/48069
13274 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13275 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13276
13277 2011-03-11 Martin Jambor <mjambor@suse.cz>
13278
13279 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13280 cgraph_node.
13281
13282 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13283
13284 PR tree-optimization/48063
13285 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13286 inline functions called once if !tree_can_inline_p (node->callers).
13287
13288 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13289
13290 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13291 extra_objs.
13292 * config/score/score3.c: Delete.
13293 * config/score/score3.h: Delete.
13294 * config/score/mul-div.S: Delete.
13295 * config/score/sfp-machine.h: Add new file.
13296 * config/score/constraints.md: Add new file.
13297 * config/score/t-score-softfp: Add new file.
13298 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13299 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13300 (score7_extra_constraint): Delete.
13301 (score7_option_override): Remove unused code.
13302 * config/score/score.c: Remove score3 and score5 define and code.
13303 * config/score/score.h: Remove score3 and score5 define and code.
13304 * config/score/score.md: Remove score3 template and unusual insn.
13305 * config/score/score.opt: Remove score3 and score5 options.
13306
13307 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13308
13309 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13310 when _HPUX_SOURCE is defined.
13311 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13312
13313 2011-03-10 Jason Merrill <jason@redhat.com>
13314
13315 PR c++/48029
13316 * stor-layout.c (layout_type): Don't set structural equality
13317 on arrays of incomplete type.
13318 * tree.c (type_hash_eq): Handle comparing them properly.
13319
13320 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13321
13322 PR debug/48043
13323 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13324 result mode matches original rtl mode.
13325
13326 2011-03-10 Nick Clifton <nickc@redhat.com>
13327
13328 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13329 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13330
13331 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13332
13333 PR rtl-optimization/47866
13334 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13335 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13336 if target wasn't scalar.
13337 * function.c (assign_stack_temp_for_type): Assert that neither
13338 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13339 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13340 macro.
13341 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13342
13343 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13344
13345 * config/s390/s390-protos.h (s390_label_align): New prototype.
13346 * config/s390/s390.c (s390_label_align): New function.
13347 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13348
13349 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13350
13351 PR target/47755
13352 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13353 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13354 (output_vec_const_move): Ditto.
13355
13356 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13357
13358 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13359 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13360 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13361 Change 'rclass' argument and result type to reg_class_t.
13362 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13363
13364 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13365
13366 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13367 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13368 (TARGET_MEMORY_MOVE_COST): Define.
13369 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13370
13371 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13372
13373 PR debug/47881
13374 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13375 removed anything.
13376
13377 PR tree-optimization/48022
13378 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13379 for EQ/NE_EXPR.
13380
13381 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13382
13383 PR debug/47991
13384 * var-tracking.c (find_use_val): Return NULL for
13385 cui->sets && cui->store_p BLKmode MEMs.
13386
13387 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13388
13389 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13390 Remove.
13391 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13392 xstormy16_print_operand_address): Remove.
13393 * config/stormy16/stormy16.c (xstormy16_print_operand,
13394 xstormy16_print_operand_address): Make static.
13395 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13396
13397 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13398
13399 PR target/47862
13400 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13401 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13402 before definition.
13403
13404 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13405
13406 PR bootstrap/48000
13407 * cfgloopmanip.c (fix_bb_placements): Return immediately
13408 if FROM is BASE_LOOP's header.
13409
13410 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13411
13412 * gimplify.c (gimplify_function_tree): Fix building calls
13413 to __builtin_return_address.
13414
13415 2011-03-07 Alan Modra <amodra@gmail.com>
13416
13417 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13418 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13419 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13420 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13421 return_mode args.
13422 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13423 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13424 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13425 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13426 * config/rs6000/rs6000.c
13427 (rs6000_elf_end_indicate_exec_stack): Rename to..
13428 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13429 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13430 (rs6000_file_start): ..here.
13431 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13432 file scope variables.
13433 (call_ABI_of_interest): New function.
13434 (init_cumulative_args): Set above vars when function return value
13435 is a float, vector, or small struct.
13436 (rs6000_function_arg_advance_1): Likewise for function args.
13437 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13438 references float args.
13439
13440 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13441
13442 * doc/cfg.texi: Remove "See" before @ref.
13443 * doc/invoke.texi: Likewise.
13444
13445 2011-03-05 Jason Merrill <jason@redhat.com>
13446
13447 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13448
13449 2011-03-05 Anthony Green <green@moxielogic.com>
13450
13451 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13452
13453 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13454
13455 PR rtl-optimization/47899
13456 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13457 to flow_loop_nested_p when moving the loop upward.
13458
13459 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13460
13461 PR target/47719
13462 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13463
13464 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13465
13466 PR tree-optimization/47967
13467 * ipa-cp.c (build_const_val): Return NULL instead of creating
13468 VIEW_CONVERT_EXPR for mismatching sizes.
13469 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13470 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13471 give up on versioning.
13472
13473 2011-03-05 Alan Modra <amodra@gmail.com>
13474
13475 PR target/47986
13476 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13477 full cmodel medium/large lo_sum + high addresses.
13478
13479 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13480
13481 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13482 pool references in UNSPEC_LTREL_OFFSET.
13483
13484 2011-03-04 Jan Hubicka <jh@suse.cz>
13485
13486 PR lto/47497
13487 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13488 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13489 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13490 Add node pointers.
13491 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13492 cgraph_add_thunk): Add node pointers.
13493 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13494 associated to right node.
13495 (input_node): Update use of cgraph_same_body_alias
13496 and cgraph_add_thunk.
13497
13498 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13499
13500 * config/i386/i386.opt (mprefer-avx128): New flag.
13501 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13502 modes when the flag -mprefer-avx128 is on.
13503
13504 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13505
13506 * dwarf2out.c (compare_loc_operands): Fix address handling.
13507
13508 2011-03-04 Alan Modra <amodra@gmail.com>
13509
13510 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13511
13512 2011-03-04 Richard Guenther <rguenther@suse.de>
13513
13514 PR middle-end/47968
13515 * expmed.c (extract_bit_field_1): Prefer vector modes that
13516 vec_extract patterns can handle.
13517
13518 2011-03-04 Richard Guenther <rguenther@suse.de>
13519
13520 PR middle-end/47975
13521 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13522
13523 2011-03-04 Richard Henderson <rth@redhat.com>
13524
13525 * explow.c (emit_stack_save): Remove 'after' parameter.
13526 (emit_stack_restore): Likewise.
13527 * expr.h: Update to match.
13528 * builtins.c, calls.c, stmt.c: Likewise.
13529 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13530 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13531 * function.c (expand_function_end): Insert the emit_stack_save
13532 sequence before parm_birth_insn instead of after.
13533
13534 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13535
13536 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13537 (ssse3_pmaddubsw128): Ditto.
13538 (ssse3_pmaddubsw): Ditto.
13539
13540 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13541
13542 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13543
13544 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13545
13546 PR c/47963
13547 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13548 on TYPE_SIZE_UNIT if it is a DECL.
13549
13550 PR debug/47283
13551 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13552 first operand is not is_gimple_mem_ref_addr, try to fold it.
13553 If the operand still isn't is_gimple_mem_ref_addr, clear
13554 MEM_EXPR on op0.
13555
13556 2011-03-03 Richard Guenther <rguenther@suse.de>
13557
13558 PR middle-end/47283
13559 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13560 match comment.
13561 (refs_may_alias_p_1): For release branches return true if
13562 we are confused by our input.
13563
13564 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13565
13566 * config/s390/s390.c (s390_function_value): Rename to ...
13567 (s390_function_and_libcall_value): ... this.
13568 (s390_function_value): New function.
13569 (s390_libcall_value): New function.
13570 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13571 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13572 target macro definitions.
13573 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13574
13575 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13576
13577 * config/i386/freebsd64.h (CC1_SPEC): Define.
13578 * config/i386/linux64.h (CC1_SPEC): Define.
13579 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13580
13581 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13582
13583 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13584 Remove.
13585 * config/stormy16/stormy16.c: Include reload.h.
13586 (xstormy16_memory_move_cost): New function.
13587 (TARGET_MEMORY_MOVE_COST): Define.
13588
13589 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13590
13591 PR rtl-optimization/47925
13592 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13593 with side effects. Remove the more-specific check for volatile asms.
13594
13595 2011-03-02 Alan Modra <amodra@gmail.com>
13596
13597 PR target/47935
13598 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13599 toc relative addresses for valid offsets.
13600
13601 2011-03-01 Richard Guenther <rguenther@suse.de>
13602
13603 PR tree-optimization/47890
13604 * tree-vect-loop.c (get_initial_def_for_induction): Set
13605 related stmt properly.
13606
13607 2011-03-01 Richard Guenther <rguenther@suse.de>
13608
13609 PR lto/47924
13610 * lto-streamer.c (lto_record_common_node): Also register
13611 the canonical type.
13612
13613 2011-03-01 Richard Guenther <rguenther@suse.de>
13614
13615 PR lto/46911
13616 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13617 Do not stream DECL_ABSTRACT_ORIGIN.
13618 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13619 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13620 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13621 Do not stream DECL_ABSTRACT_ORIGIN.
13622 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13623 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13624
13625 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13626
13627 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13628 FUNCTION_VALUE_REGNO_P): Remove.
13629 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13630 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13631 Add 'outgoing' argument.
13632 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13633 function.
13634 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13635 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13636
13637 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13638
13639 PR debug/28047
13640 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13641 (lookup_filename): Likewise.
13642 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13643
13644 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13645 Jakub Jelinek <jakub@redhat.com>
13646
13647 PR middle-end/47893
13648 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13649 (assign_stack_local_1): Change last argument type to int.
13650 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13651 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13652 don't record padding space into frame_space_list nor use those areas.
13653 (assign_stack_local): Adjust caller.
13654 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13655 of assign_stack_local, pass 0 as last argument.
13656 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13657 callers.
13658
13659 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13660
13661 PR debug/47283
13662 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13663 Use target address_mode and pointer_mode hooks instead of hardcoded
13664 Pmode and ptr_mode. Handle some simple cases of extending if
13665 POINTERS_EXTEND_UNSIGNED < 0.
13666 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13667 Call convert_debug_memory_address.
13668 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13669 convert_debug_memory_address.
13670
13671 PR middle-end/46790
13672 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13673 * configure: Regenerated.
13674 * config.in: Regenerated.
13675 * varasm.c (default_function_section): Return NULL
13676 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13677
13678 2011-02-28 Martin Jambor <mjambor@suse.cz>
13679
13680 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13681 the description to match the printed values.
13682
13683 2011-02-28 Richard Guenther <rguenther@suse.de>
13684
13685 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13686 of the copied scope tree.
13687
13688 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13689
13690 * doc/extend.texi (Function Attributes): Avoid deeply (and
13691 wrongly) nested tables.
13692
13693 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR middle-end/47903
13696 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13697 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13698 r isn't op0 nor op1.
13699
13700 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13701
13702 * config/avr/avr.md: Remove magic comment for emacs.
13703
13704 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13705
13706 PR target/45261
13707 * config/avr/avr.c (avr_option_override): Use error on bad options.
13708 (avr_help): New function.
13709 (TARGET_HELP): Define.
13710
13711 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13712
13713 PR target/42240
13714 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13715 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13716
13717 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13718
13719 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13720 (ARM Options): Ditto.
13721 (i386 and x86-64 Options): Ditto.
13722 (RX Options): Ditto.
13723 (SPARC Options): Ditto.
13724
13725 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13726
13727 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13728 FreeBSD 6 and later. Generally use cpu generic.
13729
13730 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13731
13732 * doc/cpp.texi: Update copyright years.
13733
13734 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13735
13736 PR target/46898
13737 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13738
13739 2011-02-25 Jon Beniston <jon@beniston.com>
13740
13741 PR target/46898
13742 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13743 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13744 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13745 (lm32_block_move_inline): Add type cast to remove warning.
13746 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13747 (gen_int_relational): Move declarations to start of function.
13748
13749 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13750
13751 PR tree-optimization/45470
13752 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13753 can throw internally only.
13754 * tree-vect-stmts.c (vectorizable_call): Likewise.
13755
13756 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13757
13758 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13759 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13760 * config/stormy16/stormy16-protos.h
13761 (xstormy16_preferred_reload_class): Remove.
13762 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13763 static. Change 'rclass' argument and return type to reg_class_t.
13764 (TARGET_PREFERRED_RELOAD_CLASS,
13765 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13766
13767 2011-02-24 Richard Guenther <rguenther@suse.de>
13768
13769 * lto-streamer-in.c (input_bb): Do not find referenced vars
13770 in debug statements.
13771
13772 2011-02-23 Jason Merrill <jason@redhat.com>
13773
13774 * common.opt (fabi-version): Document v5 and v6.
13775
13776 2011-02-23 Richard Guenther <rguenther@suse.de>
13777
13778 PR tree-optimization/47849
13779 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13780
13781 2011-02-23 Jie Zhang <jie@codesourcery.com>
13782
13783 * opts-common.c (decode_cmdline_option): Print empty string
13784 argument as "" in decoded->orig_option_with_args_text.
13785 * gcc.c (execute): Print empty string argument as ""
13786 in the verbose output.
13787 (do_spec_1): Keep empty string argument.
13788
13789 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13790
13791 * config.gcc: Declare score-* and crx-* obsolete.
13792
13793 2011-02-23 Jie Zhang <jie@codesourcery.com>
13794
13795 PR rtl-optimization/47763
13796 * web.c (web_main): Ignore naked clobber when replacing register.
13797
13798 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13799
13800 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13801 Remove.
13802
13803 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13804
13805 PR doc/47848
13806 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13807
13808 2011-02-22 Mike Stump <mikestump@comcast.net>
13809
13810 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13811 assembler.
13812 * configure: Regenerate.
13813
13814 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13815
13816 PR rtl-optimization/46002
13817 * ira-color.c (update_copy_costs): Change class intersection
13818 test to reg_class_contents[] test of 'hard_regno'.
13819
13820 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13821
13822 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13823 than Driver option.
13824 * config/hpux11.opt (mt): Likewise.
13825 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13826 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13827 * config/vax/elf.opt (mno-asm-pic): Likewise.
13828 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13829
13830 2011-02-21 Mike Stump <mikestump@comcast.net>
13831
13832 PR target/47822
13833 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13834 tree so we can get save the type.
13835 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13836 for CFString instead of trying to use past the end of the builtins.
13837 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13838 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13839 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13840 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13841 Rename to darwin_builtin_cfstring.
13842 (darwin_init_cfstring_builtins): Return the built type.
13843
13844 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13845
13846 PR target/47840
13847 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13848 (_mm256_insert_epi64): Use _mm_insert_epi64.
13849
13850 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13851
13852 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13853 * config/stormy16/stormy16-protos.h
13854 (xstormy16_mode_dependent_address_p): Remove.
13855 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13856 Make static. Change return type to bool. Change argument type to
13857 const_rtx. Remove dead code.
13858 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13859
13860 2011-02-21 Richard Guenther <rguenther@suse.de>
13861
13862 PR lto/47820
13863 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13864 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13865 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13866 TUs context.
13867 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13868 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13869
13870 2011-02-20 Richard Guenther <rguenther@suse.de>
13871
13872 PR lto/47822
13873 * tree.c (free_lang_data_in_decl): Clean builtins from
13874 the TU decl BLOCK_VARS.
13875
13876 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13877
13878 PR debug/47620
13879 PR debug/47630
13880 * haifa-sched.c (fix_tick_ready): Skip tick computation
13881 for debug insns.
13882
13883 2011-02-19 Richard Guenther <rguenther@suse.de>
13884
13885 PR lto/47647
13886 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13887 Remove lazy BLOCK_VARS streaming.
13888 (lto_input_ts_block_tree_pointers): Likewise.
13889 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13890
13891 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13892
13893 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13894
13895 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13896
13897 * config/i386/biarch32.h, config/i386/mach.h,
13898 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13899
13900 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13901
13902 PR target/47800
13903 * config/i386/i386.md (peephole2 for shift and plus): Use
13904 operands[1] original mode in the first insn.
13905
13906 2011-02-18 Mike Stump <mikestump@comcast.net>
13907
13908 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13909
13910 2011-02-18 Jan Hubicka <jh@suse.cz>
13911
13912 PR middle-end/47788
13913 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13914 to zero when the function is not inlinable at all.
13915
13916 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13917
13918 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13919 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13920 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13921 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13922 * config/pa/t-pa64: Likewise.
13923 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13924
13925 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13926
13927 PR driver/47787
13928 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13929
13930 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13931
13932 PR target/47792
13933 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13934
13935 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13936
13937 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13938 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13939 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13940 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13941 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13942 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13943 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13944 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13945 m32r_legitimate_address_p): New functions.
13946 * config/m32r/constraints.md (constraint "S"): Don't use
13947 STORE_PREINC_PREDEC_P.
13948 (constraint "U"): Don't use LOAD_POSTINC_P.
13949
13950 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13951
13952 PR rtl-optimization/46178
13953 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13954 compute ira_hard_regno_cover_class[].
13955
13956 2011-02-18 Richard Guenther <rguenther@suse.de>
13957
13958 PR lto/47798
13959 * lto-streamer.h (lto_global_var_decls): Declare.
13960 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13961 statics for global var processing.
13962
13963 2011-02-18 Richard Guenther <rguenther@suse.de>
13964
13965 PR tree-optimization/47737
13966 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13967 edge dominance check.
13968
13969 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13970
13971 PR debug/47780
13972 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13973 avoid invalid rtx sharing.
13974
13975 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13976
13977 * doc/cpp.texi (Obsolete Features): Add background on the
13978 origin of assertions.
13979
13980 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13981
13982 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13983 objc_abi == 2.
13984 * config/darwin.c (output_objc_section_asm_op): Added support for
13985 ABI v1 and v2.
13986 (is_objc_metadata): New.
13987 (darwin_objc2_section): New.
13988 (darwin_objc1_section): New.
13989 (machopic_select_section): Added support for ABI v1 and v2.
13990 (darwin_emit_objc_zeroed): New.
13991 (darwin_output_aligned_bss): Detect objc metadata and treat it
13992 appropriately.
13993 (darwin_asm_output_aligned_decl_common): Same.
13994 (darwin_asm_output_aligned_decl_local): Same.
13995 * config/darwin-sections.def: Updated for ABI v1 and v2.
13996 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13997 compiling Objective-C code for the NeXT runtime, default to using
13998 ABI version 0 for 32-bit, and version 2 for 64-bit.
13999
14000 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14001
14002 * common.opt (optimize_fast): New Variable.
14003 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14004 instead of local variable ofast.
14005
14006 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14007
14008 * doc/invoke.texi (fobjc-abi-version): Documented.
14009 (fobjc-nilcheck): Documented.
14010 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14011 version.
14012
14013 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14014
14015 PR driver/47390
14016 * common.opt (export-dynamic): New Driver option.
14017 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14018
14019 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14020
14021 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14022
14023 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14024 Jan Hubicka <jh@suse.cz>
14025
14026 PR debug/47106
14027 PR debug/47402
14028 * cfgexpand.c (account_used_vars_for_block): Remove.
14029 (estimated_stack_frame_size): Use referenced vars.
14030 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14031 that were referenced in the original function. Test src_fn
14032 rather than cfun. Drop redundant get_var_ann.
14033 (setup_one_parameter): Drop redundant get_var_ann.
14034 (declare_return_variable): Likewise.
14035 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14036 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14037 * ipa-inline.c (compute_inline_parameters): Do not compute
14038 disregard_inline_limits here.
14039 (compute_inlinable_for_current, pass_inlinable): New.
14040 (pass_inline_parameters): Require PROP_referenced_vars.
14041 * cgraphunit.c (cgraph_process_new_functions): Don't run
14042 compute_inline_parameters explicitly unless function is in SSA form.
14043 (cgraph_analyze_function): Set .disregard_inline_limits.
14044 * tree-sra.c (convert_callers): Compute inliner parameters
14045 only for functions already in SSA form.
14046
14047 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14048
14049 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14050 -mlittle-endian-data.
14051
14052 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14053
14054 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14055 -mno-fpu, not -fpu and -no-fpu.
14056 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14057 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14058
14059 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14060
14061 PR target/43653
14062 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14063 input reload with PLUS RTX.
14064
14065 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14066
14067 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14068 of InverseVar(MDMX).
14069
14070 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14071
14072 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14073 --m4-340.
14074
14075 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14076
14077 * config/mn10300/mn10300.opt (mno-crt0): New.
14078
14079 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14080
14081 * config/m68k/uclinux.opt (static-libc): New Driver option.
14082
14083 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14084
14085 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14086
14087 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14088
14089 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14090 %{muser-extend-enabled}.
14091
14092 2011-02-16 Richard Guenther <rguenther@suse.de>
14093
14094 PR tree-optimization/47738
14095 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14096 the TODO from tree_predictive_commoning.
14097
14098 2011-02-15 Jeff Law <law@redhat.com>
14099
14100 Revert
14101 2011-01-25 Jeff Law <law@redhat.com>
14102
14103 PR rtl-optimization/37273
14104 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14105 handle them like argument loads from stack slots. Do not double
14106 count memory for memory constants and argument loads from stack slots.
14107
14108 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14109
14110 PR middle-end/47725
14111 * combine.c (cant_combine_insn_p): Revert the last change.
14112
14113 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14114
14115 PR target/47755
14116 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14117 mode for vector constants. Remove code that checks for TImode.
14118
14119 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14120
14121 PR debug/47106
14122 PR debug/47402
14123 * cgraph.h (compute_inline_parameters): Return void.
14124 * ipa-inline.c (compute_inline_parameters): Adjust.
14125
14126 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14127
14128 PR debug/47106
14129 PR debug/47402
14130 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14131 rather than decl.
14132 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14133 * ipa-inline.c (compute_inline_parameters): Adjust.
14134
14135 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14136
14137 PR debug/47106
14138 PR debug/47402
14139 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14140 Adjust all users. Pass FN to...
14141 * tree-flow-inline.h (first_referenced_var): ... this. Add
14142 fn argument.
14143 * ipa-struct-reorg.c: Adjust.
14144 * tree-dfa.c: Adjust.
14145 * tree-into-ssa.c: Adjust.
14146 * tree-sra.c: Adjust.
14147 * tree-ssa-alias.c: Adjust.
14148 * tree-ssa-live.c: Adjust.
14149 * tree-ssa.c: Adjust.
14150 * tree-ssanames.c: Adjust.
14151 * tree-tailcall.c: Adjust.
14152
14153 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14154
14155 PR debug/47106
14156 PR debug/47402
14157 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14158 Adjust all callers.
14159 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14160 * tree-flow-inline.h: Adjust.
14161 * gimple-pretty-print.c: Adjust.
14162 * tree-into-ssa.c: Adjust.
14163 * tree-ssa.c: Adjust.
14164 * cfgexpand.c: Adjust.
14165
14166 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14167
14168 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14169 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14170 (EXTRA_CONSTRAINT): Delete.
14171 * config/iq2000/constraints.md: New file.
14172 * config/iq2000/iq2000.md: Include it.
14173 (define_insn ""): Delete.
14174 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14175 unsupported constraint letters from patterns.
14176 (call_value, call_value_internal1): Likewise.
14177 (call_value_multiple_internal1): Likewise.
14178
14179 2011-02-15 Nick Clifton <nickc@redhat.com>
14180
14181 * config/mn10300/mn10300.c: Include tm-constrs.h.
14182 (struct liw_data): New data structure describing an LIW candidate
14183 instruction.
14184 (extract_bundle): Use struct liw_data. Allow small integer
14185 operands for some instructions.
14186 (check_liw_constraints): Use struct liw_data. Remove swapped
14187 parameter. Add comments describing the checks. Fix bug when
14188 assigning the source of liw1 to the source of liw2.
14189 (liw_candidate): Delete. Code moved into extract_bundle.
14190 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14191 before swapping.
14192 * config/mn10300/predicates.md (liw_operand): New predicate.
14193 Allows registers and small integer constants.
14194 * config/mn10300/constraints.md (O): New constraint. Accetps
14195 integers in the range -8 to +7 inclusive.
14196 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14197 for moving a small integer into a register. Give this alternative
14198 LIW attributes.
14199 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14200 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14201 using the J,K,L and M constraints,
14202 (liw): Remove SI mode on second operands to allow for HI and QI
14203 mode values.
14204 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14205 instruction.
14206
14207 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14208
14209 PR middle-end/47725
14210 * combine.c (cant_combine_insn_p): Check zero/sign extended
14211 hard registers.
14212
14213 2011-02-15 Richard Guenther <rguenther@suse.de>
14214
14215 PR tree-optimization/47743
14216 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14217 for a non-type-compatible VN lookup bail out.
14218
14219 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14220
14221 * config/fr30/constraints.md: New file.
14222 * config/fr30/fr30.md: Include it.
14223 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14224 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14225 (EXTRA_CONSTRAINT): Delete.
14226
14227 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14228
14229 * config/frv/constraints.md: New file.
14230 * config/frv/predicates.md: Include it.
14231 * config/frv/frv.c (reg_class_from_letter): Delete.
14232 (frv_option_override): Don't initialize it.
14233 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14234 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14235 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14236 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14237 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14238 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14239 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14240 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14241 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14242 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14243 (REG_CLASS_FROM_CONSTRAINT): Delete.
14244
14245 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14246
14247 PR middle-end/47581
14248 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14249 if frame size is 0 in a leaf function.
14250
14251 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14252
14253 PR pch/14940
14254 * config/alpha/host-osf.c: New file.
14255 * config/alpha/x-osf: New file.
14256 * config.host (alpha*-dec-osf*): Use it.
14257
14258 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14259
14260 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14261 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14262 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14263 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14264 type to const_rtx.
14265 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14266
14267 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14268
14269 * config/stormy16/constraints.md: New file.
14270 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14271 Use satisfies_constraint_Q and satisfies_constraint_R.
14272 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14273 Delete.
14274 (xstormy16_legitiamte_address_p): Declare.
14275 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14276 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14277 (EXTRA_CONSTRAINT): Delete.
14278 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14279 Un-staticize.
14280 (xstormy16_extra_constraint_p): Delete.
14281
14282 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14283
14284 PR tree-optimization/46494
14285 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14286 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14287 (pass_rtl_loop_done): Add TODO_verify_flow.
14288 * fwprop.c (pass_rtl_fwprop): Likewise.
14289 * modulo-sched.c (pass_sms): Likewise.
14290 * tree-ssa-dom.c (pass_dominator): Likewise.
14291 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14292 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14293 (pass_tree_loop_done): Likewise.
14294 * tree-ssa-pre.c (execute_pre): Likewise.
14295 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14296 * tree-ssa-sink.c (pass_sink_code): Likewise.
14297 * tree-vrp.c (pass_vrp): Likewise.
14298
14299 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14300
14301 * config/v850/constraints.md: New file.
14302 * config/v850/v850.md: Include it.
14303 * config/v850/predicates.md (reg_or_0_operand): Use
14304 satisfies_constraint_G.
14305 (special_symbolref_operand): Use satisfies_constraint_K.
14306 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14307 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14308 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14309 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14310 (EXTRA_CONSTRAINT): Delete.
14311 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14312 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14313 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14314
14315 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14316
14317 PR target/47696
14318 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14319 description.
14320
14321 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14322
14323 * config/mcore/constraints.md: New file.
14324 * config/mcore/mcore.md: Include it.
14325 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14326 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14327 (REG_CLASS_FROM_LETTER): Delete.
14328 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14329 insn_const_int_ok_for_constraint.
14330 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14331 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14332 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14333 (EXTRA_CONSTRAINT): Delete.
14334
14335 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14336
14337 PR ada/41929
14338 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14339 (IS_SIGHANDLER): Define.
14340 (sparc64_is_sighandler): New function, split off from
14341 sparc64_fallback_frame_state.
14342 (sparc_is_sighandler): New function, split off from
14343 sparc_fallback_frame_state.
14344 (sparc64_fallback_frame_state): Merge with ...
14345 (sparc_fallback_frame_state): ... this into ...
14346 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14347 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14348 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14349 stack instead of hardcoded offsets.
14350
14351 2011-02-14 Andriy Gapon <avg@freebsd.org>
14352
14353 PR target/45808
14354 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14355
14356 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14357
14358 * configure: Regenerate.
14359
14360 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14361
14362 PR driver/45731
14363 * gcc.c (asm_options): Correct spec matching --target-help.
14364
14365 2011-02-12 Martin Jambor <mjambor@suse.cz>
14366
14367 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14368 to gimple call error.
14369
14370 2011-02-12 Mike Stump <mikestump@comcast.net>
14371
14372 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14373 comments in backslash regions.
14374
14375 2011-02-12 Mike Stump <mikestump@comcast.net>
14376 Jakub Jelinek <jakub@redhat.com>
14377 Iain Sandoe <iains@gcc.gnu.org>
14378
14379 PR target/47324
14380 * dwarf2out.c (output_cfa_loc): When required, apply the
14381 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14382 (output_loc_sequence): Likewise.
14383 (output_loc_operands_raw): Likewise.
14384 (output_loc_sequence_raw): Likewise.
14385 (output_cfa_loc): Likewise.
14386 (output_loc_list): Suppress register number adjustment when
14387 calling output_loc_sequence()
14388 (output_die): Likewise.
14389
14390 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14391
14392 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14393 Remove macros.
14394 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14395 xtensa_memory_move_cost): New functions.
14396 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14397
14398 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14399
14400 PR lto/47225
14401 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14402 in the current directory.
14403 * configure: Rebuilt.
14404
14405 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14406
14407 * config/darwin.c (darwin_override_options): Add a hunk missed
14408 from the commit of r168571. Trim comment line lengths and
14409 correct indents of the preceding block.
14410
14411 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14412
14413 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14414 the switch.
14415
14416 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14417
14418 * common.opt (nostartfiles): New Driver option.
14419
14420 2011-02-11 Xinliang David Li <davidxl@google.com>
14421
14422 PR tree-optimization/47707
14423 * tree-chrec.c (convert_affine_scev): Keep type precision.
14424
14425 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14426
14427 PR tree-optimization/47420
14428 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14429
14430 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14431
14432 PR rtl-optimization/47614
14433 * rtl.h (check_for_inc_dec): Declare.
14434 * dse.c (check_for_inc_dec): Externalize...
14435 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14436 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14437
14438 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14439
14440 PR driver/47678
14441 * gcc.c (main): Do not compile inputs if there were errors in
14442 option handling.
14443 * opts-common.c (read_cmdline_option): Check for wrong language
14444 after other error checks.
14445
14446 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14447
14448 * cgraph.c: Fix comment typos.
14449 * cgraph.h: Likewise.
14450 * cgraphunit.c: Likewise.
14451 * ipa-cp.c: Likewise.
14452 * ipa-inline.c: Likewise.
14453 * ipa-prop.c: Likewise.
14454 * ipa-pure-const.c: Likewise.
14455 * ipa-ref.c: Likewise.
14456 * ipa-reference.c: Likewise.
14457
14458 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14459
14460 PR debug/47684
14461 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14462
14463 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14464
14465 PR testsuite/47400
14466 * doc/sourcebuild.texi (Require Support): Document
14467 dg-require-ascii-locale.
14468
14469 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14470
14471 * doc/lto.texi (Write summary): Fix missing parentheses.
14472
14473 2011-02-10 DJ Delorie <dj@redhat.com>
14474
14475 * config/m32c/m32c.c (m32c_option_override): Disable
14476 -fcombine-stack-adjustments until flag value tracking and compare
14477 optimization can be rewritten.
14478
14479 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14480
14481 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14482 PROCESSOR_POWER7.
14483 (PROCESSOR_DEFAULT64): Likewise.
14484
14485 2011-02-10 Richard Henderson <rth@redhat.com>
14486
14487 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14488 change from 2011-02-03.
14489 * config/rx/rx.c (flags_from_code): Likewise.
14490 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14491 is valid, n/pz otherwise.
14492 (rx_select_cc_mode): Return CCmode if Y is not zero.
14493
14494 2011-02-10 Richard Guenther <rguenther@suse.de>
14495
14496 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14497
14498 2011-02-10 Richard Guenther <rguenther@suse.de>
14499
14500 PR tree-optimization/47677
14501 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14502
14503 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14504
14505 PR target/47665
14506 * combine.c (make_compound_operation): Only change shifts into
14507 multiplication for SCALAR_INT_MODE_P.
14508
14509 2011-02-10 Jie Zhang <jie@codesourcery.com>
14510
14511 PR testsuite/47622
14512 Revert
14513 2011-02-05 Jie Zhang <jie@codesourcery.com>
14514 PR debug/42631
14515 * web.c (entry_register): Don't clobber the number of the
14516 first uninitialized reference in used[].
14517
14518 2011-02-09 Richard Guenther <rguenther@suse.de>
14519
14520 PR tree-optimization/47664
14521 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14522 all edges again.
14523
14524 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14525
14526 PR target/46481
14527 PR target/47032
14528 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14529 PROCESSOR_POWER7.
14530 (PROCESSOR_DEFAULT64): Same.
14531 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14532
14533 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14534
14535 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14536
14537 2011-02-09 Martin Jambor <mjambor@suse.cz>
14538
14539 PR middle-end/45505
14540 * tree-sra.c (struct access): New flags grp_scalar_read and
14541 grp_scalar_write. Changed description of assignment read and write
14542 flags.
14543 (dump_access): Dump new flags, reorder all of them.
14544 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14545 to detect multiple scalar reads.
14546 (analyze_access_subtree): Use the new scalar read write flags instead
14547 of the old flags. Adjusted comments.
14548
14549 2011-02-08 DJ Delorie <dj@redhat.com>
14550
14551 PR target/47548
14552 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14553 patterns.
14554
14555 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14556
14557 * config/m68k/uclinux.opt: New.
14558 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14559
14560 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14561
14562 * config/cris/elf.opt (sim): New Driver option.
14563
14564 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14565
14566 * config/xtensa/elf.opt: New.
14567 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14568
14569 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14570
14571 * config/vax/elf.opt: New.
14572 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14573
14574 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14575
14576 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14577
14578 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14579
14580 * config/gnu-user.opt: New.
14581 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14582 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14583 *-*-uclinux*): Use gnu-user.opt.
14584
14585 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14586
14587 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14588 * config/i386/gnu.h (CPP_SPEC): Likewise.
14589
14590 2011-02-08 Ian Lance Taylor <iant@google.com>
14591
14592 * common.opt (fcx-limited-range): Add SetByCombined flag.
14593 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14594 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14595 (fassociative-math, freciprocal-math): Likewise.
14596 (funsafe-math-optimizations): Likewise.
14597 * opth-gen.awk: Handle SetByCombined.
14598 * optc-gen.awk: Likewise.
14599 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14600 (set_unsafe_math_optimizations_flags): Likewise.
14601 * doc/options.texi (Option properties): Document SetByCombined.
14602
14603 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14604
14605 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14606 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14607 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14608 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14609 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14610
14611 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14612
14613 PR tree-optimization/46834
14614 PR tree-optimization/46994
14615 PR tree-optimization/46995
14616 * graphite-sese-to-poly.c (used_outside_reduction): New.
14617 (detect_commutative_reduction): Call used_outside_reduction.
14618 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14619 translate_scalar_reduction_to_array only when at least one
14620 loop-phi/close-phi tuple has been detected.
14621
14622 2011-02-08 Richard Guenther <rguenther@suse.de>
14623
14624 PR middle-end/47639
14625 * tree-vect-generic.c (expand_vector_operations_1): Update
14626 stmts here ...
14627 (expand_vector_operations): ... not here. Cleanup EH info
14628 and the CFG if required.
14629
14630 2011-02-08 Richard Guenther <rguenther@suse.de>
14631
14632 PR tree-optimization/47641
14633 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14634 require type compatibility.
14635
14636 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14637
14638 * gimple-low.c (lower_function_body): Don't remove the location of
14639 the return statement here.
14640 (lower_gimple_return): Do it here instead but only if the return
14641 statement is actually used twice.
14642
14643 2011-02-08 Richard Guenther <rguenther@suse.de>
14644
14645 PR tree-optimization/47632
14646 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14647 unused up_to_stmt parameter, return whether cfg-cleanup is
14648 necessary, remove EH info properly.
14649 (forward_propagate_into_gimple_cond): Adjust caller.
14650 (forward_propagate_into_cond): Likewise.
14651 (forward_propagate_comparison): Likewise.
14652 (tree_ssa_forward_propagate_single_use_vars): Make
14653 forward_propagate_comparison case similar to the two others.
14654
14655 2011-02-08 Nick Clifton <nickc@redhat.com>
14656
14657 * config/mn10300/mn10300.opt (mliw): New command line option.
14658 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14659 (liw_bundling): New automaton.
14660 (liw): New attribute.
14661 (liw_op): New attribute.
14662 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14663 (movsi_internal): Add LIW attributes.
14664 (andsi3): Likewise.
14665 (iorsi3): Likewise.
14666 (xorsi3): Likewise.
14667 (addsi3): Separate register and immediate alternatives.
14668 Add LIW attributes.
14669 (subsi3): Likewise.
14670 (cmpsi): Likewise.
14671 (aslsi3): Likewise.
14672 (lshrsi3): Likewise.
14673 (ashrsi3): Likewise.
14674 (liw): New pattern.
14675 * config/mn10300/mn10300.c (liw_op_names): New
14676 (mn10300_print_operand): Handle 'W' operand descriptor.
14677 (extract_bundle): New function.
14678 (check_liw_constraints): New function.
14679 (liw_candidate): New function.
14680 (mn10300_bundle_liw): New function.
14681 (mn10300_reorg): New function.
14682 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14683 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14684 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14685 __LIW__ or __NO_LIW__.
14686 * doc/invoke.texi: Describe the -mliw command line option.
14687
14688 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14689
14690 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14691 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14692 pthread_mutex_unlock): Remove.
14693 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14694 * config/pa/t-pa64: Likewise.
14695 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14696 shared libc if not linking against libpthread.
14697 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14698
14699 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14700
14701 PR target/47558
14702 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14703 on 10.6 and later to ensure that we always use the unwinder from
14704 the system. Only add -no_compact_unwind when tarteting darwin
14705 10.6 or later.
14706
14707 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14708
14709 PR target/46997
14710 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14711 (vec_interleave_lowv2sf): Ditto.
14712 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14713 (vec_extract_oddv2sf): Ditto.
14714
14715 2011-02-07 Mike Stump <mikestump@comcast.net>
14716
14717 PR target/42333
14718 Add __ieee_divdc3 entry point.
14719 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14720 entry point.
14721 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14722 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14723 * config/darwin.c (darwin_rename_builtins): Add.
14724 * config/darwin-protos.h (darwin_rename_builtins): Add.
14725
14726 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14727
14728 PR target/47636
14729 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14730 for the condition.
14731
14732 2011-02-07 Mike Stump <mikestump@comcast.net>
14733
14734 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14735
14736 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14737
14738 PR target/47534
14739 * config/avr/libgcc.S (exit): Move .endfunc
14740
14741 2011-02-07 Richard Guenther <rguenther@suse.de>
14742
14743 PR tree-optimization/47615
14744 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14745 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14746 (run_scc_vn): Initialize it.
14747 (visit_reference_op_load): Use it.
14748 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14749
14750 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14751
14752 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14753 DImode trapping arithmetic libfuncs.
14754
14755 2011-02-07 Richard Guenther <rguenther@suse.de>
14756
14757 PR tree-optimization/47621
14758 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14759 two duplicates ...
14760 (execute_update_addresses_taken): ... here. Make it more
14761 conservative in what we accept.
14762
14763 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14764
14765 * config/sparc/freebsd.h (ASM_SPEC): Define.
14766 * config/sparc/vxworks.h (ASM_SPEC): Define.
14767
14768 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14769
14770 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14771
14772 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14773
14774 * doc/invoke.texi: Remove reference to compiler internals from
14775 user documentation.
14776
14777 * reg-notes.def: Remove REG_VALUE_PROFILE.
14778 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14779
14780 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14781
14782 PR middle-end/47610
14783 * varasm.c (default_section_type_flags): If decl is NULL,
14784 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14785
14786 2011-02-05 Jie Zhang <jie@codesourcery.com>
14787
14788 PR debug/42631
14789 * web.c (entry_register): Don't clobber the number of the
14790 first uninitialized reference in used[].
14791
14792 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14793
14794 PR tree-optimization/46194
14795 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14796 (build_classic_dist_vector_1): Do not represent classic distance
14797 vectors when the access functions are variating in different loops.
14798
14799 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14800
14801 * config/mips/iris6.opt: New.
14802 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14803
14804 2011-02-04 Richard Henderson <rth@redhat.com>
14805 Steve Ellcey <sje@cup.hp.com>
14806
14807 PR target/46997
14808 * config/ia64/predicates.md (mux1_brcst_element): New.
14809 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14810 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14811 (ia64_unpack_sign): New.
14812 (ia64_expand_unpack): Rewrite using new routines.
14813 (ia64_expand_widen_sum): Ditto.
14814 (ia64_expand_dot_prod_v8qi): Ditto.
14815 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14816 routines, add endian check.
14817 (pmpy2_even): Rename from pmpy2_r, add endian check.
14818 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14819 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14820 (vec_widen_smult_hi_v4hi): Ditto.
14821 (vec_widen_umult_lo_v4hi): Ditto.
14822 (vec_widen_umult_hi_v4hi): Ditto.
14823 (mulv2si3): Change endian checks.
14824 (sdot_prodv4hi): Rewrite with new calls.
14825 (udot_prodv4hi): New.
14826 (vec_pack_ssat_v4hi): Add endian check.
14827 (vec_pack_usat_v4hi): Ditto.
14828 (vec_pack_ssat_v2si): Ditto.
14829 (max1_even): Rename from max1_r, add endian check.
14830 (max1_odd): Rename from max1_l, add endian check.
14831 (*mux1_rev): Format change.
14832 (*mux1_mix): Ditto.
14833 (*mux1_shuf): Ditto.
14834 (*mux1_alt): Ditto.
14835 (*mux1_brcst_v8qi): Use new predicate.
14836 (vec_extract_evenv8qi): Remove endian check.
14837 (vec_extract_oddv8qi): Ditto.
14838 (vec_interleave_lowv4hi): Format change.
14839 (vec_interleave_highv4hi): Ditto.
14840 (mix2_even): Rename from mix2_r, add endian check.
14841 (mix2_odd): Rename from mux2_l, add endian check.
14842 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14843 (vec_extract_evenodd_helper): Format change.
14844 (vec_extract_evenv4hi): Remove endian check.
14845 (vec_extract_oddv4hi): Remove endian check.
14846 (vec_interleave_lowv2si): Format change.
14847 (vec_interleave_highv2si): Format change.
14848 (vec_initv2si): Remove endian check.
14849 (vecinit_v2si): Add endian check.
14850 (reduc_splus_v2sf): Add endian check.
14851 (reduc_smax_v2sf): Ditto.
14852 (reduc_smin_v2sf): Ditto.
14853 (vec_initv2sf): Remove endian check.
14854 (fpack): Add endian check.
14855 (fswap): Add endian check.
14856 (vec_interleave_highv2sf): Add endian check.
14857 (vec_interleave_lowv2sf): Add endian check.
14858 (fmix_lr): Add endian check.
14859 (vec_setv2sf): Format change.
14860 (*vec_extractv2sf_0_be): Use shift to extract operand.
14861 (*vec_extractv2sf_1_be): New.
14862 (vec_pack_trunc_v4hi): Add endian check.
14863 (vec_pack_trunc_v2si): Format change.
14864
14865 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14866
14867 PR inline-asm/23200
14868 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14869 do bb, locus and block comparison and disallow loads if it is not set.
14870 (stmt_is_replaceable_p): New function.
14871 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14872 callers.
14873 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14874 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14875 SSA_NAME_DEF_STMT.
14876 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14877
14878 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14879
14880 * config/rs6000/xilinx.opt: New.
14881 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14882
14883 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14884
14885 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14886
14887 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14888
14889 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14890 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14891 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14892 secondary_reload_info, xtensa_secondary_reload): Remove.
14893 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14894 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14895 (xtensa_preferred_reload_class): Make static. Change return and
14896 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14897 Use CONST_DOUBLE_P predicate.
14898 (xtensa_preferred_output_reload_class): New function.
14899 (xtensa_secondary_reload): Make static.
14900
14901 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14902
14903 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14904 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14905 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14906
14907 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14908
14909 PR middle-end/31490
14910 * output.h (SECTION_RELRO): Define.
14911 (SECTION_MACH_DEP): Adjust.
14912 (get_variable_section): New prototype.
14913 * varpool.c (varpool_finalize_named_section_flags): New function.
14914 (varpool_assemble_pending_decls): Call it.
14915 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14916 * cgraphunit.c (cgraph_output_in_order): Call
14917 varpool_finalize_named_section_flags.
14918 * varasm.c (get_section): Allow section flags conflicts between
14919 relro and read-only sections if the section hasn't been declared yet.
14920 Set SECTION_OVERRIDE after diagnosing section type conflict.
14921 (get_variable_section): No longer static.
14922 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14923 readonly sections that need relocations.
14924 (decl_readonly_section_1): New function.
14925 (decl_readonly_section): Use it.
14926
14927 Revert:
14928 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14929 Steve Ellcey <sje@cup.hp.com>
14930
14931 PR middle-end/31490
14932 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14933 if section attribute used.
14934
14935 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14936
14937 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14938 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14939 (darwin_init_sections): Remove assertion.
14940
14941 2011-02-03 Nick Clifton <nickc@redhat.com>
14942
14943 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14944 lt and ge.
14945 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14946 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14947 instead of "n" and "pz".
14948 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14949 CC_FLAG_S.
14950
14951 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14952
14953 PR target/47312
14954 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14955 fma, expand FMA_EXPR as fma{,f,l} call.
14956
14957 PR lto/47274
14958 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14959 copy them into a unsigned char variable and pass address of it to
14960 lto_output_data_stream.
14961
14962 PR target/47564
14963 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14964 around backend_init_target and lang_dependent_init_target calls.
14965 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14966 (verify_cgraph_node): Don't call set_cfun here. Use
14967 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14968 Set error_found for incorrectly represented calls to thunks.
14969
14970 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14971
14972 PR debug/43092
14973 PR rtl-optimization/43494
14974 * rtl.h (for_each_inc_dec_fn): New type.
14975 (for_each_inc_dec): Declare.
14976 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14977 (for_each_inc_dec_find_inc_dec): New fn.
14978 (for_each_inc_dec_find_mem): New fn.
14979 (for_each_inc_dec): New fn.
14980 * dse.c (struct insn_size): Remove.
14981 (replace_inc_dec, replace_inc_dec_mem): Remove.
14982 (emit_inc_dec_insn_before): New fn.
14983 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14984 (canon_address): Pass mem modes to cselib_lookup.
14985 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14986 (cselib_lookup_from_insn): Likewise.
14987 (cselib_subst_to_values): Likewise.
14988 * cselib.c (find_slot_memmode): New var.
14989 (cselib_find_slot): New fn. Use it instead of
14990 htab_find_slot_with_hash everywhere.
14991 (entry_and_rtx_equal_p): Use find_slot_memmode.
14992 (autoinc_split): New fn.
14993 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14994 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14995 Deal with autoinc. Special-case recursion into MEMs.
14996 (cselib_hash_rtx): Likewise.
14997 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14998 address and MEM modes.
14999 (cselib_subst_to_values): Add memmode, pass it on.
15000 Deal with autoinc.
15001 (cselib_lookup): Add memmode argument, pass it on.
15002 (cselib_lookup_from_insn): Add memmode.
15003 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15004 (struct cselib_record_autoinc_data): New.
15005 (cselib_record_autoinc_cb): New fn.
15006 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15007 mode to cselib_lookup. Reset autoinced REGs here instead of...
15008 (cselib_process_insn): ... here.
15009 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15010 to cselib_lookup.
15011 (add_uses): Likewise, also to cselib_subst_to_values.
15012 (add_stores): Likewise.
15013 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15014 cselib_subst_to_values.
15015 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15016 * gcse.c (do_local_cprop): Adjusted.
15017 * postreload.c (reload_cse_simplify_set): Adjusted.
15018 (reload_cse_simplify_operands): Adjusted.
15019 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15020
15021 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15022
15023 PR tree-optimization/45122
15024 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15025 unsafe assumptions when there's more than one loop exit.
15026
15027 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15028
15029 PR target/47272
15030 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15031 Document using vector double with the load/store builtins, and
15032 that the load/store builtins always use Altivec instructions.
15033
15034 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15035 to use altivec memory instructions, even on VSX.
15036 (vector_altivec_store_<mode>): Ditto.
15037
15038 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15039 function.
15040
15041 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15042 V2DF, V2DI support to load/store overloaded builtins.
15043
15044 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15045 altivec load/store builtins for V2DF/V2DI types.
15046
15047 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15048 set avoid indexed addresses on power6 if -maltivec.
15049 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15050 vector_altivec_load/vector_altivec_store builtins.
15051 (altivec_expand_st_builtin): Ditto.
15052 (altivec_expand_builtin): Add VSX memory builtins.
15053 (rs6000_init_builtins): Add V2DI types to internal types.
15054 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15055 load/store builtins.
15056 (rs6000_address_for_altivec): Insure memory address is appropriate
15057 for Altivec.
15058
15059 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15060 vec_vsx_ld and vec_vsx_st.
15061 (vsx_store_<mode>): Ditto.
15062
15063 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15064 variables to hold long long types for VSX vector memory builtins.
15065 (RS6000_BTI_unsigned_long_long): Ditto.
15066 (long_long_integer_type_internal_node): Ditti.
15067 (long_long_unsigned_type_internal_node): Ditti.
15068
15069 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15070 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15071 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15072
15073 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15074 short cuts.
15075 (vec_vsx_st): Ditto.
15076
15077 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15078
15079 * config/pa/pa-hpux10.opt: New.
15080 * config/hpux11.opt (pthread): New Driver option.
15081 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15082 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15083
15084 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15085
15086 * config/ia64/vms.opt: New.
15087 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15088
15089 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15090
15091 PR target/47580
15092 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15093 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15094 generator functions.
15095 (vsx_floatuns<VSi><mode>2): Ditto.
15096 (vsx_fix_trunc<mode><VSi>2): Ditto.
15097 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15098
15099 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15100
15101 * config/i386/djgpp.opt (posix): New Driver option.
15102
15103 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15104
15105 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15106 Move to the unsupported targets list.
15107
15108 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15109
15110 PR rtl-optimization/47525
15111 * df-scan.c: Update copyright years.
15112 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15113 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15114
15115 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15116
15117 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15118 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15119 (ASM_OUTPUT_ASCII): Remove.
15120 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15121
15122 2011-02-02 Jeff Law <law@redhat.com>
15123
15124 PR middle-end/47543
15125 * reload.c (find_reloads_address): Handle reg+d address where both
15126 components are invalid by reloading the entire address.
15127
15128 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15129 Richard Guenther <rguenther@suse.de>
15130
15131 PR tree-optimization/40979
15132 PR bootstrap/47044
15133 * passes.c (init_optimization_passes): After LIM call copy_prop
15134 and DCE to clean up.
15135 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15136
15137 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15138
15139 PR tree-optimization/47576
15140 PR tree-optimization/47555
15141 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15142 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15143 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15144 * tree-scalar-evolution.c (follow_ssa_edge): Use
15145 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15146
15147 2011-02-02 Richard Guenther <rguenther@suse.de>
15148
15149 PR tree-optimization/47566
15150 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15151
15152 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15153
15154 PR debug/47106
15155 PR debug/47402
15156 * tree-inline.c (declare_return_variable): Remove unused caller
15157 variable.
15158
15159 PR debug/47106
15160 PR debug/47402
15161 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15162 * cfgexpand.c (account_used_vars_for_block): Use them.
15163 * tree-nrv.c (tree_nrv): Likewise.
15164 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15165 (dump_scope_block): Likewise.
15166 (remove_unused_locals): Likewise.
15167
15168 PR debug/47106
15169 PR debug/47402
15170 * tree-inline.c (declare_return_variable): Add result decl to
15171 local decls only once.
15172 * gimple-low.c (record_vars_into): Mark newly-created variables
15173 as referenced.
15174
15175 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15176
15177 PR debug/47498
15178 PR debug/47501
15179 PR debug/45136
15180 PR debug/45130
15181 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15182 debug insns.
15183 (no_real_insns_p, schedule_block, set_priorities): Drop special
15184 treatment of boundary debug insns.
15185 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15186 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15187 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15188 (BOUNDARY_DEBUG_INSN_P): Likewise.
15189 (SCHEDULE_DEBUG_INSN_P): Likewise.
15190 * sched-rgn.c (init_ready_list): Drop special treatment of
15191 boundary debug insns.
15192 * final.c (rest_of_clean_state): Clear notes' BB.
15193
15194 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15195
15196 * config/openbsd.opt (assert=): New Driver option.
15197
15198 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15199
15200 * config/i386/nto.opt: New.
15201 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15202
15203 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15204
15205 * config/i386/netware.opt: New.
15206 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15207
15208 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15209
15210 * config/interix.opt (posix): New Driver option.
15211
15212 2011-02-01 DJ Delorie <dj@redhat.com>
15213
15214 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15215
15216 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15217 class for A0/A1.
15218
15219 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15220
15221 PR tree-optimization/47561
15222 * toplev.c (process_options): Print the Graphite flags. Add
15223 flag_loop_flatten to the list of options requiring Graphite.
15224
15225 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15226
15227 * config/i386/cygming.opt (posix): New Driver option.
15228
15229 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15230
15231 * config/arm/vxworks.opt: New.
15232 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15233
15234 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15235
15236 * config/alpha/elf.opt: New.
15237 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15238 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15239
15240 2011-02-01 Richard Guenther <rguenther@suse.de>
15241
15242 PR tree-optimization/47559
15243 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15244 store-motion on references that can throw.
15245
15246 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15247
15248 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15249 * tree-pass.h (TDF_CSELIB): New macro.
15250 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15251 cselib_lookup): Check for it rather than for TDF_DETAILS.
15252
15253 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15254
15255 PR driver/47547
15256 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15257 is HOST_BIT_BUCKET.
15258
15259 * opts.c (finish_options): Don't add x_aux_base_name if it is
15260 HOST_BIT_BUCKET.
15261
15262 2011-02-01 Richard Guenther <rguenther@suse.de>
15263
15264 PR tree-optimization/47555
15265 Revert
15266 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15267
15268 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15269
15270 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15271
15272 PR gcc/46692
15273 * config/lm32/t-lm32: Add multilib for all CPU options.
15274
15275 2011-02-01 Richard Guenther <rguenther@suse.de>
15276
15277 PR tree-optimization/47541
15278 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15279 sure to have a field at offset zero.
15280
15281 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15282
15283 * config/arc/arc.opt (EB, EL): New Driver options.
15284
15285 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15286
15287 * config/alpha/osf5.opt: New.
15288 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15289
15290 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15291
15292 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15293
15294 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15295
15296 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15297 -floop-interchange.
15298 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15299 is an alias of -floop-interchange and that it requires the
15300 Graphite infrastructure.
15301 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15302 flag_loop_interchange based on the value of flag_tree_loop_linear.
15303
15304 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15305 Richard Guenther <rguenther@suse.de>
15306
15307 PR tree-optimization/47538
15308 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15309 type instead of r1type, except for comparisons. For right
15310 shifts and comparisons punt if there are mismatches in
15311 sizetype vs. non-sizetype types.
15312
15313 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15314
15315 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15316 avx_runtime.
15317
15318 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15319
15320 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15321 version number.
15322 * configure: Regenerate.
15323
15324 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15325
15326 * configure.ac (gcc_cv_ld_static_option): Define.
15327 (gcc_cv_ld_dynamic_option): Define.
15328 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15329 instead.
15330 (HAVE_LD_STATIC_DYNAMIC): Update message.
15331 (LD_STATIC_OPTION): Define.
15332 (LD_DYNAMIC_OPTION): Define.
15333 * configure: Regenerate.
15334 * config.in: Regenerate.
15335 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15336 HAVE_LD_STATIC_DYNAMIC]: Use them.
15337
15338 2011-01-31 Nick Clifton <nickc@redhat.com>
15339
15340 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15341 registers inside interrupt handlers if the handler is not a leaf
15342 function.
15343
15344 2011-01-31 Nick Clifton <nickc@redhat.com>
15345
15346 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15347 reg_renumber returning an INVALID_REGNUM.
15348
15349 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15350
15351 PR libgcj/44341
15352 * doc/install.texi: Document host options discarded when cross
15353 configuring target libraries.
15354
15355 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15356
15357 Reverted:
15358 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15359 PR debug/45136
15360 PR debug/45130
15361 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15362 debug insns.
15363 (no_real_insns_p, schedule_block, set_priorities): Drop special
15364 treatment of boundary debug insns.
15365 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15366 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15367 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15368 (BOUNDARY_DEBUG_INSN_P): Likewise.
15369 (SCHEDULE_DEBUG_INSN_P): Likewise.
15370 * sched-rgn.c (init_ready_list): Drop special treatment of
15371 boundary debug insns.
15372 * final.c (rest_of_clean-state): Clear notes' BB.
15373
15374 2011-01-31 Alan Modra <amodra@gmail.com>
15375
15376 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15377 toc relative expressions as we do in print_operand_address.
15378
15379 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15380
15381 * doc/extend.texi: Follow spelling conventions.
15382 * doc/invoke.texi: Fix a typo.
15383
15384 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15385
15386 * config/hpux11.opt: New.
15387 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15388 ia64*-*-hpux*): Use hpux11.opt.
15389
15390 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15391
15392 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15393 to tmake_file.
15394
15395 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15396
15397 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15398 support sites.
15399
15400 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15401
15402 * doc/install.texi (Binaries): Remove outdated reference for
15403 Motorola 68HC11/68HC12 downloads.
15404
15405 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15406
15407 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15408 Drepper's paper.
15409
15410 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15411
15412 PR bootstrap/47147
15413 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15414 used by NetBSD.
15415
15416 2011-01-28 Ahmad Sharif <asharif@google.com>
15417
15418 * value-prof.c (check_counter): Corrected error message.
15419
15420 2011-01-29 Jie Zhang <jie@codesourcery.com>
15421
15422 * config/arm/arm.c (arm_legitimize_reload_address): New.
15423 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15424 arm_legitimize_reload_address.
15425 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15426
15427 2011-01-28 Ian Lance Taylor <iant@google.com>
15428
15429 * godump.c (go_define): Ignore macros whose definitions include
15430 two adjacent operands.
15431
15432 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15433
15434 PR target/42894
15435 * varasm.c (force_const_mem): Store copy of x in desc->constant
15436 instead of x itself.
15437 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15438 itself into REG_EQUAL note.
15439
15440 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15441
15442 * config/freebsd.opt (posix, rdynamic): New Driver options.
15443
15444 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15445
15446 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15447 -Bstatic/-Bdynamic.
15448 * configure: Regenerate.
15449
15450 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15451
15452 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15453 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15454
15455 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15456
15457 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15458 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15459 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15460 (s390_preferred_reload_class): Make static. Change return and
15461 'rclass' argument type to reg_class_t.
15462
15463 2011-01-27 Jan Hubicka <jh@suse.cz>
15464
15465 PR middle-end/46949
15466 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15467 (process_function_and_variable_attributes): Check defined weakrefs.
15468
15469 2011-01-27 Martin Jambor <mjambor@suse.cz>
15470
15471 PR tree-optimization/47228
15472 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15473 build_ref_for_offset.
15474
15475 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15476
15477 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15478
15479 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15480
15481 PR rtl-optimization/46856
15482 * postreload.c (reload_combine_recognize_const_pattern): Do not
15483 separate cc0 setter and user on cc0 targets.
15484
15485 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15486
15487 PR c/43082
15488 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15489 passed a VOID_TYPE expression, immediately emit an error and
15490 return error_mark_node.
15491
15492 2011-01-26 Jeff Law <law@redhat.com>
15493
15494 PR rtl-optimization/47464
15495 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15496 rather than may_trap_p as needed.
15497
15498 2011-01-26 DJ Delorie <dj@redhat.com>
15499
15500 PR rtl-optimization/46878
15501 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15502 setter/user dependency as well.
15503
15504 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15505
15506 PR rtl-optimization/44469
15507 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15508 after removing trivially dead basic blocks.
15509
15510 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15511
15512 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15513 * config/frv/frv.h (LINK_SPEC): Likewise.
15514 * config/i386/netware.h (LINK_SPEC): Likewise.
15515 * config/m68k/linux.h (ASM_SPEC): Likewise.
15516 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15517 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15518 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15519 * config/sparc/linux.h (ASM_SPEC): Likewise.
15520 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15521 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15522
15523 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15524
15525 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15526 * config/frv/frv.h (ASM_SPEC): Likewise.
15527 * config/m68k/linux.h (ASM_SPEC): Likewise.
15528 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15529 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15530 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15531 * config/sparc/linux.h (ASM_SPEC): Likewise.
15532 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15533 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15534
15535 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15536
15537 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15538 * config/frv/frv.h (LINK_SPEC): Likewise.
15539 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15540
15541 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15542
15543 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15544 * config/frv/frv.h (ASM_SPEC): Likewise.
15545 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15546 * config/m68k/linux.h (ASM_SPEC): Likewise.
15547 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15548 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15549 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15550 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15551 * config/sparc/linux.h (ASM_SPEC): Likewise.
15552 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15553 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15554 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15555
15556 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15557
15558 PR target/46997
15559 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15560 (*mux2): Ditto.
15561 (vec_extract_evenodd_help): Ditto.
15562 (vec_extract_evenv4hi): Ditto.
15563 (vec_extract_oddv4hi): Ditto.
15564 (vec_interleave_lowv2si): Ditto.
15565 (vec_interleave_highv2si): Ditto.
15566 (vec_extract_evenv2si): Ditto.
15567 (vec_extract_oddv2si: Ditto.
15568 (vec_pack_trunc_v2si): Ditto.
15569
15570 2011-01-22 Jan Hubicka <jh@suse.cz>
15571
15572 PR target/47237
15573 * cgraph.h (cgraph_local_info): New field can_change_signature.
15574 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15575 signature can change.
15576 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15577 can change.
15578 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15579 (cgraph_function_versioning): We can not change signature of functions
15580 that don't allow that.
15581 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15582 (lto_input_node): Likewise.
15583 * ipa-inline.c (compute_inline_parameters): Compute
15584 local.can_change_signature.
15585 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15586 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15587 functions that can not change signature.
15588 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15589 init_cumulative_args): Do not use local calling conventions
15590 for functions that can not change signature.
15591
15592 2011-01-22 Jan Hubicka <jh@suse.cz>
15593
15594 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15595
15596 2011-01-26 Richard Guenther <rguenther@suse.de>
15597
15598 PR tree-optimization/47190
15599 * cgraphunit.c (process_common_attributes): New function.
15600 (process_function_and_variable_attributes): Use it.
15601
15602 2011-01-26 Richard Guenther <rguenther@suse.de>
15603
15604 PR lto/47423
15605 * cgraphbuild.c (record_eh_tables): Record reference to personality
15606 function.
15607
15608 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15609
15610 PR debug/45454
15611 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15612 non-debug insns from moving up.
15613
15614 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15615
15616 PR target/40125
15617 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15618 t-dlldir{,-x} fragment for build and add it to tmake_file.
15619 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15620 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15621 * config/i386/t-dlldir: New file.
15622 (SHLIB_DLLDIR): Define.
15623 * config/i386/t-dlldir-x: New file.
15624 (SHLIB_DLLDIR): Define.
15625 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15626 (SHLIB_INSTALL): Use it.
15627
15628 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15629
15630 PR target/47246
15631 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15632 lower bound of the allowed Thumb-2 coprocessor load/store
15633 index range to -256. Add explaining comment.
15634
15635 2011-01-25 Ian Lance Taylor <iant@google.com>
15636
15637 * godump.c (go_define): Improve lexing of macro expansion to only
15638 accept expressions which match Go spec.
15639
15640 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15641
15642 PR c++/43601
15643 * tree.c (handle_dll_attribute): Handle it.
15644 * doc/extend.texi (@item dllexport): Mention it.
15645 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15646
15647 2011-01-25 Ian Lance Taylor <iant@google.com>
15648
15649 PR tree-optimization/26854
15650 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15651 (decl_jump_unsafe): Move higher in file, with no other change.
15652 (bind): Set has_jump_unsafe_decl if appropriate.
15653 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15654 (check_earlier_gotos): Likewise.
15655 (c_check_switch_jump_warnings): Likewise.
15656
15657 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15658
15659 * doc/invoke.texi (Warning Options): Add missing hyphen.
15660 (-fprofile-dir): Minor grammatical fixes.
15661 (-fbranch-probabilities): Likewise.
15662
15663 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15664
15665 PR debug/45136
15666 PR debug/45130
15667 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15668 debug insns.
15669 (no_real_insns_p, schedule_block, set_priorities): Drop special
15670 treatment of boundary debug insns.
15671 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15672 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15673 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15674 (BOUNDARY_DEBUG_INSN_P): Likewise.
15675 (SCHEDULE_DEBUG_INSN_P): Likewise.
15676 * sched-rgn.c (init_ready_list): Drop special treatment of
15677 boundary debug insns.
15678 * final.c (rest_of_clean-state): Clear notes' BB.
15679
15680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15681
15682 * Makefile.in (LAMBDA_H): Removed.
15683 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15684 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15685 lambda-trans.o, and tree-loop-linear.o.
15686 (lto-symtab.o): Remove dependence on LAMBDA_H.
15687 (tree-loop-linear.o): Remove rule.
15688 (lambda-mat.o): Same.
15689 (lambda-trans.o): Same.
15690 (lambda-code.o): Same.
15691 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15692 (tree-vect-slp.o): Same.
15693 * hwint.h (gcd): Moved here.
15694 (least_common_multiple): Same.
15695 * lambda-code.c: Removed.
15696 * lambda-mat.c: Removed.
15697 * lambda-trans.c: Removed.
15698 * lambda.h: Removed.
15699 * tree-loop-linear.c: Removed.
15700 * lto-symtab.c: Do not include lambda.h.
15701 * omega.c (gcd): Removed.
15702 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15703 * tree-data-ref.c (print_lambda_vector): Moved here.
15704 (lambda_vector_copy): Same.
15705 (lambda_matrix_copy): Same.
15706 (lambda_matrix_id): Same.
15707 (lambda_vector_first_nz): Same.
15708 (lambda_matrix_row_add): Same.
15709 (lambda_matrix_row_exchange): Same.
15710 (lambda_vector_mult_const): Same.
15711 (lambda_vector_negate): Same.
15712 (lambda_matrix_row_negate): Same.
15713 (lambda_vector_equal): Same.
15714 (lambda_matrix_right_hermite): Same.
15715 * tree-data-ref.h: Do not include lambda.h.
15716 (lambda_vector): Moved here.
15717 (lambda_matrix): Same.
15718 (dependence_level): Same.
15719 (lambda_transform_legal_p): Removed declaration.
15720 (lambda_collect_parameters): Same.
15721 (lambda_compute_access_matrices): Same.
15722 (lambda_vector_gcd): Same.
15723 (lambda_vector_new): Same.
15724 (lambda_vector_clear): Same.
15725 (lambda_vector_lexico_pos): Same.
15726 (lambda_vector_zerop): Same.
15727 (lambda_matrix_new): Same.
15728 * tree-flow.h (least_common_multiple): Removed declaration.
15729 * tree-parloops.c (lambda_trans_matrix): Moved here.
15730 (LTM_MATRIX): Same.
15731 (LTM_ROWSIZE): Same.
15732 (LTM_COLSIZE): Same.
15733 (LTM_DENOMINATOR): Same.
15734 (lambda_trans_matrix_new): Same.
15735 (lambda_matrix_vector_mult): Same.
15736 (lambda_transform_legal_p): Same.
15737 * tree-pass.h (pass_linear_transform): Removed declaration.
15738 * tree-ssa-loop.c (tree_linear_transform): Removed.
15739 (gate_tree_linear_transform): Removed.
15740 (pass_linear_transform): Removed.
15741 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15742 flag_loop_interchange.
15743
15744 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15745
15746 PR tree-optimization/47265
15747 PR tree-optimization/47443
15748 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15749 if name still has some uses.
15750
15751 2011-01-25 Martin Jambor <mjambor@suse.cz>
15752
15753 PR tree-optimization/47382
15754 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15755 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15756
15757 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15758
15759 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15760 sjlj_except_unwind_info.
15761
15762 2011-01-25 Richard Guenther <rguenther@suse.de>
15763
15764 PR tree-optimization/47426
15765 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15766 visible functions results escape.
15767
15768 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15769
15770 PR target/45701
15771 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15772 (arm_get_frame_offsets): Use it.
15773
15774 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15775 Jakub Jelinek <jakub@redhat.com>
15776
15777 PR tree-optimization/47271
15778 * tree-if-conv.c (bb_postdominates_preds): New.
15779 (if_convertible_bb_p): Call bb_postdominates_preds.
15780 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15781 (predicate_scalar_phi): Call bb_postdominates_preds.
15782
15783 2011-01-25 Nick Clifton <nickc@redhat.com>
15784
15785 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15786 * config/rx/rx.c (rx_function_value): Likewise.
15787 (rx_promote_function_mode): Likewise.
15788 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15789 in order to make it legitimate.
15790 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15791 make sure that the first operand is the same as the result register.
15792 (addsi3_unspec): Delete.
15793 (subdi3): Do not accept immediate operands.
15794 (subdi3_internal): Likewise.
15795
15796 2011-01-25 Jeff Law <law@redhat.com>
15797
15798 PR rtl-optimization/37273
15799 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15800 handle them like argument loads from stack slots. Do not double
15801 count memory for memory constants and argument loads from stack slots.
15802
15803 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15804
15805 PR tree-optimization/47427
15806 PR tree-optimization/47428
15807 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15808 coalesce if the new root var would be TREE_READONLY.
15809
15810 2011-01-25 Richard Guenther <rguenther@suse.de>
15811
15812 PR middle-end/47414
15813 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15814 correct type for TBAA.
15815
15816 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15817
15818 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15819 (close_phi_written_to_memory): Call for_each_index with
15820 dr_indices_valid_in_loop.
15821
15822 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15823
15824 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15825 when it is initialized.
15826
15827 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15828
15829 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15830 call to graphite_find_data_references_in_stmt.
15831 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15832 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15833 call to graphite_find_data_references_in_stmt.
15834 (analyze_drs_in_stmts): Same.
15835 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15836 in which the scalar analysis of indices is performed.
15837 (create_data_ref): Same. Update call to dr_analyze_indices.
15838 (find_data_references_in_stmt): Update call to create_data_ref.
15839 (graphite_find_data_references_in_stmt): Same.
15840 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15841 declaration.
15842 (create_data_ref): Same.
15843 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15844 call to create_data_ref.
15845
15846 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15847
15848 * graphite-sese-to-poly.c (build_poly_scop): Move
15849 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15850
15851 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15852
15853 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15854 VAR_DECL, PARM_DECL, and RESULT_DECL.
15855
15856 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15857
15858 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15859 in a reduction PBB.
15860 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15861 that have already been marked as PBB_IS_REDUCTION.
15862
15863 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15864
15865 * graphite-scop-detection.c (same_close_phi_node): New.
15866 (remove_duplicate_close_phi): New.
15867 (make_close_phi_nodes_unique): New.
15868 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15869
15870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15871
15872 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15873 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15874 of both data references to be the same.
15875
15876 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15877
15878 * graphite-dependences.c (build_lexicographical_constraint): Remove
15879 the gdim parameter.
15880 (build_lexicographical_constraint): Adjust call to
15881 ppl_powerset_is_empty.
15882 (dependence_polyhedron): Same.
15883 (graphite_legal_transform_dr): Same.
15884 (graphite_carried_dependence_level_k): Same.
15885 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15886 parameter.
15887 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15888
15889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15890
15891 * graphite-sese-to-poly.c
15892 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15893 (close_phi_written_to_memory): New.
15894 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15895 and unshare_expr.
15896
15897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15898
15899 * doc/install.texi: Update the expected version number of PPL to 0.11.
15900 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15901 #if PPL_VERSION_MINOR < 11.
15902
15903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15904
15905 * graphite-dependences.c: Include graphite-cloog-util.h.
15906 (new_poly_ddr): Inlined into dependence_polyhedron.
15907 (free_poly_ddr): Moved close by new_poly_ddr.
15908 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15909 Early return NULL when ppl_powerset_is_empty returns true.
15910 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15911 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15912 (graphite_legal_transform_dr): Call new_poly_ddr.
15913 (graphite_carried_dependence_level_k): Same.
15914 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15915 (dot_transformed_deps_stmt_1): Removed.
15916 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15917 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15918 (dot_deps_1): Call dot_deps_2.
15919 * Makefile.in (graphite-dependences.o): Add missing dependence on
15920 graphite-cloog-util.h.
15921
15922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15923
15924 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15925 (build_lexicographical_constraint): Same.
15926 (dependence_polyhedron_1): Same.
15927 (graphite_legal_transform_dr): Same.
15928 (graphite_carried_dependence_level_k): Same.
15929 * graphite-ppl.c (ppl_powerset_is_empty): New.
15930 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15931 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15932
15933 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15934
15935 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15936 the "a followed by b" relation and document it.
15937
15938 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15939
15940 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15941 iteration when the bag of constraints is empty.
15942
15943 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15944
15945 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15946
15947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15948
15949 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15950 nest and two loop depths as parameters.
15951 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15952 lst_perfect_nestify.
15953
15954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15955
15956 * graphite-dependences.c (print_pddr): Call
15957 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15958
15959 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15960
15961 * graphite-ppl.c (debug_gmp_value): New.
15962 * graphite-ppl.h (debug_gmp_value): Declared.
15963
15964 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15965
15966 * doc/install.texi: Document availability of cloog-0.16.
15967
15968 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15969
15970 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15971 invalid postdominance info.
15972
15973 2011-01-24 Jan Hubicka <jh@suse.cz>
15974
15975 PR c/21659
15976 * doc/extend.texi (weak pragma): Drop claim that it must
15977 appear before definition.
15978 * varasm.c (merge_weak, declare_weak): Only sanity check
15979 that DECL is not output at a time it is declared weak.
15980
15981 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15982
15983 * machmode.def: Fixed comments.
15984
15985 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15986
15987 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15988
15989 2011-01-24 Paul Koning <ni1d@arrl.net>
15990
15991 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15992 WORDS_BIG_ENDIAN.
15993
15994 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15995
15996 PR target/46519
15997 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15998 (block_info): Add scanned and prev.
15999 (move_or_delete_vzeroupper_2): Return if the basic block
16000 has been scanned and the upper 128bit state is unchanged
16001 from the last scan.
16002 (move_or_delete_vzeroupper_1): Return true if the exit
16003 state is changed.
16004 (move_or_delete_vzeroupper): Visit basic blocks using the
16005 work-list based algorithm based on vt_find_locations in
16006 var-tracking.c.
16007
16008 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16009
16010 2011-01-24 Nick Clifton <nickc@redhat.com>
16011
16012 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16013 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16014 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16015 then define __v850e1__.
16016 * doc/invoke.texi: Document -mv850es.
16017
16018 2011-01-24 Richard Henderson <rth@redhat.com>
16019
16020 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16021 compound unordered comparisons.
16022 * config/rx/rx.c (rx_split_fp_compare): Remove.
16023 * config/rx/rx-protos.h: Update.
16024 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16025 (cbranchsf4): Don't call rx_split_fp_compare.
16026 (*cbranchsf4): Use rx_split_cbranch.
16027 (*cmpsf): Don't accept "i" constraint.
16028 (*conditional_branch): Only valid after reload.
16029 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16030
16031 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16032
16033 PR target/47385
16034 * config/rs6000/altivec.md (vector constant splitters): Add
16035 support for creating vector single precision constants if -mvsx is
16036 used and we would create the constant using Altivec primitives.
16037
16038 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16039 Richard Sandiford <rdsandiford@googlemail.com>
16040
16041 PR rtl-optimization/47166
16042 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16043 mechanism for PRE_MODIFY and POST_MODIFY.
16044 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16045 reloadreg.
16046
16047 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16048
16049 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16050
16051 2011-01-22 Jan Hubicka <jh@suse.cz>
16052
16053 PR lto/47333
16054 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16055
16056 2011-01-22 Jan Hubicka <jh@suse.cz>
16057
16058 PR tree-optimization/43884
16059 PR lto/44334
16060 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16061 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16062
16063 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16064
16065 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16066 * config/s390/s390.c (s390_register_move_cost,
16067 s390_memory_move_cost): New.
16068 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16069
16070 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16071
16072 PR middle-end/47401
16073 * except.c (sjlj_assign_call_site_values): Move setting the
16074 crtl->uses_eh_lsda flag to ...
16075 (sjlj_mark_call_sites): ... here.
16076 (sjlj_emit_function_enter): Support NULL dispatch label.
16077 (sjlj_build_landing_pads): In a function with no landing pads
16078 that still has must-not-throw regions, generate code to register
16079 a personality function with empty LSDA.
16080
16081 2011-01-21 Richard Henderson <rth@redhat.com>
16082
16083 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16084
16085 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16086
16087 * compare-elim.c: New file.
16088 * Makefile.in (OBJS-common): Add it.
16089 (compare-elim.o): New.
16090 * common.opt (fcompare-elim): New.
16091 * opts.c (default_options_table): Add OPT_fcompare_elim.
16092 * tree-pass.h (pass_compare_elim_after_reload): New.
16093 * passes.c (init_optimization_passes): Add it.
16094 * recog.h: Protect against re-inclusion.
16095 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16096 * doc/invoke.texi (-fcompare-elim): Document it.
16097 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16098 * doc/tm.texi: Rebuild.
16099
16100 2011-01-22 Nick Clifton <nickc@redhat.com>
16101
16102 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16103 rx_split_fp_compare.
16104
16105 2011-01-22 Nick Clifton <nickc@redhat.com>
16106
16107 * config/rx/rx.md (UNSPEC_CONST): New.
16108 (deallocate_and_return): Wrap the amount popped off the stack in
16109 an UNSPEC_CONST in order to stop it being rejected by
16110 -mmax-constant-size.
16111 (pop_and_return): Add a "(return)" rtx.
16112 (call): Drop the immediate operand.
16113 (call_internal): Likewise.
16114 (call_value): Likewise.
16115 (call_value_internal): Likewise.
16116 (sibcall_internal): Likewise.
16117 (sibcall_value_internal): Likewise.
16118 (sibcall): Likewise. Generate an explicit call using
16119 sibcall_internal.
16120 (sibcall_value): Likewise.
16121 (mov<>): FAIL if a constant operand is not legitimate.
16122 (addsi3_unpsec): New pattern.
16123
16124 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16125 (ok_for_max_constant): New function.
16126 (gen_safe_add): New function.
16127 (rx_expand_prologue): Use gen_safe_add.
16128 (rx_expand_epilogue): Likewise.
16129 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16130 UNSPEC CONSTs.
16131
16132 2011-01-21 Jeff Law <law@redhat.com>
16133
16134 PR tree-optimization/47053
16135 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16136 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16137 statements are deleted.
16138 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16139 is nonempty, then purge dead edges and cleanup the CFG.
16140
16141 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16142
16143 PR debug/47402
16144 Temporarily revert:
16145 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16146 PR debug/47106
16147 * tree-dfa.c (create_var_ann): Mark variable as used.
16148
16149 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16150
16151 PR middle-end/45566
16152 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16153 notes from other section in hot/cold partitioning even if
16154 last_action is -3. Increment call_site_base.
16155
16156 PR rtl-optimization/47366
16157 * fwprop.c (forward_propagate_into): Return bool. If
16158 any changes are made, -fnon-call-exceptions is used and
16159 REG_EH_REGION note is present, call purge_dead_edges
16160 and return true if it purged anything.
16161 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16162 any EH edges were purged.
16163
16164 2011-01-21 Jeff Law <law@redhat.com>
16165
16166 PR rtl-optimization/41619
16167 * caller-save.c (setup_save_areas): Break out code to determine
16168 which hard regs are live across calls by examining the reload chains
16169 so that it is always used.
16170 Eliminate code which checked REG_N_CALLS_CROSSED.
16171
16172 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16173
16174 PR tree-optimization/47355
16175 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16176 NOP has non-debug uses beyond PHIs in new_bb.
16177
16178 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16179
16180 PR debug/47106
16181 * cfgexpand.c (account_used_vars_for_block): Only account vars
16182 that are annotated as used.
16183 (estimated_stack_frame_size): Don't set TREE_USED.
16184 * tree-dfa.c (create_var_ann): Mark variable as used.
16185
16186 2011-01-21 Richard Guenther <rguenther@suse.de>
16187
16188 PR middle-end/47395
16189 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16190
16191 2011-01-21 Richard Guenther <rguenther@suse.de>
16192
16193 PR tree-optimization/47365
16194 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16195 (vn_reference_lookup_pieces): Adjust.
16196 (vn_reference_lookup): Likewise.
16197 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16198 (vn_reference_lookup_3): Only look through kills if in
16199 VN_WALKREWRITE mode.
16200 (vn_reference_lookup_pieces): Adjust.
16201 (vn_reference_lookup): Likewise.
16202 (visit_reference_op_load): Likewise.
16203 (visit_reference_op_store): Likewise.
16204 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16205 (compute_avail): Likewise.
16206 (eliminate): Likewise.
16207
16208 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16209
16210 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16211 DECL_IGNORED_P non-reg vars if they are used.
16212
16213 PR tree-optimization/47391
16214 * varpool.c (const_value_known_p): Return false if
16215 decl is volatile.
16216
16217 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16218
16219 PR bootstrap/47215
16220 * config/i386/i386.c (ix86_local_alignment): Handle
16221 case for va_list_type_node is nil.
16222 (ix86_canonical_va_list_type): Likewise.
16223
16224 2011-01-21 Alan Modra <amodra@gmail.com>
16225
16226 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16227 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16228
16229 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16230
16231 * config/arm/arm.md (define_attr type): Rename f_load
16232 and f_store to f_fpa_load and f_fpa_store. Update.
16233 (write_conflict): Deal with rename fallout.
16234 (*push_fp_multi): Likewise.
16235 * config/arm/fpa.md (f_load): Use f_fpa_load.
16236 (f_store): Use f_fpa_store.
16237 (*movsf_fpa): Likewise.
16238 (*movdf_fpa): Likewise.
16239 (*movxf_fpa): Likewise.
16240 (*thumb2_movsf_fpa): Likewise.
16241 (*thumb2_movdf_fpa): Likewise.
16242 (*thumb2_movxf_fpa): Likewise.
16243 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16244 f_loadd and f_stored.
16245 (*thumb2_movdi_vfp): Likewise.
16246 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16247 (*thumb2_movsi_vfp): Likewise.
16248 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16249 Use f_loads instead of f_load.
16250 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16251
16252 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16253
16254 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16255 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16256 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16257 (xtensa_mode_dependent_address_p): New function.
16258 (constantpool_address_p): Make static. Change return type to bool.
16259 Change argument type to const_rtx. Use CONST_INT_P predicate.
16260
16261 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16262
16263 PR debug/46583
16264 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16265
16266 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16267
16268 PR debug/47283
16269 * cfgexpand.c (expand_debug_expr): Instead of generating
16270 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16271 etc. handling.
16272
16273 2011-01-20 Richard Guenther <rguenther@suse.de>
16274
16275 PR middle-end/47370
16276 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16277 the pointer operand of MEM_REFs.
16278
16279 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16280
16281 PR tree-optimization/46130
16282 * ipa-split.c (consider_split): If return_bb contains non-virtual
16283 PHIs other than for retval or if split_function would not adjust it,
16284 refuse to split.
16285
16286 2011-01-20 Richard Guenther <rguenther@suse.de>
16287
16288 PR tree-optimization/47167
16289 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16290 Revert previous change, only avoid enumeral type changes.
16291
16292 2011-01-19 Mike Stump <mikestump@comcast.net>
16293
16294 * doc/tm.texi.in (BRANCH_COST): Englishify.
16295 * doc/tm.texi (BRANCH_COST): Likewise.
16296
16297 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16298
16299 PR c++/47291
16300 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16301 (gen_scheduled_generic_parms_dies): New functions.
16302 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16303 generation for the end of CU compilation.
16304 (dwarf2out_finish): Generate template parameters DIEs here.
16305
16306 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16307
16308 PR debug/46240
16309 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16310 debug bind stmt on merge edges.
16311
16312 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16313
16314 PR debug/47079
16315 PR debug/46724
16316 * function.c (instantiate_expr): Instantiate incoming rtl of
16317 implicit arguments, and recurse on VALUE_EXPRs.
16318 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16319 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16320
16321 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16322
16323 * c-parser.c (c_parser_for_statement): Initialize
16324 collection_expression.
16325
16326 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16329
16330 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16331
16332 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16333 (LINK_SHLIB_SPEC): Don't use %(link_path).
16334 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16335
16336 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16337
16338 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16339 (NO_SHARED_LIB_SUPPORT): Remove.
16340 (LINK_SHLIB_SPEC): Remove one conditional definition.
16341
16342 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16343
16344 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16345 %{call_shared}.
16346 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16347 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16348 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16349 %{call_shared} and conditionals on these options not being passed.
16350 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16351 %{call_shared}.
16352
16353 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16354
16355 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16356 simplify.
16357
16358 * ipa-split.c: Spelling fixes.
16359
16360 2011-01-19 Richard Henderson <rth@redhat.com>
16361
16362 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16363 (*mulsi3): Likewise.
16364
16365 * longlong.h [__mn10300__] (count_leading_zeros): New.
16366 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16367 [__mn10300__] (add_ssaaaa, subddmmss): New.
16368 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16369 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16370
16371 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16372
16373 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16374
16375 2011-01-19 Richard Henderson <rth@redhat.com>
16376
16377 * config/mn10300/mn10300.md (addsi3_flags): New.
16378 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16379 (subsi3_flags, subc_internal, subdi3): New.
16380 (subdi3_internal, *subdi3_degenerate): New.
16381 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16382
16383 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16384 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16385 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16386 * config/mn10300/mn10300-protos.h: Update.
16387 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16388 (return_ret): Likewise. Rename from return_internal_regs.
16389 (return_internal): Remove.
16390
16391 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16392 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16393 (mn10300_legitimate_constant_p): Likewise.
16394 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16395 (mn10300_frame_size): New.
16396 (mn10300_expand_prologue): Use it.
16397 (mn10300_expand_epilogue): Likewise.
16398 (mn10300_initial_offset): Likewise.
16399 * config/mn10300/mn10300-protos.h: Update.
16400 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16401 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16402 (prologue, epilogue, return_internal): Tidy output code.
16403 (mn10300_store_multiple_operation, return): Likewise.
16404 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16405 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16406 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16407 (load_pic, am33_load_pic): New.
16408 (mn10300_load_pic0, mn10300_load_pic1): New.
16409
16410 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16411 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16412 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16413 (cc_flags_for_mode, cc_flags_for_code): New.
16414 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16415 overflow flag is not valid. Validate that the flags we need
16416 for the comparison are valid.
16417 (mn10300_output_cmp): Remove.
16418 (mn10300_output_add): New.
16419 (mn10300_select_cc_mode): Use cc_flags_for_code.
16420 (mn10300_split_cbranch): New.
16421 (mn10300_match_ccmode): New.
16422 (mn10300_split_and_operand_count): New.
16423 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16424 to the function.
16425 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16426 (addsi3): ... here. Use mn10300_output_add.
16427 (*addsi3_flags): New.
16428 (*am33_subsi3, *mn10300_subsi3): Merge...
16429 (subsi3): ... here. Use attribute isa.
16430 (*subsi3_flags): New.
16431 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16432 when possible.
16433 (*am33_andsi3, *mn10300_andsi3): Merge...
16434 (andsi3): ... here.
16435 (*andsi3_flags): New.
16436 (andsi3 splitters): New.
16437 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16438 (iorsi3): ... here.
16439 (*iorsi3_flags): New.
16440 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16441 (xorsi3): ... here.
16442 (*xorsi3_flags): New.
16443 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16444 (one_cmplsi2): ... here.
16445 (*one_cmplsi2_flags): New.
16446 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16447 instead of "dax" in constraints. Use mn10300_split_cbranch.
16448 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16449 use matching constraints to eliminate a self-comparison.
16450 (*integer_conditional_branch): Rename from integer_conditional_branch.
16451 Use int_mode_flags to match CC_REG.
16452 (*cbranchsi4_btst, *btstsi): New.
16453 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16454 mn10300_split_cbranch.
16455 (*am33_cmpsf): Rename from am33_cmpsf.
16456 (*float_conditional_branch): Rename from float_conditional_branch.
16457 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16458 (zero_extendqisi2): ... here.
16459 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16460 (zero_extendhisi2): ... here.
16461 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16462 (extendqisi2): ... here.
16463 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16464 (extendhisi2): ... here.
16465 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16466 (ashlsi3): ... here.
16467 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16468 (lshrsi3): ... here.
16469 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16470 (ashrsi3): ... here.
16471 (consecutive add peephole): Remove.
16472 * config/mn10300/predicates.md (label_ref_operand): New.
16473 (int_mode_flags): New.
16474 (CCZN_comparison_operator): New.
16475
16476 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16477 (throughput_42_latency_43): New reservation.
16478 (mulsidi3, umulsidi3): New expanders.
16479 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16480 the MDR register to allocation; separately allocate the low and
16481 high parts of the DImode result.
16482 (umulsidi3_internal): Similarly.
16483 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16484 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16485 (udivsi3, umodsi3): Remove.
16486 (udivmodsi4, divmodsi4): New expanders.
16487 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16488 (*divmodsi4): Simiarly.
16489 (ext_internal): New.
16490
16491 * config/mn10300/constraints.md ("z"): New constraint.
16492 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16493 (FIXED_REGISTERS): Don't fix MDR.
16494 (CALL_USED_REGSITERS): Reformat nicely.
16495 (REG_ALLOC_ORDER): Add MDR.
16496 (enum regclass): Add MDR_REGS.
16497 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16498 (IRA_COVER_CLASSES): Add MDR_REGS.
16499 (REGNO_REG_CLASS): Handle MDR_REG.
16500 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16501 (mn10300_register_move_cost): Likewise.
16502 * config/mn10300/mn10300.md (MDR_REG): New.
16503 (*movsi_internal): Handle moves to/from MDR_REGS.
16504
16505 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16506 POST_MODIFY.
16507 (mn10300_secondary_reload): Tidy combination reload classes.
16508 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16509 addresses for AM33. Allow symbolic offsets for reg+imm.
16510 (mn10300_regno_in_class_p): New.
16511 (mn10300_legitimize_reload_address): New.
16512 * config/mn10300/mn10300.h (enum reg_class): Remove
16513 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16514 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16515 SP_OR_GENERAL_REGS.
16516 (REG_CLASS_NAMES): Update to match.
16517 (REG_CLASS_CONTENTS): Likewise.
16518 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16519 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16520 (REGNO_IN_RANGE_P): Remove.
16521 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16522 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16523 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16524 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16525 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16526 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16527 (REGNO_GENERAL_P): New.
16528 (HAVE_POST_MODIFY_DISP): New.
16529 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16530 (LEGITIMIZE_RELOAD_ADDRESS): New.
16531 * config/mn10300/mn10300-protos.h: Update.
16532
16533 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16534 DATA_REGS for AM33 stack-pointer destination.
16535 (mn10300_preferred_output_reload_class): Likewise.
16536 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16537 into a form appropriate for ...
16538 (TARGET_SECONDARY_RELOAD): New.
16539 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16540 * config/mn10300/mn10300-protos.h: Update.
16541 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16542 reload_insi; use the "A" constraint for the scratch; handle AM33
16543 moves of sp to non-address registers.
16544
16545 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16546 (*movqi_internal): ... here.
16547 (*am33_movhi, *mn10300_movhi): Merge into...
16548 (*movhi_internal): ... here.
16549 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16550 as the source/destination of moves from/to SP.
16551 (movsf): Only allow for AM33-2.
16552 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16553 any integer constant constraint. Only allow for AM33-2. Tidy
16554 all of the alternative outputs.
16555 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16556 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16557 for MN103.
16558 (udivsi3, umodsi3): New patterns for MN103 only.
16559
16560 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16561
16562 * doc/tm.texi.in: Spell out that a lack of register class unions
16563 can lead to ICEs.
16564 * doc/tm.texi: Regenerate.
16565
16566 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16567
16568 PR rtl-optimization/47337
16569 * dce.c (check_argument_store): New function.
16570 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16571
16572 PR tree-optimization/47290
16573 * tree-eh.c (infinite_empty_loop_p): New function.
16574 (cleanup_empty_eh): Use it.
16575
16576 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16577
16578 PR target/46997
16579 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16580 (a64_expand_widen_sum): Ditto.
16581 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16582 (vec_extract_evenodd_help): Ditto.
16583 (vec_extract_evenv4hi): Ditto.
16584 (vec_extract_oddv4hi): Ditto.
16585 (vec_extract_evenv2si): Ditto.
16586 (vec_extract_oddv2si): Ditto.
16587 (vec_extract_evenv2sf): Ditto.
16588 (vec_extract_oddv2sf): Ditto.
16589 (vec_pack_trunc_v4hi: Ditto.
16590 (vec_pack_trunc_v2si): Ditto.
16591 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16592 (vec_interleave_highv8qi): Ditto.
16593 (mix1_r): Ditto.
16594 (vec_extract_oddv8qi): Ditto.
16595 (vec_interleave_lowv4hi): Ditto.
16596 (vec_interleave_highv4hi): Ditto.
16597 (vec_interleave_lowv2si): Ditto.
16598 (vec_interleave_highv2si): Ditto.
16599
16600 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16601
16602 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16603 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16604 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16605 (pa_c_mode_for_suffix): New.
16606 (TARGET_EXPAND_BUILTIN): Define.
16607 (TARGET_C_MODE_FOR_SUFFIX): Define.
16608 (pa_builtins): Define.
16609 (pa_init_builtins): Register __float128 type and init new support
16610 builtins.
16611 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16612 * config/pa/quadlib.c (_U_Qfcopysign): New.
16613
16614 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16615
16616 PR middle-end/46894
16617 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16618 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16619 are defined.
16620
16621 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16622
16623 PR tree-optimization/47179
16624 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16625 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16626
16627 2011-01-18 Richard Guenther <rguenther@suse.de>
16628
16629 PR rtl-optimization/47216
16630 * emit-rtl.c: Include tree-flow.h.
16631 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16632 of replicating it with different semantics.
16633 * Makefile.in (emit-rtl.o): Adjust.
16634
16635 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16636
16637 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16638 (cortex_a9_dp): Handle neon types correctly.
16639
16640 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16641
16642 PR rtl-optimization/47299
16643 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16644 subtarget. Use normal multiplication if both operands are constants.
16645 * expmed.c (expand_widening_mult): Don't try to optimize constant
16646 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16647 before using it.
16648
16649 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16650
16651 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16652 spacing after 'e.g.', typos, comma, hyphenation.
16653
16654 2011-01-17 Richard Henderson <rth@redhat.com>
16655
16656 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16657 (rx_restricted_mem_operand): New.
16658 (rx_shift_operand): Use register_operand.
16659 (rx_source_operand, rx_compare_operand): Likewise.
16660 * config/rx/rx.md (addsi3_flags): New expander.
16661 (adddi3): Rewrite as expander.
16662 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16663 (subsi3_flags): New expander.
16664 (subdi3): Rewrite as expander.
16665 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16666
16667 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16668 (rx_init_builtins): Remove sat builtin.
16669 (rx_expand_builtin): Likewise.
16670 * config/rx/rx.md (ssaddsi3): New.
16671 (*sat): Rename from sat. Represent the CC_REG input.
16672
16673 * config/rx/predicates.md (rshift_operator): New.
16674 * config/rx/rx.c (rx_expand_insv): Remove.
16675 * config/rx/rx-protos.h: Update.
16676 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16677 operand to the canonical position.
16678 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16679 (*bitclr, *bitclr_in_memory): Similarly.
16680 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16681 (insv): Retain the zero_extract in the expansion.
16682
16683 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16684 (bswaphi2, bitinvert, revw): Likewise.
16685
16686 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16687 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16688 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16689 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16690 (bitset, bitset_in_memory): Likewise.
16691 (bitinvert, bitinvert_in_memory): Likewise.
16692 (bitclr, bitclr_in_memory): Likewise.
16693 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16694 (rx_strend, rx_cmpstrn): Likewise.
16695 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16696 (bitop peep2 patterns): Remove.
16697
16698 * config/rx/rx.c (rx_match_ccmode): New.
16699 * config/rx/rx-protos.h: Update.
16700 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16701 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16702 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16703 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16704 (fix_truncsfsi2, floatsisf2): Likewise.
16705 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16706 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16707 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16708 (*subsi3_flags, *xorsi3_flags): New.
16709
16710 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16711
16712 * config/rx/rx.c (rx_print_operand): Remove workaround for
16713 unsplit comparison operations.
16714
16715 * config/rx/rx.md (movsicc): Split after reload.
16716 (*movsicc): Merge *movsieq and *movsine via match_operator.
16717 (*stcc): New pattern.
16718
16719 * config/rx/rx.c (rx_float_compare_mode): Remove.
16720 * config/rx/rx.h (rx_float_compare_mode): Remove.
16721 * config/rx/rx.md (cstoresi4): Split after reload.
16722 (*sccc): New pattern.
16723
16724 * config/rx/predicates.md (label_ref_operand): New.
16725 (rx_z_comparison_operator): New.
16726 (rx_zs_comparison_operator): New.
16727 (rx_fp_comparison_operator): New.
16728 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16729 Validate that the flags are set properly for the comparison.
16730 (rx_gen_cond_branch_template): Remove.
16731 (rx_cc_modes_compatible): Remove.
16732 (mode_from_flags): New.
16733 (flags_from_code): Rename from flags_needed_for_conditional.
16734 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16735 (rx_select_cc_mode): Likewise.
16736 (rx_split_fp_compare): New.
16737 (rx_split_cbranch): New.
16738 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16739 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16740 (*cbranchsf4): Similarly.
16741 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16742 match_operator and rx_split_cbranch.
16743 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16744 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16745 (*cmpsi): Rename from cmpsi.
16746 (*tstsi): Rename from tstsi.
16747 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16748 (*conditional_branch): Rename from conditional_branch.
16749 (*reveresed_conditional_branch): Remove.
16750 (b<code>): Remove expander.
16751 * config/rx/rx-protos.h: Update.
16752
16753 * config/rx/rx.c (rx_compare_redundant): Remove.
16754 * config/rx/rx.md (cmpsi): Don't use it.
16755 * config/rx/rx-protos.h: Update.
16756
16757 * config/rx/rx-modes.def (CC_F): New mode.
16758 * config/rx/rx.c (rx_select_cc_mode): New.
16759 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16760 * config/rx/rx-protos.h: Update.
16761
16762 2011-01-17 Richard Henderson <rth@redhat.com>
16763
16764 * except.c (dump_eh_tree): Fix stray ; after for statement.
16765
16766 2011-01-17 Richard Guenther <rguenther@suse.de>
16767
16768 PR tree-optimization/47313
16769 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16770 handling before copying the body. Properly deal with
16771 by-reference result in SSA form.
16772
16773 2011-01-17 Ian Lance Taylor <iant@google.com>
16774
16775 PR target/47219
16776 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16777 (struct_value_alias_set): Don't define.
16778 (sparc_option_override): Don't set sparc_sr_alias_set and
16779 struct_value_alias_set.
16780 (save_or_restore_regs): Use gen_frame_mem rather than calling
16781 set_mem_alias_set.
16782 (sparc_struct_value_rtx): Likewise.
16783
16784 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16785
16786 PR target/47318
16787 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16788 (_mm_maskstore_pd): Likewise.
16789 (_mm_maskload_ps): Likewise.
16790 (_mm_maskstore_ps): Likewise.
16791 (_mm256_maskload_pd): Change mask to __m256i.
16792 (_mm256_maskstore_pd): Likewise.
16793 (_mm256_maskload_ps): Likewise.
16794 (_mm256_maskstore_ps): Likewise.
16795
16796 * config/i386/i386-builtin-types.def: Updated.
16797 (ix86_expand_special_args_builtin): Likewise.
16798
16799 * config/i386/i386.c (bdesc_special_args): Update
16800 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16801 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16802 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16803 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16804
16805 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16806 Use <avxpermvecmode> on mask register.
16807 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16808
16809 2011-01-17 Olivier Hainque <hainque@adacore.com>
16810 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16811 Eric Botcazou <ebotcazou@adacore.com>
16812
16813 PR target/46655
16814 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16815 if <= USHRT_MAX in 32-bit mode.
16816
16817 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16818
16819 * doc/install.texi (Configuration, Specific): Wrap long
16820 lines in examples. Allow line wrapping in long options
16821 and URLs where beneficial for PDF output.
16822
16823 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16824
16825 * config/mips/mips.c (mips_classify_symbol): Don't return
16826 SYMBOL_PC_RELATIVE for nonlocal labels.
16827
16828 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16829
16830 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16831
16832 2011-01-15 Jan Hubicka <jh@suse.cz>
16833
16834 PR tree-optimization/47276
16835 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16836 declarations as needed.
16837
16838 2011-01-15 Martin Jambor <mjambor@suse.cz>
16839
16840 * common.opt (fdevirtualize): New flag.
16841 * doc/invoke.texi (Option Summary): Document it.
16842 * opts.c (default_options_table): Add devirtualize flag.
16843 * ipa-prop.c (detect_type_change): Return immediately if
16844 devirtualize flag is not set.
16845 (detect_type_change_ssa): Likewise.
16846 (compute_known_type_jump_func): Likewise.
16847 (ipa_analyze_virtual_call_uses): Likewise.
16848
16849 2011-01-14 Martin Jambor <mjambor@suse.cz>
16850
16851 PR tree-optimization/45934
16852 PR tree-optimization/46302
16853 * ipa-prop.c (type_change_info): New type.
16854 (stmt_may_be_vtbl_ptr_store): New function.
16855 (check_stmt_for_type_change): Likewise.
16856 (detect_type_change): Likewise.
16857 (detect_type_change_ssa): Likewise.
16858 (compute_complex_assign_jump_func): Check for dynamic type change.
16859 (compute_complex_ancestor_jump_func): Likewise.
16860 (compute_known_type_jump_func): Likewise.
16861 (compute_scalar_jump_functions): Likewise.
16862 (ipa_analyze_virtual_call_uses): Likewise.
16863 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16864
16865 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16866
16867 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16868 * config/i386/i386.opt (msse5): New Alias.
16869
16870 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16871
16872 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16873 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16874 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16875 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16876
16877 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16878
16879 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16880 -mcpu options.
16881 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16882 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16883 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16884 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16885 Likewise.
16886 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16887
16888 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16889
16890 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16891
16892 2011-01-14 Mike Stump <mikestump@comcast.net>
16893
16894 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16895 * config/fr30/fr30.md: Likweise
16896 (movsi_push): Likewise.
16897 (movsi_pop): Likewise.
16898 (enter_func): Likewise.
16899 * config/moxie/moxie.md (movsi_push): Likewise.
16900 (movsi_pop): Likewise.
16901
16902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16903
16904 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16905 %{no_archive} %{exact_version}.
16906 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16907 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16908 %{no_archive} %{exact_version}.
16909 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16910 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16911 * config/mips/vxworks.h: Likewise.
16912
16913 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16914
16915 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16916
16917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16918
16919 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16920 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16921
16922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16923
16924 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16925 -nodefaultlib.
16926
16927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16928
16929 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16930 for mcpu not cpu.
16931 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16932 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16933 not cpu.
16934 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16935 Don't handle -shlib.
16936
16937 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16938
16939 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16940 (CC1_SPEC): Don't handle -profile.
16941
16942 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16943
16944 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16945 * config/mips/mips.h (CC1_SPEC): Likewise.
16946
16947 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16948
16949 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16950 * config/mips/mips.h (CC1_SPEC): Likewise.
16951
16952 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16953
16954 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16955 * config/m32r/linux.h (LINK_SPEC): Likewise.
16956 * config/mips/linux.h (LINK_SPEC): Likewise.
16957 * config/mips/linux64.h (LINK_SPEC): Likewise.
16958 * config/sparc/linux.h (LINK_SPEC): Likewise.
16959 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16960 LINK_SPEC): Likewise.
16961 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16962
16963 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16964
16965 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16966 %{version:-v}.
16967 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16968
16969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16970
16971 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16972 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16973
16974 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16975
16976 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16977
16978 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16979
16980 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16981 supports -Bstatic/-Bdynamic.
16982 * configure: Regenerate.
16983
16984 2011-01-14 Jan Hubicka <jh@suse.cz>
16985 Jack Howarth <howarth@bromo.med.uc.edu>
16986
16987 PR target/46037
16988 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16989 when checking debug_info_level. Test write_symbols instead of
16990 debug_hooks->var_location when setting flag_var_tracking_uninit.
16991
16992 2011-01-14 Richard Guenther <rguenther@suse.de>
16993
16994 PR tree-optimization/47179
16995 * target.def (ref_may_alias_errno): New target hook.
16996 * targhooks.h (default_ref_may_alias_errno): Declare.
16997 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16998 (default_ref_may_alias_errno): New function.
16999 * target.h (struct ao_ref_s): Declare.
17000 * tree-ssa-alias.c: Include target.h.
17001 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17002 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17003 (targhooks.o): Likewise.
17004 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17005 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17006
17007 2011-01-14 Richard Guenther <rguenther@suse.de>
17008
17009 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17010
17011 2011-01-14 Richard Guenther <rguenther@suse.de>
17012
17013 PR tree-optimization/47280
17014 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17015 return CFG changes.
17016 (tree_ssa_forward_propagate_single_use_vars): Deal with
17017 CFG changes from associate_plusminus.
17018
17019 2011-01-14 Richard Guenther <rguenther@suse.de>
17020
17021 PR middle-end/47281
17022 Revert
17023 2011-01-11 Richard Guenther <rguenther@suse.de>
17024
17025 PR tree-optimization/46076
17026 * tree-ssa.c (useless_type_conversion_p): Conversions from
17027 unprototyped to empty argument list function types are useless.
17028
17029 2011-01-14 Richard Guenther <rguenther@suse.de>
17030
17031 PR tree-optimization/47286
17032 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17033
17034 2011-01-14 Martin Jambor <mjambor@suse.cz>
17035
17036 PR middle-end/46823
17037 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17038
17039 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17040
17041 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17042 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17043 * config/xtensa/xtensa.c (xtensa_libcall_value,
17044 xtensa_function_value_regno_p): New functions.
17045 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17046
17047 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17048
17049 PR c++/47213
17050 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17051 PE specific hook.
17052 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17053 New function prototype.
17054 * config/i386/winnt.c (i386_pe_assemble_visibility):
17055 Warn only if attribute was specified by user.
17056
17057 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17058
17059 PR target/47251
17060 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17061 floating point.
17062 (floatunsdidf2_fcfidu): Ditto.
17063
17064 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17065
17066 * config/s390/s390.c (print_operand_address): Replace 'error' with
17067 'output_operand_lossage'.
17068 (print_operand): Likewise.
17069
17070 2011-01-13 Jeff Law <law@redhat.com>
17071
17072 PR rtl-optimization/39077
17073 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17074 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17075 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17076 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17077 * gcse.c (prune_insertions_deletions): New function.
17078 (compute_pre_data): Use it.
17079
17080 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17081
17082 PR debug/PR46973
17083 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17084 static function.
17085 (prune_unused_types_mark): Use it.
17086
17087 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17088
17089 PR rtl-optimization/45352
17090 * sel-sched.c: Update copyright years.
17091 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17092 in the advancing loop when we have issued issue_rate insns.
17093
17094 2011-01-12 Richard Henderson <rth@redhat.com>
17095
17096 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17097 (TARGET_MD_ASM_CLOBBERS): New.
17098
17099 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17100 (TARGET_DELEGITIMIZE_ADDRESS): New.
17101
17102 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17103 (clzsi2, *bsch): New patterns.
17104
17105 * config/mn10300/mn10300.md (INT): New mode iterator.
17106 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17107
17108 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17109 flag_split_wide_types.
17110
17111 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17112 (mn10300_trampoline_init): Rewrite without a template, an immediate
17113 load and a direct branch.
17114 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17115
17116 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17117
17118 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17119 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17120 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17121 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17122
17123 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17124
17125 PR debug/47209
17126 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17127 of type.
17128
17129 2011-01-12 Jan Hubicka <jh@suse.cz>
17130
17131 PR driver/47244
17132 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17133 (PLUGIN_COND_CLOSE): New macro.
17134 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17135
17136 2011-01-12 Richard Guenther <rguenther@suse.de>
17137
17138 PR lto/47259
17139 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17140 register variables in a MEM_REF.
17141
17142 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17143
17144 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17145 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17146 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17147 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17148 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17149 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17150 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17151 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17152 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17153 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17154 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17155 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17156 * config/gnu-user.h: New. Copied from linux.h.
17157 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17158 GNU_USER_TARGET_STARTFILE_SPEC.
17159 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17160 GNU_USER_TARGET_ENDFILE_SPEC.
17161 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17162 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17163 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17164 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17165 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17166 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17167 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17168 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17169 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17170 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17171 * config/arm/linux-eabi.h (CC1_SPEC): Use
17172 GNU_USER_TARGET_CC1_SPEC.
17173 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17174 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17175 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17176 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17177 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17178 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17179 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17180 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17181
17182 2011-01-12 Richard Guenther <rguenther@suse.de>
17183
17184 PR other/46946
17185 * doc/invoke.texi (ffast-math): Document it is turned on
17186 with -Ofast.
17187
17188 2011-01-12 Jan Hubicka <jh@suse.cz>
17189
17190 PR tree-optimization/47233
17191 * opts.c (common_handle_option): Disable ipa-reference with profile
17192 feedback.
17193
17194 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17195
17196 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17197 error message.
17198
17199 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17200
17201 * c-parser.c (c_lex_one_token): Updated and reindented some
17202 comments. No changes in code.
17203
17204 2011-01-11 Ian Lance Taylor <iant@google.com>
17205
17206 * godump.c (go_output_var): Don't output the variable if there is
17207 already a type with the same name.
17208
17209 2011-01-11 Ian Lance Taylor <iant@google.com>
17210
17211 * godump.c (go_format_type): Don't generate float80.
17212
17213 2011-01-11 Richard Henderson <rth@redhat.com>
17214
17215 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17216 declaration. Rewrite for both speed and size.
17217 (mn10300_address_cost_1): Remove.
17218 (mn10300_register_move_cost): New.
17219 (mn10300_memory_move_cost): New.
17220 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17221 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17222 extensions, shifts, BSWAP, CLZ.
17223 (mn10300_wide_const_load_uses_clr): Remove.
17224 (TARGET_REGISTER_MOVE_COST): New.
17225 (TARGET_MEMORY_MOVE_COST): New.
17226 * config/mn10300/mn10300-protos.h: Update.
17227 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17228
17229 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17230 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17231 * config/mn10300/mn10300-protos.h: Update.
17232 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17233 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17234 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17235 (*test_int_bitfield, *test_byte_bitfield): Remove.
17236 (*bit_test, *subreg_bit_test): Remove.
17237 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17238
17239 * config/mn10300/constraints.md ("c"): Rename from "A".
17240 ("A", "D"): New constraint letters.
17241 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17242 (fmssf4, fnmasf4, fnmssf4): Likewise.
17243
17244 * config/mn10300/mn10300.md (isa): New attribute.
17245 (enabled): New attribute.
17246
17247 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17248 (abssf2, negsf2): Define only for hardware fp.
17249 (sqrtsf2): Reformat.
17250 (addsf3, subsf3, mulsf3): Merge expander and insn.
17251
17252 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17253 (DEBUGGER_AUTO_OFFSET): Remove.
17254 (DEBUGGER_ARG_OFFSET): Remove.
17255
17256 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17257 Emit register stores with the same offsets as the hardware.
17258 (mn10300_store_multiple_operation): Don't check that the register
17259 save offsets are monotonic.
17260 * config/mn10300/mn10300-protos.h: Update.
17261
17262 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17263
17264 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17265 in terms of the value on the stack, not the MDR register.
17266
17267 2011-01-11 Jan Hubicka <jh@suse.cz>
17268
17269 PR lto/45721
17270 PR lto/45375
17271 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17272 (symbol_alias_set_destroy, symbol_alias_set_contains,
17273 propagate_aliases_backward): Declare.
17274 * lto-streamer-out.c (struct sets): New sturcture.
17275 (trivally_defined_alias): New function.
17276 (output_alias_pair_p): Rewrite.
17277 (output_unreferenced_globals): Fix output of alias pairs.
17278 (produce_symtab): Likewise.
17279 * ipa.c (function_and_variable_visibility): Set weak alias destination
17280 as needed in lto.
17281 * varasm.c (symbol_alias_set_t): Remove.
17282 (symbol_alias_set_destroy): Export.
17283 (propagate_aliases_forward, propagate_aliases_backward): New functions
17284 based on ...
17285 (compute_visible_aliases): ... this one; remove.
17286 (trivially_visible_alias): New
17287 (trivially_defined_alias): New.
17288 (remove_unreachable_alias_pairs): Rewrite.
17289 (finish_aliases_1): Reorganize code checking if alias is defined.
17290 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17291 in LTO mode.
17292
17293 2011-01-11 Richard Guenther <rguenther@suse.de>
17294
17295 PR tree-optimization/46076
17296 * tree-ssa.c (useless_type_conversion_p): Conversions from
17297 unprototyped to empty argument list function types are useless.
17298
17299 2011-01-11 Richard Guenther <rguenther@suse.de>
17300
17301 PR middle-end/45235
17302 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17303 volatile MEMs as MEM_READONLY_P.
17304
17305 2011-01-11 Richard Guenther <rguenther@suse.de>
17306
17307 PR tree-optimization/47239
17308 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17309
17310 2011-01-11 Jeff Law <law@redhat.com>
17311
17312 PR tree-optimization/47086
17313 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17314 IVs from statements that might throw.
17315
17316 2011-01-10 Jan Hubicka <jh@suse.cz>
17317
17318 PR lto/45375
17319 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17320
17321 2011-01-10 Jan Hubicka <jh@suse.cz>
17322
17323 PR lto/45375
17324 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17325 when correcting profile.
17326
17327 2011-01-10 Jan Hubicka <jh@suse.cz>
17328
17329 PR lto/46083
17330 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17331 DECL_FINI_PRIORITY.
17332 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17333 Restore DECL_FINI_PRIORITY.
17334
17335 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17336
17337 * doc/gimple.texi: Fix quoting of multi-word return values in
17338 @deftypefn statements. Ensure presence of return value. Wrap
17339 overlong @deftypefn lines.
17340 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17341 descriptions of removed functions.
17342 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17343 of multi-word return value in @deftypefn statement.
17344
17345 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17346
17347 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17348 (Conditional Expressions, Logical Operators)
17349 (Statement and operand traversals): Do not indent smallexample
17350 code. Fix duplicate function argument in example.
17351
17352 2011-01-10 Jeff Law <law@redhat.com>
17353
17354 PR tree-optimization/47141
17355 * ipa-split.c (split_function): Handle case where we are
17356 returning a value and the return block has a virtual operand phi.
17357
17358 2011-01-10 Jan Hubicka <jh@suse.cz>
17359
17360 PR tree-optimization/47234
17361 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17362 (pass_feedback_split_functions): Declare.
17363 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17364 tree-profile.
17365 * ipa-split.c (gate_split_functions): Update comments; disable
17366 split-functions for profile_arc_flag and branch_probabilities.
17367 (gate_feedback_split_functions): New function.
17368 (execute_feedback_split_functions): New function.
17369 (pass_feedback_split_functions): New global var.
17370
17371 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17372
17373 PR lto/46760
17374 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17375 calling gimple_call_set_cannot_inline.
17376
17377 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17378
17379 * config/darwin-sections.def: Remove unused section.
17380
17381 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17382
17383 PR c++/47218
17384 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17385
17386 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17387
17388 PR objc/47232
17389 * c-parser.c (c_parser_declaration_or_fndef): Improved
17390 error message.
17391
17392 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17393
17394 * config/i386/winnt.c (i386_pe_start_function): Make sure
17395 to switch back to function's section.
17396
17397 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17398
17399 PR gcc/46902
17400 PR testsuite/46912
17401 * plugin.c: Move include of dlfcn.h from here...
17402 * system.h: ... to here.
17403
17404 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17405
17406 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17407 file name.
17408 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17409 two extra empty pages in PDF output.
17410
17411 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17412
17413 PR objc/47078
17414 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17415 for error recovery purposes behave as if it was not specified so
17416 that the default type is usd.
17417
17418 2011-01-07 Jan Hubicka <jh@suse.cz>
17419
17420 PR tree-optmization/46469
17421 * ipa.c (function_and_variable_visibility): Clear needed flags on
17422 nodes with external decls; handle weakrefs merging correctly.
17423
17424 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17425
17426 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17427 not false.
17428
17429 2011-01-07 Jan Hubicka <jh@suse.cz>
17430
17431 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17432 and no longer claim that gold is required for linker plugin.
17433 * configure: Regenerate.
17434 * gcc.c (PLUGIN_COND): New macro.
17435 (LINK_COMMAND_SPEC): Use it.
17436 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17437 * config.in (HAVE_LTO_PLUGIN): New.
17438 * configure.ac (--with-lto-plugin): New parameter; autodetect
17439 HAVE_LTO_PLUGIN.
17440
17441 2011-01-07 Jan Hubicka <jh@suse.cz>
17442
17443 PR tree-optimization/46367
17444 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17445 when we can update original.
17446 (cgraph_mark_inline_edge): Sanity check.
17447 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17448
17449 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17450
17451 * config/spu/spu.h (ASM_COMMENT_START): Define.
17452
17453 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17454
17455 PR driver/42445
17456 * gcc.c (%>S): New.
17457 (SWITCH_KEEP_FOR_GCC): Likewise.
17458 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17459 (do_spec_1): Handle "%>".
17460
17461 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17462
17463 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17464
17465 PR target/47201
17466 * config/i386/i386.c (ix86_delegitimize_address): If
17467 simplify_gen_subreg fails, return orig_x.
17468
17469 PR bootstrap/47187
17470 * value-prof.c (gimple_stringop_fixed_value): Handle
17471 lhs of the call properly.
17472
17473 2011-01-07 Jan Hubicka <jh@suse.cz>
17474
17475 PR lto/45375
17476 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17477
17478 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17479
17480 * target.def (function_switched_text_sections): New hook.
17481 * doc/tm.texi: Regenerated.
17482 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17483 * final.c (default_function_switched_text_sections): New.
17484 (final_scan_insn): Call function_switched_text_sections when a
17485 mid-function section change occurs.
17486 * output.h (default_function_switched_text_sections): Declare.
17487 * config/darwin-protos.h (darwin_function_switched_text_sections):
17488 Likewise.
17489 * config/darwin.c (darwin_function_switched_text_sections): New.
17490 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17491
17492 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17493
17494 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17495 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17496 the secondary code fragment when outputting for DWARF == 2.
17497
17498 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17499
17500 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17501 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17502 Remove.
17503 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17504 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17505
17506 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17507
17508 PR debug/46704
17509 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17510 when it is not empty.
17511
17512 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17513
17514 Bobcat Enablement
17515 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17516 (case ${target}): Add btver1.
17517 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17518 -march=native recognize btver1 processors.
17519 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17520 btver1 def_and_undef
17521 * config/i386/i386.c (struct processor_costs btver1_cost): New
17522 btver1 cost table.
17523 (m_BTVER1): New definition.
17524 (m_AMD_MULTIPLE): Includes m_BTVER1.
17525 (initial_ix86_tune_features): Add btver1 tune.
17526 (processor_target_table): Add btver1 entry.
17527 (static const char *const cpu_names): Add btver1 entry.
17528 (software_prefetching_beneficial_p): Add btver1.
17529 (ix86_option_override_internal): Add btver1 instruction sets.
17530 (ix86_issue_rate): Add btver1.
17531 (ix86_adjust_cost): Add btver1.
17532 * config/i386/i386.h (TARGET_BTVER1): New definition.
17533 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17534 (enum processor_type): Add PROCESSOR_BTVER1.
17535 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17536
17537 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17538
17539 PR target/43309
17540 * config/i386/i386.c (legitimize_tls_address)
17541 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17542 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17543 (tls_initial_exec_64_sun): New pattern.
17544
17545 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17546
17547 * doc/invoke.texi (Overall Options): Improve wording and markup
17548 of the description of -wrapper.
17549
17550 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17551
17552 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17553 rdynamic, threads): New Driver options.
17554
17555 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17556
17557 PR target/38118
17558 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17559 if coming from .tdata.
17560 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17561
17562 2011-01-06 Jan Hubicka <jh@suse.cz>
17563
17564 PR lto/47188
17565 * collect2.c (main): Do not enable LTOmode when plugin is active.
17566
17567 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17568
17569 PR other/45915
17570 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17571 --version output if supported.
17572 * configure: Regenerate.
17573
17574 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17575
17576 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17577 Driver options.
17578
17579 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17580
17581 PR c/47150
17582 * c-convert.c (convert): When converting a complex expression
17583 other than COMPLEX_EXPR to a different complex type, ensure
17584 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17585 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17586 when converting COMPLEX_TYPE.
17587
17588 2011-01-06 Ira Rosen <irar@il.ibm.com>
17589
17590 PR tree-optimization/47139
17591 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17592 only the last reduction value is used outside the loop. Update
17593 documentation.
17594
17595 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17596
17597 * config/rtems.opt: New.
17598 * config.gcc (*-*-rtems*): Use rtems.opt.
17599
17600 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17601
17602 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17603 processors do not support 3DNow instructions.
17604
17605 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17606
17607 * config/spu/spu.c (spu_option_override): Set parameter
17608 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17609
17610 2011-01-05 Jan Hubicka <jh@suse.cz>
17611
17612 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17613 at the command line.
17614
17615 2011-01-05 Martin Jambor <mjambor@suse.cz>
17616
17617 PR lto/47162
17618 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17619 deltas on streamed outgoing edges.
17620 (output_node_opt_summary): Output info for outgoing edges only when
17621 the node is in new parameter set.
17622 (output_cgraph_opt_summary): New parameter set, passed to the two
17623 aforementioned functions. Update its forward declaration and its
17624 callee too.
17625
17626 2011-01-05 Tom Tromey <tromey@redhat.com>
17627
17628 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17629 operator to c_finish_omp_atomic.
17630 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17631 (build_unary_op): Update.
17632 (build_modify_expr): Update.
17633 (build_asm_expr): Update.
17634
17635 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17636
17637 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17638 newly inserted insns.
17639 (pad_bb): Likewise.
17640 (spu_emit_branch_hint): Likewise.
17641 (insert_hbrp_for_ilb_runout): Likewise.
17642 (spu_machine_dependent_reorg): Call df_finish_pass after
17643 schedule_insns returns.
17644
17645 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17646
17647 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17648
17649 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17650
17651 PR tree-optimization/47005
17652 * tree-sra.c (struct access): Add 'non_addressable' bit.
17653 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17654 (decide_one_param_reduction): Return 0 if the parameter is passed by
17655 reference and one of the accesses in the group is non_addressable.
17656
17657 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17658
17659 PR tree-optimization/47056
17660 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17661 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17662 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17663
17664 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17665
17666 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17667 initializer. Skip view conversions from aggregate types.
17668
17669 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17670
17671 PR bootstrap/47055
17672 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17673
17674 2011-01-04 Philipp Thomas <pth@suse.de>
17675
17676 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17677 obvious typo.
17678
17679 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17680
17681 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17682 on empty epilogue sequences.
17683
17684 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17685
17686 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17687 non-static): New Driver options.
17688
17689 2011-01-04 Jie Zhang <jie@codesourcery.com>
17690
17691 PR driver/47137
17692 * gcc.c (default_compilers[]): Set combinable field to 0
17693 for all assembly languages.
17694
17695 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17696
17697 * config/mips/loongson3a.md: New file.
17698 * config/mips/mips.md: Include loongson3a.md.
17699 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17700 TUNE_LOONGSON_3A.
17701
17702 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17703
17704 PR middle-end/47017
17705 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17706 instead of convert_memory_address_addr_space on the base expression.
17707
17708 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17709
17710 * config/spu/spu.c (spu_option_override): Update error text
17711 for bad -march= / -mtune= values.
17712
17713 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17714
17715 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17716 if branch-hint optimization will be performed.
17717
17718 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17719
17720 PR tree-optimization/47148
17721 * ipa-split.c (split_function): Convert arguments to
17722 DECL_ARG_TYPE if possible.
17723
17724 PR tree-optimization/47155
17725 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17726 when computing uns.
17727
17728 PR rtl-optimization/47157
17729 * combine.c (try_combine): If undobuf.other_insn becomes
17730 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17731 and set *new_direct_jump_p too.
17732
17733 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17734
17735 PR tree-optimization/47021
17736 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17737
17738 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17739
17740 * gcc.c (process_command): Update copyright notice dates.
17741 * gcov.c (print_version): Likewise.
17742 * gcov-dump.c (print_version): Likewise.
17743 * mips-tfile.c (main): Likewise.
17744 * mips-tdump.c (main): Likewise.
17745
17746 2011-01-03 Martin Jambor <mjambor@suse.cz>
17747
17748 PR tree-optimization/46801
17749 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17750 aggregate fields start at byte boundary instead of the bit-field flag.
17751
17752 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17753
17754 PR driver/47137
17755 * gcc.c (main): Revert revision 168407.
17756
17757 2011-01-03 Martin Jambor <mjambor@suse.cz>
17758
17759 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17760
17761 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17762
17763 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17764 vector optab to expand vector/scalar shift, update gimple to vector.
17765
17766 2011-01-03 Martin Jambor <mjambor@suse.cz>
17767
17768 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17769 a thunk.
17770
17771 2011-01-03 Martin Jambor <mjambor@suse.cz>
17772
17773 PR tree-optimization/46984
17774 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17775 HOST_WIDE_INT.
17776 (cgraph_create_indirect_edge): Fixed line length.
17777 (cgraph_indirect_call_info): Declare.
17778 (cgraph_make_edge_direct) Update declaration.
17779 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17780 (cgraph_create_indirect_edge): Use it.
17781 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17782 callees.
17783 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17784 the new thunk_delta representation.
17785 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17786 HOST_WIDE_INT.
17787 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17788 (ipa_read_indirect_edge_info): Likewise.
17789 * lto-cgraph.c (output_edge_opt_summary): New function.
17790 (output_node_opt_summary): Call it on all outgoing edges.
17791 (input_edge_opt_summary): New function.
17792 (input_node_opt_summary): Call it on all outgoing edges.
17793
17794 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17795
17796 PR driver/47137
17797 * gcc.c (main): Don't check have_o when settting combine_inputs.
17798
17799 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17800
17801 * regrename.c: Add general comment describing the pass.
17802 (struct du_head): Remove 'length' field.
17803 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17804 (regrename_optimize): Do not sort chains. Rework comments, add others.
17805 Force renaming to the preferred class (if any) in the first pass and do
17806 not consider registers that belong to it in the second pass.
17807 (create_new_chain): Do not set 'length' field.
17808 (scan_rtx_reg): Likewise.
17809
17810 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17811
17812 PR tree-optimization/47140
17813 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17814 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17815 to bit_value_binop.
17816
17817 PR rtl-optimization/47028
17818 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17819 parm_birth_insn instead of at the beginning of first bb.
17820
17821 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17822
17823 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17824 Remove the word "see" before "@pxref".
17825 * doc/rtl.texi: Remove the word "see" before "@pxref".
17826
17827 2011-01-01 Jan Hubicka <jh@suse.cz>
17828
17829 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17830 memory.
17831
17832 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17833
17834 PR target/38662
17835 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17836
17837 \f
17838 Copyright (C) 2011 Free Software Foundation, Inc.
17839
17840 Copying and distribution of this file, with or without modification,
17841 are permitted in any medium without royalty provided the copyright
17842 notice and this notice are preserved.