OSDN Git Service

* lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-13  Jan Hubicka  <jh@suse.cz>
2
3         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4         BINFO_VIRTUALS when streaming for ltrans unit.
5
6 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
7
8         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
9         (movdi_internal64): Same.
10
11 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12
13         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
14         with a set of similar patterns, where the MATCH_OPERAND for the
15         function argument is replaced with individual references to hardware
16         registers.
17         (save_fpregs_<mode>): Ditto
18         (restore_gpregs_<mode>): Ditto
19         (return_and_restore_gpregs_<mode>): Ditto
20         (return_and_restore_fpregs_<mode>): Ditto
21         (return_and_restore_fpregs_aix_<mode>): Ditto
22
23 2011-06-13  Jan Hubicka  <jh@suse.cz>
24
25         * ipa-utils.c (postorder_stack): New structure.
26         (ipa_reverse_postorder): Handle aliases.
27
28 2011-06-13  Jan Hubicka  <jh@suse.cz>
29
30         * ipa-inline.c (reset_edge_caches): Walk aliases.
31         (update_caller_keys): Do not test inlinability of aliases.
32         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
33         (do_estimate_growth): Fix typo.
34
35 2011-06-13  Jan Hubicka  <jh@suse.cz>
36
37         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
38         (can_remove_node_now_p): ... here; handle same comdat groups.
39         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
40         (inline_call): Update use of can_remove_node_now_p.
41
42 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
43
44         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
45         condition to disallow non-identical memory locations.
46         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
47         preference to bit manipulation instructions.
48
49 2011-06-13  Jan Hubicka  <jh@suse.cz>
50
51         * cgraph.c (cgraph_for_node_thunks_and_aliases,
52         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
53         (nonremovable_p): New function.
54         (cgraph_can_remove_if_no_direct_calls_p): New function.
55         (used_from_object_file_p): New functoin.
56         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
57         references from aliases.
58         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
59         * ipa-inline.c (check_caller_edge): New function.
60         (want_inline_function_called_once_p): Use it; accept aliases called
61         once, too.
62         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
63
64 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
65
66         PR target/48454
67         * config/arm/neon.md (vec_pack_trunc): Set the lengths
68         correctly for the case with Quad vectors.
69
70 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
71            Ira Rosen  <ira.rosen@linaro.org>
72
73         PR tree-optimization/49352
74         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
75         all, make sure loop_use_stmt after the loop is a def stmt of a used
76         SSA_NAME that is the only one defined inside of the loop.  Don't
77         check for COND_EXPR and GIMPLE_BINARY_RHS.
78         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
79         check_reduction is true.
80
81 2011-06-11  Jan Hubicka  <jh@suse.cz>
82
83         PR middle-end/49373
84         * ipa.c (cgraph_externally_visible_p): Check resolution info.
85
86 2011-06-11  Jan Hubicka  <jh@suse.cz>
87
88         PR middle-end/48836
89         * ipa-inline-transform.c: Include tree-pass.h
90         (inline_transform): Set TODO_update_ssa_only_virtuals.
91         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
92
93 2011-06-11  Jan Hubicka  <jh@suse.cz>
94
95         PR middle-end/49378
96         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
97         aliases and thunks.
98
99 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
100
101         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
102         Take number of iterations to peel into account for equally frequent
103         misalignment values.
104
105 2011-06-11  Jan Hubicka  <jh@suse.cz>
106
107         * lto-streamer-out.c (produce_symtab): Stream out the newly represented
108         aliases.
109
110 2011-06-11  Jan Hubicka  <jh@suse.cz>
111
112         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
113         args.
114         (ipa_update_after_lto_read): Likewise.
115         (ipa_write_node_info): Do not sream call_with_var_arguments.
116         (ipa_read_node_info): Likewise.
117
118 2011-06-11  Jan Hubicka  <jh@suse.cz>
119
120         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
121
122 2011-06-11  Jan Hubicka  <jh@suse.cz>
123
124         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
125         (lto_symtab_resolve_can_prevail_p): Likewise.
126         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
127         * cgraph.c (same_body_aliases_done): New global var.
128         (cgraph_same_body_alias_1): Rename to ...
129         (cgraph_create_function_alias): ... this one; reorg to new
130         representation.
131         (cgraph_same_body_alias): Use cgraph_create_function_alias;
132         record references when asked to.
133         (cgraph_add_thunk): Fix formating.
134         (cgraph_get_node): Kill same body alias code.
135         (cgraph_node_for_asm): Likewise.
136         (cgraph_remove_same_body_alias): Remove.
137         (cgraph_remove_node): Kill same body alias code.
138         (cgraph_mark_address_taken_node): Mark also the aliased function
139         as having address taken.
140         (dump_cgraph_node): Dump same body aliases.
141         (cgraph_for_node_thunks_and_aliases): Update for new alias
142         representation.
143         (cgraph_for_node_and_aliases): Likewise.
144         * cgraph.h (same_body): Kll pointer.
145         (same_body_alias): Update comment.
146         (same_body_aliases_done): Declare.
147         (cgraph_remove_same_body_alias): Remove declaration.
148         (cgraph_create_function_alias): Declare.
149         (cgraph_process_same_body_aliases): Declare.
150         (cgraph_function_with_gimple_body_p): Check for alias.
151         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
152         (cgraph_alias_aliased_node): New function.
153         (cgraph_function_node): Update for new aliases.
154         (cgraph_function_or_thunk_node): Likewise.
155         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
156         (inline_call): Remove dead aliases.
157         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
158         name hack for same body aliases.
159         (clone_of_p): Look through aliases.
160         (verify_cgraph_node): Verify aliases.
161         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
162         (cgraph_process_same_body_aliases): New function.
163         (process_function_and_variable_attributes): Disable weakref warning on
164         alias.
165         (cgraph_analyze_functions): Handle aliases.
166         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
167         (assemble_thunks): Rename to ...
168         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
169         (cgraph_expand_function): Remove alias output code.
170         (cgraph_output_in_order): Skip aliases.
171         (cgraph_preserve_function_body_p): Aliases don't need preserving.
172         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
173         (ipa_record_reference): Do not assert on alias references.
174         (ipa_ref_has_aliases_p): New function.
175         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
176         (ipa_ref_has_aliases_p): Declare.
177         * lto-cgraph.c (lto_output_node): Handle aliases.
178         (input_node): Likewise.
179         * lto-streamer-out.c (lto_output): Skip aliases.
180         (produce_symtab): Kill same_body_alias code.
181         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
182         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
183         * ipa-inline.c (update_caller_keys): Walk aliases.
184         (inline_small_functions): Fix thinko in previous patch.
185         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
186         (function_and_variable_visibility): Do not walk same body aliases.
187         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
188         (ipa_pta_execute): Use it.
189
190 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
191
192         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
193         (*vec_dupv2df): Rename from vec_dupv2df.
194         (vec_dupv2df): New expander.
195
196 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
197
198         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
199
200 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
201
202         * config/i386/i386.md: Use default value in "isa" attribute.
203         * config/i386/sse.md: Ditto.
204         * config/i386/mmx.md: Ditto.
205
206 2011-06-10  Wei Guozhi  <carrot@google.com>
207
208         PR target/45335
209         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
210         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
211         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
212         related peephole2.
213         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
214         related peephole2.
215         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
216         (arm_legitimate_ldrd_p): New prototype.
217         (arm_output_ldrd): New prototype.
218         * config/arm/arm.c (arm_check_ldrd_operands): New function.
219         (arm_legitimate_ldrd_p): New function.
220         (arm_output_ldrd): New function.
221
222 2011-06-10  David Li  <davidxl@google.com>
223
224         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
225         * passes.c (passr_eq): New function.
226         (create_pass_tab): New function.
227         (pass_traverse): New function.
228         (dump_one_pass): New function.
229         (dump_pass_list): New function.
230         (dump_passes): New function.
231
232 2011-06-10  Jan Hubicka  <jh@suse.cz>
233
234         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
235         setting the nothrow flag.
236         * ipa-reference.c (propagate): Skip aliases.
237         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
238         (propagate_nothrow): Skip aliases; do not update cgraph.
239         (local_pure_const): Do not update cgraph.
240         * tree-profile.c (tree_profiling): Do fixup_cfg.
241
242 2011-06-10  Jan Hubicka  <jh@suse.cz>
243
244         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
245         (cgraph_local_node_p): ... here; handle aliases.
246         (has_addr_references_p): Break out from ...;
247         (cgraph_remove_unreachable_nodes) ... here.
248
249 2011-06-10  Jan Hubicka  <jh@suse.cz>
250
251         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
252         * common.opt (flag_inline_functions_called_once): Do not
253         initialize to 1.
254
255 2011-06-10  Jan Hubicka  <jh@suse.cz>
256
257         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
258         (ipcp_initialize_node_lattices): Do not deal with aliases;
259         Do not try to propagate through thunks.
260         (ipcp_change_tops_to_bottom): Do not deal with aliases.
261
262 2011-06-10  Jan Hubicka  <jh@suse.cz>
263
264         * ipa-prop.c (ipa_write_node_info): Stream jump functions
265         for indirect calls.
266         (ipa_read_node_info): Likewise.
267
268 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
269
270         PR lto/49302
271         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
272         (build_and_insert_call): Likewise.
273         (build_and_insert_ref): New.
274         (gimple_expand_builtin_pow): Minor cleanup.
275         (gimple_expand_builtin_cabs): New.
276         (execute_cse_sincos): Add case for BUILT_IN_CABS.
277
278 2011-06-10  Jan Hubicka  <jh@suse.cz>
279
280         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
281         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
282         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
283         (ipcp_propagate_stage): Skip aliases when propagating.
284         (ipcp_need_redirect_p): Skip aliases.
285         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
286         collect_callers_of_node.
287         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
288         for aliases.
289         (ipa_compute_jump_functions): Look through aliases.
290
291 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
292
293         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
294
295 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
296
297         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
298         Adjust comments.
299         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
300
301 2011-06-10  Jan Hubicka  <jh@suse.cz>
302
303         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
304         Update call of gimple_get_virt_method_for_binfo.
305         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
306         refuse_thunks parameter.
307         (gimple_fold_call): Update.
308         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
309
310 2011-06-10  Jan Hubicka  <jh@suse.cz>
311
312         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
313         (not_all_callers_have_enough_arguments_p): ... this one; turn into
314         worker for cgraph_for_node_and_aliases.
315         (convert_callers_for_node): Break out from ...
316         (convert_callers): ... here.
317         (modify_function): Use collect_callers_of_node.
318         (ipa_early_sra): Use cgraph_for_node_and_aliases.
319
320 2011-06-10  Richard Guenther  <rguenther@suse.de>
321
322         PR tree-optimization/49361
323         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
324         when not already in gimple form.
325
326 2011-06-10  Richard Guenther  <rguenther@suse.de>
327
328         PR bootstrap/49344
329         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
330         FOR_EACH_PHI_OR_STMT_USE.
331
332 2011-06-10  Jan Hubicka  <jh@suse.cz>
333
334         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
335         (clone_inlined_nodes): ... here.
336         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
337         to real destination prior inlining.
338         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
339         can_early_inline_edge_p, want_early_inline_function_p,
340         want_early_inline_function_p, want_inline_small_function_p,
341         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
342         edge_badness, update_all_callee_keys, lookup_recursive_calls,
343         add_new_edges_to_heap, inline_small_functions, flatten_function,
344         inline_always_inline_functions, early_inline_small_functions): Use
345         cgraph_function_or_thunk_node.
346         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
347         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
348         (do_estimate_edge_growth_1): Break out from ...
349         (do_estimate_growth) ... here; walk aliases.
350         (inline_generate_summary): Skip aliases.
351
352 2011-06-10  Richard Guenther  <rguenther@suse.de>
353
354         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
355         forward when combining, visit inserted stmts when a stmt was changed.
356
357 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
358
359         * tree.h (error_operand_p): Add.
360         * dbxout.c (dbxout_type_fields): Use the latter.
361         * c-decl.c (add_stmt): Likewise.
362         * gimplify.c (omp_add_variable, omp_notice_variable,
363         gimplify_scan_omp_clauses): Likewise.
364
365 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
366
367         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
368         when a value is actually passed in regs.
369
370 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
371             Laurent Rougé  <laurent.rouge@menta.fr>
372
373         * doc/invoke.texi (SPARC options): Add -mflat.
374         * config/sparc/sparc.opt: Likewise.
375         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
376         (sparc_flat_expand_prologue): Declare.
377         (sparc_flat_expand_epilogue): Likewise.
378         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
379         (CPP_ENDIAN_SPEC): Replace with...
380         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
381         (CPP_SPEC): Adjust to above change.
382         (EXTRA_SPECS): Likewise.
383         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
384         (INCOMING_REGNO): Likewise.
385         (OUTGOING_REGNO): Likewise.
386         (LOCAL_REGNO): Likewise.
387         (SETUP_FRAME_ADDRESSES): Likewise.
388         (FIXED_REGISTERS): Set 0 for %fp.
389         (CALL_USED_REGISTERS): Likewise.
390         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
391         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
392         (RETURN_ADDR_REGNUM): Define.
393         (RETURN_ADDR_RTX): Use it.
394         (INCOMING_RETURN_ADDR_REGNUM): Define.
395         (INCOMING_RETURN_ADDR_RTX): Use it.
396         (DWARF_FRAME_RETURN_COLUMN): Likewise.
397         (EH_RETURN_REGNUM): Define.
398         (EH_RETURN_STACKADJ_RTX): Use it.
399         (EH_RETURN_HANDLER_RTX): Delete.
400         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
401         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
402         Delete.
403         (struct machine_function): Add frame_size, apparent_frame_size,
404         frame_base_reg, frame_base_offset, n_global_fp_regs and
405         save_local_in_regs_p fields.
406         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
407         sparc_frame_base_offset, sparc_n_global_fp_regs,
408         sparc_save_local_in_regs_p): New macros.
409         (sparc_option_override): Error out if -fcall-saved-REG is specified
410         for Out registers.
411         (eligible_for_restore_insn): Fix formatting.
412         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
413         (eligible_for_sibcall_delay): Likewise.
414         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
415         (sparc_legitimate_address_p): Adjust to above change.
416         (save_global_or_fp_reg_p): New predicate.
417         (return_addr_reg_needed_p): Likewise.
418         (save_local_or_in_reg_p): Likewise.
419         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
420         (SORR_SAVE, SORR_RESTORE): Delete.
421         (sorr_pred_t): New typedef.
422         (sorr_act_t): New enum.
423         (save_or_restore_regs): Rename to...
424         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
425         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
426         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
427         mechanism.  Add CFI information for double-word saves in 32-bit mode.
428         (emit_adjust_base_to_offset): New function extracted from...
429         (emit_save_or_restore_regs): ...this.  Rename the rest to...
430         (emit_save_or_restore_regs_global_fp_regs): ...this.
431         (emit_save_or_restore_regs_local_in_regs): New function.
432         (gen_create_flat_frame_[123]): New functions.
433         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
434         (sparc_flat_expand_prologue): New function.
435         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
436         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
437         (sparc_flat_expand_epilogue): New function.
438         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
439         (output_return): Likewise.
440         (output_sibcall): Likewise.
441         (sparc_output_mi_thunk): Likewise.
442         (sparc_frame_pointer_required): Likewise.
443         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
444         function optimization.
445         * config/sparc/sparc.md (flat): New attribute.
446         (prologue): Add TARGET_FLAT handling.
447         (save_register_window): Disable if TARGET_FLAT.
448         (create_flat_frame_[123]): New patterns.
449         (epilogue): Add TARGET_FLAT handling.
450         (sibcall_epilogue): Likewise.
451         (eh_return): New expander.
452         (eh_return_internal): New insn and splitter.
453         (return_internal): Add TARGET_FLAT handling.
454         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
455         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
456         (nonlocal_goto): Add TARGET_FLAT handling.
457         * config/sparc/t-elf: Add -mflat multilib.
458         * config/sparc/t-leon: Likewise.
459
460 2011-06-10  Jan Hubicka  <jh@suse.cz>
461
462         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
463         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
464         (self_recursive_p): Use cgraph_function_node.
465         (propagate_pure_const): Likewise.
466         (propagate_nothrow): Likewise.
467         * ipa-reference.c (ipa_reference_get_not_read_global): Use
468         cgraph_function_node.
469         (propagate_bits): Likewise.
470         (propagate): Likewise.
471
472 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
473             Richard Earnshaw  <rearnsha@arm.com>
474
475         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
476         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
477         (*thumb2_movdi_vfp): Delete.
478         (*arm_movdi_vfp_cortexa8): Delete.
479         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
480         (*movdi_vfp_cortexa8): Likewise.
481
482 2011-06-10  Richard Guenther  <rguenther@suse.de>
483
484         * stor-layout.c (initialize_sizetypes): Give names to all
485         sizetype kinds.
486
487 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
488
489         PR tree-optimization/49318
490         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
491         irrelevant pattern statements.
492
493 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
494
495         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
496
497         PR bootstrap/49354
498         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
499         to last assignment.
500
501 2011-06-09  Jan Hubicka  <jh@suse.cz>
502
503         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
504         do not recompute reachable flag.
505         (cgraph_finalize_function, cgraph_analyze_functions): Set
506         redefined_extern_inline here.
507
508 2011-06-09  Jan Hubicka  <jh@suse.cz>
509
510         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
511         (cgraph_only_called_directly_p): ... this one; bring offline.
512         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
513         varpool_used_from_object_file_p): Drop names from the declaratoin.
514         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
515         collect_callers_of_node): New.
516         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
517         (cgraph_edge_recursive_p): Use cgraph_function_node.
518         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
519         (cgraph_node_cannot_be_local_p_1): Break out from ...
520         (cgraph_node_can_be_local_p): ... here; walk aliases.
521         (cgraph_for_node_thunks_and_aliases): New function.
522         (cgraph_for_node_and_aliases): New function.
523         (cgraph_make_node_local_1): Break out from ...
524         (cgraph_make_node_local) ... here; use
525         cgraph_for_node_thunks_and_aliases.
526         (cgraph_set_nothrow_flag_1): Break out from ...
527         (cgraph_set_nothrow_flag) ... here;
528         use cgraph_for_node_thunks_and_aliases.
529         (cgraph_set_const_flag_1): Break out from ...
530         (cgraph_set_const_flag) ... here;
531         use cgraph_for_node_thunks_and_aliases.
532         (cgraph_set_pure_flag_1): Break out from ...
533         (cgraph_set_pure_flag) ... here;
534         use cgraph_for_node_thunks_and_aliases.
535         (cgraph_propagate_frequency_1): Break out from ...
536         (cgraph_propagate_frequency) ... here; use
537         cgraph_for_node_thunks_and_aliases.
538         (cgraph_used_from_object_file_p): Do not care about aliases.
539         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
540         New functions.
541         (collect_callers_of_node_1, collect_callers_of_node): New functions.
542
543 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
544
545         PR rtl-optimization/49154
546         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
547         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
548         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
549         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
550         * config/cris/cris.h (cris_register_move_cost): Remove
551         !TARGET_V32 code.  Tweak comments.
552
553 2011-06-09  Jan Hubicka  <jh@suse.cz>
554
555         * cgraphbuild.c (record_eh_tables): Mark personality function as having
556         address taken.
557
558 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
559
560         PR rtl-optimization/49154
561         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
562         is a matching slot in the hashtable, assign it to classes_ptr.
563
564         PR rtl-optimization/49154
565         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
566         register classes.
567         * doc/tm.texi: Regenerate.
568
569 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
570
571         PR target/49307
572         * config/sh/sh.md (UNSPEC_CHKADD): New.
573         (chk_guard_add): New define_insn_and_split.
574         (symGOT_load): Use chk_guard_add instead of blockage.
575
576 2011-06-09  Kai Tietz  <ktietz@redhat.com>
577
578         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
579
580 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
581
582         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
583
584 2011-06-09  Wei Guozhi  <carrot@google.com>
585
586         PR target/46975
587         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
588         (peephole2 for conditional move): Generate 16 bit instructions.
589
590 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
591
592         * config/i386/i386.md (*movdi_internal_rex64): Merge
593         alternatives 6 and 8.
594
595 2011-06-09  David Li  <davidxl@google.com>
596
597         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
598         * passes.c (passr_eq): New function.
599         (create_pass_tab): New function.
600         (pass_traverse): New function.
601         (dump_one_pass): New function.
602         (dump_pass_list): New function.
603         (dump_passes): New function.
604
605 2011-06-09  David Li  <davidxl@google.com>
606
607         * tree-complex.c (tree_lower_complex): Gate cleanup.
608         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
609         (execute_optimize_stdarg): Ditto.
610         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
611         (execute_cleanup_eh_1): Ditto.
612         (execute_cleanup_eh): Ditto.
613         * gcse.c (gate_rtl_pre): Ditto.
614         (execute_rtl_pre): Ditto.
615         * except.c (finish_eh_generation): Ditto.
616         (convert_to_eh_region_ranges): Ditto.
617         * cprop.c (one_cprop_pass): Ditto.
618
619 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
620
621         PR target/48673
622         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
623         in all basic blocks.
624
625 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
626
627         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
628         (HAVE_ENABLE_EXECUTE_STACK): Define.
629         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
630         (HAVE_ENABLE_EXECUTE_STACK): Define.
631         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
632         (HAVE_ENABLE_EXECUTE_STACK): Define.
633         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
634         (ENABLE_EXECUTE_STACK): Remove.
635         (HAVE_ENABLE_EXECUTE_STACK): Define.
636         [IN_LIBGCC2]: Don't include <windows.h>.
637         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
638         (HAVE_ENABLE_EXECUTE_STACK): Define.
639         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
640         (HAVE_ENABLE_EXECUTE_STACK): Define.
641         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
642         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
643         (HAVE_ENABLE_EXECUTE_STACK): Define.
644         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
645         (HAVE_ENABLE_EXECUTE_STACK): Define.
646         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
647         (HAVE_ENABLE_EXECUTE_STACK): Define.
648         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
649         (HAVE_ENABLE_EXECUTE_STACK): Define.
650         * config/alpha/alpha.c (alpha_trampoline_init): Test
651         HAVE_ENABLE_EXECUTE_STACK.
652         * config/i386/i386.c (ix86_trampoline_init): Likewise.
653         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
654         (sparc64_initialize_trampoline): Likewise.
655         * libgcc2.c [L_enable_execute_stack]: Remove.
656         * system.h (ENABLE_EXECUTE_STACK): Poison.
657         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
658         * doc/tm.texi: Regenerate.
659         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
660
661 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
662
663         PR middle-end/49308
664         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
665         variable.  After resetting and rescanning insn continue with previous
666         statement.
667
668 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
669
670         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
671         (gcc_cv_ld_hidden): Likewise.
672         * configure: Regenerate.
673         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
674         (ix86_stack_protect_fail): Mark unused.
675         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
676         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
677         [TARGET_MACHO]: Don't define.
678         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
679         (TARGET_STACK_PROTECT_FAIL): Likewise.
680         (rs6000_stack_protect_fail): Mark unused.
681         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
682         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
683
684 2011-06-08  Andi Kleen  <ak@linux.intel.com>
685
686         * varasm.c (get_section): Print location of other conflict
687         for section conflicts.
688
689 2011-06-08  Andi Kleen  <ak@linux.intel.com>
690
691         * config/i386/driver-i386.c (host_detect_local_cpu):
692         Add model 0x2d Intel CPU.
693
694 2011-06-08  Andi Kleen  <ak@linux.intel.com>
695
696         * reginfo.c (global_regs_decl): Add.
697         (globalize_reg): Add decl parameter. Compute location.  Pass location
698         to warnings and add inform. Store decl in global_regs_decl.
699         * rtl.h (globalize_reg): Update prototype.
700         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
701
702 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
703
704         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
705
706 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
707
708         PR target/49305
709         * config/sh/predicates.md (general_movsrc_operand): Check
710         mode for memory with indexed address for QI and HImode.
711         (general_movdst_operand): Likewise.
712
713 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
714
715         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
716
717 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
718
719         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
720         (num_ssa_operands): Likewise.
721         (op_iter_init_phiuse): Forward-declare.
722         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
723
724 2011-06-08  Nick Clifton  <nickc@redhat.com>
725
726         * doc/invoke.texi (ARM Options): Update description of
727         -mthumb-interwork.
728
729 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
730
731         * config/i386/driver-i386.c (host_detect_local_cpu): Support
732         unknown Intel family 0x6 CPUs.
733
734 2011-06-08  Martin Jambor  <mjambor@suse.cz>
735
736         * tree-sra.c (mark_rw_status): Removed.
737         (analyze_access_subtree): New parameter parent instead of
738         mark_read and mark_write, propagate from that.
739
740 2011-06-08  Julian Brown  <julian@codesourcery.com>
741
742         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
743         for double-precision helper functions in hard-float mode if only
744         single-precision arithmetic is supported in hardware.
745
746 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
747
748         PR rtl-optimization/49303
749         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
750         code_motion_path_driver returned 0 or 1.
751         (sel_region_finish): Clear h_d_i_d.
752
753 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
754
755         * config/sh/sh.c (prepare_move_operands): Set pic register
756         appropriately for global and local dynamic tls models even
757         if flag_pic is unset.
758
759 2011-06-07  Jason Merrill  <jason@redhat.com>
760
761         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
762
763 2011-06-07  Xinliang David Li  <davidxl@google.com>
764         * passes.c (enable_disable_pass): Handle assembler name.
765         (is_pass_explicitly_enabled_or_disabled): Ditto.
766
767 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
768
769         PR tree-optimization/48497
770         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
771
772 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
773
774         PR tree-optimization/46728
775         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
776         to use gimple_val_nonnegative_real_p.
777         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
778         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
779
780 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
781
782         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
783
784 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
785
786         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
787         constant vectors.
788
789 2011-06-07  Richard Guenther  <rguenther@suse.de>
790
791         * stor-layout.c (initialize_sizetypes): Initialize all
792         sizetypes based on target definitions.
793         (set_sizetype): Remove.
794         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
795         * tree.h (set_sizetype): Remove.
796
797 2011-06-07  Nick Clifton  <nickc@redhat.com>
798
799         * config.gcc: Unify V850 architecture options and add support for
800         newer V850 architectures.
801         * config/v850/t-v850e: Delete.
802
803 2011-06-07  Richard Guenther  <rguenther@suse.de>
804
805         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
806         Call set_sizetype from here.
807
808 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
809
810         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
811         (*maddhisi4tb, *maddhisi4tt): New define_insns.
812
813 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
814             Andrew Stubbs  <ams@codesourcery.com>
815
816         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
817         multiplies.
818         * doc/md.texi (Canonicalization of Instructions): Document widening
819         multiply canonicalization.
820
821 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
822
823         PR gcov-profile/49299
824         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
825
826 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
827
828         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
829         a pointer.
830         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
831         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
832         vect_recog_pow_pattern): Likewise.
833         (vect_pattern_recog_1): Remove declaration.
834         (widened_name_p): Remove declaration.  Add new argument to specify
835         whether to check that both types are either signed or unsigned.
836         (vect_recog_widen_mult_pattern): Update documentation.  Handle
837         unsigned patterns and multiplication by constants.
838         (vect_pattern_recog_1): Update vect_recog_func references.  Use
839         statement information from the statement returned from pattern
840         detection functions.
841         (vect_pattern_recog): Update vect_recog_func reference.
842         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
843         multiplication by a constant use the type of the other operand.
844
845 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
846
847         PR rtl-optimization/49145
848         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
849
850 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
851
852         PR debug/49262
853         * dwarf2out.c (native_encode_initializer): Decrement count in each
854         iteration.
855
856         PR debug/49294
857         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
858         non-MODE_INT modes.
859
860         PR c++/49264
861         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
862         if stmt folded into nothing.
863         * tree-inline.c (fold_marked_statements): If a builtin at the end of
864         a bb folded into nothing, just update cgraph edges and move to next bb.
865         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
866         to be NULL.  Don't compute count and frequency if new_call is NULL.
867
868 2011-06-04  Diego Novillo  <dnovillo@google.com>
869
870         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
871         (cgraph.o): Likewise.
872         (cgraphunit.o): Likewise.
873         * cgraphunit.c: Include lto-streamer.h
874         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
875         if LTO is enabled.
876         * lto-streamer-in.c (unpack_value_fields): Call
877         streamer_hooks.unpack_value_fields if set.
878         (lto_materialize_tree): For unhandled nodes, first try to
879         call lto_streamer_hooks.alloc_tree, if it exists.
880         (lto_input_ts_decl_common_tree_pointers): Move reading of
881         DECL_INITIAL to lto_streamer_read_tree.
882         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
883         (lto_streamer_read_tree): New.
884         (lto_reader_init): Rename from lto_init_reader.
885         Move initialization code to lto/lto.c.
886         * lto-streamer-out.c (pack_value_fields): Call
887         streamer_hooks.pack_value_fields if set.
888         (lto_output_tree_ref): For tree nodes that are not normally indexable,
889         call streamer_hooks.indexable_with_decls_p before giving up.
890         (lto_output_ts_decl_common_tree_pointers): Move handling
891         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
892         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
893         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
894         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
895         (lto_streamer_write_tree): New.
896         (lto_output): Call lto_streamer_init directly.
897         (lto_writer_init): Remove.
898         * lto-streamer.c (streamer_hooks): New.
899         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
900         instead of lto_preload_common_nodes.
901         (lto_is_streamable): Move from lto-streamer.h
902         (lto_streamer_hooks_init): New.
903         (streamer_hooks): New.
904         (streamer_hooks_init): New.
905         * lto-streamer.h (struct output_block): Forward declare.
906         (struct lto_input_block): Likewise.
907         (struct data_in): Likewise.
908         (struct bitpack_d): Likewise.
909         (struct streamer_hooks): Declare.
910         (streamer_hooks): Declare.
911         (lto_streamer_hooks_init): Declare.
912         (lto_streamer_write_tree): Declare.
913         (lto_streamer_read_tree): Declare.
914         (streamer_hooks_init): Declare.
915         (lto_is_streamable): Move to lto-streamer.c
916
917 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
918
919         * longlong.h (smul_ppmm): The resulting register pair contains the
920         higher order word first.
921
922 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
923
924         PR tree-optimization/46728
925         * builtins.c (powi_table): Remove.
926         (powi_lookup_cost): Remove.
927         (powi_cost): Remove.
928         (expand_powi_1): Remove.
929         (expand_powi): Remove.
930         (expand_builtin_pow_root): Remove.
931         (expand_builtin_pow): Remove.
932         (expand_builtin_powi): Eliminate handling of constant exponent.
933         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
934
935 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
936
937         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
938
939 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
940
941         * dce.c (reset_unmarked_insns_debug_uses): New.
942         (delete_unmarked_insns): Skip debug insns.
943         (prescan_insns_for_dce): Likewise.
944         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
945         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
946         active reg can be found.
947         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
948         (convert_regs_1): Use it.
949
950 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
951
952         * tree-pretty-print.c (dump_function_header): Add flags.
953         Don't dump decl_uid with nouid.
954         * tree-pretty-print.h (dump_function_header): Adjust.
955         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
956         * passes.c (pass_init_dump_file): Pass dump_flags on.
957         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
958
959 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
960
961         PR bootstrap/49270
962         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
963
964 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
965
966         PR tree-optimization/49243
967         * calls.c (setjmp_call_p): Also check if fndecl has the
968         returns_twice attribute.
969
970 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
971
972         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
973         -ffast-math etc.
974
975 2011-06-06  Richard Henderson  <rth@redhat.com>
976             Georg-Johann Lay  <avr@gjlay.de>
977
978         PR target/42210
979         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
980         New predicates.
981         * config/avr/avr.md ("insv"): New insn expander.
982         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
983         "*insv.not.io", "*insv.reg"): New insns.
984
985 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
986
987         PR target/49285
988         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
989         to nonimmediate_operand from memory_operand for the operand that is to
990         be forced to memory by the expander.  Lose the constraints.
991
992 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
993
994         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
995         EH return when delayed branches are disabled.
996
997 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
998
999         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1000         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
1001         calculation.
1002         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1003         Simplify MODE_V1DF and MODE_V2SF handling.
1004         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1005         Simplify MODE_SF handling.
1006
1007 2011-06-04  Jan Hubicka  <jh@suse.cz>
1008
1009         PR tree-optimization/48893
1010         PR tree-optimization/49091
1011         PR tree-optimization/49179
1012         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1013         Bounds check.
1014
1015 2011-06-04  Jan Hubicka  <jh@suse.cz>
1016
1017         PR lto/48954
1018         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1019         bitmaps.
1020
1021 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
1022
1023         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1024
1025 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
1026
1027         PR target/49281
1028         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1029         to be strictly smaller than 1 << shiftcount.
1030
1031 2011-06-04  Jan Hubicka  <jh@suse.cz>
1032
1033         PR tree-optimize/48929
1034         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1035         of empty predicate.
1036
1037 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
1038
1039         PR debug/48333
1040         * calls.c (emit_call_1): Prefer the __builtin declaration of
1041         builtin functions.
1042
1043 2011-06-03   Diego Novillo  <dnovillo@google.com>
1044
1045         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1046         (lto_input_tree_pointers): Likewise.
1047         * lto-streamer-out.c (pack_value_fields): Likewise.
1048         (lto_output_tree_pointers): Likewise.
1049         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1050         and OPTIMIZATION_NODE.
1051
1052 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1053
1054         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1055         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1056         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1057         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1058         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1059         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1060         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1061         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1062         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1063         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1064         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1065         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1066         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1067         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1068         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1069         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1070         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1071         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1072         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1073         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1074         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1075         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1076         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1077         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1078         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1079         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1080         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1081         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1082         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1083         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1084         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1085         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1086         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1087         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1088         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1089         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1090         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1091         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1092         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1093         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1094         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1095         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1096         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1097         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1098         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1099         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1100         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1101         * system.h (MD_UNWIND_SUPPORT): Poison.
1102         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1103         * doc/tm.texi: Regenerate.
1104         * unwind-dw2.c: Include md-unwind-support.h instead of
1105         MD_UNWIND_SUPPORT.
1106         * config/ia64/unwind-ia64.c: Likewise.
1107         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1108
1109 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
1110
1111         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1112
1113 2011-06-03  Richard Henderson  <rth@redhat.com>
1114             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1115
1116         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1117         (sigill_hdlr): Correct insn, insn size.
1118         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1119
1120 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1123         t-slibgcc-dummy.
1124         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1125         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1126         * config/mips/t-iris: Remove.
1127         * config/mips/t-irix6: New file.
1128         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1129
1130 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1131
1132         * Makefile.in (LIB2ADDEHDEP): Remove.
1133         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1134         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1135         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1136         * config/t-darwin (LIB2ADDEHDEP): Remove.
1137         * config/t-freebsd (LIB2ADDEHDEP): Remove.
1138         * config/t-linux (LIB2ADDEHDEP): Remove.
1139
1140 2011-06-03  Diego Novillo  <dnovillo@google.com>
1141
1142         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1143         (lto_register_var_decl_in_symtab): Likewise.
1144         (lto_register_function_decl_in_symtab): Likewise.
1145         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1146         logic to uniquify_nodes.
1147
1148 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1149
1150         * config/alpha/t-osf5: Remove.
1151         * config/alpha/t-osf-pthread: Remove.
1152         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1153         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1154
1155 2011-06-03  Julian Brown  <julian@codesourcery.com>
1156
1157         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1158         (strongarm1110): Use strongarm tuning.
1159         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1160         * config/arm/arm.c (arm_strongarm_tune): New.
1161         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1162         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1163         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1164         setting, using previous defaults or 1 for Cortex-A5.
1165         (arm_option_override): Set max_insns_skipped from current tuning.
1166
1167 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
1168
1169         * doc/install.texi (Options specification): Document --with-specs.
1170
1171 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1172
1173         * config/arm/neon.md (orndi3_neon): Actually split it.
1174
1175 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
1176
1177         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1178         * var-tracking.c (reverse_op): Limite recurse depth to 5.
1179
1180 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
1181
1182         PR debug/47590
1183         * target.def (delay_sched2, delay_vartrack): New.
1184         * doc/tm.texi.in: Update.
1185         * doc/tm.texi: Rebuild.
1186         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1187         * var-tracking.c (gate_handle_var_tracking): Likewise.
1188         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1189         (bfin_flag_var_tracking): Drop.
1190         (output_file_start): Don't save and override flag_var_tracking.
1191         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1192         (bfin_reorg): Test original variables.
1193         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1194         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1195         (ia64_flag_var_tracking): Drop.
1196         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1197         (ia64_file_start): Don't save and override flag_var_tracking.
1198         (ia64_override_options_after_change): Ditto
1199         flag_schedule_insns_after_reload.
1200         (ia64_reorg): Test original variables.
1201         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1202         (picochip_flag_var_tracking): Drop.
1203         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1204         (picochip_option_override): Don't save and override
1205         flag_schedule_insns_after_reload.
1206         (picochip_asm_file_start): Ditto flag_var_tracking.
1207         (picochip_reorg): Test original variables.
1208         * config/spu/spu.c (spu_flag_var_tracking): Drop.
1209         (TARGET_DELAY_VARTRACK): Define.
1210         (spu_var_tracking): New.
1211         (spu_machine_dependent_reorg): Call it.
1212         (asm_file_start): Don't save and override flag_var_tracking.
1213
1214 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1215
1216         PR target/49163
1217         * config/sh/predicates.md (general_movsrc_operand): Return 0
1218         for memory and memory subreg of which address is an invalid
1219         indexed address for QI and HImode.
1220         (general_movdst_operand): Likewise.
1221
1222 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1223
1224         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1225         edges only, when there is a non-local label in the function.
1226         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1227
1228 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
1229
1230         * config/i386/constraints.md (Y3): New register constraint.
1231         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1232         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1233         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1234         *sse2_interleave_lowv2df.
1235
1236 2011-06-02  Julian Brown  <julian@codesourcery.com>
1237
1238         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1239         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1240         (arm_cortex_a5_tune): New.
1241
1242 2011-06-02  Julian Brown  <julian@codesourcery.com>
1243
1244         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1245         * config/arm/arm.c (arm_default_branch_cost): New.
1246         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1247         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1248         (arm_fa726_tune): Set branch_cost field using
1249         arm_default_branch_cost.
1250         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1251         current_tune structure.
1252         * dojump.c (tm_p.h): Include file.
1253
1254 2011-06-02  Julian Brown  <julian@codesourcery.com>
1255
1256         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1257         tuning.
1258         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1259         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1260         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1261         field.
1262         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1263         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1264         (arm_fa726te_tune): Add prefer_constant_pool setting.
1265         (arm_v6t2_tune, arm_cortex_tune): New.
1266         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1267         prefer_constant_pool setting.
1268
1269 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
1270
1271         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1272         switch statement.
1273         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1274         (*movdf_internal) <case 6,7,8>: Ditto.
1275
1276         * config/i386/constraints.md (Y4): New register constraint.
1277         * config/i386/sse.md (vec_set<mode>_0): Merge with
1278         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1279         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1280         *vec_extractv2di_1_sse.
1281         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1282         and *vec_concatv2di_rex64_sse.
1283
1284 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
1285
1286         PR target/48807
1287         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1288         of cgraph_local_info for null before attempting to use it.
1289
1290 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1291
1292         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1293         (current_function_dynamic_alloc_count): Delete.
1294         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1295         (expand_builtin_nonlocal_goto): Remove obsolete comment.
1296         (expand_builtin_update_setjmp_buf): Remove dead code.
1297         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1298         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1299         support.
1300         * function.c (instantiate_virtual_regs): Likewise.
1301         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1302         for a block with a single abnormal incoming edge.
1303         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1304         (SETJMP_VIA_SAVE_AREA): Delete.
1305         * config/sparc/sparc-protos.h (load_got_register): Declare.
1306         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1307         (load_got_register): Make global.
1308         (sparc_frame_pointer_required): Add 'static'.
1309         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
1310         (sparc_builtin_setjmp_frame_value): New function.
1311         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1312         (save_stack_nonlocal): New expander.
1313         (restore_stack_nonlocal): Likewise.
1314         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1315         (nonlocal_goto_internal): New insn.
1316         (goto_handler_and_restore): Delete.
1317         (builtin_setjmp_setup): Likewise.
1318         (do_builtin_setjmp_setup): Likewise.
1319         (setjmp): Likewise.
1320         (builtin_setjmp_receiver): New expander.
1321
1322 2011-06-01  David Li  <davidxl@google.com>
1323
1324         PR middle-end/49261
1325         * tree-pretty-print.c (dump_function_header): Format cleanup.
1326
1327 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1328
1329         PR target/49238
1330         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1331         needed when original operands are used for msw_skip comparison.
1332
1333 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1334
1335         PR debug/49250
1336         * var-tracking.c (add_uses, add_stores): Don't call
1337         cselib_subst_to_values on ENTRY_VALUE.
1338
1339 2011-06-01  Diego Novillo  <dnovillo@google.com>
1340
1341         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1342         output_record_start with LTO_null instead of output_zero.
1343         (lto_output_ts_binfo_tree_pointers): Likewise.
1344         (lto_output_tree): Likewise.
1345         (output_eh_try_list): Likewise.
1346         (output_eh_region): Likewise.
1347         (output_eh_lp): Likewise.
1348         (output_eh_regions): Likewise.
1349         (output_bb): Likewise.
1350         (output_function): Likewise.
1351         (output_unreferenced_globals): Likewise.
1352         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1353         instead of NUM_TREE_CODES.
1354         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1355         (lto_output_int_in_range): Change << to >> when shifting VAL.
1356
1357 2011-06-01  Diego Novillo  <dnovillo@google.com>
1358
1359         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1360         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1361
1362 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1363
1364         PR target/45074
1365         * optabs.h (valid_multiword_target_p): Declare.
1366         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1367         doing multi-word operations.
1368         * optabs.c (expand_binop): Likewise.
1369         (expand_doubleword_bswap): Likewise.
1370         (expand_absneg_bit): Likewise.
1371         (expand_unop): Likewise.
1372         (expand_copysign_bit): Likewise.
1373         (multiword_target_p): New function.
1374
1375 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1376
1377         PR rtl-optimization/48830
1378         PR rtl-optimization/48808
1379         PR rtl-optimization/48792
1380         * reload.c (push_reload): Check contains_reg_of_mode.
1381         * reload1.c (strip_paradoxical_subreg): New function.
1382         (gen_reload_chain_without_interm_reg_p): Use it to handle
1383         paradoxical subregs.
1384         (emit_output_reload_insns, gen_reload): Likewise.
1385
1386 2011-06-01  David Li  <davidxl@google.com>
1387
1388         * predict.c : Change pass name
1389         * ipa.c: Ditto.
1390         * dce.c: Ditto.
1391         * tree-profile.c: Ditto.
1392         * except.c: Ditto.
1393
1394 2011-06-01  David Li  <davidxl@google.com>
1395
1396         * tree-pretty-print.c (dump_function_header): New function.
1397         * final.c (rest_of_clean_state): Use header dumper.
1398         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1399         * passes.c (pass_init_dump_file): Use header dumper.
1400
1401 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1402
1403         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1404         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1405         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1406         New functions.
1407         (mem_loc_descriptor): Use them.
1408
1409         * var-tracking.c (create_entry_value): New function.
1410         (vt_add_function_parameter): Use it.
1411
1412 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1413
1414         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1415         Include <signal.h>, <ucontext.h>.
1416         (sigill_caught): Define.
1417         (sigill_hdlr): New function.
1418         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1419         insns can be executed.
1420         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1421         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1422
1423 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1424
1425         * config/t-slibgcc-darwin: Move to ...
1426         * config/t-slibgcc-dummy: ... this.  Clarify comments.
1427         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1428         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1429         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1430         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
1431         Remove i386/t-crtstuff from tmake_file.
1432         (i[34567]86-*-solaris2*): Remove t-svr4,
1433         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1434         t-slibgcc-dummy.
1435         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1436         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1437         sparc/t-crtfm from tmake_file.
1438         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1439         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1440         Remove extra_parts.
1441         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1442         * config/i386/t-nwld (SHLIB_LINK): Remove.
1443         * config/i386/t-rtems-i386: Rename to ...
1444         * config/i386/t-rtems: ... this.
1445         ($(T)crti.o, $(T)crtn.o): Remove.
1446         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1447         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1448         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1449         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1450         EXTRA_MULTILIB_PARTS): Remove.
1451         * config/sparc/t-sol2-64: Likewise.
1452         * config/sparc/t-sol2: Remove.
1453         * config/sparc/t-crtin: Remove.
1454         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1455         * config/i386/gmon-sol2.c: Remove.
1456         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1457         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1458         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1459         * config/i386/sol2-gc1.asm: Remove.
1460         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1461         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1462         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1463         * config/t-slibgcc-sld: Remove.
1464
1465 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1466
1467         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1468         base_type_for_mode with op_mode instead of mode.
1469
1470 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
1471
1472         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
1473         Cortex-A15.
1474         * config/arm/arm-tune.md: Regenerate.
1475         * config/arm/arm-tables.opt: Regenerate.
1476         * config/arm/arm.c (FL_DIV): Rename...
1477         (FL_THUMB_DIV): ... to this.
1478         (FL_ARM_DIV): Define.
1479         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1480         (arm_arch_hwdiv): Remove.
1481         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1482         (arm_issue_rate): Add cortexr5.
1483         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1484         __ARM_ARCH_EXT_IDIV__.
1485         (TARGET_IDIV): Define.
1486         (arm_arch_hwdiv): Remove.
1487         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1488         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1489         (divsi3, udivsi3): New patterns.
1490         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1491         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1492
1493 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1494
1495         * ipa-utils.c (ipa_dfs_info): New field scc_no.
1496         * ipa-utils.c (searchc): Set scc_no.
1497
1498 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1499
1500         * ipa-utils.c (searchc_env): New field allow_overwritable.
1501         (searchc): do not ignore edges to overwritable nodes if indicated
1502         by env->allow_overwritable.
1503         (ipa_reduced_postorder): Set env.allow_overwritable.
1504
1505 2011-06-01  Richard Guenther  <rguenther@suse.de>
1506
1507         * tree.c (free_lang_data): Do not reset boolean_type_node nor
1508         char_type_node.
1509         * lto-streamer.c (lto_record_common_node): Take node pointer,
1510         do not register types.
1511         (lto_preload_common_nodes): Explicitly skip preloading nodes
1512         that differ between frontends.
1513
1514 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1515
1516         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1517         NON_FLOAT_REGS.
1518
1519 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1520
1521         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1522         parameter value for dump. Dump cost on outermost call only.
1523         (rs6000_memory_move_cost): Dump cost on outermost call only.
1524
1525 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1526
1527         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1528         DW_OP_GNU_convert ops.
1529
1530         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1531         cselib_preserve_constants.
1532         (cselib_lookup_1): If cselib_preserve_constants,
1533         a new VALUE is being created for REG and there is a VALUE for the
1534         same register in wider mode, add another loc with lowpart SUBREG of
1535         the wider VALUE.
1536         (cselib_subst_to_values): Handle ENTRY_VALUE.
1537         * var-tracking.c  (replace_expr_with_values): Return NULL for
1538         ENTRY_VALUE too.
1539         * dwarf2out.c (convert_descriptor_to_signed): New function.
1540         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1541         instead of two shifts.
1542         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1543         the right mode if needed.
1544         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1545         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1546         convert_descriptor_to_signed.
1547         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1548         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1549
1550         PR target/48688
1551         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1552
1553 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1554
1555         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1556         of X87MODEI12 and SWI48x instead of SSEMODEI24.
1557         (SWI248x): New mode iterator, rename from X87MODEI.
1558         (X87MODEI): Remove mode iterator.
1559         (X87MODEI12): Ditto.
1560         (SSEMODEI24): Ditto.
1561
1562 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1563
1564         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1565         * doc/invoke.texi: Document max-vartrack-expr-depth.
1566         * var-tracking.c (EXPR_DEPTH): New.
1567         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1568
1569 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1570
1571         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1572         * config/i386/sse.md: Add n to negated FMA pattern names.
1573
1574 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1575
1576         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1577
1578 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1579
1580         * gengtype-state.c (read_state_params_structs): Initialize previous.
1581
1582 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1583
1584         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1585         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1586
1587 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1588
1589         * config/i386/i386.md (*movtf_internal): Avoid allocating general
1590         registers.  Penalize F*r->o alternative to prevent partial memory
1591         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
1592         CONST_DOUBLE immediates when optimizing function for size.  Do not move
1593         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1594         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1595         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1596         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1597         alternatives.
1598         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1599
1600         (fp_register_operand splitters): Use fp_register_operand
1601         constraint.  Do not use FP_REG_P in insn condition.
1602         (any_fp_register_operand splitters): Use any_fp_register_operand
1603         constraint.  Do not use ANY_FP_REG_P in insn condition.
1604
1605 2011-05-31  Jan Hubicka  <jh@suse.cz>
1606
1607         * cgraph.h (cgraph_inline_failed_t): Give enum a name
1608         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1609         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1610         (lto_output_edge): Use output_enum and var_len_unsigned.
1611         (lto_output_varpool_node): Likewise.
1612         (input_overwrite_node): Do not take resolution parameter;
1613         extract it from a bitpack.
1614         (input_node): Do not read resolution; use input_enum and
1615         var_len_unsigned.
1616         (input_varpool_node): Likewise.
1617         (input_edge): Likewise.
1618         (input_cgraph_1): Likewise.
1619
1620 2011-05-31  Richard Guenther  <rguenther@suse.de>
1621
1622         * gimple.c (gimple_register_canonical_type): Do not register
1623         any types via gimple_register_type.
1624
1625 2011-05-31  Jan Hubicka  <jh@suse.cz>
1626
1627         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1628         of thunks.
1629
1630 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1631
1632         PR rtl-optimization/49235
1633         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1634         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1635
1636 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
1637
1638         PR tree-optimization/49093
1639         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1640         data references.
1641
1642 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
1643
1644         PR debug/49047
1645         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1646         for concrete functions containing the code of cloned functions.
1647
1648 2011-05-31  Richard Guenther  <rguenther@suse.de>
1649
1650         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1651         to ...
1652         (forward_propagate_into_comparison_1): ... this.
1653         (forward_propagate_comparison): Rename to ...
1654         (forward_propagate_into_comparison): ... this.  Split out
1655         real forward propagation code to ...
1656         (forward_propagate_comparison): ... this.
1657         (forward_propagate_into_gimple_cond): Remove looping.
1658         (forward_propagate_into_cond): Likewise.
1659         (simplify_not_neg_expr): Return whether we have done something.
1660         (simplify_gimple_switch): Likewise.
1661         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1662         (ssa_forward_propagate_and_combine): ... this.  Re-structure
1663         to do a forward forward-propagation walk on BBs and a backward
1664         stmt combining walk on BBs.  Consistently re-scan changed statements.
1665         (pass_forwprop): Adjust.
1666
1667 2011-05-30  Ian Lance Taylor  <iant@google.com>
1668
1669         * godump.c (go_format_type): Correct length of name added to
1670         obstack for anonymous field.
1671
1672 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1673
1674         PR target/49186
1675         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1676         part of the second operand is 0.
1677
1678 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
1679
1680         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1681         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
1682         to memory for !TARGET_MEMORY_MISMATCH_STALL.
1683         (*movdf_internal_rex64): Do not penalize F->r alternative.
1684         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1685         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
1686         when optimizing function for size.  Do not move CONST_DOUBLEs
1687         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1688         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
1689         SUBREGs.  Do not check for MEM_P operands in the insn condition,
1690         check for ANY_FP_REGNO_P instead.
1691         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1692         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1693         function for speed.
1694         * config/i386/i386.c (ix86_option_override_internal): Do not
1695         set TARGET_INTEGER_DFMODE_MOVES here.
1696
1697 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1698
1699         PR target/49168
1700         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1701
1702 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1705         DW_TAG_rvalue_reference_type even for
1706         -gdwarf-4 -fno-debug-types-section.
1707
1708 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1709
1710         PR tree-optimization/46728
1711         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1712         (build_and_insert_binop): New.
1713         (gimple_expand_builtin_pow): Reorder args for
1714         build_and_insert_call; use build_and_insert_binop; add more
1715         optimizations for fractional exponents.
1716
1717 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
1718
1719         PR bootstrap/49190
1720
1721         Revert:
1722         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1723
1724         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1725         tree_common.
1726         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1727         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1728         TS_BASE instead of TS_COMMON.
1729         * varasm.c (assemble_name): Remove assert.
1730
1731 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
1732
1733         * config.gcc: Keep obselete list sorted.
1734
1735 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1736             Eric Botcazou  <ebotcazou@adacore.com>
1737
1738         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1739         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1740         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1741         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1742         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1743
1744 2011-05-30  Richard Guenther  <rguenther@suse.de>
1745
1746         * gimple.c (gimple_types_compatible_p_1): Compare record
1747         and union type members properly.
1748
1749 2011-05-30  Richard Guenther  <rguenther@suse.de>
1750
1751         PR tree-optimization/49210
1752         * ipa-split.c (split_function): Care for the case where the call
1753         result is not trivially convertible to the result holding variable.
1754
1755 2011-05-30  Richard Guenther  <rguenther@suse.de>
1756
1757         PR tree-optimization/49218
1758         * tree-vrp.c (adjust_range_with_scev): Properly check whether
1759         overflow occured.
1760
1761 2011-05-30  Richard Guenther  <rguenther@suse.de>
1762
1763         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1764         New function split out from ...
1765         (forward_propagate_into_gimple_cond): ... here.  Adjust.
1766         (forward_propagate_into_cond): Likewise.
1767         (forward_propagate_comparison): Also propagate into
1768         comparisons on assignment RHS.  Change return value to
1769         behave similar to forward_propagate_into_cond.
1770         (tree_ssa_forward_propagate_single_use_vars): Handle
1771         strict-overflow warnings properly for forward_propagate_comparison.
1772
1773 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1774
1775         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1776         from plugin linker.
1777         * configure: Regenerate.
1778
1779 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
1780
1781         PR tree-optimization/49199
1782         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1783         non-reduction operands are either defined in the loop or by induction.
1784
1785 2011-05-29  Xinliang David Li  <davidxl@google.com>
1786
1787         * opts-global.c (handle_common_deferred_options): Handle new options.
1788         * passes.c (register_one_dump_file): Call register_pass_name.
1789         (execute_one_pass): Check explicit enable/disable flag.
1790         (passr_hash): New function.
1791         (passr_eq): Ditto.
1792         (register_pass_name): Ditto.
1793         (get_pass_by_name): Ditto.
1794         (pass_hash): Ditto.
1795         (pass_eq): Ditto.
1796         (enable_pass): Ditto.
1797         (disable_pass): Ditto.
1798         (is_pass_explicitly_enabled_or_disabled): Ditto.
1799
1800 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
1801
1802         * config/i386/i386.md (*movoi_internal_avx): Use
1803         standard_sse_constant_opcode for alternative 0.
1804         (*movti_internal_sse): Ditto.
1805         (*movti_internal_rex64): Use standard_sse_constant_opcode for
1806         alternative 2.
1807         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1808         sselog1 type moves.
1809         (*movsi_internal): Ditto.
1810         (*movdi_internal): Ditto.  Add ssecvt type moves.
1811
1812 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1813
1814         PR target/48830
1815         * rtlanal.c (simplify_subreg_regno): Adjust comment.
1816
1817 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
1818
1819         PR rtl-optimization/49095
1820         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1821         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1822
1823 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1824
1825         PR target/43995
1826         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1827         recurse_p argument.  Only follow register copies if it is set,
1828         and prevent mips_find_pic_call_symbol from recursing.
1829         (mips_find_pic_call_symbol): Add a recurse_p argument.
1830         Pass it to mips_pic_call_symbol_from_set.
1831         (mips_annotate_pic_calls): Update accordingly.
1832
1833 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1834
1835         * emit-rtl.c (try_split): Use a loop to search for
1836         NOTE_INSN_CALL_ARG_LOCATIONs.
1837
1838 2011-05-29  Richard Guenther  <rguenther@suse.de>
1839
1840         PR tree-optimization/49217
1841         * ipa-pure-const.c (propagate_pure_const): Fix typos.
1842
1843 2011-05-28  Jan Hubicka  <jh@suse.cz>
1844
1845         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1846         length.
1847         (string_slot_free): Remove
1848         (create_output_block): Initialize obstack.
1849         (destroy_output_block): Free obstack.
1850         (lto_string_index): Add PERSISTENT parameter; do not duplicate
1851         the string unless it needs to be added into the hash.
1852         (lto_output_string_with_length): Add persistent attribute;
1853         handle NULL strings.
1854         (lto_output_string): Add PERSISTENT parameter.
1855         (output_string_cst, output_identifier): Simplify.
1856         (lto_output_location_bitpack): Update.
1857         (lto_output_builtin_tree): Update.
1858         * lto-streamer.h (struct output_block): Add obstack.
1859         (lto_output_string, lto_output_string_with_length): Remove
1860         declarations; functions are static now.
1861
1862 2011-05-28  Jan Hubicka  <jh@suse.cz>
1863
1864         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1865         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1866         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1867         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1868         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1869         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1870         unpack_ts_decl_with_vis_value_fields,
1871         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1872         lto_get_builtin_tree): Use enum and variable length i/o.
1873         * basic-block.h (profile_status_d): Add PROFILE_LAST.
1874         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1875         New functions.
1876         (bp_pack_enum, bp_unpack_enum): New macros.
1877
1878 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1879
1880         * genrecog.c: Remove redundant forward declarations.
1881
1882 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1883
1884         * config.gcc: Deprecate mips*-*-openbsd*.
1885
1886 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1887
1888         PR bootstrap/49195
1889         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1890         for match_op_dup.
1891
1892 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
1893
1894         PR middle-end/48981
1895         * gengtype.c (vec_prefix_type): New function.
1896         (note_def_vec): Use vec_prefix_type and change the length
1897         attribute to be based on the prefix.
1898         * vec.c: Include coretypes.h before vec.h.
1899         (struct vec_prefix): Remove.
1900         (vec_gc_p_reserve): Change the offsetof to sizeof.
1901         (vec_gc_p_reserve_exact): Likewise.
1902         (vec_heap_p_reserve): Likewise.
1903         (vec_heap_p_reserve_exact): Likewise.
1904         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1905         (vec_stack_p_reserve): Change the offsetof to sizeof.
1906         (vec_stack_p_reserve_exact): Likewise.
1907         * vec.h (struct vec_prefix): New struct definition.
1908         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1909         (VEC_T_GTY(T,B)): Likewise.
1910         (DEF_VEC_FUNC_P(T)): Use prefix field.
1911         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1912         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1913
1914 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1915
1916         PR tree-optimization/46728
1917         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1918         (powi_as_mults): Add gimple_set_location.
1919         (build_and_insert_call): New.
1920         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1921         0.5, 0.25, 0.75, 1./3., or 1./6.
1922
1923 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
1924
1925         * doc/contrib.texi: Update copyright years.
1926         (Contributors): Add Zdenek Sojka.
1927
1928 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
1929
1930         * c-decl.c (c_push_function_context): Copy the current statement
1931         list stack.
1932         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1933         (finish_struct): Call building_stmt_list_p instead of checking
1934         cur_stmt_list.
1935         * c-parser.c (c_parser_postfix_expression): Likewise.
1936         * c-typeck.c (c_end_compound_stmt): Likewise.
1937         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1938         * tree-iterator.c (stmt_list_cache): Change to a VEC.
1939         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1940         (free_stmt_list): Likewise.
1941         * tree.h (struct tree_statement_list): Include typed_tree instead
1942         of tree_common.
1943         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1944         as TS_TYPED instead of TS_COMMON.
1945
1946 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1947             Uros Bizjak  <ubizjak@gmail.com>
1948
1949         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1950         (HAVE_AS_IX86_TLSGDPTL): Define.
1951         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1952         (HAVE_AS_IX86_TLSLDMPLT): Define.
1953         * configure: Regenerate.
1954         * config.in: Regenerate.
1955         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1956         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1957         TARGET_SUN_TLS, use @tlsgdplt or @plt.
1958         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1959         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1960         @tlsldmplt or @plt.
1961         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1962
1963 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1964
1965         * sched-int.h (struct _haifa_deps_insn_data): New members cond
1966         and reverse_cond.
1967         (INSN_COND, INSN_REVERSE_COND): New macros.
1968         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1969         once.
1970         (sched_get_condition_with_rev): Cache the results, and look them up
1971         if possible.
1972         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1973         are clobbered by the current insn.
1974         * target.def (exposed_pipline): New sched data hook.
1975         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1976         * doc/tm.texi: Regenerate.
1977
1978 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1979
1980         PR tree-optimization/49170
1981         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
1982         sincos or cexp.
1983
1984 2011-05-27  Richard Guenther  <rguenther@suse.de>
1985
1986         PR middle-end/49189
1987         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1988         of comparisons.
1989
1990 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1991
1992         * haifa-sched.c (sched_scan_info): Remove.
1993         (schedule_block): Call sched_extend_luids rather than sched_init_luids
1994         with NULL args.
1995         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1996         Remove functions.
1997         (sched_scan): Remove.
1998         (sched_extend_luids): Renamed from luids_extend_insn and no longer
1999         static.  All callers changed.
2000         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2001         static.  All callers changed.
2002         (sched_init_luids): Remove all arguments except the first.  All
2003         callers changed.  Don't use sched_scan.
2004         (haifa_init_h_i_d): Likewise.
2005         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2006         manually rather than using sched_init_luids.  Likewise with
2007         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2008         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2009         rather than sched_init_luids with NULL args.
2010         * sel-sched-ir.c (new_insns): Remove variable.
2011         (sched_scan): New static function, previously in haifa-sched.c.  Remove
2012         all arguments but the first two; all callers changed.
2013         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2014         rather than sched_init_luids.
2015         (sel_init_bbs): Remove second argument.  All callers changed.
2016         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2017         with NULL arguments.
2018         (create_insn_rtx_from_pattern): Likewise.
2019         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2020         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2021         (sched_init_insn_luid, sched_extend_luids): Declare.
2022         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2023         declarations.
2024
2025 2011-05-27  Richard Guenther  <rguenther@suse.de>
2026
2027         PR middle-end/49177
2028         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2029         A CMP B ? (T) true : (T) false for non-integral types T again.
2030
2031 2011-05-27  Jan Hubicka  <jh@suse.cz>
2032
2033         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2034         so 0 means NULL string.
2035         (lto_output_string_with_length): ... here.
2036         (lto_output_string, output_string_cst, output_identifier): Update
2037         handling of NULL strings.
2038         (lto_output_location_bitpack): New function.
2039         (lto_output_location): Use it.
2040         (lto_output_tree_ref): Use output_record_start.
2041         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2042         len values.
2043         * lto-streamer-in.c (string_for_index): Break out from ...; offset
2044         values by 1.
2045         (input_string_internal): ... here;
2046         (input_string_cst, input_identifier, lto_input_string): Update handling
2047         of NULL strings.
2048         (lto_input_location_bitpack): New function
2049         (lto_input_location): Use it.
2050         (unpack_ts_type_common_value_fields): Pack align & alias in var len
2051         values.
2052         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2053         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2054         (bp_pack_value): Sanity check the value range.
2055         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2056         New functions.
2057         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2058         New functions.
2059
2060 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
2061
2062         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2063         call_arg_location instructions down the floor.
2064
2065 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
2066
2067         PR rtl-optimization/49154
2068         * ira.c (setup_pressure_classes): Process class without sublcasses
2069         as a candidate for pressure classes.
2070
2071 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
2072
2073         PR rtl-optimization/48575
2074         * genrecog.c (position_type): New enum.
2075         (position): New structure.
2076         (decision): Use position structure instead of a string.
2077         (root_pos, peep2_insn_pos_list): New variables.
2078         (next_position, compare_positions): New functions.
2079         (new_decision): Use position structures instead of strings.
2080         (maybe_both_true): Likewise.
2081         (change_state): Likewise.
2082         (write_tree): Likewise.
2083         (make_insn_sequence): Likewise.
2084
2085 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2086
2087         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2088         TS_BASE instead of TS_COMMON.
2089         (find_decls_types_r): Check for TS_TYPED structure before looking at
2090         TREE_TYPE.
2091         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2092         Add chain field.
2093         (BLOCK_CHAIN): Use new chain field.
2094
2095 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
2096
2097         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2098         moves expensive on Power7 also.
2099
2100 2011-05-26  Richard Guenther  <rguenther@suse.de>
2101
2102         * fold-const.c (fold_unary_loc): Remove bogus code.
2103
2104 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2105
2106         * tree.h (struct tree_identifier): Inherit from tree_typed, not
2107         tree_common.
2108         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2109         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2110         TS_BASE instead of TS_COMMON.
2111         * varasm.c (assemble_name): Remove assert.
2112
2113 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
2114
2115         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2116         substituted first.
2117         * libgcc-std.ver: Delete file.
2118
2119 2011-05-26  Richard Guenther  <rguenther@suse.de>
2120
2121         PR tree-optimization/48702
2122         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2123         only when we know the base address is within bounds.
2124         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2125         assume the base address of TARGET_MEM_REFs is in bounds.
2126
2127 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2128
2129         PR target/49099
2130         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2131         declaration in TARGET_SOLARIS.
2132
2133 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
2134
2135         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2136         The instruction is then expanded explicitly.
2137         (supported_compare): Callable instruction.
2138         (compare): Likewise.
2139
2140 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
2141
2142         PR c++/49165
2143         * gimplify.c (shortcut_cond_r): Don't special case
2144         COND_EXPRs if they have void type on one of their arms.
2145
2146 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
2147
2148         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2149         to reduce duplication, and to achieve a slightly more logical order
2150         of operations.
2151
2152 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
2153
2154         PR tree-optimization/49161
2155         * tree-vrp.c (struct case_info): New type.
2156         (compare_case_labels): Sort case_info structs instead of
2157         trees, and not primarily by CASE_LABEL uids but by
2158         label_for_block indexes.
2159         (find_switch_asserts): Put case labels into struct case_info
2160         array instead of TREE_VEC, adjust sorting, compare label_for_block
2161         values instead of CASE_LABELs.
2162
2163 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2164
2165         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2166         ("orndi3_neon"): Likewise.
2167         ("bic<mode>3_neon"): Likewise.
2168
2169 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
2170
2171         PR tree-optimization/49038
2172         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2173         Ensure at least one epilogue iteration if required by data
2174         accesses with gaps.
2175         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2176         to mark loops that require peeling for gaps.
2177         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2178         (vect_get_known_peeling_cost): Take peeling for gaps into
2179         account.
2180         (vect_transform_loop): Generate epilogue if required by data
2181         access with gaps.
2182         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2183         loop as requiring an epilogue if there are gaps in the end of
2184         the strided group.
2185
2186 2011-05-25  Ian Lance Taylor  <iant@google.com>
2187
2188         * godump.c (go_format_type): Output the first field with a usable
2189         Go type, if any.
2190
2191 2011-05-25  Ian Lance Taylor  <iant@google.com>
2192
2193         * godump.c (go_format_type): Check for invalid type names, pointer
2194         target types, and struct field types.
2195
2196 2011-05-25  Jason Merrill  <jason@redhat.com>
2197
2198         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2199
2200 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
2201
2202         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2203
2204 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2205
2206         * config/i386/i386.md (*movqi_extv_1)): Put back
2207         "register_operand" check in "type" calculation.
2208         (*movqi_extzv_2): Likewise.
2209
2210 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2211
2212         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2213
2214 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
2215
2216         PR bootstrap/49160
2217         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2218         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2219         __divxc3, __divtc3): Wrap definitions in #ifndef.
2220
2221 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2222
2223         PR target/49142
2224         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2225         "register_operand" check and replace q_regs_operand with
2226         QIreg_operand in "type" calculation.
2227         (*movqi_extv_1): Likewise.
2228         (*movqi_extzv_2_rex64): Likewise.
2229         (*movqi_extzv_2): Likewise.
2230
2231         * config/i386/predicates.md (QIreg_operand): New.
2232
2233 2011-05-25  Richard Guenther  <rguenther@suse.de>
2234
2235         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2236         type-based offset disambiguation, streamline MEM_REF and
2237         TARGET_MEM_REF handling.
2238
2239 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2240
2241         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2242         (bdesc_special_args): Add pause intrinsic.
2243
2244         * config/i386/i386.md (UNSPEC_PAUSE): New.
2245         (pause): Likewise.
2246         (*pause): Likewise.
2247         * config/i386/ia32intrin.h (__pause): Likewise.
2248
2249         * doc/extend.texi (X86 Built-in Functions): Add documentation for
2250         pause intrinsic.
2251
2252 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2253
2254         PR tree-optimization/46728
2255         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2256         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2257
2258 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
2259
2260         * tree.h (struct tree_exp): Inherit from struct tree_typed.
2261         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2262         instead of TS_COMMON.
2263
2264 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
2265
2266         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2267         LIBGCC2_GNU_PREFIX is defined.
2268         (__N): New macro.
2269         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2270         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2271         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2272         __clz_tab): Define using __N.
2273         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2274         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2275         * target.def (libfunc_gnu_prefix): New hook.
2276         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2277         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2278         * doc/tm.texi: Regenerate.
2279         * system.h (LIBGCC2_GNU_PREFIX): Poison.
2280         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2281         account.
2282         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2283         (init_optabs): Likewise for the bswap libfuncs.
2284         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2285         and divide.
2286         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2287         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2288         * libgcc-std.ver: Remove.
2289         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2290         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2291         libgcc-std.ver.
2292         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2293         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2294         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2295         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2296         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2297         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2298         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2299         * config/fixed-bit.h (FIXED_OP): Define differently depending on
2300         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2301         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2302
2303 2011-05-25  Jan Hubicka  <jh@suse.cz>
2304
2305         * lto-streamer-out.c (output_record_start): Use lto_output_enum
2306         (lto_output_tree): Use output_record_start.
2307         * lto-streamer-in.c (input_record_start): Use lto_input_enum
2308         (lto_get_pickled_tree): Use input_record_start.
2309         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2310         (lto_value_range_error): New function.
2311         * lto-streamer.h (lto_value_range_error): Declare.
2312         (lto_output_int_in_range, lto_input_int_in_range): New functions.
2313         (lto_output_enum, lto_input_enum): New macros.
2314
2315 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2316
2317         * common.opt (flag_stack_usage_info): New variable.
2318         (-Wstack-usage): New option.
2319         * doc/invoke.texi (Warning options): Document -Wstack-usage.
2320         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2321         <OPT_fstack_usage>: Likewise.
2322         * toplev.c (output_stack_usage): Handle -Wstack-usage.
2323         * calls.c (expand_call): Test flag_stack_usage_info variable instead
2324         of flag_stack_usage.
2325         (emit_library_call_value_1): Likewise.
2326         * explow.c (allocate_dynamic_stack_space): Likewise.
2327         * function.c (instantiate_virtual_regs ): Likewise.
2328         (prepare_function_start): Likewise.
2329         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2330         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2331         * config/arm/arm.c (arm_expand_prologue): Likewise.
2332         (thumb1_expand_prologue): Likewise.
2333         * config/avr/avr.c (expand_prologue): Likewise.
2334         * config/i386/i386.c (ix86_expand_prologue): Likewise.
2335         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2336         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2337         * config/mips/mips.c (mips_expand_prologue): Likewise.
2338         * config/pa/pa.c (hppa_expand_prologue): Likewise.
2339         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2340         * config/s390/s390.c (s390_emit_prologue): Likewise.
2341         * config/sh/sh.c (sh_expand_prologue): Likewise.
2342         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2343         * config/spu/spu.c (spu_expand_prologue): Likewise.
2344
2345 2011-05-25  Richard Guenther  <rguenther@suse.de>
2346
2347         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2348         (gimple_canonical_types_compatible_p): Likewise.
2349
2350 2011-05-25  Jan Hubicka  <jh@suse.cz>
2351
2352         PR middle-end/49062
2353         * ipa.c (function_and_variable_visibility): Only add to same
2354         comdat group list if DECL_ONE_ONLY.
2355
2356 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
2357
2358         PR rtl-optimization/49014
2359         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2360
2361 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2362
2363         PR target/49128
2364         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2365
2366 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2367
2368         PR rtl-optimization/48757
2369         * ira-build.c (loop_with_eh_edge_p): Rename to
2370         loop_with_complex_edge_p, check edges on complexity, make function
2371         conditional.
2372         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2373         conditional.
2374
2375 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2376
2377         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2378         force flag_ira_share_save_slots to 0.
2379
2380 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2381
2382         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2383         (vt_initialize): Set PROLOGUE_BB unconditionally.
2384         Add block comment about CFA_BASE_RTX machinery.
2385         Reset FP_CFA_OFFSET to -1 on all invalid paths.
2386         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2387
2388 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
2389
2390         PR objc/48187
2391         * c-parser.c (c_parser_objc_class_instance_variables): More robust
2392         parsing of syntax error in ObjC instance variable lists.  In
2393         particular, avoid an infinite loop if there is a stray ']'.
2394         Updated error message.
2395
2396 2011-05-24  Ian Lance Taylor  <iant@google.com>
2397
2398         * godump.c (go_define): Don't accept a string immediately after
2399         another operand.
2400
2401 2011-05-24  Ian Lance Taylor  <iant@google.com>
2402
2403         * godump.c (struct godump_container): Add invalid_hash field.
2404         (go_format_type): Return false if type is found in invalid_hash.
2405         (go_output_typedef): Add invalid type to invalid_hash.
2406         (go_finish): Create and delete invalid_hash.
2407
2408 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2409
2410         PR tree-optimization/46728
2411         * tree-ssa-math-opts.c (powi_table): New.
2412         (powi_lookup_cost): New.
2413         (powi_cost): New.
2414         (powi_as_mults_1): New.
2415         (powi_as_mults): New.
2416         (gimple_expand_builtin_powi): New.
2417         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2418         (gate_cse_sincos): Remove sincos/cexp restriction.
2419
2420 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2421
2422         PR target/3746
2423         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2424         mips-tdump native.
2425         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2426         * mips-tdump.c: Likewise.
2427
2428 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2429
2430         PR target/49128
2431         * config/i386/driver-i386.c (host_detect_local_cpu): Always
2432         add -mno-XXX.  Handle FMA.
2433
2434 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2435
2436         PR rtl-optimization/48633
2437         * ira-build.c (loop_with_eh_edge_p): New function.
2438         (mark_loops_for_removal): Use it.
2439
2440 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2441
2442         PR rtl-optimization/48971
2443         * ira.c (setup_pressure_classes): Don't check register move cost
2444         for classes with one registers.  Don't add pressure class if there
2445         is a pressure class with the same available hard registers.
2446         Check contains_reg_of_mode.  Fix a typo in collecting
2447         temp_hard_regset.  Ignore hard registers not belonging to a class.
2448
2449 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
2450
2451         PR target/49133
2452         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2453
2454 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2455             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2456
2457         PR gcov-profile/48845
2458         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2459
2460 2011-05-24  Richard Guenther  <rguenther@suse.de>
2461
2462         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2463         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2464         (gimple_types_compatible_p_1): Adjust.
2465         (iterative_hash_canonical_type): Do not bother about complete vs.
2466         incomplete types.
2467         (gimple_canonical_types_compatible_p): Likewise.
2468
2469 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2470
2471         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2472
2473 2011-05-24  Richard Guenther  <rguenther@suse.de>
2474
2475         PR bootstrap/49078
2476         * gimple.c (gimple_register_canonical_type): Revert
2477         previous change.
2478         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2479         does not for a tree for the case where it matters.  Cache
2480         pointer-type alias-sets.
2481
2482 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
2483
2484         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2485         (OBJS): Remove options.o, opts-common.o and prefix.o.
2486         (OBJS-libcommon-target): New.
2487         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2488         (BACKEND): Include libcommon-target.a.
2489         (MOSTLYCLEANFILES): Include libcommon-target.a.
2490         (libcommon-target.a): New.
2491         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2492         prefix.o.
2493
2494 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
2495
2496         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
2497         parts of output shared with the driver.
2498         * optc-gen.awk: Don't generate parts of output not shared with the
2499         driver.
2500         * opth-gen.awk: Remove GCC_DRIVER conditionals.
2501         * doc/options.texi (SourcerInclude): Mention options-save.c.
2502         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2503         (OBJS): Add options-save.o.
2504         (options-save.c, options-save.o): New.
2505         (options.o): Update dependencies.
2506         (gcc-options.o): Remove.
2507         (mostlyclean): Remove options-save.c.
2508
2509 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2510
2511         PR debug/49032
2512         * dbxout.c: Include cgraph.h.
2513         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2514         and without value expr, return NULL if no varpool node exists for
2515         it or if it is not needed.
2516         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2517
2518         PR c/49120
2519         * c-decl.c (start_decl): Convert expr to void_type_node.
2520
2521 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
2522
2523         PR rtl-optimization/48826
2524         * emit-rtl.c (try_split): When splitting a call that is followed
2525         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2526
2527 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2528
2529         * cfgexpand.c (expand_debug_expr): For unused non-addressable
2530         parameters passed in memory prefer using DECL_INCOMING_RTL over
2531         the pseudos it will be copied into.
2532
2533 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2534
2535         PR target/47315
2536         * config/i386/i386.c (ix86_option_override_internal): Save the
2537         initial options after checking vzeroupper.
2538
2539 2011-05-23  David Li  <davidxl@google.com>
2540
2541         PR tree-optimization/48988
2542         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2543         Initialize has_valid_pred for each pred chain.
2544
2545 2011-05-23  Richard Guenther  <rguenther@suse.de>
2546
2547         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2548         (iterative_hash_gimple_type): Always hash type names.
2549
2550 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
2551
2552         * c-typeck.c (build_function_call_vec): Tweak call to
2553         check_function_arguments.
2554
2555 2011-05-23  Richard Guenther  <rguenther@suse.de>
2556
2557         PR tree-optimization/49115
2558         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2559         is not necessarily carried out, do not claim it kills the ref.
2560         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2561
2562 2011-05-23  Richard Guenther  <rguenther@suse.de>
2563
2564         PR middle-end/15419
2565         * builtins.c (fold_builtin_memory_op): Be less restrictive about
2566         what pointer types we accept for folding.
2567
2568 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2569
2570         * gthr-gnat.c: Remove.
2571         * gthr-gnat.h: Remove.
2572         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2573         * config/t-freebsd (LIB2ADDEH): Likewise.
2574         * config/t-linux (LIB2ADDEH): Likewise.
2575         * config/t-sol2 (LIB2ADDEH): Likewise.
2576         * config/ia64/t-vms (LIB2ADDEH): Likewise.
2577         * configure.ac (target_thread_file): Remove gnat handling.
2578         * configure: Regenerate.
2579         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2580
2581 2011-05-23  Tristan Gingold  <gingold@adacore.com>
2582             Eric Botcazou  <ebotcazou@adacore.com>
2583
2584         * gcov.c (create_file_names): If no object directory is specified,
2585         keep the directory of the file.
2586
2587 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2588
2589         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2590         * configure: Regenerate.
2591
2592 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2593
2594         PR middle-end/48973
2595         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2596         failed and the comparison has a single bit signed type, use
2597         constm1_rtx instead of const1_rtx for true value.
2598         (do_store_flag): If ops->type is single bit signed type, disable
2599         signel bit test optimization and pass -1 instead of 1 as last
2600         parameter to emit_store_flag_force.
2601
2602 2011-05-23  Tom de Vries  <tom@codesourcery.com>
2603
2604         PR target/45098
2605         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2606         function.
2607         (infer_loop_bounds_from_undefined): Use new function.
2608
2609 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2610
2611         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2612         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
2613         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2614         and -O0 otherwise.
2615         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2616
2617 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2618
2619         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2620         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2621         returns true.
2622
2623 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2624
2625         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2626
2627 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2628
2629         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2630         UNSPEC_MOVE_PIC pattern.
2631
2632 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2633
2634         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2635         (sparc-*-rtems*): Likewise.
2636         (sparc64-*-elf*): Likewise.
2637         (sparc64-*-rtems*): Likewise.
2638         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
2639         * config/sparc/t-crtin: New file.
2640         * config/sparc/t-sol2 (crti.o): Delete rule.
2641         (crtn.o): Likewise.
2642         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2643         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2644         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2645         (ENDFILE_SPEC): Add crtn.o.
2646
2647 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2648
2649         PR middle-end/48689
2650         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2651         CODE_CONTAINS_STRUCT (TS_COMMON).
2652
2653 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
2654
2655         PR middle-end/49029
2656         * expmed.c (extract_fixed_bit_field): Test whether target can be used
2657         only after deciding which mode to use.
2658
2659 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2660
2661         PR target/45098
2662         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2663         for call to get_shiftadd_cost.
2664
2665 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
2666
2667         PR target/49104
2668         * config/i386/cpuid.h (bit_MMXEXT): New define.
2669
2670 2011-05-22  Nick Clifton  <nickc@redhat.com>
2671
2672         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2673         initialisation of non-existant args[2] element.  Use args[] array
2674         not arg[] array to pass arguments to build_function_type_list.
2675
2676 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
2677
2678         PR tree-optimization/49087
2679         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2680
2681 2011-05-21  Jason Merrill  <jason@redhat.com>
2682
2683         PR c++/49092
2684         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2685         static storage duration.
2686
2687 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2688
2689         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2690         frame pointer.
2691
2692 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2693
2694         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2695         false if there are call-saved registers here...
2696         (sparc_can_use_return_insn_p): ...but here instead.
2697         (save_or_restore_regs): Fix thinko.
2698         (sparc_expand_prologue): Use current_function_is_leaf.
2699         (sparc_frame_pointer_required): Likewise.
2700
2701 2011-05-21  Nick Clifton  <nickc@redhat.com>
2702
2703         PR target/49098
2704         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2705
2706 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2707
2708         * gengtype.c (walk_type): Implemented "atomic" GTY option.
2709         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2710
2711 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
2712
2713         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
2714         * optc-gen.awk: Move common code to opt-read.awk.
2715         * opth-gen.awk: Likewise.
2716         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2717
2718 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
2719
2720         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2721
2722 2011-05-20  Tom de Vries  <tom@codesourcery.com>
2723
2724         PR target/45098
2725         * tree-ssa-loop-ivopts.c: Include expmed.h.
2726         (get_shiftadd_cost): New function.
2727         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
2728
2729 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2730
2731         PR bootstrap/49086
2732         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2733         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2734
2735 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2736
2737         * Makefile.in: Update comment referring to $(OBJS-common).
2738
2739 2011-05-20  Ian Lance Taylor  <iant@google.com>
2740
2741         * godump.c (go_output_typedef): Put enum constants in the macro
2742         hash table to avoid duplicate Go const definitions.
2743
2744 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2745
2746         * Makefile.in (LIBDEPS): Add libcommon.a.
2747         (LIBS): Likewise.
2748         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2749         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2750         pretty-print.o and version.o.
2751         (OBJS-libcommon): New.
2752         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2753         (BACKEND): Add libcommon.a.
2754         (MOSTLYCLEANFILES): Likewise.
2755         (libcommon.a): New.
2756         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2757         (cpp$(exeext)): Likewise.
2758         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2759         pretty-print.o and input.o.
2760         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2761         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2762         (errors.o): Remove.
2763         (mips-tfile): Don't explicitly use version.o.
2764         (mips-tdump): Likewise.
2765         (gcov.o): Depend on $(DIAGNOSTIC_H).
2766         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2767         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2768         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2769         * gcov-dump.c: Include intl.h and diagnostic.h.
2770         (main): Initialize diagnostics.
2771         * gcov.c: Include diagnostic.h.
2772         (fnotice): Remove.
2773         (main): Initialize diagnostics.
2774         * lto-wrapper.c: Include diagnostic.h.
2775         (main): Initialize diagnostics.
2776
2777 2011-05-20  Michael Matz  <matz@suse.de>
2778
2779         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2780
2781 2011-05-20  Michael Matz  <matz@suse.de>
2782             Richard Guenther  <rguenther@suse.de>
2783
2784         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2785         use lto_streamer_cache_append directly instead of returning a VEC.
2786         (preload_common_node): Remove.
2787         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2788         track seen nodes.
2789         (lto_streamer_cache_create): Call lto_preload_common_nodes.
2790
2791 2011-05-20  Richard Guenther  <rguenther@suse.de>
2792
2793         PR tree-optimization/49079
2794         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2795         MEM_REFs correctly for the trailing array access detection.
2796         Special case constants the same way as decls for overall size
2797         constraining.
2798
2799 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
2800
2801         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2802         argument expansion.
2803
2804 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2805
2806         PR tree-optimization/49073
2807         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2808         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2809         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2810
2811 2011-05-20  Richard Guenther  <rguenther@suse.de>
2812
2813         PR middle-end/48849
2814         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2815         of pointer types the same way the middle-end does.
2816
2817 2011-05-20  Richard Guenther  <rguenther@suse.de>
2818
2819         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2820         or pointer-to chains.  Delay all fixup to uniquify_nodes.
2821
2822 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
2823
2824         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2825         (fma4_fmaddsub): Likewise
2826
2827 2011-05-19  Jan Hubicka  <jh@suse.cz>
2828
2829         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2830         (GIMPLE_TYPE_PAIR_SIZE): New macro.
2831         (type_pair_cache): New static var.
2832         (lookup_type_pair): Use fixed sized custom hash; make inline.
2833         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2834         calls of lookup_type_pair.
2835         (print_gimple_types_stats): Remove cache stats.
2836         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2837         and gtc_ob.
2838
2839 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
2840
2841         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2842         when TARGET_RDRND is active.
2843         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2844         Generate dummy SImode target register when target is NULL.
2845
2846 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2847
2848         * config/arm/arm-fpus.def: New.
2849         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2850         arm-fpus.def.
2851         * config/arm/arm-tables.opt: Regenerate.
2852         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2853         (arm_option_override): Don't decode FPU name to string here.
2854         * config/arm/arm.opt (mfpu=): Use Enum.
2855         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2856         Update dependencies.
2857
2858 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2859
2860         * collect2.c: Include diagnostic.h.
2861         (fatal_perror, fatal, error, fancy_abort): Remove.
2862         (main): Set progname.  Call xmalloc_set_program_name and
2863         diagnostic_initialize.
2864         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2865         scan_libraries, resolve_lib_name): Call fatal_error instead of
2866         fatal and fatal_perror.
2867         * collect2.h (error, fatal, fatal_perror): Don't declare.
2868         * tlink.c: Include diagnostic-core.h.
2869         (recompile_files): Call fatal_error instead of fatal_perror.
2870         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2871         pretty-print.o and input.o.
2872         (collect2.o, tlink.o): Update dependencies.
2873
2874 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2875
2876         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2877
2878 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2879
2880         PR target/40483
2881         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2882         COMDAT group syntax, both SPARC and x86 variants.
2883         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2884         * configure: Regenerate.
2885         * config/sol2.h (TARGET_SOLARIS): Define.
2886         (PUSHSECTION_FORMAT): Remove.
2887         (SECTION_NAME_FORMAT): Define.
2888         * config/sol2.c: Include hashtab.h.
2889         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2890         expansion, using SECTION_NAME_FORMAT.
2891         (solaris_comdat_htab): New variable.
2892         (struct comdat_entry): Define.
2893         (comdat_hash): New function.
2894         (comdat_eq): New function.
2895         (solaris_elf_asm_comdat_section): New function.
2896         (solaris_define_comdat_signature): New function.
2897         (solaris_code_end): New function.
2898         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2899         (solaris_code_end): Declare.
2900         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2901         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2902         solaris_code_end.
2903         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2904         Remove ATTRIBUTE_UNUSED.
2905         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2906         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2907         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2908         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2909         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2910         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2911         (PUSHSECTION_FORMAT): Remove.
2912         (SECTION_NAME_FORMAT): Redefine.
2913
2914 2011-05-19  Kai Tietz  <ktietz@redhat.com>
2915
2916         * tree-cfg.c (verify_gimple_assign_binary): Barf on
2917         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2918         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2919
2920 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
2921             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2922
2923         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2924
2925 2011-05-19  Richard Guenther  <rguenther@suse.de>
2926
2927         PR middle-end/48985
2928         * tree-object-size.c (addr_object_size): If the pointed-to
2929         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2930
2931 2011-05-19  Richard Guenther  <rguenther@suse.de>
2932
2933         * gimple.c (gimple_types_compatible_p_1): Compare names of
2934         the types themselves.
2935         (iterative_hash_gimple_type): And hash them that way.
2936         (gimple_register_type_1): If we register a main variant properly
2937         initialize the leader to ourselves.
2938
2939 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2940
2941         PR target/45098
2942         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2943         get_loop_invariant_expr_id.
2944         (get_loop_invariant_expr_id): Use get_expr_id.
2945         (parm_decl_cost): New function.
2946         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2947         Improve bound cost estimation.  Use different inv_expr_id for elim and
2948         express cases.
2949
2950 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2951
2952         PR target/45098
2953         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2954         cost_base.cost == 0.
2955
2956 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2957
2958         PR target/49002
2959         * config/i386/sse.md
2960         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2961         load cast.
2962
2963 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2964
2965         PR tree-optimization/49039
2966         * tree-vrp.c (extract_range_from_binary_expr): For
2967         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2968         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2969
2970 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2971
2972         PR target/45098
2973         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2974
2975 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
2976
2977         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2978         (*tls_global_dynamic_64): Ditto.
2979         (*tls_local_dynamic_base_32_gnu): Ditto.
2980         (*tls_local_dynamic_base_64): Ditto.
2981         (tls_initial_exec_64_sun): Ditto.
2982
2983 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
2984
2985         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2986         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2987         bf592-none.
2988         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2989         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2990         * config/bfin/bfin.c (bfin_cpus): Add bf592.
2991         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2992         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2993         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2994         * config/bfin/elf.h (LIB_SPEC): Add bf592.
2995
2996 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
2997
2998         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2999         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3000         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3001         target_thread_pointer, arm_structure_size_boundary, struct
3002         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3003         struct abi_name, arm_all_abis): Remove.
3004         (arm_option_override) Don't process most enumerated option values here.
3005         Don't process target_fpe_name here.  Work with integer not string for
3006         structure size boundary; use separate diagnostics for each case.
3007         * config/arm/arm.h (enum float_abi_type, enum
3008         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3009         to arm-opts.h.
3010         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3011         arm_structure_size_boundary): Remove.
3012         * config/arm/arm.opt (mabi=): Use Enum and Init.
3013         (arm_abi_type): New Enum and EnumValue entries.
3014         (mfloat-abi=): Use Enum and Init.
3015         (float_abi_type): New Enum and EnumValue entries.
3016         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3017         (mfp16-format=): Use Enum and Init.
3018         (arm_fp16_format_type): New Enum and EnumValue entries.
3019         (mstructure-size-boundary=): Use UInteger and Init.
3020         (mtp=): Use Enum and Init.
3021         (arm_tp_type): New Enum and EnumValue entries.
3022
3023 2011-05-18  Richard Guenther  <rguenther@suse.de>
3024
3025         PR tree-optimization/49018
3026         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3027         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3028         gimple_has_side_effects.
3029
3030 2011-05-18  Richard Guenther  <rguenther@suse.de>
3031
3032         * gimple.c (gimple_register_type_1): New function, split out from ...
3033         (gimple_register_type): ... here.  Avoid infinite recursion.
3034
3035 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
3036
3037         PR tree-optimization/41881
3038         * tree-vectorizer.h (struct _loop_vec_info): Add new field
3039         reduction_chains along with a macro for its access.
3040         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3041         (destroy_loop_vec_info): Free reduction chains.
3042         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3043         (vect_is_slp_reduction): New function.
3044         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3045         (vect_create_epilog_for_reduction): Support SLP reduction chains.
3046         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3047         definition types for reduction chains.
3048         (vect_supported_load_permutation_p): Don't allow permutations for
3049         reduction chains.
3050         (vect_analyze_slp_instance): Support reduction chains.
3051         (vect_analyze_slp): Try to build SLP instance from reduction chains.
3052         (vect_get_constant_vectors):  Handle reduction chains.
3053         (vect_schedule_slp_instance): Mark the first statement of the
3054         reduction chain as reduction.
3055
3056 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
3057
3058         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3059         names for group elements access.
3060         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3061         reduction chains as well.  Remove data reference and interleaving
3062         related words from the fields names.
3063         * tree-vect-loop.c (vect_transform_loop): Use new names for group
3064         elements access.
3065         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3066         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3067         vect_update_interleaving_chain, vect_same_range_drs,
3068         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3069         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3070         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3071         vect_analyze_group_access, vect_analyze_data_ref_access,
3072         vect_create_data_ref_ptr, vect_transform_strided_load,
3073         vect_record_strided_load_vectors): Likewise.
3074         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3075         vect_model_load_cost, vectorizable_store, vectorizable_load,
3076         vect_remove_stores, new_stmt_vec_info): Likewise.
3077         * tree-vect-slp.c (vect_build_slp_tree,
3078         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3079
3080 2011-05-18  Richard Guenther  <rguenther@suse.de>
3081
3082         PR middle-end/48989
3083         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3084         operand verification.
3085         (verify_gimple_assign_binary): Likewise.
3086         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3087         to non-1-precision BOOLEAN_TYPEs.
3088
3089 2011-05-18  Tom de Vries  <tom@codesourcery.com>
3090
3091         PR target/45098
3092         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3093
3094 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
3095
3096         PR tree-optimization/49000
3097         * tree-ssa.c (execute_update_addresses_taken): Call
3098         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
3099         be rewritten and decl has been marked for renaming, reset
3100         the debug stmt.
3101
3102 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
3103
3104         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3105         enum_opts_set when testing if attributes have set -mfpmath=.
3106
3107 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
3108
3109         * config/mips/mips.c (mips_handle_option): Remove unused variable.
3110
3111 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
3112
3113         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3114         info->entry with 0
3115         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
3116         id.transform_lang_insert_block with NULL.
3117
3118 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
3119
3120         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3121         (output_fp_compare): Change args 3 and 4 to bool.
3122         (ix86_expand_call): Change arg 6 to bool.
3123         (ix86_attr_length_immediate_default): Change arg 2 to bool.
3124         (ix86_attr_length_vex_default): Change arg 3 to bool.
3125         * config/i386/i386.md: Update all uses.
3126         * config/i386/i386.c: Ditto.
3127         (ix86_flags_dependent): Change return type to bool.
3128
3129 2011-05-17  Richard Guenther  <rguenther@suse.de>
3130
3131         * gimple.c (type_hash_pair_compare): Fix comparison.
3132
3133 2011-05-17  Richard Guenther  <rguenther@suse.de>
3134
3135         * gimple.c (iterative_hash_gimple_type): Simplify singleton
3136         case some more, fix final hash value of the non-singleton case.
3137
3138 2011-05-17  Richard Guenther  <rguenther@suse.de>
3139
3140         PR bootstrap/49013
3141         Revert
3142         2011-05-16  Richard Guenther  <rguenther@suse.de>
3143
3144         * gimple.c (gimple_types_compatible_p_1): Use names of the
3145         type itself, not its main variant.
3146         (iterative_hash_gimple_type): Likewise.
3147
3148 2011-05-17  Richard Guenther  <rguenther@suse.de>
3149
3150         * gimple.c (gimple_register_canonical_type): Use the main-variant
3151         leader for computing the canonical type.
3152
3153 2011-05-17  Nick Clifton  <nickc@redhat.com>
3154
3155         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3156         moves.
3157
3158         * config/rx/rx.md: Add peephole to remove redundant extensions
3159         after loads.
3160         (bitset_in_memory): Use rx_restricted_mem_operand.
3161         (bitinvert_in_memory): Likewise.
3162         (bitclr_in_memory): Likewise.
3163
3164 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3165             Nick Clifton  <nickc@redhat.com>
3166
3167         * config/rx/rx.md: Add peepholes to match a register move followed
3168         by a comparison of the moved register.  Replace these with an
3169         addition of zero that does both actions in one instruction.
3170
3171 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
3172
3173         PR target/48986
3174         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3175         predicate to allow CONST_INT.
3176         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3177
3178 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
3179
3180         * opts-common.c (opt_enum_arg_to_value): New.
3181         * opts.h (opt_enum_arg_to_value): Declare.
3182         * config/i386/i386.opt (fpmath): Remove.
3183         (mfpmath=): Use Enum, Init and Save.
3184         (fpmath_unit): New Enum and EnumValue entries.
3185         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3186         name for function fpmath state.
3187         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3188         * config/i386/i386.c: Include diagnostic.h.
3189         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3190         (ix86_target_string): Take enum fpmath_unit value instead of string.
3191         (ix86_debug_options): Update call to ix86_target_string.
3192         (ix86_option_override_internal): Don't process fpmath strings here.
3193         (x86_function_specific_save, ix86_function_specific_restore):
3194         Don't handle fpmath state specially.
3195         (ix86_function_specific_print): Pass fpmath state to
3196         ix86_target_string instead of printing in this function.
3197         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3198         Handle enum attributes.
3199         (IX86_ATTR_ENUM, ix86_opt_enum): New.
3200         (ix86_valid_target_attribute_tree): Update option_strings
3201         handling.  Handle fpmath as enum option.
3202         (ix86_can_inline_p): Update field names for function fpmath state.
3203         (ix86_expand_builtin): Update call to ix86_target_string.
3204         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3205         (ix86_fpmath): Remove.
3206         * config/i386/t-i386 (i386.o): Update dependencies.
3207
3208 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
3209
3210         PR preprocessor/48677
3211         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3212         from decoded_options[0], not from itself.
3213
3214 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
3215
3216         * config/i386/constraints.md (z): New constraint.
3217         * config/i386/i386.c (c): New mode attribute.
3218         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3219         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3220         constraint for operand 0.
3221         (*call_vzeroupper): Ditto.
3222         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
3223         (*call_rex64_ms_sysv_vzeroupper): Ditto.
3224         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3225         Use "lzm" constraint for operand 0.
3226         (*call_pop_vzeroupper): Ditto.
3227         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3228         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
3229         constraint for operand 0.
3230         (*sibcall_vzeroupper): Ditto.
3231         (*sibcall_rex64_ms_sysv): Ditto.
3232         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3233         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3234         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
3235         (*sibcall_pop_vzeroupper): Ditto.
3236         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3237         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3238         mode iterator.  Use "<c>zm" constraint for operand 1.
3239         (*call_value_vzeroupper): Ditto.
3240         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
3241         for operand 1.
3242         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3243         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3244         *call_value_pop_1.  Use "lzm" constraint for operand 1.
3245         (*call_value_pop_vzeroupper): Ditto.
3246         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3247         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3248         mode iterator.  Use "Uz" constraint for operand 1.
3249         (*sibcall_value_vzeroupper): Ditto.
3250         (*sibcall_value_rex64_ms_sysv): Ditto.
3251         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3252         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
3253         constraint for operand 1.
3254         (*sibcall_value_pop_vzeroupper): Ditto.
3255         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3256         and "z" constraint for operand 2.
3257         (*tls_global_dynamic_32_gnu): Ditto.
3258         (*tls_local_dynamic_base_32_gnu): Ditto.
3259         (*tls_local_dynamic_base_64): Ditto.
3260         (*tls_local_dynamic_32_once): Ditto.
3261         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3262         Update all callers.
3263         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3264
3265 2011-05-16  Richard Guenther  <rguenther@suse.de>
3266
3267         * gimple.c (gimple_types_compatible_p_1): Use names of the
3268         type itself, not its main variant.
3269         (iterative_hash_gimple_type): Likewise.
3270
3271 2011-05-16  Richard Guenther  <rguenther@suse.de>
3272
3273         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3274         always visit pointer target and function result and argument types.
3275
3276 2011-05-16  Jason Merrill  <jason@redhat.com>
3277
3278         PR c++/48999
3279         * tree-inline.c (copy_statement_list): Put back recursion.
3280
3281 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
3282
3283         PR target/27663
3284         PR target/41076
3285         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3286         * config/avr/avr.md ("*ior<mode>qi.byte0",
3287         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3288
3289 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
3290
3291         PR target/45099
3292         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3293         register is needed for a function argument.
3294
3295 2011-05-16  Richard Guenther  <rguenther@suse.de>
3296
3297         * gimple.c (struct type_hash_pair): New type.
3298         (type_hash_pair_compare): New function.
3299         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3300
3301 2011-05-16  Revital Eres  <revital.eres@linaro.org>
3302
3303         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3304
3305 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
3306
3307         * config/i386/i386.md (floating point move splitters): Fix
3308         usage of standard_80387_constant_p.
3309         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3310
3311 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
3312
3313         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3314
3315 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3316
3317         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3318         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3319         (tree_ssa_lim_finalize): Likewise.
3320
3321 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
3322
3323         * config/i386/constraint.md (Yd, Yx): New register constraints.
3324         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
3325         Yd conditional register constraint.
3326         (*movtf_internal): Use standard_sse_constant_opcode.
3327         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
3328         Yx conditional register constraint.
3329         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
3330         Yd conditional register constraint.  Use standard_sse_constant_p to
3331         check for valid SSE constants and call standard_sse_constant_opcode to
3332         output SSE insn.
3333         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3334         constants and call standard_sse_constant_opcode to output SSE insn.
3335         * config/i386/i386.c (ix86_option_ovverride_internal): Set
3336         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
3337         optimize_size is set.
3338         (standard_sse_constant_opcode): Output conditional AVX insn templates.
3339
3340 2011-05-14  Tobias Burnus  <burnus@net-b.de>
3341
3342         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3343
3344 2011-05-13  Martin Jambor  <mjambor@suse.cz>
3345
3346         * ipa-prop.c (ipa_cst_from_jfunc): New function.
3347         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3348         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3349         (evaluate_conditions_for_ipcp_clone): Removed.
3350         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3351         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3352         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3353
3354 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3355
3356         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3357         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3358         lieu of MAY_HAVE_DEBUG_STMTS.
3359         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3360         debug statements if !MAY_HAVE_DEBUG_STMTS.
3361
3362 2011-05-13  Martin Thuresson  <martint@google.com>
3363
3364         PR gcov-profile/47793
3365         * libgcov.c (gcov_exit): Support relative profile paths.
3366         * doc/invoke.texi (-fprofile-dir): Update for above change.
3367
3368 2011-05-13  Richard Guenther  <rguenther@suse.de>
3369
3370         * gimple.c (gimple_canonical_types_compatible_p): Do not use
3371         type-pair caching, do not compare hashes.
3372
3373 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
3374
3375         PR middle-end/48965
3376         * tree-cfg.c (edge_to_cases_cleanup): Return true.
3377         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3378
3379 2011-05-13  Kai Tietz  <ktietz@redhat.com>
3380
3381         * gimplify.c (gimplify_expr): Make sure operand is boolified.
3382         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3383         compatible type for TRUTH_NOT_EXPR.
3384
3385 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3386
3387         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3388         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
3389         can_create_pseudo_p ().
3390
3391 2011-05-13  Richard Guenther  <rguenther@suse.de>
3392
3393         PR lto/48978
3394         * gimple.c (iterative_hash_gimple_type): Revert change in
3395         pointer target and function result and argument hashing.
3396
3397 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
3398
3399         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3400         (*movxf_internal_nointeger): Ditto.
3401         (*movdf_internal_rex64): Ditto.
3402         (*movdf_internal): Ditto.
3403         (*movdf_internal_nointeger): Ditto.
3404         (*movsf_internal): Ditto.
3405         (sincos splitters): Use can_create_pseudo ().
3406
3407 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
3408
3409         * config/i386/i386-opts.h: New.
3410         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3411         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3412         ix86_section_threshold): Remove.
3413         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
3414         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3415         OPT_mbranch_cost_.
3416         (ix86_option_override_internal): Don't decode strings for options
3417         other than -march=, -mtune= and -mfpmath=.  Don't allow for
3418         __attribute__ uses in remaining diagnostics for options with
3419         string arguments.  Don't check for integer arguments being negative.
3420         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3421         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3422         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3423         ix86_branch_cost, ix86_section_threshold): Remove.
3424         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3425         HeaderInclude.
3426         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3427         but not Var.
3428         (masm=): Use Enum and Init.
3429         (asm_dialect): New Enum and EnumValue entries.
3430         (mbranch-cost=): Use UInteger.
3431         (mlarge-data-threshold=): Use UInteger and Init.
3432         (mcmodel=): Use Enum and Init.
3433         (cmodel): New Enum and EnumValue entries.
3434         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3435         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3436         mregparm=): Use UInteger.
3437         (mstringop-strategy=): Use Enum and Init.
3438         (stringop_alg): New Enum and EnumValue entries.
3439         (mtls-dialect=): Use Enum and Init.
3440         (tls_dialect): New Enum and EnumValue entries.
3441         (mabi=): Use Enum and Init.
3442         (calling_abi): New Enum and EnumValue entries.
3443         (mveclibabi=): Use Enum and Init.
3444         (ix86_veclibabi): New Enum and EnumValue entries.
3445
3446 2011-05-13  Nick Clifton  <nickc@redhat.com>
3447
3448         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3449         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3450
3451 2011-05-13  Kai Tietz  <ktietz@redhat.com>
3452
3453         PR middle-end/48984
3454         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3455         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3456         (gimple_boolify): Check for cast for boolean_type_node instead for
3457         BOOLEAN_TYPE.
3458
3459 2011-05-13  Richard Guenther  <rguenther@suse.de>
3460
3461         PR tree-optimization/48172
3462         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3463         multiplying by number of iterations for equal step.
3464         (vect_create_cond_for_alias_checks): Likewise.
3465
3466 2011-05-13  Andreas Schwab  <schwab@redhat.com>
3467
3468         * configure.ac: Use AS_HELP_STRING throughout.
3469         * configure: Regenerate.
3470
3471 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3472
3473         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3474         (ix86_emit_restore_regs_using_mov): Likewise.
3475         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3476
3477 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
3478
3479         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3480         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3481         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3482         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3483         RTX_OK_FOR_OLO10_P): ...here.
3484         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3485         SYMBOLIC_CONST.
3486
3487 2011-05-12  Kai Tietz  <ktietz@redhat.com>
3488
3489         * gimplify.c (gimple_boolify): Re-boolify expression
3490         arguments even if expression type is of kind BOOLEAN_TYPE.
3491         (gimplify_boolean_expr): Removed.
3492         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3493         and XOR. Additional take care that we keep expression's type.
3494         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3495         of TRUTH_AND|OR|XOR_EXPR.
3496
3497 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3498
3499         PR tree-optimization/48975
3500         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3501         on all bbs here and free and clear ifc_bbs at the end.
3502
3503 2011-05-12  Richard Guenther  <rguenther@suse.de>
3504
3505         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3506         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
3507         until after simple checks.
3508         (gimple_types_compatible_p): Likewise.
3509         (iterative_hash_gimple_type): Always hash pointer targets
3510         and function return and argument types.
3511         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3512         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
3513         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3514         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
3515         completely in the simple compare section.
3516         (gimple_register_canonical_type): Query the cache again after
3517         registering.
3518
3519 2011-05-12  Richard Guenther  <rguenther@suse.de>
3520
3521         PR tree-optimization/48172
3522         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3523         the number of iterations from the segment size calculation.
3524         (vect_create_cond_for_alias_checks): Adjust.
3525
3526 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3527
3528         PR debug/48967
3529         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3530         if validate_subreg fails.
3531
3532 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
3533
3534         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3535         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3536         early.
3537
3538 2011-05-12  DJ Delorie  <dj@redhat.com>
3539
3540         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3541         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3542         created builtin into rx_builtins array.
3543         (rx_builtin_decl): New function.
3544         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
3545
3546 2011-05-12  DJ Delorie  <dj@redhat.com>
3547             Nick Clifton  <nickc@redhat.com>
3548
3549         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3550         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3551         (rx_is_legitimate_address): Add pre-decrement and post-increment
3552         addressing in HImode and QImode.  Fix test for out of range
3553         REG+INT addressing.
3554         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3555         (rx_align_for_label): Test label before extracting its usage count.
3556         (rx_adjust_insn_lengths): Fix selection of insn codes.
3557         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3558
3559 2011-05-11  Jason Merrill  <jason@redhat.com>
3560
3561         * tree.c (type_hash_canon): Use struct tree_type_non_common.
3562
3563 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3564
3565         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3566         reindent the subsequent block.
3567
3568 2011-05-11  Satoru Takabayashi  <satorux@google.com>
3569             Paul Pluzhnikov  <ppluzhnikov@google.com>
3570
3571         * doc/install.texi (Configuration): Document --with-linker-hash-style.
3572         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3573         * config.in: Add LINKER_HASH_STYLE.
3574         * configure.ac: Add --with-linker-hash-style.
3575         * configure: Regenerate.
3576
3577 2011-05-11  Richard Guenther  <rguenther@suse.de>
3578
3579         PR middle-end/48964
3580         * gimple.c (iterative_hash_canonical_type): Fix typo.
3581
3582 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
3583
3584         * config/i386/i386.c (legitimize_tls_address)
3585         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3586         expanders directly for TARGET_GNU2_TLS.  Determine pic and
3587         __tls_get_addr symbol reference here.  Update call to
3588         gen_tls_global_dynamic_{32,64} for added arguments.
3589         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3590         expanders directly for TARGET_GNU2_TLS.  Determine
3591         __tls_get_addr symbol reference here.  Update call to
3592         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
3593         unique UNSPEC REG_EQUIV to libcall block.
3594         (ix86_tls_get_addr): Declare static.
3595         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3596         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3597         Do not determine pic and __tls_get_addr symbol reference here. Do not
3598         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3599         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3600         (tls_global_dynamic_64): Add operand 2.  Do not determine
3601         __tls_get_addr symbol reference here.  Do not call
3602         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3603         (tls_local_dynamic_base64): Ditto for operand 1.
3604
3605 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3606
3607         * function.c (expand_function_start): Initialize stack_check_probe_note
3608         only if the generic stack checking mechanism is used.
3609
3610 2011-05-11  Richard Guenther  <rguenther@suse.de>
3611
3612         PR tree-optimization/15256
3613         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3614         (A & B) | C, combine (A op CST1) op CST2.
3615         (tree_ssa_forward_propagate_single_use_vars): Only bother to
3616         visit assigns that have uses.
3617
3618 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
3619
3620         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3621         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3622         (unpack_ts_type_common_value_fields): ...this.  Update comment.
3623         (unpack_value_fields): Adjust for renaming.
3624         (lto_input_ts_type_tree_pointers): Split into...
3625         (lto_input_ts_type_common_tree_pointer): ...this and...
3626         (lto_input_ts_type_non_common_tree_pointers): ...this.
3627         (lto_input_tree_pointers): Adjust for above split.
3628         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3629         (pack_ts_type_common_value_fields): ...this.  Update comment.
3630         (lto_output_ts_type_tree_pointers): Split into...
3631         (lto_output_ts_type_common_tree_pointers): ...this and...
3632         (lto_output_ts_type_non_common_tree_pointers): ...this.
3633         (lto_output_tree_pointers): Adjust for above split.
3634         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3635         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3636         * stor-layout.c (vector_type_mode): Adjust location of mode field.
3637         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3638         Define.
3639         (struct tree_type): Split into...
3640         (struct tree_type_common: ...this and...
3641         (struct tree_type_with_lang_specific): ...this and...
3642         (struct tree_type_non_common): ...this.  Adjust accessor macros
3643         accordingly.
3644         (TYPE_VALUES_RAW): Define.
3645         (union tree_node): Update for above changes.
3646         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3647         TS_TYPE_NON_COMMON.
3648         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3649         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3650         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3651         * treestructu.def (TS_TYPE): Remove.
3652         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3653         Define.
3654
3655 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
3656
3657         PR debug/48159
3658         * tree-ssa.c (reset_debug_uses): New function.
3659         * tree-flow.h (reset_debug_uses): New prototype.
3660         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3661         * tree-loop-distribution.c (generate_loops_for_partition): Call
3662         reset_debug_uses on the stmts that will be removed.  Keep around
3663         all debug stmts, don't count them as bits in partition bitmap.
3664         (generate_builtin): Don't count debug stmts or labels as bits in
3665         partition bitmap.
3666
3667 2011-05-11  Richard Guenther  <rguenther@suse.de>
3668
3669         * gimple.c (gimple_type_hash_1): Merge with ...
3670         (gimple_type_hash): ... this.
3671         (gtc_visit): Remove mode parameter and simplify accordingly.
3672         (gimple_types_compatible_p_1): Likewise.
3673         (gimple_types_compatible_p): Likewise.
3674         (iterative_hash_gimple_type): Likewise.
3675         (visit): Likewise.
3676         (gimple_type_eq): Adjust.
3677
3678 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3679
3680         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3681         enters the branch create an anti edge in the opposite direction
3682         to prevent the creation of reg-moves.
3683         * modulo-sched.c: Adjust comment to reflect the fact we are
3684         scheduling closing branch.
3685         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3686         (stage_count): New field in struct partial_schedule.
3687         (calculate_stage_count): New function.
3688         (normalize_sched_times): Rename to reset_sched_times and handle
3689         incrementing the sched time of the nodes by a constant value
3690         passed as parameter.
3691         (duplicate_insns_of_cycles): Skip closing branch.
3692         (sms_schedule_by_order): Schedule closing branch.
3693         (ps_insn_find_column): Handle closing branch.
3694         (sms_schedule): Call reset_sched_times and adjust the code to
3695         support scheduling of the closing branch.
3696         (ps_insert_empty_row): Update calls to normalize_sched_times
3697         and rotate_partial_schedule functions.
3698
3699 2011-05-11  Richard Guenther  <rguenther@suse.de>
3700
3701         PR middle-end/48953
3702         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3703
3704 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
3705
3706         * opts.c (finish_options): Move warning settings from process_options.
3707         * toplev.c (process_options): Move warning settings to finish_options.
3708
3709 2011-05-11  Richard Guenther  <rguenther@suse.de>
3710
3711         PR tree-optimization/18041
3712         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3713         (simplify_bitwise_binary): ... this.  Handle operand conversions
3714         by applying them to the result instead.
3715         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
3716
3717 2011-05-11  Richard Guenther  <rguenther@suse.de>
3718
3719         * gimple.c (gimple_canonical_types_compatible_p): Split out
3720         from gimple_types_compatible_p and friends.  Do not recurse
3721         to pointed-to types.
3722         (gimple_canonical_type_eq): Use it.
3723         (iterative_hash_canonical_type): Split out from
3724         iterative_hash_gimple_type and friends.  Do not recurse
3725         to pointed-to types.
3726         (gimple_canonical_type_hash): Use it, allocate the hash here.
3727
3728 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3729
3730         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3731         recognizing doloop.
3732
3733 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3734
3735         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3736         instead of PREV_INSN.
3737
3738 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3739
3740         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3741         * loop-doloop.c (doloop_condition_get): Likewise.
3742         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3743         (doloop_end): New.
3744         * config/arm/arm.md (*addsi3_compare0): Remove "*".
3745
3746 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3747
3748         * tree.def (CASE_LABEL_EXPR): Add an operand.
3749         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3750
3751 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3752
3753         * c-decl.c (c_override_global_bindings_to_false): Remove.
3754         (global_bindings_p): Don't check
3755         c_override_global_bindings_to_false.
3756         * c-tree.h (c_override_global_bindings_to_false): Remove.
3757         * c-typeck.c (composite_type): Don't set
3758         c_override_global_bindings_to_false.
3759
3760 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3761
3762         PR target/48857, 48495
3763         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3764         (VSX_MODE): Ditto.
3765         (VSX_MOVE_MODE): Ditto.
3766         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3767         VSX vector types.  Add V2DImode.
3768         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3769         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3770         (MODES_TIEABLE_P): Ditto.
3771
3772         * config/rs6000/rs6000.c (rs6000_emit_move): Use
3773         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3774         VSX_VECTOR_MODE.
3775         (init_cumulative_args): Ditto.
3776         (rs6000_function_arg_boundary): Ditto.
3777         (rs6000_function_arg_advance_1): Ditto.
3778         (rs6000_function_arg): Ditto.
3779         (rs6000_function_ok_for_sibcall): Ditto.
3780         (emit_frame_save): Ditto.
3781         (rs6000_function_value): Ditto.
3782         (rs6000_libcall_value): Ditto.
3783
3784 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3785
3786         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3787         i386/darwin-lib.h to $libgcc_tm_file.
3788         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3789
3790 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3791
3792         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3793
3794 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3795
3796         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3797         * config/rs6000/rs6000-tables.opt: New file (generated).
3798         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3799         rs6000/rs6000-tables.opt to extra_options.
3800         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3801         * config/rs6000/rs6000.c (rs6000_select): Remove.
3802         (processor_target_table): Move contents to rs6000-cpus.def.
3803         (darwin_rs6000_override_options): Check
3804         global_options_set.x_rs6000_cpu_index instead of
3805         rs6000_select[1].string.
3806         (rs6000_option_override_internal): Likewise.
3807         (rs6000_handle_option): Don't assert that global structures are in
3808         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
3809         (rs6000_default_cpu): New variable.
3810         (rs6000_file_start): Set it instead of local default_cpu.  Check
3811         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3812         global_options_set.x_rs6000_tune_index instead of rs6000_select.
3813         (rs6000_darwin_file_start): Check rs6000_default_cpu and
3814         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3815         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3816         rs6000_select): Remove.
3817         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3818         Remove.
3819         (mcpu=, mtune=): Use Var, Init, Enum and Save.
3820         * config/rs6000/t-rs6000
3821         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3822         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3823         global_options_set.x_rs6000_cpu_index instead of
3824         rs6000_select[1].string.
3825         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3826         global_options_set.x_rs6000_cpu_index instead of
3827         rs6000_select[1].string.
3828
3829 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3830
3831         * config.gcc (libgcc_tm_file): Define instead of including files
3832         from ../../libgcc/config/ in tm_file.
3833         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3834         * configure: Regenerate.
3835         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3836         libgcc_tm.h, cs-libgcc_tm.h): New.
3837         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3838         (clean): Remove libgcc_tm.h.
3839         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3840         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3841         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3842
3843 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
3844
3845         PR target/48896
3846         * config/avr/avr.c (avr_ret_register): Return unsigned int
3847         instead of int.
3848         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3849         it to avr_libcall_value.
3850         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3851         expand_expr.
3852         (avr_expand_binop_builtin): Ditto.
3853         (avr_expand_unop_builtin): Ditto.
3854
3855 2011-05-10  DJ Delorie  <dj@redhat.com>
3856
3857         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3858         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3859         * config/rx/rx.c (rx_align_for_label): Add label and
3860         uses_threshold parameters.  Do not align when the label is not
3861         used enough.
3862         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3863
3864 2011-05-10  Richard Guenther  <rguenther@suse.de>
3865
3866         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3867         a series of conversions and apply foldings similar to what
3868         fold-const does.
3869         (tree_ssa_forward_propagate_single_use_vars): Call it.
3870
3871 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
3872
3873         PR tree-optimization/48611
3874         PR tree-optimization/48794
3875         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3876         referenced from RESX or EH_DISPATCH arguments.
3877
3878         PR debug/48928
3879         * dfp.c (decimal_to_decnumber): Handle conversion from
3880         dconst{1,2,m1,half}.
3881
3882 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3883
3884         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3885         for !flag_prefer_avx128.
3886         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3887
3888 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3889
3890         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3891         (fold_ternary_loc): Use expr_location_or.
3892
3893 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3894
3895         PR debug/48853
3896         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3897         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3898         Pmode and mem_mode is not VOIDmode.
3899
3900 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
3901
3902         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3903         TYPE_QUAL_RESTRICT): Convert to enum.
3904
3905 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3906
3907         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3908         (const_pow2_1_to_8_operand): Ditto.
3909         (const_pow2_1_to_128_operand): Ditto.
3910         (const_pow2_1_to_32768_operand): Ditto.
3911         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3912         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
3913         in insn constraint to check integer value of operand 3.
3914         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3915
3916         (PINSR_MODE): New mode iterator.
3917         (sse2p4_1): New mode attribute.
3918         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3919         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3920         iterator.  Use const_int_operand instead of
3921         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
3922         exact_log2 in insn constraint to check integer value of operand 3.
3923
3924 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3925
3926         * config/i386/sse.md (blendbits): Remove mode attribute.
3927         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3928         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3929         Check integer value of operand 3 in insn constraint.
3930
3931 2011-05-09  Richard Guenther  <rguenther@suse.de>
3932
3933         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3934         for diagnostics.
3935         (lto_symtab_merge): Likewise.  Do not register types here.
3936         (lto_symtab_merge_decls_2): Likewise.
3937         (lto_symtab_merge_decls_1): Likewise.
3938         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3939         * gimple.c (enum gtc_mode): Declare.
3940         (gimple_types_compatible_p): Make static.
3941
3942 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3943
3944         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3945         temporary register to match Pmode.
3946
3947 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3948
3949         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3950         and *vec_concatv4si_1_avx.
3951
3952 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3953
3954         PR rtl-optimization/48927
3955         * ira-conflicts.c (commutative_constraint_p): Use
3956         recog_data.alternative_enabled_p to disable alternatives where
3957         "enabled" attribute is false.
3958         (get_dup_num): Ditto.
3959         * ira-lives.c (single_reg_class): Ditto.
3960         (ira_implicitly_set_insn_hard_regs): Ditto.
3961
3962 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3963
3964         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3965         (dataflow_set_preserve_mem_locs): Likewise.
3966
3967 2011-05-09  Philipp Thomas  <pth@suse.de>
3968
3969         * config/mep/mep.c (mep_validate_vliw): Syntax description
3970         should not be translated.
3971
3972 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
3973
3974         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3975         * config/mips/mips-tables.opt: New file (generated).
3976         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3977         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3978         MIPS_ARCH_OPTION_NATIVE): Define.
3979         * config/mips/mips.c (mips_cpu_info_table): Move contents to
3980         mips-cpus.def.
3981         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3982         mips_parse_cpu): Remove.
3983         (mips_cpu_info_from_opt, mips_default_arch): New.
3984         (mips_handle_option): Don't assert that global structures are in
3985         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3986         (mips_option_override): Use new variables and functions to set
3987         state of these options.  Use strcmp to check for individual CPU names.
3988         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3989         definition.
3990         * config/mips/mips.opt (march=): Use ToLower and Enum.
3991         (mips): Use ToLower, Enum and Var.
3992         (mtune=): Use ToLower and Enum.
3993         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3994
3995 2011-05-08  Jan Hubicka  <jh@suse.cz>
3996
3997         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3998         Arrange type pairs to be UID ordered.
3999         (gimple_lookup_type_leader): Make inline.
4000
4001 2011-05-09  Nick Clifton  <nickc@redhat.com>
4002
4003         PR target/48899
4004         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4005         PROCESSOR_DEFAULT.
4006
4007         PR target/48897
4008         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4009         variable 's'.
4010
4011 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
4012
4013         * combine.c (simplify_comparison): Abstract out parts into...
4014         (simplify_compare_const): ... new function.
4015         (try_combine): Generalize parallel arithmetic/compare combining
4016         to call simplify_compare_const() and CANONICALIZE_COMPARE().
4017
4018 2011-05-08  Jan Hubicka  <jh@suse.cz>
4019
4020         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4021         (cgraph_create_virtual_clone): Call hooks once virtual clone
4022         is finished.
4023         * cgraph.h (cgraph_clone_node): Update prototype.
4024         * ipa-cp.c (ipcp_estimate_growth): Use
4025         estimate_ipcp_clone_size_and_time.
4026         * ipa-inline-transform.c (clone_inlined_nodes): Update.
4027         * lto-cgraph.c (input_node): Update.
4028         * ipa-inline.c (recursive_inlining): Update.
4029         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4030         (evaluate_conditions_for_known_args): Break out from ...
4031         (evaluate_conditions_for_edge): ... here.
4032         (evaluate_conditions_for_ipcp_clone): New function.
4033         (inline_node_duplication_hook): Update clone summary based
4034         on parameter map.
4035         (estimate_callee_size_and_time): Rename to ...
4036         (estimate_node_size_and_time): take NODE instead of EDGE;
4037         take POSSIBLE_TRUTHS as argument.
4038         (estimate_callee_size_and_time): Update.
4039         (estimate_ipcp_clone_size_and_time): New function.
4040         (do_estimate_edge_time): Update.
4041
4042 2011-05-08  Richard Guenther  <rguenther@suse.de>
4043
4044         PR middle-end/48908
4045         PR middle-end/48905
4046         * expmed.c (expand_shift_1): Compute adjusted constant shift
4047         amount manually.
4048
4049 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4050
4051         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4052
4053 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
4054
4055         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4056
4057 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
4058
4059         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4060
4061 2011-05-07  Jan Hubicka  <jh@suse.cz>
4062
4063         * ipa-inline-transform.c (inline_call): Account when program size
4064         decreases.
4065         * ipa-inline.c (relative_time_benefit): New function.
4066         (edge_badness): Reorganize to be power 2 based; fix thinko when
4067         computing badness for negative growth; update comments to match
4068         reality; better dumps.
4069
4070 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
4071
4072         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4073         type to bool and adjust comment.
4074         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4075         (fold_mathfn_compare): Remove calls to global_bindings_p.
4076         (fold_inf_compare): Likewise.
4077         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4078         * c-tree.h (global_bindings_p): Adjust prototype.
4079         * c-decl.c (global_bindings_p): Return bool and simplify.
4080
4081 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
4082
4083         PR tree-optimization/48837
4084         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4085         when accumulator transformation is performed.
4086
4087 2011-05-06  Jan Hubicka  <jh@suse.cz>
4088
4089         * i386.h (ix86_tune_indices): Add
4090         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4091         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4092         * i386.c (initial_ix86_tune_features): Add
4093         X86_SOFTARE_PREFETCHING_BENEFICIAL.
4094         (software_prefetching_beneficial_p): Remove predicate.
4095         (ix86_option_override_internal): Use new macro.
4096
4097 2011-05-06  Jan Hubicka  <jh@suse.cz>
4098
4099         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4100
4101 2011-05-06  Jan Hubicka  <jh@suse.cz>
4102
4103         * cgraph.c (cgraph_add_thunk): Create real function node instead
4104         of alias node; finalize it and mark needed/reachale; arrange visibility
4105         to be right and add it into the corresponding same comdat group list.
4106         (dump_cgraph_node): Dump thunks.
4107         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4108         cgraph_function_with_gimple_body_p,
4109         cgraph_first_function_with_gimple_body,
4110         cgraph_next_function_with_gimple_body): New functions.
4111         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4112         New macros.
4113         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4114         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4115         * cgraphunit.c (cgraph_finalize_function): Only look into possible
4116         devirtualization when optimizing.
4117         (verify_cgraph_node): Verify thunks.
4118         (cgraph_analyze_function): Analyze thunks.
4119         (cgraph_mark_functions_to_output): Output thunks only in combination
4120         with function they are assigned to.
4121         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4122         alias into normal node.
4123         (assemble_thunks): New functoin.
4124         (cgraph_expand_function): Use it.
4125         * lto-cgraph.c (lto_output_node): Stream thunks.
4126         (input_overwrite_node): Stream in thunks.
4127         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4128         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4129         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4130         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4131         (inline_analyze_function): Do not care about thunk jump functions.
4132         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4133         * ipa-prop.c (ipa_prop_write_jump_functions): Use
4134         cgraph_function_with_gimple_body_p.
4135         * passes.c (do_per_function_toporder): Use
4136         cgraph_function_with_gimple_body_p.
4137         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4138         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4139         (function_called_by_processed_nodes_p): Likewise.
4140
4141 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
4142
4143         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4144         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4145         entries.
4146         (mabi=): Replace with separate entries for mabi=altivec,
4147         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4148         mabi=ieeelongdouble and mabi=ibmlongdouble.
4149         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4150         check for -mabi=spe without SPE ABI support here.
4151         (rs6000_handle_option): Replace OPT_mabi_ handling with
4152         OPT_mabi_altivec and OPT_mabi_spe handling.
4153
4154 2011-05-06  Cary Coutant  <ccoutant@google.com>
4155
4156         * dwarf2out.c (contains_subprogram_definition): New function.
4157         (should_move_die_to_comdat): Call it.
4158
4159 2011-05-06  Jeff Law  <law@redhat.com>
4160
4161         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4162         remove_ctrl_stmt_and_useless_edges.
4163         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4164         (fixup_template_block, thread_single_edge): Likewise.
4165         (mark_threaded_blocks): Use THREAD_TARGET.
4166
4167 2011-05-06  Alan Modra  <amodra@gmail.com>
4168
4169         PR target/48900
4170         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4171         const0_rtx as the arg to the dummy __tls_get_addr libcall.
4172
4173 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
4174
4175         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4176         constraint modifier to "r".
4177
4178 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
4179
4180         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4181         fall through for OPT_mcmodel_.
4182
4183 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4184
4185         * config/s390/s390.c (s390_asm_trampoline_template): Comment
4186         instruction sizes.
4187         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4188
4189 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4190
4191         PR target/47930
4192         * config/arm/arm.opt (marm): Document it.
4193         (mthumb): Reject negative variant.
4194
4195 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
4196
4197         PR target/48898
4198         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4199         Fix typo in "ccvt" variable name.
4200
4201 2011-05-06  Tristan Gingold  <gingold@adacore.com>
4202
4203         PR target/48895
4204         * config/vms/vms-ar.c (main): Remove cwd variable.
4205
4206 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
4207
4208         PR debug/48902
4209         * var-tracking.c (prepare_call_arguments): Move else before #endif.
4210
4211 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
4212
4213         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4214         * gimplify.c (gimplify_switch_expr): Likewise.
4215         * omp-low.c (expand_omp_sections): Likewise.
4216         * tree-eh.c (lower_try_finally_switch): Likewise.
4217         (lower_eh_dispatch): Likewise.
4218         * tree.h (build_case_label): Declare.
4219         * tree.c (build_case_label): Define.
4220
4221 2011-05-05  Jason Merrill  <jason@redhat.com>
4222
4223         PR c++/40975
4224         * tree-inline.c (copy_tree_r): Use copy_statement_list.
4225         (copy_statement_list): Don't recurse.
4226         * stor-layout.c (copy_self_referential_tree_r): Don't allow
4227         STATEMENT_LIST.
4228
4229 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4230
4231         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4232         through from -mfpu= handling.
4233         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4234
4235 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
4236
4237         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4238         POST_MODIFY.
4239
4240 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
4241
4242         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4243         for 11.31.
4244         (hppa[12]*-*-hpux11*): Ditto.
4245         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4246         * config/ia64/hpux-unix2003.h: New.
4247         * config/pa/pa-hpux1131.opt: New.
4248         * config/pa/pa-hpux1131.h: New.
4249         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4250         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4251         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4252
4253 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
4254
4255         PR debug/48853
4256         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4257         instead of mode as 3rd argument to recursive call.
4258         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4259         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4260         VOIDmode.
4261         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4262         don't give up if mode is Pmode and mem_mode is not VOIDmode.
4263         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4264         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4265
4266 2011-05-05  Julian Brown  <julian@codesourcery.com>
4267
4268         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4269         parenthesis in D-register case.
4270
4271 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4272
4273         * opt-functions.awk (var_type_struct): Handle Enum options.
4274         * optc-gen.awk: Don't check range of variables of character type.
4275         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4276         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4277         rs6000_sdata_name, rs6000_explicit_options): Remove.
4278         (rs6000_option_override_internal): Check for -malign-power here.
4279         Use global_options_set instead of rs6000_explicit_options.
4280         (rs6000_parse_fpu_option): Remove.
4281         (rs6000_handle_option): Access variables via opts and opts_set
4282         pointers.  Use error_at and warning_at.  Add fall-through
4283         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4284         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4285         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4286         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4287         here.  Don't use rs6000_parse_fpu_option.
4288         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4289         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4290         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4291         (mrecip=): Use Var.
4292         (mspe): Use Var and Save.
4293         (mtraceback=): Use Enum and Var.
4294         (rs6000_traceback_type): New Enum and EnumValue entries.
4295         (mfloat-gprs=): Use Enum, Var and Save.
4296         (rs6000_float_gprs): New Enum and EnumValue entries.
4297         (mlong-double-): use Var and Save.
4298         (msched-costly-dep=, minsert-sched-nops=): Use Var.
4299         (malign-): Use Enum and Var.
4300         (rs6000_alignment_flags): New Enum and EnumValue entries.
4301         (mfpu=): Use Enum.
4302         (fpu_type_t): New Enum and EnumValue entries.
4303         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4304         global_options_set instead of rs6000_explicit_options.
4305         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4306         global_options_set instead of rs6000_explicit_options.
4307         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4308         global_options_set instead of rs6000_explicit_options.
4309         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4310         global_options_set instead of rs6000_explicit_options.
4311         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4312         global_options_set instead of rs6000_explicit_options.
4313         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4314         global_options_set instead of rs6000_explicit_options.
4315         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4316         definition.
4317         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4318         global_options_set instead of rs6000_explicit_options.
4319         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4320         (rs6000_cmodel): New Enum and EnumValue entries.
4321         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4322         global_options_set instead of rs6000_explicit_options.
4323         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4324         (mtls-size=): Use Enum and Var.
4325         (rs6000_tls_size): New Enum and EnumValue entries.
4326
4327 2011-05-05  Michael Matz  <matz@suse.de>
4328
4329         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4330         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4331         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4332         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4333         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4334         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4335         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4336         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4337         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4338         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4339         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4340         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4341         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4342         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4343         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4344         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4345
4346 2011-05-05  Richard Guenther  <rguenther@suse.de>
4347
4348         * expmed.c (expand_variable_shift): Rename to ...
4349         (expand_shift_1): ... this.  Take an expanded shift amount.
4350         For rotates recurse directly not building trees for the shift amount.
4351         (expand_variable_shift): Wrap around expand_shift_1.
4352         (expand_shift): Adjust.
4353
4354 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
4355
4356         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4357
4358 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4359
4360         * tree.h (get_pending_sizes): Remove prototype.
4361         (put_pending_size): Likewise.
4362         (put_pending_sizes): Likewise.
4363         * stor-layout.c (pending_sizes): Delete.
4364         (get_pending_sizes): Likewise.
4365         (put_pending_size): Likewise.
4366         (put_pending_sizes): Likewise.
4367         (variable_size): Do not call put_pending_size and tidy up.
4368         * function.h (struct function): Remove dont_save_pending_sizes_p.
4369         * lto-streamer-in.c (input_function): Do not stream it.
4370         * lto-streamer-out.c (output_function): Likewise.
4371         * tree-inline.c (initialize_cfun): Do not copy it.
4372         * c-decl.c (store_parm_decls): Do not set it.
4373         * omp-low.c (create_task_copyfn): Likewise.
4374         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4375
4376 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
4377
4378         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4379         conditions.
4380         (*movdf_internal): Ditto.
4381         (*movdf_internal_nointeger): Ditto.
4382         (*movsf_internal): Ditto.
4383
4384 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4385
4386         * c-decl.c (finish_decl): Don't call get_pending_sizes.
4387         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
4388         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
4389         (c_variable_size): Remove.
4390         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
4391         call put_pending_sizes.
4392         (get_parm_info): Add parameter expr.  Use it to set
4393         arg_info->pending_sizes.
4394         (store_parm_decls): Use arg_info->pending_sizes instead or calling
4395         get_pending_sizes.
4396         * c-parser.c (c_parser_parms_declarator): Update call to
4397         c_parser_parms_list_declarator.
4398         (c_parser_parms_list_declarator): Take parameter expr.  Update
4399         call to push_parm_decl.  Update recursive call.  Don't call
4400         get_pending_sizes.  Update calls to get_parm_info.
4401         (c_parser_objc_method_definition): Update calls to
4402         c_parser_objc_method_decl and objc_start_method_definition.
4403         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4404         (c_parser_objc_method_decl): Add parameter expr.  Update call to
4405         grokparm.
4406         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4407         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4408         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4409
4410 2011-05-05  Michael Hope  <michael.hope@linaro.org>
4411
4412         PR pch/45979
4413         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4414         __ARM_EABI__ hosts.
4415
4416 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4417
4418         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4419         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4420         (spu_output_mi_thunk): New function.
4421
4422 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4423
4424         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4425         targetm.asm_out.print_operand.
4426         * config/sol2.c: Include target.h.
4427
4428 2011-05-04  Jan Hubicka  <jh@suse.cz>
4429
4430         * ipa-inline.c (reset_edge_caches): New function.
4431         (update_caller_keys): Add check_inlinablity_for; do not
4432         reset edge caches; remove now unnecesary loop.
4433         (update_callee_keys): Add comments; reset node_growth_cache of callee.
4434         (update_all_callee_keys): Likewise.
4435         (inline_small_functions): Sanity check cache; update code
4436         recomputing it.
4437
4438 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
4439
4440         PR rtl-optimization/47612
4441         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4442         as the last insn of the sequence to be moved.
4443
4444 2011-05-04  Tobias Burnus  <burnus@net-b.de>
4445
4446         PR fortran/48864
4447         * doc/invoke.texi (Ofast): Document that it
4448         enables Fortran's -fno-protect-parens.
4449
4450 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
4451
4452         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4453
4454 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4455
4456         * stor-layout.c (variable_size): Do not issue errors.
4457
4458 2011-05-04  Richard Guenther  <rguenther@suse.de>
4459
4460         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4461         for array-ref indices.
4462         (tree_coverage_counter_addr): Likewise.
4463         (build_fn_info_type): Use size_int for index types.
4464         (build_gcov_info): Likewise.
4465
4466 2011-05-04  Richard Guenther  <rguenther@suse.de>
4467
4468         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4469         to build_int_cst.
4470         * c-typeck.c (really_start_incremental_init): Use bitsize_int
4471         for constructor indices.
4472         (push_init_level): Likewise.
4473
4474 2011-05-04  Richard Guenther  <rguenther@suse.de>
4475
4476         * explow.c (promote_mode): Move variable declarations before code.
4477
4478 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
4479
4480         * tree.h (build_function_type_array): Declare.
4481         (build_varargs_function_type_array): Declare.
4482         (build_function_type_vec, build_varargs_function_type_vec): Define.
4483         * tree.c (build_function_type_array_1): New function.
4484         (build_function_type_array): New function.
4485         (build_varargs_function_type_array): New function.
4486
4487 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
4488
4489         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4490         before setting STMT_VINFO_TYPE.
4491
4492 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4493
4494         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4495         instead of spu_pass_by_reference.
4496
4497 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4498
4499         * calls.c (emit_library_call_value_1): Invoke
4500         promote_function_mode hook on libcall arguments.
4501         * explow.c (promote_function_mode, promote_mode): Handle TYPE
4502         argument being NULL.
4503         * targhooks.c (default_promote_function_mode): Lisewise.
4504         * config/s390/s390.c (s390_promote_function_mode): Likewise.
4505         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4506
4507         * doc/tm.texi: Document that TYPE argument might be NULL.
4508
4509 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4510
4511         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4512
4513 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4514
4515         From Bernd Schmidt
4516         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4517
4518 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4519
4520         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4521         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4522         Move ...
4523         * mips-tfile.c: ... here.
4524         Don't include coretypes.h, tm.h, filenames.h.
4525         (saber_stop): Remove definition and all calls.
4526         [__SABER__]: Remove.
4527         (__LINE__): Remove default.
4528         (Size_t, Ptrdiff_t): Remove definitions.
4529         Replace by size_t, ptrdiff_t.
4530         [!MIPS_DEBUGGING_INFO]: Remove.
4531         (SHASH_SIZE, THASH_SIZE): Remove defaults.
4532         (progname): Add const.
4533         (STATIC): Remove.
4534         Replace all uses by static.
4535         (ALIGN_SYMTABLE_OFFSET): Remove default.
4536         * mips-tdump.c: Don't include coretypes.h, tm.h.
4537         Remove !MIPS_IS_STAB guard.
4538         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4539         $(TM_H), filenames.h dependencies.
4540         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4541
4542 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4543
4544         From Jie Zhang
4545         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4546         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4547
4548 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4549
4550         From Bernd Schmidt
4551         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4552         account and save/restore RETS.
4553         (PROFILE_BEFORE_PROLOGUE): Define.
4554         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
4555         the push insn to use predecrement.
4556
4557 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4558
4559         From Jie Zhang
4560         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4561
4562 2011-05-04  Nick Clifton  <nickc@redhat.com>
4563
4564         * config/mn10300/mn10300.c: Include cfgloop.h.
4565         (DUMP): New macro.
4566         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
4567         Lcc or a FLcc insn into the instruction stream.
4568         (mn10300_block_contains_call): New function.  Returns true if the
4569         given basic block contains a CALL insn.
4570         (mn10300_loop_contains_call_insn): New function.  Returns true if
4571         the given loop contains a CALL insn.
4572         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
4573         to use the SETLB and Lcc or FLcc insns.
4574         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4575         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4576         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
4577         disable the SETLB optimization.
4578         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4579         __SETLB__ or __NO_SETLB__.
4580         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4581         (movsf_internal): Handle MDR register.
4582         (cmpsi): Make visible.
4583         (setlb): New pattern.
4584         (Lcc): New pattern.
4585         (FLcc): New pattern.
4586
4587 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
4588
4589         PR target/48860
4590         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4591         for reg<->xmm moves.
4592         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4593         (vec_concatv2di_rex64_sse): Ditto.
4594         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4595         (*vec_extractv2di_1_rex64): Ditto.
4596
4597         Revert:
4598         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4599
4600         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4601         reg<->xmm moves.
4602         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4603
4604 2011-05-04  Richard Guenther  <rguenther@suse.de>
4605
4606         * tree.h (int_const_binop): Remove notrunc argument.
4607         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
4608         create integer constants that are properly truncated.
4609         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4610         (const_binop): Remove zero notrunc argument to int_const_binop.
4611         (size_binop_loc): Likewise.
4612         (fold_div_compare): Likewise.
4613         (maybe_canonicalize_comparison_1): Likewise.
4614         (fold_comparison): Likewise.
4615         (fold_binary_loc): Likewise.
4616         (multiple_of_p): Likewise.
4617         * expr.c (store_constructor): Likewise.
4618         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4619         (maybe_fold_stmt_addition): Likewise.
4620         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4621         * stor-layout.c (layout_type): Likewise.
4622         * tree-data-ref.c (tree_fold_divides_p): Likewise.
4623         * tree-sra.c (build_ref_for_offset): Likewise.
4624         (build_user_friendly_ref_for_offset): Likewise.
4625         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4626         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4627         * tree-ssa-loop-niter.c (inverse): Likewise.
4628         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4629         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4630         * tree-switch-conversion.c (check_range): Likewise.
4631         (build_constructors): Likewise.
4632         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4633         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4634         (extract_range_from_assert): Likewise.
4635         (vrp_int_const_binop): Likewise.
4636         (extract_range_from_binary_expr): Likewise.
4637         (extract_range_from_unary_expr): Likewise.
4638         (check_array_ref): Likewise.
4639         (find_case_label_range): Likewise.
4640         (simplify_div_or_mod_using_ranges): Likewise.
4641         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4642         comparing case labels for merging.
4643
4644 2011-05-03  Mark Wielaard  <mjw@redhat.com>
4645
4646         * dwarf2out.c (debug_str_hash_forced): Removed.
4647         (gen_label_for_indirect_string): Removed.
4648         (get_debug_string_label): Removed.
4649         (AT_string_form): Generate label directly.
4650         (output_indirect_string): Test indirect_string_node for
4651         DW_FORM_strp instead of checking label and refcount.
4652         (prune_indirect_string): Removed.
4653         (prune_unused_types): Don't check debug_str_hash_forced or
4654         call prune_indirect_string.
4655
4656 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4657
4658         PR other/48093
4659         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4660
4661 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4662
4663         PR debug/47994
4664         PR debug/47919
4665         * combine.c (try_combine): Skip debug insns at m_split tests.
4666
4667 2011-04-26  Mark Wielaard  <mjw@redhat.com>
4668
4669         PR42288
4670         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4671         when info_section_emitted.
4672
4673 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
4674
4675         * config/mips/mips-opts.h: New.
4676         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4677         to mips-opts.h.
4678         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4679         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4680         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
4681         via opts pointer.
4682         * config/mips/mips.h (enum mips_code_readable_setting): Move to
4683         mips-opts.h.
4684         (mips_abi, mips_code_readable): Don't declare.
4685         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4686         (mabi=): Use Enum and Var.
4687         (mips_abi): New Enum and EnumValue entries.
4688         (mcode-readable=): Use Enum and Var.
4689         (mips_code_readable_setting): New Enum and EnumValue entries.
4690         (mr10k-cache-barrier=): Use Enum and Var.
4691         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4692
4693 2011-05-03  Jan Hubicka  <jh@suse.cz>
4694
4695         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4696         replace hash by pointer map.
4697         (cgraph_node_set_element_def, cgraph_node_set_element,
4698         const_cgraph_node_set_element, varpool_node_set_element_def,
4699         varpool_node_set_element, const_varpool_node_set_element): Remove.
4700         (free_cgraph_node_set, free_varpool_node_set): New function.
4701         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4702         * tree-emutls.c: Free varpool node set.
4703         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4704         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4705         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4706         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4707         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4708         Move here from ipa.c; implement using pointer_map
4709         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4710         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4711         debug_cgraph_node_set, varpool_node_set_new,
4712         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4713         dump_varpool_node_set, debug_varpool_node_set):
4714         Move to ipa-uitls.c.
4715         * passes.c (ipa_write_summaries): Update.
4716
4717 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4718
4719         From Mike Frysinger:
4720         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4721         bf542/bf544/bf547/bf548/bf549.
4722
4723 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4724
4725         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4726
4727 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4728
4729         From Bernd Schmidt:
4730         * config/bfin/bfin.md (MOVCC): New mode_macro.
4731         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4732         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
4733         comments from generated assembly.
4734
4735 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4736
4737         From Bernd Schmidt
4738         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4739         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4740         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4741         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4742         * config/bfin/lib1funcs.asm (___muldi3): New function.
4743
4744 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4745
4746         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4747         build_function_type_list instead of build_function_type.
4748         Rearrange initialization of `args' to do so.
4749
4750 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4751
4752         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4753         instead of build_function_type.
4754
4755 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4756
4757         * config/rs6000/rs6000.c (spe_init_builtins): Call
4758         build_function_type_list instead of build_function_type.
4759         (paired_init_builtins, altivec_init_builtins): Likewise.
4760         (builtin_function_type): Likewise.
4761
4762 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4763
4764         * config/sh/sh.c (sh_media_init_builtins): Call
4765         build_function_type_list instead of build_function_type.
4766
4767 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4768
4769         * config/sparc/sparc.c (sparc_file_end): Call
4770         build_function_type_list instead of build_function_type.
4771
4772 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4773
4774         * config/alpha/alpha.c (alpha_init_builtins): Call
4775         build_function_type_list instead of build_function_type.
4776
4777 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4778
4779         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4780         build_function_type_list instead of build_function_type.
4781
4782 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4783
4784         * config/iq2000/i2000.c (iq2000_init_builtins): Call
4785         build_function_type_list instead of build_function_type.
4786         Delete `endlink' variable.
4787
4788 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4789
4790         * config/avr/avr.c (avr_init_builtins): Call
4791         build_function_type_list instead of build_function_type.
4792
4793 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4794
4795         * config/picochip/picochip.c (picochip_init_builtins): Call
4796         build_function_type_list instead of build_function_type.
4797         Delete `endlink' variable.
4798
4799 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4800
4801         * config/bfin/bfin.c (bfin_init_builtins): Call
4802         build_function_type_list instead of build_function_type.
4803
4804 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4805
4806         From Bernd Schmidt
4807         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4808         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
4809
4810 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4811
4812         From Jie Zhang:
4813         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4814         libbffastfp overrides libgcc when -mfast-fp.
4815
4816 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4817
4818         Originally from Bernd Schmidt
4819         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4820         * config/bfin/bfin.c (override_options): Test it and error if
4821         TARGET_FDPIC.
4822
4823 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4824
4825         Originally From Bernd Schmidt
4826         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4827         FD-PIC.
4828
4829 2011-05-03  Jeff Law  <law@redhat.com>
4830
4831         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4832         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4833         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4834         than accessing AUX field directly.  Free the AUX field before
4835         clearing it.
4836         (thread_block, thread_through_loop_header): Likewise.
4837         (thread_single_edge, mark_threaded_blocks): Likewise.
4838         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
4839         (register_jump_thread): Do not attempt to thread to a NULL edge.
4840
4841 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4842
4843         * function.c (init_function_start): Call decide_function_section.
4844         * varasm.c (decide_function_section): New function.
4845         (assemble_start_function): When not using
4846         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4847         or first_function_block_is_cold.
4848         * rtl.h (decide_function_section): Declare.
4849
4850 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4851             Jakub Jelinek  <jakub@redhat.com>
4852
4853         PR target/48774
4854         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4855         only succeed if req_mode is the same as set_mode.
4856
4857 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4858
4859         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4860         * genemit.c (gen_exp): Handle RETURN.
4861         * emit-rtl.c (verify_rtx_sharing): Likewise.
4862         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4863         * rtl.c (copy_rtx): RETURN is shared.
4864         * rtl.h (enum global_rtl_index): Add GR_RETURN.
4865         (ret_rtx): New.
4866         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4867         * config/s390/s390.c (s390_emit_epilogue): Likewise.
4868         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4869         * config/cris/cris.c (cris_expand_return): Likewise.
4870         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4871         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4872         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4873         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4874         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4875         Likewise.
4876         * config/v850/v850.c (expand_epilogue): Likewise.
4877         * config/bfin/bfin.c (bfin_expand_call): Likewise.
4878         * config/arm/arm.md (epilogue): Likewise.
4879         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4880         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4881         variable to ret_reg.
4882
4883 2011-05-03  Richard Guenther  <rguenther@suse.de>
4884
4885         PR lto/48846
4886         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4887         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4888         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4889
4890 2011-05-03  Richard Guenther  <rguenther@suse.de>
4891
4892         * c-decl.c (grokdeclarator): Instead of looking at
4893         TREE_OVERFLOW check if the constant fits in the index type.
4894
4895 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4896
4897         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4898         (vec_store_lanes<mode><mode>): Likewise.
4899
4900 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4901
4902         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4903         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4904         convert_optab_index values.
4905         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4906         * genopinit.c (optabs): Initialize the new optabs.
4907         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4908         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4909         (expand_STORE_LANES): New functions.
4910         * tree.h (build_array_type_nelts): Declare.
4911         * tree.c (build_array_type_nelts): New function.
4912         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4913         (vect_model_load_cost): Likewise.
4914         (vect_store_lanes_supported, vect_load_lanes_supported)
4915         (vect_record_strided_load_vectors): Declare.
4916         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4917         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4918         (vect_transform_strided_load): Split out statement recording into...
4919         (vect_record_strided_load_vectors): ...this new function.
4920         * tree-vect-stmts.c (create_vector_array, read_vector_array)
4921         (write_vector_array, create_array_ref): New functions.
4922         (vect_model_store_cost): Add store_lanes_p argument.
4923         (vect_model_load_cost): Add load_lanes_p argument.
4924         (vectorizable_store): Try to use store-lanes functions for
4925         interleaved stores.
4926         (vectorizable_load): Likewise load-lanes and loads.
4927         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4928         to vect_model_store_cost.
4929         (vect_build_slp_tree): Likewise vect_model_load_cost.
4930
4931 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4932
4933         * hooks.h (hook_bool_mode_uhwi_false): Declare.
4934         * hooks.c (hook_bool_mode_uhwi_false): New function.
4935         * target.def (array_mode_supported_p): New hook.
4936         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4937         * doc/tm.texi: Regenerate.
4938         * stor-layout.c (mode_for_array): New function.
4939         (layout_type): Use it.
4940         * config/arm/arm.c (arm_array_mode_supported_p): New function.
4941         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4942
4943 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4944
4945         PR target/48723
4946         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4947         for -fstack-check if the size to allocate is negative.
4948
4949 2011-05-02  Lawrence Crowl  <crowl@google.com>
4950
4951         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4952         (timevar_cond_start): New for starting a timer only when it is not
4953         already running.
4954         (timevar_cond_stop): New for stopping a timer when it was not already
4955         running.
4956
4957         * timevar.c (timevar_stop): Enable start/stop timers to start again.
4958         (timevar_cond_start): New as above.
4959         (timevar_cond_stop): New as above.
4960
4961         * timevar.def: Add start/stop timers for compiler phases,
4962         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4963         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4964         and TV_PHASE_FINALIZE.
4965         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4966         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4967         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4968         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4969         Make unused TV_OVERLOAD into a start/stop timer.
4970
4971         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4972         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4973         to indicate that they are start/stop timers.
4974
4975         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4976         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4977         Move initialization to do_compile.
4978         (do_compile): Add initialization from above.
4979         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4980
4981         * c-decl.c (c_write_global_declarations): Add start/stop of
4982         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4983
4984         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4985         or TV_PARSE_INLINE, as appropriate.
4986         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4987         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4988
4989 2011-05-02  Jason Merrill  <jason@redhat.com>
4990
4991         PR c++/40975
4992         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4993
4994 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
4995
4996         PR c/35445
4997         * c-decl.c (finish_decl): Only create a composite if the types are
4998         compatible.
4999
5000 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
5001
5002         * config/fr30/fr30-protos.h (Mmode): Don't define.
5003         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
5004         definition where used.
5005         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5006         define.  Expand definitions where used.
5007         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5008         Expand definitions where used.
5009         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5010         rx_function_arg, rx_function_arg_advance,
5011         rx_function_arg_boundary): Expand definitions of those macros.
5012         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
5013         definition where used.
5014
5015 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
5016
5017         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5018         reg<->xmm moves.
5019         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5020         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
5021         with *movv2sf_internal_rex64_avx.
5022         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5023         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5024         Use %v prefix in insn mnemonic to handle TARGET_AVX.
5025         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
5026         "vex" in "prefix" attribute calculation.
5027         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
5028
5029 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
5030
5031         PR target/47951
5032         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5033         inputs match the output.
5034
5035 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
5036
5037         PR target/47955
5038         * config/m68k/m68k.c (m68k_expand_prologue): Set
5039         current_function_static_stack_size.
5040
5041 2011-05-02   Jan Hubicka  <jh@suse.cz>
5042
5043         * lto-streamer.c (lto_streamer_cache_insert_1,
5044         lto_streamer_cache_lookup, lto_streamer_cache_create,
5045         lto_streamer_cache_delete): Use pointer map instead of hashtable.
5046         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5047
5048 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
5049
5050         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5051         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5052         config/m68k/t-opts: New files.
5053         * config/m68k/m68k-tables.opt: New file (generated).
5054         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5055         extra_options and m68k/t-opts to tmake_file.
5056         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5057         (all_isas): Initialize using m68k-isas.def.
5058         (all_microarchs): Initialize using m68k-microarchs.def.
5059         (m68k_find_selection): Remove.
5060         (m68k_handle_option): Don't assert that global structures are in
5061         use.  Use error_at.  Access variables via opts pointer.  Don't
5062         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
5063         directly for -m68020-40 and -m68020-60.
5064         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5065         m68k_tune_entry here.
5066         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5067         to m68k-opts.h.
5068         (m68k_library_id_string): Remove declaration.
5069         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5070         (m68k_library_id_string): New Variable.
5071         (march=, mcpu=, mtune=): Use Enum and Var.
5072
5073 2011-05-02  Richard Guenther  <rguenther@suse.de>
5074
5075         * varasm.c (output_constructor_regular_field): Compute zero-based
5076         index with double-ints.  Make sure to ICE instead of producing
5077         wrong code.
5078         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5079         in asserts.  Properly use a signed type.
5080
5081 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
5082
5083         * config/i386/sse.md (V): New mode iterator.
5084         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
5085         TARGET_SSE2.
5086         (V_256): Rename from AVX256MODE.
5087         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
5088         condition to all users.
5089         (VF1): Ditto.
5090         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
5091         condition to all users.
5092         (VF_128): Make V4SF mode unconditional.
5093         (VF_256): Rename from AVX256MODEF2P.
5094         (VI4F_128): Rename from SSEMODE4S.
5095         (VI8F_128): Rename from SSEMODE2D.
5096         (VI4F_256): Rename from AVX256MODE8P.
5097         (VI8F_256): Rename from AVX256MODE4P.
5098         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5099         (ssescalarmodesuffix): Remove SF and DF modes.
5100         (SSEMODE124): Remove.
5101         (SSEMODE1248): Ditto.
5102         (SSEMODEF2P): Ditto.
5103         (AVXMODEF2P): Ditto.
5104         (AVXMODEFDP): Ditto.
5105         (AVXMODEFSP): Ditto.
5106         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5107         unconditional.
5108         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
5109         unconditional.
5110         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5111         xop_pcmov_<mode>256.  Use V mode iterator.
5112
5113         Adjust RTX patterns globally for renamed mode attributes.
5114
5115 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5116
5117         * haifa-sched.c (sched_emit_insn): Emit insn before first
5118         non-scheduled insn.  Inform back-end about new insn.  Add
5119         new insn to scheduled_insns list.
5120
5121 2011-05-02  Richard Guenther  <rguenther@suse.de>
5122
5123         PR tree-optimization/48822
5124         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5125         (process_scc): Indicate which iteration we start.
5126
5127 2011-05-02  Jan Hubicka  <jh@suse.cz>
5128
5129         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5130         (lto_section_overrun): New.
5131         * lto-section-out.c (append_block): Rename to ...
5132         (lto_append_block): ... this one; export.
5133         (lto_output_1_stream): Move lto lto-streamer.h
5134         (lto_output_data_stream): Update.
5135         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5136         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5137         functions.
5138
5139 2011-05-02  Richard Guenther  <rguenther@suse.de>
5140
5141         * tree.c (tree_code_counts): New global array.
5142         (record_node_allocation_statistics): Count individual tree codes.
5143         (dump_tree_statistics): Dump individual code stats.
5144
5145 2011-05-01  Jan Hubicka  <jh@suse.cz>
5146
5147         * ipa-inline.c (caller_growth_limits): Fix thinko when
5148         looking for largest stack frame.
5149         * ipa-inline.h (dump_inline_summary): Declare.
5150         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5151         on stack usage.
5152         (dump_inline_summary): Export.
5153         (debug_inline_summary): Declare as DEBUG_FUNCTION.
5154
5155 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
5156
5157         * reginfo.c (memory_move_cost): Change rclass argument type form
5158         'enum reg_class' to reg_class_t.
5159         * reload.h (memory_move_cost): Update prototype.
5160         * postreload.c reload_cse_simplify_set): Change type dclass var to
5161         reg_class_t.
5162         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5163         Update prototype.
5164         (ira_allocate_and_set_costs): Change aclass argument type form
5165         'enum reg_class' to reg_class_t.
5166         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5167         Change aclass argument type to reg_class_t.
5168         (update_conflict_hard_reg_costs): Change type aclass and pref vars
5169         to reg_class_t.
5170         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5171         memory_move_cost call.
5172
5173         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5174         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5175         Change type tmp var to reg_class_t.
5176
5177 2011-04-30  Jan Hubicka  <jh@suse.cz>
5178
5179         * ipa-inline.c (can_inline_edge_p): Disregard limits when
5180         inlining into function with flatten attribute.
5181         (want_inline_small_function_p): Be more realistic about inlining
5182         cold calls where callee size grows.
5183
5184 2011-04-30  Jan Hubicka  <jh@suse.cz>
5185
5186         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5187         flags.
5188
5189 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
5190
5191         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5192         PRINT_OPERAND_PUNCT_VALID_P): Remove.
5193         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5194         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5195         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5196         (print_operand): Rename to...
5197         (sparc_print_operand): ...this. Make static. Adjust
5198         sparc_print_operand function call.
5199         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5200         functions.
5201
5202 2011-04-30  Jan Hubicka  <jh@suse.cz>
5203
5204         PR middle-end/48752
5205         * ipa-inline.c (early_inliner): Disable when doing late
5206         addition of function.
5207
5208 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
5209
5210         * dwarf2out.c (get_address_mode): New inline.
5211         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5212         if not dwarf_strict emit
5213         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5214         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5215         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
5216         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5217         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5218         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5219         mem_loc_descriptor callers.
5220         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5221         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5222         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5223         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5224         (base_types): New variable.
5225         (get_base_type_offset, calc_base_type_die_sizes,
5226         base_type_for_mode, mark_base_types, base_type_cmp,
5227         move_marked_base_types): New functions.
5228         (calc_die_sizes): Assert that die_offset is 0 or equal to
5229         next_die_offset.
5230         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5231         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
5232         callers.  If not dwarf_strict, call mem_loc_descriptor even for
5233         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5234         (gen_subprogram_die): Don't give up on call site parameters
5235         with non-integral or large integral modes.  Adjust
5236         mem_loc_descriptor callers.
5237         (prune_unused_types): Call prune_unused_types_mark on base_types
5238         vector entries.
5239         (resolve_addr): Call mark_base_types.
5240         (dwarf2out_finish): Call move_marked_base_types.
5241
5242         PR tree-optimization/48809
5243         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5244         type.
5245         (gen_inbound_check): Don't compute index_expr - range_min in utype
5246         again, instead reuse SSA_NAME initialized in build_arrays.
5247         Remove two useless gsi_for_stmt calls.
5248
5249 2011-04-29  Jeff Law  <law@redhat.com>
5250
5251         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5252
5253 2011-04-29  Martin Jambor  <mjambor@suse.cz>
5254
5255         * cgraph.h (cgraph_postorder): Remove declaration.
5256         * ipa-utils.h (ipa_free_postorder_info): Declare.
5257         (ipa_reverse_postorder): Likewise.
5258         * cgraphunit.c: Include ipa-utils.h.
5259         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5260         * ipa-inline.c: Include ipa-utils.h.
5261         (ipa_inline): Update call to ipa_reverse_postorder.
5262         * ipa-pure-const.c (propagate_pure_const): Update call to
5263         ipa_reduced_postorder and ipa_print_order.  Call
5264         ipa_free_postorder_info to clean up.
5265         (propagate_nothrow): Likewise.
5266         * ipa-reference.c (propagate): Removed a useless call to
5267         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5268         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
5269         * ipa.c: Include ipa-utils.h.
5270         (ipa_profile): Update call to ipa_reverse_postorder.
5271         (cgraph_postorder): Moved to...
5272         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5273         (ipa_utils_print_order): Renamed to ipa_print_order.
5274         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5275         comments.
5276         (ipa_free_postorder_info): New function.
5277         * passes.c: Include ipa-utils.h.
5278         (do_per_function_toporder): Update call to ipa_reverse_postorder.
5279         (ipa_write_summaries): Likewise.
5280         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5281         (cgraphunit.o): Likewise.
5282         (ipa.o): Likewise.
5283         (ipa-inline.o): Likewise.
5284
5285 2011-04-29  Jan Hubicka  <jh@suse.cz>
5286
5287         * gcc.dg/tree-ssa/inline-10.c: New testcase.
5288         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5289         * ipa-inline.h (clause_t): Turn into unsigned int.
5290         * ipa-inline-analysis.c (add_clause): Do more simplification.
5291         (and_predicates): Shortcut more cases.
5292         (predicates_equal_p): Move forward; check that clauses are properly
5293         ordered.
5294         (or_predicates): Shortcut more cases.
5295         (edge_execution_predicate): Rewrite as...
5296         (set_cond_stmt_execution_predicate): ... this function; handle
5297         __builtin_constant_p.
5298         (set_switch_stmt_execution_predicate): New .
5299         (compute_bb_predicates): New.
5300         (will_be_nonconstant_predicate): Update TODO.
5301         (estimate_function_body_sizes): Use compute_bb_predicates
5302         and free them later, always try to estimate if stmt is constant.
5303         (estimate_time_after_inlining, estimate_size_after_inlining):
5304         Gracefully handle optimized out edges.
5305         (read_predicate): Fix off by one error.
5306
5307 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5308
5309         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5310
5311 2011-04-27  Xinliang David Li  <davidxl@google.com>
5312
5313         * tree-profile.c (init_ic_make_global_vars): Set
5314         tls attribute on ic vars.
5315         * coverage.c (coverage_end_function): Initialize
5316         function_list with zero.
5317
5318 2011-04-29  Richard Guenther  <rguenther@suse.de>
5319
5320         * builtins.c (fold_builtin_classify_type): Use integer_type_node
5321         for the type of the result.
5322         (fold_builtin_isascii): Likewise.
5323         (fold_builtin_toascii): Use integer_type_node where appropriate.
5324         (fold_builtin_logb): Likewise.
5325         (fold_builtin_frexp): Likewise.
5326         (fold_builtin_strstr): Likewise.
5327         (fold_builtin_strpbrk): Likewise.
5328         (fold_builtin_fputs): Likewise.
5329         (fold_builtin_sprintf): Likewise.
5330         (fold_builtin_snprintf): Likewise.
5331         (fold_builtin_printf): Likewise.
5332         (do_mpfr_remquo): Use a proper type for the assigned constant.
5333         (do_mpfr_lgamma_r): Likewise.
5334         * dwarf2out.c (resolve_one_addr): Use size_int.
5335         * except.c (init_eh): Likewise.
5336         (assign_filter_values): Use integer_type_node for filter values.
5337         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5338         indices.
5339         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5340         for EH region numbers.
5341         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5342         for the shift amount.
5343
5344 2011-04-29  Richard Guenther  <rguenther@suse.de>
5345
5346         * expr.h (expand_shift): Rename to ...
5347         (expand_variable_shift): ... this.
5348         (expand_shift): Take a constant shift amount.
5349         * expmed.c (expand_shift): Rename to ...
5350         (expand_variable_shift): ... this.
5351         (expand_shift): New wrapper around expand_variable_shift.
5352         * expr.c (convert_move, emit_group_load_1, emit_group_store,
5353         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5354         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5355         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5356         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5357         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5358         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5359         emit_store_flag_1, emit_store_flag): Likewise.
5360         * builtins.c (expand_builtin_signbit): Likewise.
5361         * calls.c (load_register_parameters): Likewise.
5362         * function.c (assign_parm_setup_block): Likewise.
5363         * lower-subreg.c (resolve_shift_zext): Likewise.
5364         * optabs.c (widen_bswap, expand_abs_nojump,
5365         expand_one_cmpl_abs_nojump, expand_float): Likewise.
5366         * spu/spu.c (spu_expand_extv): Likewise.
5367         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5368
5369 2011-04-29  Richard Guenther  <rguenther@suse.de>
5370
5371         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5372         for the remapped region number.
5373         * predict.c (build_predict_expr): Use integer_type_node for the
5374         predict kind.
5375         * fold-const.c (fold_binary_loc): Use integer_type_node for
5376         the shift amount.  Use a proper type for the PLUS_EXPR operand.
5377
5378 2011-04-29  Michael Matz  <matz@suse.de>
5379
5380         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5381         other trees that just builtins.
5382         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5383
5384 2011-04-29  Richard Guenther  <rguenther@suse.de>
5385
5386         * tree-nested.c (get_trampoline_type): Use size_int.
5387         (get_nl_goto_field): Likewise.
5388         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5389         for all indexes.
5390         (lower_eh_constructs_2): Likewise.
5391         (lower_resx): Likewise.
5392         (lower_eh_dispatch): Likewise.
5393         * tree-mudflap.c (mf_build_string): Use size_int.
5394         (mudflap_register_call): Use integer_type_node for the flag.
5395         (mudflap_enqueue_constant): Use size_int.
5396         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5397         instead of rebuilding it.
5398
5399 2011-04-29  Richard Guenther  <rguenther@suse.de>
5400
5401         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5402         Handle OBJ_TYPE_REF.
5403         (find_func_aliases_for_call): Use it more consistently.
5404
5405 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
5406
5407         * haifa-sched.c (last_nondebug_scheduled_insn): New.
5408         (rank_for_schedule): Use it.
5409         (schedule_block): Set it.
5410
5411 2011-04-28  David Li  <davidxl@google.com>
5412
5413         * tree.c (crc32_string): Use crc32_byte.
5414         (crc32_byte): New function.
5415         * tree.h (crc32_byte): New function.
5416         * gcov.c (read_graph_file): Handle new cfg_cksum.
5417         (read_count_file): Ditto.
5418         * profile.c (instrument_values): Ditto.
5419         (get_exec_counts): Ditto.
5420         (read_profile_edge_counts): Ditto.
5421         (compute_branch_probabilities): Ditto.
5422         (compute_value_histograms): Ditto.
5423         (branch_prob): Ditto.
5424         (end_branch_prob): Ditto.
5425         * coverage.c (read_counts_file): Ditto.
5426         (get_coverage_counts): Ditto.
5427         (tree_coverage_counter_addr): Ditto.
5428         (coverage_checksum_string): Ditto.
5429         (coverage_begin_output): Ditto.
5430         (coverage_end_function): Ditto.
5431         (build_fn_info_type): Ditto.
5432         (build_fn_info_value): Ditto.
5433         * libgcov.c (gcov_exit): Ditto.
5434         * gcov-dump.c (tag_function): Ditto.
5435         (compute_checksum): Remove.
5436
5437 2011-04-29  Alan Modra  <amodra@gmail.com>
5438
5439         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5440         unspec plus offset.  Tidy macho code.
5441
5442 2011-04-29  Martin Jambor  <mjambor@suse.cz>
5443
5444         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5445         node instead of a decl.  Update all callers.
5446         * cgraph.h: Update declaration.
5447
5448 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
5449
5450         PR tree-optimization/48765
5451         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5452         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5453         to indicate if loop aware SLP is being used.  Scan the statements
5454         and update the vectorization factor according to the type of
5455         vectorization before statement analysis.
5456         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5457         pass it to vect_analyze_loop_operations.
5458         (vectorizable_reduction): Set number of copies to 1 in case of pure
5459         SLP statement.
5460         * tree-vect-stmts.c (vectorizable_conversion,
5461         vectorizable_assignment, vectorizable_shift,
5462         vectorizable_operation, vectorizable_type_demotion,
5463         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5464         Likewise.
5465         (vectorizable_condition): Move the check that it is not SLP
5466         vectorization before the number of copies check.
5467         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5468         to vectorize the loop using SLP.
5469
5470 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
5471
5472         PR middle-end/48597
5473         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5474         inline asm.
5475
5476 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
5477
5478         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5479         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5480         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5481         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5482         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5483         linux*.h headers.
5484         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5485         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5486         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5487         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5488         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5489         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5490         REG_NAME.
5491         * config/i386/linux.h (REG_NAME): Don't define.
5492         * config/i386/linux64.h (REG_NAME): Don't define.
5493         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5494         Undefine before defining.
5495
5496 2011-04-28  Jan Hubicka  <jh@suse.cz>
5497
5498         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5499         nonconstant_names array.
5500         (estimate_function_body_sizes): Build nonconstant_names array; handle
5501         BUILT_IN_CONSTANT_P.
5502
5503 2011-04-28  Richard Guenther  <rguenther@suse.de>
5504
5505         PR bootstrap/48804
5506         Revert
5507         2011-04-28  Richard Guenther  <rguenther@suse.de>
5508
5509         * tree-ssa-structalias.c (solve_constraints): Build succ graph
5510         as late as possible.
5511
5512 2011-04-28  Richard Guenther  <rguenther@suse.de>
5513
5514         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5515         (debug_constraint): Do it here.
5516         (dump_constraints): And here.
5517         (rewrite_constraints): And here.
5518         (dump_constraint_edge): Remove.
5519         (dump_constraint_graph): Rewrite to produce DOT output.
5520         (solve_constraints): Build succ graph as late as possible.
5521         Dump constraint graphs before and after solving.
5522
5523 2011-04-28  Richard Guenther  <rguenther@suse.de>
5524
5525         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5526         New function split out from ...
5527         (find_func_aliases): ... here.  Call it.
5528         (find_func_aliases_for_call): Likewise.
5529
5530 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5531
5532         * internal-fn.h (internal_fn_name_array): Declare.
5533         (internal_fn_flags_array): Likewise.
5534
5535 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5536
5537         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
5538         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5539         Move from sse.md.
5540         (ssemodefsuffix): Remove.
5541         (ssevecmodesuffix): New mode attribute.
5542         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5543         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5544         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5545         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5546         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5547         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5548         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5549         ssemodesuffix mode attribute.
5550         (float splitters): Use ssevecmodesuffix mode attribute.
5551         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5552         (sseinsmode): Rename from avxvecmode.
5553         (avxsizesuffix): Rename from avxmodesuffix.
5554         (sseintvecmode): Rename from avxpermvecmode.
5555         (ssedoublevecmode): Rename from ssedoublesizemode.
5556         (ssehalfvecmode): Rename from avxhalfvecmode.
5557         (ssescalarmode): Rename from avxscalarmode.
5558         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5559         templates for ssemodesuffix mode attribute.
5560         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5561         mode attribute.
5562
5563         Adjust RTX patterns globally for renamed mode attributes.
5564
5565 2011-04-27  Jan Hubcika  <jh@suse.cz>
5566
5567         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5568         * ipa-inline-analysis.c: Include alloc-pool.h.
5569         (edge_predicate_pool): New.
5570         (trye_predicate_p): New function
5571         (false_predicate_p): New function.
5572         (add_clause): Sanity check that false clauses are "optimized";
5573         never add clauses to predicate that is already known to be false.
5574         (and_predicate): Use flase_predicate_p.
5575         (evaulate_predicate): Rename to ...
5576         (evaluate_predicate): ... this one; update all callers; assert
5577         that false is not listed among possible truths.
5578         (dump_predicate): Use true_predicate_p.
5579         (account_size_time): Use false_predicate_p.
5580         (evaulate_conditions_for_edge): Rename to ...
5581         (evaluate_conditions_for_edge) ... this one.
5582         (edge_set_predicate): New function.
5583         (inline_edge_duplication_hook): Duplicate edge predicates.
5584         (inline_edge_removal_hook): Free edge predicates.
5585         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5586         (dump_inline_summary): Update.
5587         (estimate_function_body_sizes): Set edge predicates.
5588         (estimate_calls_size_and_time): Handle predicates.
5589         (estimate_callee_size_and_time): Update.
5590         (remap_predicate): Add toplev_predicate; update comment.
5591         (remap_edge_predicates): New function.
5592         (inline_merge_summary): Compute toplev predicate; update.
5593         (read_predicate): New function.
5594         (read_inline_edge_summary): Use it.
5595         (inline_read_section): Likewise.
5596         (write_predicate): New function.
5597         (write_inline_edge_summary): Use it.
5598         (inline_write_summary): Likewise.
5599         (inline_free_summary): Free alloc pool and edge summary vec.
5600
5601 2011-04-27  Richard Guenther  <rguenther@suse.de>
5602
5603         * tree-ssa-structalias.c (changed_count): Remove.
5604         (changed): Use a bitmap.
5605         (unify_nodes): Adjust.
5606         (do_sd_constraint): Likewise.
5607         (do_ds_constraint): Likewise.
5608         (do_complex_constraint): Likewise.
5609         (solve_graph): Likewise.
5610
5611 2011-04-27  Jan Hubicka  <jh@suse.cz>
5612
5613         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5614
5615 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5616
5617         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5618         (avx_vperm2f128_*_operand): Ditto.
5619         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5620         Use avx_vpermilp_parallel in insn condition.
5621         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5622         Use avx_vperm2f128_parallel in insn condition.
5623
5624 2011-04-27  Richard Guenther  <rguenther@suse.de>
5625
5626         * Makefile.in (tree-ssa-structalias.o): Remove
5627         gt-tree-ssa-structalias.h dependency.
5628         (GTFILES): Remove tree-ssa-structalias.c.
5629         * tree.c (allocate_decl_uid): New function.
5630         (make_node_stat): Use it.
5631         (copy_node_stat): Likewise.
5632         * tree.h (allocate_decl_uid): Declare.
5633         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5634         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5635         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5636         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5637         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5638         (struct heapvar_map): Likewise.
5639         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5640         heapvar_insert): Likewise.
5641         (make_heapvar_for): Rename to ...
5642         (make_heapvar): ... this.  Simplify.
5643         (fake_var_decl_obstack): New global var.
5644         (build_fake_var_decl): New function.
5645         (make_constraint_from_heapvar): Adjust.
5646         (handle_lhs_call): Likewise.
5647         (create_function_info_for): Likewise.
5648         (intra_create_variable_infos): Likewise.
5649         (init_alias_vars): Allocate fake_var_decl_obstack.
5650         (init_alias_heapvars, delete_alias_heapvars): Remove.
5651         (compute_points_to_sets): Do not call init_alias_heapvars.
5652         (ipa_pta_execute): Likewise.
5653         (delete_points_to_sets): Free fake_var_decl_obstack.
5654
5655 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5656
5657         * config/spu/divmovti4.c (union qword_UTItype): New data type.
5658         (si_from_UTItype, si_to_UTItype): New functions.
5659         (__udivmodti4): Use them to implement type-punning.
5660         * config/spu/multi3.c (union qword_TItype): New data type.
5661         (si_from_TItype, si_to_TItype): New functions.
5662         (__multi3): Use them to implement type-punning.
5663
5664 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5665
5666         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5667
5668 2011-04-27  Jan Hubicka  <jh@suse.cz>
5669
5670         * ipa-prop.c (function_insertion_hook_holder): New holder.
5671         (ipa_add_new_function): New function.
5672         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5673         Register/deregister holder.
5674
5675 2011-04-27  Richard Guenther  <rguenther@suse.de>
5676
5677         PR tree-optimization/48772
5678         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5679
5680 2011-04-27  Richard Guenther  <rguenther@suse.de>
5681
5682         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5683         TARGET_MEM_REF handling.
5684
5685 2011-04-27  Nick Clifton  <nickc@redhat.com>
5686
5687         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5688         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5689         (REG_CLASS_NAMES): Likewise.
5690         (REG_CLASS_CONTENTS): Likewise.
5691         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5692         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5693         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
5694         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
5695         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
5696         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5697         duplicate register classes.
5698         (frv_class_likely_spilled_p): Likewise.
5699         (frv_register_move_cost): Likewise.
5700
5701         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5702         end of the regno_reg_class array.
5703
5704 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
5705
5706         PR c/48742
5707         * c-typeck.c (build_binary_op): Don't wrap arguments if
5708         int_operands is true.
5709
5710 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
5711
5712         PR target/48767
5713         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5714         targetm.calls.must_pass_in_stack for void type.
5715
5716 2011-04-26  Jan Hubicka  <jh@suse.cz>
5717
5718         * cgraphbuild.c (build_cgraph_edges): Update call
5719         of cgraph_create_edge and cgraph_create_indirect_edge.
5720         * cgraph.c (cgraph_create_edge_including_clones,
5721         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5722         cgraph_update_edges_for_call_stmt_node): Do not take nest
5723         argument; do not initialize call_stmt_size/time.
5724         (dump_cgraph_node): Do not dump nest.
5725         (cgraph_clone_edge): Do not take loop_nest argument;
5726         do not propagate it; do not clone call_stmt_size/time.
5727         (cgraph_clone_node): Likewise.
5728         (cgraph_create_virtual_clone): Update.
5729         * cgraph.h (struct cgraph_edge): Remove
5730         call_stmt_size/call_stmt_time/loop_nest.
5731         (cgraph_create_edge, cgraph_create_indirect_edge,
5732         cgraph_create_edge_including_clones, cgraph_clone_node): Update
5733         prototype.
5734         * tree-emutls.c (gen_emutls_addr): Update.
5735         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5736         loop_nest; handle indirect calls, too.
5737         (clone_inlined_nodes): Do not care about updating inline summaries.
5738         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5739         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5740         stream call_stmt_size/call_stmt_time/loop_nest.
5741         * ipa-inline.c (edge_badness): Update.
5742         (ipa_inline): dump summaries after inlining.
5743         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5744         New.
5745         (inline_edge_summary): New function.
5746         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5747         (inline_edge_removal_hook): Handle edge summaries.
5748         (inline_edge_duplication_hook): New hook.
5749         (inline_summary_alloc): Alloc hooks.
5750         (initialize_growth_caches): Do not register removal hooks.
5751         (free_growth_caches); Do not free removal hook.
5752         (dump_inline_edge_summary): New function.
5753         (dump_inline_summary): Use it.
5754         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5755         (inline_update_callee_summaries): New function.
5756         (inline_merge_summary): Use it.
5757         (do_estimate_edge_time, do_estimate_edge_growth): Update.
5758         (read_inline_edge_summary): New function.
5759         (inline_read_section): Use it.
5760         (write_inline_edge_summary): New function.
5761         (inline_write_summary): Use it.
5762         (inline_free_summary): Free edge new holders.
5763         * tree-inline.c (copy_bb): Update.
5764
5765 2011-04-26  Jason Merrill  <jason@redhat.com>
5766
5767         * tree-eh.c (lower_try_finally_switch): Create the label along with
5768         the CASE_LABEL_EXPR.
5769
5770 2011-04-26  David S. Miller  <davem@davemloft.net>
5771             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5772
5773         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5774         * configure: Regenerate.
5775
5776 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5777
5778         PR target/48258
5779         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5780         reduction.
5781         (VEC_reduc): New code iterator and splitters for vector reduction.
5782         (VEC_reduc_name): Ditto.
5783         (VEC_reduc_rtx): Ditto.
5784         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5785         (reduc_<VEC_reduc_name>_v4sf): Ditto.
5786
5787         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5788         support for extracting SF on VSX.
5789
5790         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5791         generating xscvspdp.
5792         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5793         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5794         double add, minimum, maximum vector reduction.
5795         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5796         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5797         optimize double vector reduction.
5798         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5799
5800 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
5801
5802         * config/fr30/fr30.h (inhibit_libc): Don't define.
5803         * config/m32r/m32r-protos.h: Correct comment.
5804         * config/v850/v850.h (GHS_default_section_names,
5805         GHS_current_section_names): Use tree, not union tree_node *.
5806
5807 2011-04-26  Xinliang David Li  <davidxl@google.com>
5808
5809         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5810         * c-family/c-opts.c (c_common_handle_option): Set
5811         warn_maybe_uninitialized.
5812         * opts.c (common_handle_option): Ditto.
5813         * common.opt:  New option.
5814         * tree-ssa.c (warn_uninit): Add one more parameter.
5815         (warn_uninitialized_var): Pass warning code.
5816         * tree-flow.h: Interface change.
5817
5818 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5819
5820         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5821         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5822         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5823
5824 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5825
5826         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5827         * config/mips/mips.opt (mmips-tfile): Remove.
5828
5829         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5830         mips-tdump reference to ...
5831         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
5832         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5833         reference by Tru64 UNIX.
5834
5835 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
5836
5837         PR debug/48768
5838         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5839         is error_mark_node, set value to NULL.
5840
5841         PR tree-optimization/48734
5842         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5843         if return value from maybe_fold_*_comparsions isn't something
5844         the code is prepared to handle.
5845
5846 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
5847
5848         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5849         mode check.
5850         (ext_QIreg_nomode_operands): Remove.
5851         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5852         (*andsi_1): Ditto.
5853         (*andhi_1): Ditto.
5854
5855 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
5856
5857         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5858
5859 2011-04-26  Richard Guenther  <rguenther@suse.de>
5860
5861         * c-typeck.c (build_unary_op): Do not expand array-refs via
5862         pointer arithmetic.  Only adjust qualifiers for function types.
5863
5864 2011-04-26  Richard Guenther  <rguenther@suse.de>
5865
5866         PR middle-end/48694
5867         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5868         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5869         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
5870         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5871
5872 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
5873
5874         * doc/extend.texi: Document __underlying_type.
5875
5876 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
5877
5878         * config/rs6000/titan.md (automata_option "progress"): Remove.
5879
5880 2011-04-25  Jeff Law  <law@redhat.com>
5881
5882         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5883
5884 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5885
5886         * system.h (ENUM_BITFIELD): Remove.
5887
5888 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
5889             Eric Botcazou  <ebotcazou@adacore.com>
5890
5891         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5892         for STORE_FLAG_VALUE==-1 case.
5893
5894 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
5895
5896         PR target/43804
5897         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5898         LEGITIMATE_PIC_OPERAND_P.
5899
5900 2011-04-24  Jan Hubicka  <jh@suse.cz>
5901
5902         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5903         WPA hack.
5904         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5905         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5906         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5907         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5908         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5909         Sanity check predicate length.
5910         (remap_predicate): Likewise; sanity check jump functions.
5911         (inline_read_section, inline_write_summary): Sanity check
5912         predicate length.
5913
5914 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5915
5916         PR other/48748
5917         * doc/extend.texi (Type Traits): Document __is_standard_layout,
5918         __is_literal_type, and __is_trivial; update throughout about
5919         possibly cv-qualified void types.
5920
5921 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5922
5923         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5924         testsuite and make it version agnostic.
5925
5926 2011-04-22  Jan Hubicka  <jh@suse.cz>
5927
5928         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5929
5930 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
5931
5932         PR c/48685
5933         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5934         to VOID_TYPE even around MODIFY_EXPR.
5935
5936 2011-04-22  Mike Stump  <mikestump@comcast.net>
5937
5938         * gensupport.c (read_md_rtx): Fix typo in comment.
5939         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5940         comment.
5941
5942 2011-04-22  Jan Hubicka  <jh@suse.cz>
5943
5944         * gengtype.c (open_base_files): Add ipa-inline.h include.
5945         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5946         ipa-prop.c; update all uses.
5947         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5948         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5949         merge summary of inlined function into former caller.
5950         * ipa-inline.c (max_benefit): Remove.
5951         (edge_badness): Compensate for removal of benefits.
5952         (update_caller_keys): Use
5953         reset_node_growth_cache/reset_edge_growth_cache.
5954         (update_callee_keys): Likewise.
5955         (update_all_callee_keys): Likewise.
5956         (inline_small_functions): Do not collect max_benefit; do not reset
5957         estimated_growth; call free_growth_caches and initialize_growth_caches.
5958         * ipa-inline.h (struct condition, type clause_t, struct predicate,
5959         struct size_time_entry): New structures.
5960         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5961         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5962         and estimated_growth.
5963         (edge_growth_cache_entry): New structure.
5964         (node_growth_cache, edge_growth_cache): New global vars.
5965         (estimate_growth): Turn into inline.
5966         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5967         initialize_growth_caches, free_growth_caches): Declare.
5968         (estimate_edge_growth): Rewrite.
5969         (estimate_edge_time): Implement as inline cache lookup.
5970         (reset_node_growth_cache, reset_edge_growth_cache): New inline
5971         functions.
5972         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5973         (NUM_CONDITIONS): New constant.
5974         (predicate_conditions): New enum.
5975         (IS_NOT_CONSTANT): New constant.
5976         (edge_removal_hook_holder): New var.
5977         (node_growth_cache, edge_growth_cache): New global vars.
5978         (true_predicate, single_cond_predicate, false_predicate,
5979         not_inlined_predicate, add_condition, add_clause, and_predicates,
5980         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5981         dump_clause, dump_predicate, account_size_time,
5982         evaulate_conditions_for_edge): New functions.
5983         (inline_summary_alloc): Move to heap.
5984         (inline_node_removal_hook): Clear condition and entry vectors.
5985         (inline_edge_removal_hook): New function.
5986         (initialize_growth_caches, free_growth_caches): New function.
5987         (dump_inline_summary): Update.
5988         (edge_execution_predicate): New function.
5989         (will_be_nonconstant_predicate): New function.
5990         (estimate_function_body_sizes): Compute BB and constantness predicates.
5991         (compute_inline_parameters): Do not clear estimated_growth.
5992         (estimate_edge_size_and_time): New function.
5993         (estimate_calls_size_and_time): New function.
5994         (estimate_callee_size_and_time): New function.
5995         (remap_predicate): New function.
5996         (inline_merge_summary): New function.
5997         (do_estimate_edge_time): New function based on...
5998         (estimate_edge_time): ... this one.
5999         (do_estimate_edge_growth): New function.
6000         (do_estimate_growth): New function based on....
6001         (estimate_growth): ... this one.
6002         (inline_analyze_function): Analyze after deciding on jump functions.
6003         (inline_read_section): New function.
6004         (inline_read_summary): Use it.
6005         (inline_write_summary): Write all the new data.
6006         * ipa-prop.c (ipa_get_param_decl_index): Export.
6007         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6008         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6009         Declare.
6010         (ipa_get_lattice): Move here from ipa-cp.c
6011         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6012         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6013         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6014         cgraph_edge_inlinable_p): Remove.
6015         * cgraphunit.c: Include ipainline.h
6016         (cgraph_process_new_functions): Update call of
6017         compute_inline_parameters.
6018
6019 2011-04-22  Richard Guenther  <rguenther@suse.de>
6020
6021         * tree.c (build_int_cst): Properly create canonicalized integer
6022         constants.
6023         (build_int_cst_type): Remove scary comments.
6024
6025 2011-04-22  Xinliang David Li  <davidxl@google.com>
6026
6027         * toplev.c (process_options): Enable -Werror=coverage-mismatch
6028         by default when -Wno-error is not specified.
6029         * opts-global.c (decode_options): Remove call to
6030         control_warning_options.
6031
6032 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
6033
6034         PR tree-optimization/48717
6035         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6036         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6037
6038 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
6039
6040         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
6041         definition where used.
6042
6043 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
6044
6045         PR c/48716
6046         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6047         TREE_STATIC variables declared inside of some OpenMP construct.
6048
6049 2011-04-22  Martin Jambor  <mjambor@suse.cz>
6050
6051         PR middle-end/48585
6052         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6053
6054 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
6055
6056         PR c/36750
6057         * c-typeck.c (pop_init_level): Do not warn about initializing
6058         with ` = {0}'.
6059
6060 2011-04-22  Alan Modra  <amodra@gmail.com>
6061
6062         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6063         when returning call_cookie.
6064         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6065         pointers, to functions with no more vector args than the current
6066         function, and some non-local calls for ABI_V4.
6067         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6068         sibcall_nonlocal_aix64): Combine to ..
6069         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
6070         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6071         (sibcall_value_nonlocal_aix<mode>): ..likewise.
6072         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6073         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
6074         operand.
6075         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6076         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6077         sibcall_value_symbolic_64): Delete.
6078
6079 2011-04-21  Xinliang David Li  <davidxl@google.com>
6080
6081         * cgraph.h: Remove pid.
6082         * cgraph.c: Remove pid.
6083         * value-prof.c (init_node_map): New function.
6084         (del_node_map): New function.
6085         (find_func_by_funcdef_no): New function.
6086         (gimple_ic_transform): Call new function.
6087         * cgraphunit.c (cgraph_finalize_function): Remove pid.
6088         * function.c (get_last_funcdef_no): New function.
6089         * function.h (get_last_funcdef_no): New function.
6090         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6091         to libgcov function.
6092         (tree-profiling): Call node map init and delete function.
6093
6094 2011-04-21  Ian Lance Taylor  <iant@google.com>
6095
6096         * godump.c (go_format_type): Use exported Go name for anonymous
6097         field name.
6098
6099 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
6100
6101         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6102         Call builtin_function_type_list instead of builtin_function_type.
6103         (UNARY, BINARY, TRINARY, QUAD): Likewise.
6104
6105 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
6106
6107         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6108         build_function_type_list instead of build_function_type.
6109         Delete variable `endlink'.
6110
6111 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
6112
6113         * config/s390/s390.c (s390_init_builtins): Call
6114         build_function_type_list instead of build_function_type.
6115
6116 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
6117
6118         * config/ia64/ia64.c (ia64_init_builtins): Call
6119         build_function_type_list instead of builtin_function_type.
6120
6121 2011-04-21  Easwaran Raman  <eraman@google.com>
6122
6123         * cfgexpand.c (stack_var): Remove OFFSET...
6124         (add_stack_var): ...and its reference here...
6125         (expand_stack_vars): ...and here.
6126         (stack_var_cmp): Sort by descending order of size.
6127         (partition_stack_vars): Change heuristic.
6128         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6129         (dump_stack_var_partition): Add newline after each partition.
6130
6131 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
6132             Jeff Law  <law@redhat.com>
6133
6134         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6135         * gengtype.c (matching_file_name_substitute): Likewise.
6136
6137 2011-04-21  Richard Guenther  <rguenther@suse.de>
6138
6139         PR lto/48703
6140         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6141
6142 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
6143
6144         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6145
6146 2011-04-21  Richard Guenther  <rguenther@suse.de>
6147
6148         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6149         file name.
6150
6151 2011-04-21  Richard Guenther  <rguenther@suse.de>
6152
6153         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6154         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6155         Use DECL_P, not SSA_VAR_P.
6156         (ptr_derefs_may_alias_p): Likewise.
6157         (ptr_deref_may_alias_ref_p_1): Likewise.
6158         (decl_refs_may_alias_p): Likewise.
6159         (refs_may_alias_p_1): Likewise.
6160         (ref_maybe_used_by_call_p_1): Likewise.
6161         (call_may_clobber_ref_p_1): Likewise.
6162         (indirect_ref_may_alias_decl_p): Assume indirect refrences
6163         are either MEM_REF or TARGET_MEM_REF.
6164         (indirect_refs_may_alias_p): Likewise.
6165         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6166         for MEM_EXPR of indirect calls.
6167
6168 2011-04-21  Tristan Gingold  <gingold@adacore.com>
6169
6170         * vmsdbgout.c (write_srccorr): Compute file length from the string.
6171         (dst_file_info_struct): Remove flen field.
6172         (lookup_filename): Remove code that set flen field.
6173
6174 2011-04-21  Tristan Gingold  <gingold@adacore.com>
6175
6176         * config/ia64/ia64.c (ia64_start_function): Add a guard.
6177
6178 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
6179
6180         PR target/48708
6181         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6182         vec_extract and vec_concat for non-SSE4_1 targets.
6183
6184 2011-04-21  Richard Guenther  <rguenther@suse.de>
6185
6186         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6187         return statements.
6188
6189 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
6190
6191         * config/i386/cygming.h (union tree_node, TREE): Don't define or
6192         undefine.
6193         (FILE): Don't undefine.
6194
6195 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
6196
6197         * config/alpha/alpha.c (struct machine_function): Use rtx, not
6198         struct rtx_def *.
6199         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6200         struct rtx_def *.
6201         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6202         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6203         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6204         rtx_def *.
6205         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
6206         definitions where used.
6207         * config/microblaze/microblaze.h (struct microblaze_args): Use
6208         rtx, not struct rtx_def *.
6209         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6210         rtx_def *.
6211         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6212         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6213         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6214         not struct rtx_def *.
6215         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6216         struct rtx_def *.
6217         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6218         rtx_def *.
6219         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6220
6221 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6222
6223         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6224         operand_equal_p to compare DR_BASE_ADDRESSes.
6225         (vect_check_interleaving): Likewise.
6226
6227 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6228
6229         PR target/46329
6230         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6231         for all Neon struct constants.
6232
6233 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6234
6235         * target.def (legitimate_constant_p): New hook.
6236         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6237         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6238         * doc/tm.texi: Regenerate.
6239         * hooks.h (hook_bool_mode_rtx_true): Declare.
6240         * hooks.c (hook_bool_mode_rtx_true): Define.
6241         * system.h (LEGITIMATE_CONSTANT_P): Poison.
6242         * calls.c (precompute_register_parameters): Replace uses of
6243         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6244         (emit_library_call_value_1): Likewise.
6245         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6246         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6247         * ira-costs.c (scan_one_insn): Likewise.
6248         * recog.c (general_operand, immediate_operand): Likewise.
6249         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6250         * reload1.c (init_eliminable_invariants): Likewise.
6251
6252         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6253         mode argument.
6254         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6255         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6256         argument.
6257         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6258         * config/alpha/predicates.md (input_operand): Update call to
6259         alpha_legitimate_constant_p.
6260
6261         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6262         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6263         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6264         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6265         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6266         (arm_legitimate_constant_p): New functions.
6267         (arm_cannot_force_const_mem): Make static.
6268
6269         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6270
6271         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6272         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6273         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6274         instead of bfin_legitimate_constant_p.
6275         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
6276         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6277
6278         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6279
6280         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6281
6282         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6283         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6284         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6285         (frv_legitimate_constant_p): Make static.  Add a mode argument.
6286
6287         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6288         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6289         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6290
6291         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6292         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6293         * config/i386/i386.c (legitimate_constant_p): Rename to...
6294         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
6295         argument.
6296         (ix86_cannot_force_const_mem): Update accordingly.
6297         (ix86_legitimate_address_p): Likewise.
6298         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6299         * config/i386/i386.md: Update commentary.
6300
6301         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6302         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6303         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6304         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
6305
6306         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6307
6308         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6309         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6310         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6311         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
6312
6313         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6314         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6315         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6316
6317         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6318         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6319         (m32r_legitimate_constant_p): New function.
6320
6321         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6322         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6323         LEGITIMATE_CONSTANT_P.
6324         (LEGITIMATE_CONSTANT_P): Delete.
6325         * config/m68k/m68k.c (m68k_expand_prologue): Call
6326         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6327         (m68k_legitimate_constant_p): New function.
6328         * config/m68k/m68k.md: Update comments.
6329
6330         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6331         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6332         (mcore_legitimate_constant_p): New function.
6333
6334         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6335         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6336         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6337         Add a mode argument.
6338         (mep_legitimate_address): Update accordingly.
6339         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6340
6341         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6342         Delete.
6343         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6344         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6345         static.  Check OP's mode for VOIDmode.
6346         (microblaze_legitimate_constant_p): New function.
6347         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6348
6349         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6350         * config/mips/mips.c (mips_legitimate_constant_p): New function.
6351         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6352         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6353         * config/mips/predicates.md: Update comments.
6354
6355         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6356         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6357         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6358         (mmix_legitimate_constant_p): Make static, return a bool, and take
6359         a mode argument.
6360         (mmix_print_operand_address): Update accordingly.
6361
6362         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6363         Delete.
6364         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6365         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6366         static.  Add a mode argument.
6367         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6368
6369         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6370
6371         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6372         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6373         (pa_legitimate_constant_p): New function.
6374
6375         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6376
6377         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6378         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6379         (pdp11_legitimate_constant_p): New function.
6380
6381         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6382         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6383         (rs6000_legitimate_constant_p): New function.
6384
6385         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6386         (rx_legitimate_constant_p): ...this.
6387         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6388         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6389         (rx_legitimate_constant_p): ...this.
6390         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6391         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6392
6393         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6394         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6395         * config/s390/s390.c (legitimate_constant_p): Rename to...
6396         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
6397         and add a mode argument.
6398         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6399
6400         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6401
6402         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6403         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6404         (sh_legitimate_constant_p): New function.
6405
6406         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6407         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6408         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6409         (legitimate_constant_p): Rename to...
6410         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
6411         argument.
6412         (constant_address_p): Update accordingly.
6413
6414         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6415         argument and return a bool.
6416         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6417         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6418         (spu_legitimate_constant_p): Add a mode argument and return a bool.
6419         (spu_rtx_costs): Update accordingly.
6420         * config/spu/predicates.md (vec_imm_operand): Likewise.
6421
6422         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6423
6424         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6425         * config/v850/v850.c (v850_legitimate_constant_p): New function.
6426         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6427
6428         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6429         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6430         * config/vax/vax.c (legitimate_constant_p): Likewise.
6431
6432         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6433         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6434         (xtensa_legitimate_constant_p): New function.
6435
6436 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6437
6438         * target.def (cannot_force_const_mem): Add a mode argument.
6439         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6440         * doc/tm.texi: Regenerate.
6441         * hooks.h (hook_bool_mode_rtx_false): Declare.
6442         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6443         (hook_bool_mode_const_rtx_true): Likewise.
6444         (hook_bool_mode_rtx_false): New function.
6445         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6446         to be non-VOID.  Update call to cannot_force_const_mem.
6447         (find_reloads): Update accordingly.
6448         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6449         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6450         argument.
6451         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6452         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6453         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6454         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6455         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6456         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6457         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6458         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6459         (m68k_cannot_force_const_mem): ...this new function.
6460         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6461         argument.
6462         (mips_const_insns, mips_legitimize_const_move): Update calls.
6463         (mips_secondary_reload_class): Likewise.
6464         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6465         (pa_cannot_force_const_mem): ...this new function.
6466         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6467         (rs6000_cannot_force_const_mem): ...this new function.
6468         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6469         argument.
6470         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6471         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6472         to...
6473         (xtensa_cannot_force_const_mem): ...this new function.
6474
6475 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6476
6477         * config/mips/mips.c (mips16_build_function_stub): Call
6478         build_function_type_list instead of build_function_type.
6479         (mips16_build_call_stub): Likewise.
6480
6481 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6482
6483         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6484         instead of build_function_type.
6485
6486 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6487
6488         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6489         instead of build_function_type.
6490
6491 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
6492
6493         PR target/48678
6494         * config/i386/i386.md (insv): Change operand 0 constraint to
6495         "register_operand".  Change operand 1 and 2 constraint to
6496         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
6497         * config/i386/sse.md (sse4_1_pinsrb): Export.
6498         (sse2_pinsrw): Ditto.
6499         (sse4_1_pinsrd): Ditto.
6500         (sse4_1_pinsrq): Ditto.
6501         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6502         * config/i386/i386.c (ix86_expand_pinsr): New.
6503
6504 2011-04-20  Easwaran Raman  <eraman@google.com>
6505
6506         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6507         containing union type only with -fstrict-aliasing.
6508
6509 2011-04-20  Jim Meyering  <meyering@redhat.com>
6510
6511         Remove useless if-before-free tests.
6512         * calls.c (expand_call, save_area): Likewise.
6513         * cfgcleanup.c (try_forward_edges): Likewise.
6514         * collect2.c (collect_execute): Likewise.
6515         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6516         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6517         * coverage.c (coverage_checksum_string): Likewise.
6518         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6519         * cselib.c (cselib_init): Likewise.
6520         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6521         (df_set_clean_cfg): Likewise.
6522         * function.c (free_after_compilation): Likewise.
6523         * gcc.c (do_spec_1, main): Likewise.
6524         * gcov.c (create_file_names): Likewise.
6525         * gensupport.c (identify_predicable_attribute): Likewise.
6526         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6527         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6528         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6529         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6530         * ipa-pure-const.c (local_pure_const): Likewise.
6531         * ipa-reference.c (propagate): Likewise.
6532         * ira-costs.c (free_ira_costs): Likewise.
6533         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6534         * matrix-reorg.c (mat_free): Likewise.
6535         * prefix.c (get_key_value): Likewise.
6536         * profile.c (compute_value_histograms): Likewise.
6537         * reload1.c (free_reg_equiv): Likewise.
6538         * sched-deps.c (free_deps): Likewise.
6539         * sel-sched-ir.c (fence_clear): Likewise.
6540         * sese.c (set_rename, if_region_set_false_region): Likewise.
6541         * tree-data-ref.c (free_rdg): Likewise.
6542         * tree-eh.c (lower_try_finally): Likewise.
6543         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6544         * tree-ssa-live.c (delete_var_map): Likewise.
6545         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6546         * tree-ssa-pre.c (phi_trans_add): Likewise.
6547
6548 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
6549
6550         PR tree-optimization/48611
6551         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6552         beyond ERT_MUST_NOT_THROW region.
6553
6554 2011-04-20  Catherine Moore  <clm@codesourcery.com>
6555
6556         * config/mips/mips.opt (mfix-24k): New.
6557         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6558         * config/mips/mips.md (length): Increase by 4 for stores if
6559         fixing 24K errata.
6560         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6561         all noreorder if fixing 24K errata.
6562         * doc/invoke.texi: Document mfix-24k.
6563
6564 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
6565
6566         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6567         quad-word modes, reduce to 9-bit index range when above 1016 limit.
6568
6569 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6570
6571         * config/arm/arm.c (arm_gen_constant): Move movw support ....
6572         (const_ok_for_op): ... to here.
6573
6574 2011-04-20  Kai Tietz  <ktietz@redhat.com>
6575
6576         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6577         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6578
6579 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6580
6581         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6582
6583 2011-04-20  Richard Guenther  <rguenther@suse.de>
6584
6585         PR tree-optimization/47892
6586         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6587         are if-convertible.
6588
6589 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6590
6591         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6592
6593 2011-04-20  Tristan Gingold  <gingold@adacore.com>
6594
6595         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6596
6597 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
6598
6599         PR target/18145
6600
6601         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6602         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6603         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6604         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6605         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6606
6607         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6608         New prototype.
6609
6610         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6611         (avr_asm_named_section, avr_asm_output_aligned_common,
6612         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6613         New functions to update...
6614         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6615         (avr_asm_init_sections): Overwrite section callbacks for
6616         data_section, bss_section.
6617         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6618         from here to...
6619         (avr_file_end): ...here.
6620
6621 2011-04-20  Richard Guenther  <rguenther@suse.de>
6622
6623         PR middle-end/48695
6624         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6625         objects and types here.  Adjust for their offset before comparing.
6626
6627 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6628
6629         * tree-vect-stmts.c (vectorizable_store): Only chain one related
6630         statement per copy.
6631
6632 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6633
6634         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6635         (GIMPLE_H): Include $(INTERNAL_FN_H).
6636         (OBJS-common): Add internal-fn.o.
6637         (internal-fn.o): New rule.
6638         * internal-fn.def: New file.
6639         * internal-fn.h: Likewise.
6640         * internal-fn.c: Likewise.
6641         * gimple.h: Include internal-fn.h.
6642         (GF_CALL_INTERNAL): New gf_mask.
6643         (gimple_statement_call): Put fntype into a union with a new
6644         internal_fn field.
6645         (gimple_build_call_internal): Declare.
6646         (gimple_build_call_internal_vec): Likewise.
6647         (gimple_call_same_target_p): Likewise.
6648         (gimple_call_internal_p): New function.
6649         (gimple_call_internal_fn): Likewise.
6650         (gimple_call_fntype): Return null for internal calls.
6651         (gimple_call_set_fntype): Assert that the function is not internal.
6652         (gimple_call_set_fn): Likewise.
6653         (gimple_call_set_fndecl): Likewise.
6654         (gimple_call_set_internal_fn): New function.
6655         (gimple_call_addr_fndecl): Handle null functions.
6656         (gimple_call_return_type): Likewise null types.
6657         * gimple.c (gimple_build_call_internal_1): New function.
6658         (gimple_build_call_internal): Likewise.
6659         (gimple_build_call_internal_vec): Likewise.
6660         (gimple_call_same_target_p): Likewise.
6661         (gimple_call_flags): Handle calls to internal functions.
6662         (gimple_call_fnspec): New function.
6663         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6664         (gimple_has_side_effects): Handle null functions.
6665         (gimple_rhs_has_side_effects): Likewise.
6666         (gimple_call_copy_skip_args): Handle calls to internal functions.
6667         * cfgexpand.c (expand_call_stmt): Likewise.
6668         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6669         * gimple-fold.c (gimple_fold_call): Handle null functions.
6670         (gimple_fold_stmt_to_constant_1): Don't fold
6671         calls to internal functions.
6672         * gimple-low.c (gimple_check_call_args): Handle calls to internal
6673         functions.
6674         * gimple-pretty-print.c (dump_gimple_call): Likewise.
6675         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6676         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6677         (do_warn_unused_result): Likewise.
6678         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6679         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6680         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6681         the target of a call.
6682         (initialize_hash_element): Update accordingly.
6683         (hashable_expr_equal_p): Use gimple_call_same_target_p.
6684         (iterative_hash_hashable_expr): Handle calls to internal functions.
6685         (print_expr_hash_elt): Likewise.
6686         * tree-ssa-pre.c (can_value_number_call): Likewise.
6687         (eliminate): Handle null functions.
6688         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6689         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6690         (find_func_aliases): Likewise.
6691         * value-prof.c (gimple_ic_transform): Likewise.
6692         (gimple_indirect_call_to_profile): Likewise.
6693         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6694         * lto-streamer-out.c (output_gimple_stmt): Likewise.
6695
6696 2011-04-19  Jan Hubicka  <jh@suse.cz>
6697
6698         * ipa-inline-transform.c (save_inline_function_body): Add comments.
6699         * ipa-inline.c (inline_small_functions): Compute summaries first,
6700         populate heap later.
6701
6702 2011-04-19  Jan Hubicka  <jh@suse.cz>
6703
6704         * cgraph.h (save_inline_function_body): Remove.
6705         * ipa-inline-transform.c: New file, broke out of...
6706         * ipa-inline.c: ... this one; Update toplevel comment.
6707         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6708         make global.
6709         (update_noncloned_frequencies): Move to ipa-inline-transform.c
6710         (cgraph_mark_inline_edge): Rename to inline_call; move to
6711         ipa-inline-transform.c.
6712         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6713         move to ipa-inline-transform.c
6714         (recursive_inlining, inline_small_functions, flatten_function,
6715         ipa_inline, inline_always_inline_functions,
6716         early_inline_small_functions): Update.
6717         (inline_transform): Move to ipa-inline-transform.c.
6718         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6719         Declare.
6720         * Makefile.in (ipa-inline-transform.o): New file.
6721         * cgraphunit.c (save_inline_function_body): Move to
6722         ipa-inline-transform.c
6723
6724 2011-04-19  DJ Delorie  <dj@redhat.com>
6725
6726         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6727         registers if we already know there aren't any.
6728         (m32c_emit_epilogue): Don't emit a barrier here.
6729         (m32c_emit_eh_epilogue): Likewise.
6730         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6731         operands at expand time.
6732         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6733         int" wchar type.
6734         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6735         duplicates.  Provide aliases instead.
6736         * config/m32c/prologue.md (eh_return): Emit a barrier here.
6737         (eh_epilogue): Add a "(return)" here as a hint to other parts of
6738         the compiler.
6739
6740 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
6741
6742         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6743         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6744         (general_or_i64_p, sparc_register_move_cost): New function.
6745
6746 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6747
6748         * doc/install.texi (Configuration, --enable-threads): Remove mach.
6749         Add lynx, mipssde.  Sort table.
6750
6751 2011-04-19  Xinliang David Li  <davidxl@google.com>
6752
6753         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6754         not negative.
6755
6756 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
6757
6758         PR target/48678
6759         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6760         is a SUBREG with non-MODE_INT mode inside of it.
6761
6762 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6763
6764         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6765         also according to actual contants.
6766         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6767         (gimple_fold_call): Use it.
6768         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6769
6770 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6771
6772         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6773         non-pointer assignments.
6774
6775 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6776
6777         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6778         account anc_offset and otr_type from the indirect edge info.
6779         * ipa-prop.c (get_ancestor_addr_info): New function.
6780         (compute_complex_ancestor_jump_func): Assignment analysis moved to
6781         get_ancestor_addr_info, call it.
6782         (ipa_note_param_call): Do not initialize information about polymorphic
6783         calls, return the indirect call graph edge.  Remove the last
6784         parameter, adjust all callers.
6785         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6786         parameters.  Initialize polymorphic information in the indirect edge.
6787
6788 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6789
6790         PR lto/48148
6791         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6792         the types if they have different enumeration identifiers.
6793
6794 2011-04-19  Jan Hubicka  <jh@suse.cz>
6795
6796         * cgraph.h (cgraph_optimize_for_size_p): Declare.
6797         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6798         * predict.c (cgraph_optimize_for_size_p): Break out from ...
6799         (optimize_function_for_size_p) ... here.
6800
6801 2011-04-19  Richard Guenther  <rguenther@suse.de>
6802
6803         PR lto/48207
6804         * tree.c (free_lang_data): Do not reset the decl-assembler-name
6805         langhook.
6806
6807 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6808
6809         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6810         if DECL_NO_INLINE_WARNING_P is set on the function.
6811
6812 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
6813
6814         PR fortran/47976
6815         * reload1.c (inc_for_reload): Return void. All callers changed.
6816         (emit_input_reload_insns): Don't try to delete previous output
6817         reloads to a register, or record spill_reg_store for autoincs.
6818
6819 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
6820
6821         * gengtype.h: Updated copyright year.
6822         (struct input_file_st): Add inpisplugin field.
6823         (type_fileloc): New function.
6824         * gengtype.c
6825         (write_typed_struct_alloc_def): Add gcc_assert.
6826         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6827         (write_typed_alloc_defns): Don't output for plugin files.
6828         (input_file_by_name): Clear inpisplugin field.
6829         (main): Set inpisplugin field for plugin files.
6830
6831 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
6832
6833         * gengtype-state.c (string_eq): New.
6834         (read_state): Use string_eq instead of strcmp when creating the
6835         state_ident_tab.
6836
6837 2011-04-19  Wei Guozhi  <carrot@google.com>
6838
6839         PR target/47855
6840         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6841         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6842         linkage.
6843         * config/arm/constraints.md (Uu): New constraint.
6844         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6845
6846 2011-04-19  Tristan Gingold  <gingold@adacore.com>
6847
6848         * config.gcc (-*-*-*vms): Added.
6849         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6850         definitions moved.
6851         * config/vms/vms-ld.c: New file.
6852         * config/vms/vms-ar.c: New file.
6853         * config/vms/t-vmsnative: New file.
6854
6855 2011-04-18  Xinliang David Li  <davidxl@google.com>
6856
6857         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6858
6859 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6860
6861         PR middle-end/48661
6862         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6863         if TREE_TYPE (v) is non-NULL.
6864
6865         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6866         gimple_get_virt_mehtod_for_binfo.
6867         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6868         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6869         callers.
6870         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6871
6872 2011-04-18  Michael Matz  <matz@suse.de>
6873             Steve Ellcey  <sje@cup.hp.com>
6874
6875         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6876         use its mode as source mode if it isn't VOIDmode.
6877
6878 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
6879
6880         * doc/passes.texi: Fill crossref nodes.
6881
6882 2011-04-18  Jim Meyering  <meyering@redhat.com>
6883
6884         Fix doubled-word typos in comments and strings
6885         * config/alpha/vms-unwind.h: s/for for/for/
6886         * config/arm/unwind-arm.h: Likewise.
6887         * config/microblaze/microblaze.c: Likewise.
6888         * config/sh/constraints.md: s/in in/in/
6889         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6890
6891 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
6892
6893         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6894         (AVX_FLOAT_MODE_P): Ditto.
6895         (AVX128_VEC_FLOAT_MODE_P): Ditto.
6896         (AVX256_VEC_FLOAT_MODE_P): Ditto.
6897         (AVX_VEC_FLOAT_MODE_P): Ditto.
6898         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6899         (UNSPEC_MASKSTORE): Ditto.
6900         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6901         Merge from <sse>_movmsk<ssemodesuffix> and
6902         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
6903         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
6904         iterator.
6905         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6906         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6907         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6908
6909 2011-04-18  Jan Hubicka  <jh@suse.cz>
6910
6911         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6912
6913         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6914         (want_inline_function_called_once_p): Break out the logic from
6915         ipa_inline.
6916         (edge_badness): Ensure that profile is not misupdated.
6917         (lookup_recursive_calls): Prioritize by call frequencies.
6918         (inline_small_functions): Move program size estimates here;
6919         actually process whole queue even when unit growth has been
6920         met. (to properly compute inline_failed reasons and for the
6921         case unit size decrease.) Revisit comments on recursive inlining.
6922         (ipa_inline): Remove unit summary code; first inline hot calls
6923         of functions called once, cold calls next.
6924         (order, nnodes): Remove unused variables.
6925         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6926         (GTFILES): Remove ipa-inline.c
6927         * sel-sched.c (fill_insns): Silence uninitialized var warning.
6928
6929 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6930
6931         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6932
6933 2011-04-18  Jie Zhang  <jie@codesourcery.com>
6934             Richard Earnshaw  <rearnsha@arm.com>
6935
6936         * arm.c (neon_builtin_type_bits): Remove.
6937         (typedef enum neon_builtin_mode): New.
6938         (T_MAX): Don't define.
6939         (typedef enum neon_builtin_datum): Remove bits, codes[],
6940         num_vars and base_fcode.  Add mode, code and fcode.
6941         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6942         VAR10): Change accordingly.
6943         (neon_builtin_data[]): Change accordingly
6944         (arm_init_neon_builtins): Change accordingly.
6945         (neon_builtin_compare): Remove.
6946         (locate_neon_builtin_icode): Remove.
6947         (arm_expand_neon_builtin): Change accordingly.
6948
6949         * arm.h (enum arm_builtins): Move to ...
6950         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6951
6952         * arm.c (arm_builtin_decl): Declare.
6953         (TARGET_BUILTIN_DECL): Define.
6954         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6955         (arm_builtin_decls[]): New.
6956         (arm_init_neon_builtins): Store builtin declarations in
6957         arm_builtin_decls[].
6958         (arm_init_tls_builtins): Likewise.
6959         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
6960         (arm_builtin_decl): New.
6961
6962 2011-04-18  Richard Guenther  <rguenther@suse.de>
6963
6964         * tree.c (upper_bound_in_type): Build properly canonicalized
6965         INTEGER_CSTs.
6966         (lower_bound_in_type): Likewise.
6967
6968 2011-04-18  Richard Guenther  <rguenther@suse.de>
6969
6970         * gimple.h (gimple_call_addr_fndecl): New function.
6971         (gimple_call_fndecl): Use it.
6972         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6973         for direct calls.
6974         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6975         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6976
6977 2011-04-18  Richard Guenther  <rguenther@suse.de>
6978
6979         PR middle-end/48650
6980         * tree.c (build_string): STRING_CST is now derived from tree_typed.
6981
6982 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6983
6984         PR lto/48492
6985         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6986         DECL_IN_CONSTANT_POOL without RTL.
6987
6988 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
6989             Ira Rosen  <ira.rosen@linaro.org>
6990
6991         PR target/48252
6992         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6993         to match neon_vzip/vuzp/vtrn_internal.
6994         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6995         outputs explicitly dependent on both inputs.
6996         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6997
6998 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6999
7000         PR tree-optimization/48616
7001         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7002         whether the shift is by scalar or vector based on whether all SLP
7003         scalar stmts have the same rhs.
7004
7005 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
7006
7007         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7008         memory operands.
7009
7010 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
7011
7012         PR target/43700
7013         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7014         registers.
7015
7016 2011-04-17  Jan Hubicka  <jh@suse.cz>
7017
7018         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7019         * cgrpahunit.c (cgraph_finalize_function): Do not set
7020         finalized_by_frontend.
7021         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7022         finalized_by_frontend.
7023
7024 2011-04-17  Jan Hubicka  <jh@suse.cz>
7025
7026         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7027         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7028         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7029         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7030         method.
7031         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7032         gimple-fold.c
7033         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7034
7035 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7036
7037         PR lto/48538
7038         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7039         is non-null before accessing it.
7040         (input_cgraph): Remove trailing spaces.
7041
7042 2011-04-17  Revital Eres  <revital.eres@linaro.org>
7043
7044         * params.def (sms-min-sc): New param flag.
7045         * modulo-sched.c (sms_schedule): Use it.
7046         * doc/invoke.texi (sms-min-sc): Document it.
7047
7048 2011-04-17  Jan Hubicka  <jh@suse.cz>
7049
7050         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7051         present, also set gimple_call_set_cannot_inline.
7052         * ipa-inline.c: Update toplevel comment.
7053         (MAX_TIME): Remove.
7054         (cgraph_clone_inlined_nodes): Fix linebreaks.
7055         (cgraph_check_inline_limits): Restructure to ...
7056         (caller_growth_limits): ... this one; be more tolerant
7057         on growth in nested inline chains; add explanatory comment;
7058         fix stack accounting thinko introduced by previous patch.
7059         (cgraph_default_inline_p): Remove.
7060         (report_inline_failed_reason): New function.
7061         (can_inline_edge_p): New function.
7062         (can_early_inline_edge_p): New function.
7063         (leaf_node_p): Move upwards in file.
7064         (want_early_inline_function_p): New function.
7065         (want_inline_small_function_p): New function.
7066         (want_inline_self_recursive_call_p): New function.
7067         (cgraph_edge_badness): Rename to ...
7068         (edge_badness) ... this one; fix linebreaks.
7069         (update_edge_key): Update call of edge_baddness; add
7070         detailed dump about queue updates.
7071         (update_caller_keys): Use can_inline_edge_p and
7072         want_inline_small_function_p.
7073         (cgraph_decide_recursive_inlining): Rename to...
7074         (recursive_inlining): Use can_inline_edge_p and
7075         want_inline_self_recursive_call_p; simplify and remove no longer
7076         valid FIXME.
7077         (cgraph_set_inline_failed): Remove.
7078         (add_new_edges_to_heap): Use can_inline_edge_p and
7079         want_inline_small_function_p.
7080         (cgraph_decide_inlining_of_small_functions): Rename to ...
7081         (inline_small_functions): ... this one; cleanup; use
7082         can/want predicates; cleanup debug ouput; work edges till fibheap
7083         is exhausted and do not stop once unit growth is reached; remove
7084         later loop processing remaining edges.
7085         (cgraph_flatten): Rename to ...
7086         (flatten_function): ... this one; use can_inline_edge_p
7087         and can_early_inline_edge_p predicates.
7088         (cgraph_decide_inlining): Rename to ...
7089         (ipa_inline): ... this one; remove unreachable nodes before
7090         inlining functions called once; simplify the pass.
7091         (cgraph_perform_always_inlining): Rename to ...
7092         (inline_always_inline_functions): ... this one; use
7093         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7094         (cgraph_decide_inlining_incrementally): Rename to ...
7095         (early_inline_small_functions): ... this one; simplify
7096         using new predicates; cleanup; make dumps prettier.
7097         (cgraph_early_inlining): Rename to ...
7098         (early_inliner): newer inline regular functions into always-inlines;
7099         fix updating of call stmt summaries.
7100         (pass_early_inline): Update for new names.
7101         (inline_transform): Fix formating.
7102         (gate_cgraph_decide_inlining): Rename to ...
7103         (pass_ipa_inline): ... this one.
7104         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7105         * ipa-inline-analysis.c (dump_inline_summary): Update.
7106         (compute_inline_parameters): Do not compute disregard_inline_limits;
7107         look for mismatching arguments.
7108         (estimate_growth): Fix handlig of non-trivial self recursion.
7109         (inline_read_summary): Do not read info->disregard_inline_limits.
7110         (inline_write_summary): Do not write info->disregard_inline_limits.
7111         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7112         and move all checks into can_inline_edge_p predicate; re-enable code
7113         comparing optimization levels.
7114         (expand_call_inline): Do not test inline_forbidden_into_p.
7115         * Makefile.in (ipa-inline.o): Update arguments.
7116
7117 2011-04-17  Revital Eres  <revital.eres@linaro.org>
7118
7119         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7120
7121 2011-04-17  Revital Eres  <revital.eres@linaro.org>
7122
7123         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7124
7125 2011-04-17  Michael Matz  <matz@suse.de>
7126
7127         PR tree-optimization/48622
7128         PR lto/48645
7129         * ipa-inline-analysis.c (inline_read_summary): Read size/time
7130         in same order as they're written.
7131
7132 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7133
7134         * config/pa/predicates.md: Reorganize and simplify predicates.
7135         Eliminate duplicate code checks.
7136         (arith_operand): Rename to arith14_operand
7137         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7138         * config/pa/pa.md: Use renamed operands.
7139         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7140         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7141         arith11_operand, adddi3_operand, indexed_memory_operand,
7142         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7143         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7144         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7145         move_dest_operand, move_src_operand, prefetch_cc_operand,
7146         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7147         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7148         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7149         div_operand, int5_operand, movb_comparison_operator,
7150         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7151         arith_double_operand, ireg_operand, lhs_lshift_operand,
7152         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7153         integer_store_memory_operand): Likewise.
7154         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7155         (integer_store_memory_operand, read_only_operand,
7156         function_label_operand, borx_reg_operand,
7157         non_hard_reg_operand): Likewise.
7158         (eq_neq_comparison_operator): Delete unused operator.
7159         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7160         function_label_operand.
7161         (emit_move_sequence): Likewise.
7162
7163 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
7164
7165         * config/i386/sse.md (sseunpackmode): New mode attribute.
7166         (ssepackmode): Ditto.
7167         (vec_pack_trunc_<mode>): Macroize expander from
7168         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7169         (vec_unpacks_lo_<mode>): Macroize expander from
7170         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7171         (vec_unpacks_hi_<mode>): Macroize expander from
7172         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7173         (vec_unpacku_lo_<mode>): Macroize expander from
7174         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7175         (vec_unpacku_hi_<mode>): Macroize expander from
7176         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7177         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7178         ix86_expand_sse4_unpack.
7179         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7180
7181 2011-04-16  Jan Hubicka  <jh@suse.cz>
7182
7183         * cgraphbuild.c: Include ipa-inline.h.
7184         (reset_inline_failed): Use initialize_inline_failed.
7185         * cgraph.c: Include ipa-inline.h.
7186         (cgraph_create_node_1): Do not initialize estimated_growth.
7187         (initialize_inline_failed): More to ipa-inline-analysis.c
7188         (dump_cgraph_node): Do not dump inline flags.
7189         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7190         and disregard_inline_limits flags.
7191         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7192         time, size, estimated_growth.
7193         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7194         Update.
7195         * cgraphunit.c (cgraph_decide_is_function_needed): Use
7196         DECL_DISREGARD_INLINE_LIMITS.
7197         (cgraph_analyze_function): Do not initialize
7198         node->local.disregard_inline_limits.
7199         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7200         inlinable, versionable and disregard_inline_limits.
7201         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7202         cgraph_check_inline_limits, cgraph_default_inline_p,
7203         cgraph_edge_badness, update_caller_keys, update_callee_keys,
7204         add_new_edges_to_heap): Update.
7205         (cgraph_decide_inlining_of_small_function): Update; set
7206         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7207         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7208         cgraph_decide_inlining_incrementally): Update.
7209         * ipa-inline.h (inline_summary): Add inlinable, versionable,
7210         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7211         time, size and estimated_growth parameters.
7212         (estimate_edge_growth): Update.
7213         (initialize_inline_failed): Declare.
7214         * ipa-split.c: Include ipa-inline.h
7215         (execute_split_functions): Update.
7216         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7217         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7218         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7219         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7220         estimated_growth to INT_MIN.
7221         (inline_node_duplication_hook): Likewise.
7222         (dump_inline_summary): Dump new fields.
7223         (compute_inline_parameters): Update.
7224         (estimate_edge_time, estimate_time_after_inlining,
7225         estimate_size_after_inlining, estimate_growth, inline_read_summary,
7226         inline_write_summary):
7227         (initialize_inline_failed): Move here from cgraph.c.
7228         * tree-sra.c: Include ipa-inline.h.
7229         (ipa_sra_preliminary_function_checks): Update.
7230         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7231         ipa-inline.h.
7232
7233 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
7234
7235         * config/i386/sse.md (V16): New mode iterator.
7236         (VI1, VI8): Ditto.
7237         (AVXMODEQI, AVXMODEDI): Remove.
7238         (sse2, sse3): New mode attribute.
7239         (mov<mode>): Use V16 mode iterator.
7240         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7241         (push<mode>1): Use V16 mode iterator.
7242         (movmisalign<mode>): Ditto.
7243         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7244         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7245         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7246         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7247         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7248         avx_movdqu<avxmodesuffix>.
7249         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7250         *avx_movdqu<avxmodesuffix>.
7251         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7252         avx_lddqu<avxmodesuffix>.
7253         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7254         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7255         avx_movnt<AVXMODEDI:mode>.
7256         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7257         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7258
7259 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
7260
7261         PR target/48629
7262         * haifa-sched.c (prune_ready_list, schedule_block): Use
7263         sched_pressure_p rather than flag_sched_pressure.
7264
7265 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
7266
7267         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7268         cgraph_get_node instead of cgraph_get_create_node.
7269
7270 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
7271
7272         * cfgexpand.c (expand_debug_expr): Use
7273         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7274
7275 2011-04-15  Michael Matz  <matz@suse.de>
7276
7277         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7278         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7279         * function.c (gimplify_parameters): Ditto.
7280         * gimplify.c (gimplify_vla_decl): Ditto.
7281
7282         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7283         (gimple_call_set_alloca_for_var): New inline function.
7284         (gimple_call_alloca_for_var_p): Ditto.
7285         * gimple.c (gimple_build_call_from_tree): Remember
7286         CALL_ALLOCA_FOR_VAR_P state.
7287         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7288
7289         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7290         calls if they were for VLA objects.
7291
7292 2011-04-15  Martin Jambor  <mjambor@suse.cz>
7293
7294         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7295         of ADR_EXPRs.
7296
7297 2011-04-15  Martin Jambor  <mjambor@suse.cz>
7298
7299         PR middle-end/48601
7300         * tree-emutls.c (lower_emutls_function_body): Call
7301         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
7302         result is non-NULL.
7303
7304 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7305
7306         * c-decl.c (detect_field_duplicates): Call
7307         objc_detect_field_duplicates instead of objc_get_interface_ivars.
7308
7309 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
7310
7311         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7312         * gimple.c (gimple_asm_clobbers_memory_p): Define.
7313         * ipa-pure-const.c (check_stmt): Call it.
7314         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7315
7316 2011-04-15  Richard Guenther  <rguenther@suse.de>
7317
7318         PR tree-optimization/48290
7319         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7320         Properly decide inhibiting propagation based on the valueized
7321         operand.  Do loop-closed SSA form preserving here ...
7322         (init_copy_prop): ... not here.
7323
7324 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
7325
7326         PR target/48612
7327         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7328         (*ieee_smax<mode>3): Likewise.
7329
7330 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7331
7332         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7333         Replace match_operand with match_dup for the third operand in
7334         these expanders.
7335
7336 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
7337
7338         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7339         to track processing of conditionals.  Update all callers.
7340         (try_combine, simplify_if_then_else): Update.
7341
7342 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
7343
7344         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7345         -fsched-pressure.
7346
7347 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
7348
7349         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7350         instead of match_operand for operand 3.
7351
7352 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
7353
7354         * recog.h (insn_operand_data): Add an "allows_mem" field.
7355         * genoutput.c (output_operand_data): Initialize it.
7356         * optabs.c (maybe_legitimize_operand_same_code): New function.
7357         (maybe_legitimize_operand): Use it when matching the original
7358         op->value.
7359
7360 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7361
7362         * gimplify.c: Fix issues in comments throughout.
7363         (voidify_wrapper_expr): Fix long line.
7364         (build_stack_save_restore): Likewise.
7365         (gimplify_loop_expr): Likewise.
7366         (gimplify_compound_lval): Likewise.
7367         (gimplify_init_ctor_eval): Likewise.
7368         (gimplify_modify_expr_rhs): Likewise.
7369         (omp_notice_threadprivate_variable): Likewise.
7370
7371 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7372
7373         * cfgexpand.c (expand_call_stmt): Convert the function type to the
7374         original one if this is not a builtin function.
7375
7376 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
7377
7378         PR target/48605
7379         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7380         offset it as needed based on top 2 bits in operands[3], change
7381         MEM mode to SFmode and mask those 2 bits away from operands[3].
7382
7383 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7384
7385         * c-parser.c (c_parser_objc_protocol_definition): Updated for
7386         change from objc_declare_protocols() to objc_declare_protocol().
7387
7388 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
7389
7390         * config/i386/sse.md (sse4_1): New mode attribute.
7391         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7392         avx_blend<ssemodesuffix><avxmodesuffix> and
7393         sse4_1_blend<ssemodesuffix> using VF mode iterator.
7394         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7395         avx_blendv<ssemodesuffix><avxmodesuffix> and
7396         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7397         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7398         avx_dp<ssemodesuffix><avxmodesuffix> and
7399         sse4_1_dp<ssemodesuffix> using VF mode iterator.
7400         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7401         (sse4_1_packusdw): Merge with *avx_packusdw.
7402         (sse4_1_pblendvb): Merge with *avx_pblendvb.
7403         (sse4_1_pblendw): Merge with *avx_pblendw.
7404         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7405         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7406         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7407         VF mode iterator.
7408         (sse4_1_round<ssescalarmodesuffix>): Merge with
7409         *avx_round<ssescalarmodesuffix>.
7410         (aesenc): Merge with *avx_aesenc.
7411         (aesenclast): Merge with *avx_aesenclast.
7412         (aesdec): Merge with *avx_aesdec.
7413         (aesdeclast): Merge with *avx_aesdeclast.
7414         (pclmulqdq): Merge with *pclmulqdq.
7415         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7416         New predicate.
7417         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7418
7419 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7420
7421         PR middle-end/48608
7422         * cfgexpand.c (get_decl_align_unit): Renamed to ...
7423         (align_local_variable): This.  Update DECL_ALIGN.
7424         (add_stack_var): Updated.
7425         (expand_one_stack_var): Likewise.
7426
7427 2011-04-14  Richard Guenther  <rguenther@suse.de>
7428
7429         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7430         Remove.
7431         (dse_initialize_block_local_data, dse_leave_block,
7432         record_voperand_set, get_stmt_uid): Likewise.
7433         (dse_possible_dead_store_p): Allow any kind of killing stmt.
7434         (dse_optimize_stmt): Remove voperand set handling code.
7435         Simplify and improve to handle any kind of killing stmt.
7436         (dse_record_phi): Remove.
7437         (dse_enter_block): Simplify.
7438         (tree_ssa_dse): Likewise.
7439         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7440
7441 2011-04-14  Jan Hubicka  <jh@suse.cz>
7442
7443         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7444         * cgraph.h (struct inline_summary): Move to ipa-inline.h
7445         (cgraph_local_info): Remove inline_summary.
7446         * ipa-cp.c: Include ipa-inline.h.
7447         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7448         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7449         accesor.
7450         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7451         (input_overwrite_node): Do not set inline summary.
7452         (input_node): Do not stream inline summary.
7453         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7454         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7455         growth; we do not have inline parameters computed for that anyway.
7456         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7457         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7458         (inline_summary_t): New type and VECtor.
7459         (debug_inline_summary, dump_inline_summaries): Declare.
7460         (inline_summary): Use VOCtor.
7461         (estimate_edge_growth): Kill hack computing call stmt size directly.
7462         * lto-section-in.c (lto_section_name): Add inline section.
7463         * ipa-inline-analysis.c: Include lto-streamer.h
7464         (node_removal_hook_holder, node_duplication_hook_holder): New holders
7465         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7466         (inline_summary_vec): Define.
7467         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7468         dump_inline_summaries): New functions.
7469         (estimate_function_body_sizes): Properly compute size/time of outgoing
7470         calls.
7471         (compute_inline_parameters): Alloc inline_summary; do not compute
7472         size/time of incomming calls.
7473         (estimate_edge_time): Avoid missing time summary hack.
7474         (inline_read_summary): Read inline summary info.
7475         (inline_write_summary): Write inline summary info.
7476         (inline_free_summary): Free all hooks and inline summary vector.
7477         * lto-streamer.h: Add LTO_section_inline_summary section.
7478         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7479         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7480
7481 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7482
7483         * tree-vectorizer.h (vect_strided_store_supported): Add a
7484         HOST_WIDE_INT argument.
7485         (vect_strided_load_supported): Likewise.
7486         (vect_permute_store_chain): Return void.
7487         (vect_transform_strided_load): Likewise.
7488         (vect_permute_load_chain): Delete.
7489         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7490         count argument.  Check that the count is a power of two.
7491         (vect_strided_load_supported): Likewise.
7492         (vect_permute_store_chain): Return void.  Update after above changes.
7493         Assert that the access is supported.
7494         (vect_permute_load_chain): Likewise.
7495         (vect_transform_strided_load): Return void.
7496         * tree-vect-stmts.c (vectorizable_store): Update calls after
7497         above interface changes.
7498         (vectorizable_load): Likewise.
7499         (vect_analyze_stmt): Don't check for strided powers of two here.
7500
7501 2011-04-14  Richard Guenther  <rguenther@suse.de>
7502
7503         PR tree-optimization/48590
7504         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7505         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7506         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7507         BUILT_IN_STACK_SAVE.
7508         * tree-ssa-dce.c (propagate_necessity): Handle
7509         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7510
7511 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7512
7513         * c-parser.c (c_parser_objc_class_declaration): Updated call to
7514         objc_declare_class.
7515
7516 2011-04-14  Richard Guenther  <rguenther@suse.de>
7517
7518         * tree.h (get_object_alignment_1): Declare.
7519         * builtins.c (get_object_alignment_1): Split out worker from ...
7520         (get_object_alignment): ... here.
7521         * fold-const.c (get_pointer_modulus_and_residue): Use
7522         get_object_alignment_1.
7523
7524 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7525
7526         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7527         type parameter.
7528         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7529         parameter.  Generalise code to handle arrays as well as vectors.
7530         (vect_setup_realignment): Update accordingly.
7531         * tree-vect-stmts.c (vectorizable_store): Likewise.
7532         (vectorizable_load): Likewise.
7533
7534 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7535
7536         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7537         within the per-copy loop.
7538
7539 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7540
7541         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7542         in the dump file.
7543
7544 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7545
7546         * doc/options.texi (Negative): Explicitly mention that the
7547         Negative chain must be circular.
7548
7549 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
7550
7551         * function.h (block_chainon): Declare.
7552         * function.c (block_chainon): Define.
7553
7554 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
7555             Eric Weddington  <eric.weddington@atmel.com>
7556             Georg-Johann Lay  <avr@gjlay.de>
7557
7558         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7559         New Includes
7560         (avr_init_builtins, avr_expand_builtin,
7561         avr_expand_delay_cycles, avr_expand_unop_builtin,
7562         avr_expand_binop_builtin ): New functions.
7563         (avr_builtin_id): New enum
7564         (struct avr_builtin_description): New struct
7565         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7566         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7567
7568         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7569         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7570         UNSPECV_DELAY_CYCLES): new enumeration values
7571         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7572         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7573         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7574         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7575         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7576         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7577         "fmulsu"): New insns
7578
7579         * config/avr/avr-c.c: fix line endings
7580         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7581         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7582         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7583         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7584         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7585
7586         * doc/extend.texi (AVR Built-in Functions): New node
7587         (Target Builtins): Add documentation of AVR
7588         built-in functions.
7589
7590 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
7591
7592         PR target/44643
7593         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7594         alone. Error if non-const data has attribute progmem.
7595
7596 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7597
7598         * tree.h (struct tree_constructor): Include tree_typed instead of
7599         tree_common.
7600         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7601         TS_TYPED instead of TS_COMMON.
7602
7603 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7604
7605         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7606         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7607         (sse2_psadbw): Merge with *avx_psadbw.
7608         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7609         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7610         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7611         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7612         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7613         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7614         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7615         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7616         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7617         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7618         (ssse3_palignrti): Merge with *avx_palignrti.
7619
7620 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7621
7622         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7623         * tree-ssanames.c (fini_ssanames): VEC_free it.
7624         (make_ssa_name_fn): Update for VECness of free_ssanames.
7625         (release_ssa_name, release_dead_ssa_names): Likewise.
7626         * tree.h (struct tree_ssa_name): Include tree_typed instead of
7627         tree_common.
7628         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7629         TS_TYPED instead of TS_COMMON.
7630
7631 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7632
7633         * postreload-gcse.c (gcse_after_reload_main): Add calls to
7634         statistics_counter_event.
7635         * tree-ssa-copyrename.c (stats): Define.
7636         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
7637         statistics_counter_event.
7638         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7639         (bswap_stats, widen_mul_stats): Define.
7640         (insert_reciprocals): Increment rdivs_inserted.
7641         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
7642         rfuncs_inserted.  Add calls to statistics_counter_event.
7643         (execute_cse_sincos_1): Increment inserted.
7644         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
7645         statistics_counter_event.
7646         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
7647         of bswap_stats.  Add calls to statistics_counter_event.
7648         (convert_mult_to_widen): Increment widen_mults_inserted.
7649         (convert_plusminus_to_widen): Increment maccs_inserted.
7650         (convert_mult_to_fma): Increment fmas_inserted.
7651         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
7652         calls to statistics_counter_event.
7653
7654 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
7655
7656         PR rtl-optimization/48455
7657         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7658         `temp_costs->mem_cost'.
7659
7660 2011-04-13  Jan Hubicka  <jh@suse.cz>
7661
7662         * ipa-inline.h: New file.
7663         * ipa-inline-analysis.c: New file. Broken out of ...
7664         * ipa-inline.c: ... this file; update toplevel comment;
7665         include ipa-inline.h
7666         (inline_summary): Move to ipa-inline.h
7667         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7668         ipa-inline-analysis.c.
7669         (cgraph_estimate_time_after_inlining): Rename to
7670         estiamte_time_after_inlining; move to ipa-inline-analysis.c
7671         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7672         to estimate_edge_growth.
7673         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7674         rename to estimate_size_after_inlining.
7675         (cgraph_mark_inline_edge): Update for new naming convention.
7676         (cgraph_check_inline_limits): Likewise.
7677         (cgraph_edge_badness): Likewise.
7678         (cgraph_decide_recursive_inlining): Likewise.
7679         (cgraph_decide_inlining_of_small_functions): Likewise.
7680         (cgraph_decide_inlining_incrementally): Likewise.
7681         (cgraph_estimate_growth): Rename to estimate_growth; move to
7682         ipa-inline-analysis.c.
7683         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7684         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7685         (compute_inline_parameters): Likewise.
7686         (compute_inline_parameters_for_current): Likewise.
7687         (pass_inline_parameters): Likewise.
7688         (inline_indirect_intraprocedural_analysis): Likewise.
7689         (analyze_function): Rename to inline_analyze_function; likewise.
7690         (add_new_function): Move to ipa-inline-analysis.c.
7691         (inline_generate_summary): Likewise.
7692         (inline_read_summary): Likewise.
7693         (inline_write_summary): Likewise.
7694         * Makefile.in (ipa-inline-analysis.c): New file.
7695
7696 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7697
7698         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7699         * configure: Regenerate.
7700
7701 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7702
7703         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7704         instead of tree_common.
7705         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7706         Likewise.
7707         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7708         TS_TYPED rather than TS_COMMON.
7709         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7710
7711 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
7712
7713         PR target/45263
7714         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7715         r20 around calls of __tablejump_elpm__
7716
7717 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
7718
7719         PR middle-end/48591
7720         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7721         NULL.
7722         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7723
7724 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
7725
7726         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7727         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7728         (cfi_vec): New typedef.
7729         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7730         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7731         (cie_cfi_vec): New static variable.
7732         (cie_cfi_head): Delete.
7733         (add_cfi): Accept a cfi_vec * as first argument. All callers and
7734         declaration changed. Use vector rather than list operations.
7735         (new_cfi): Don't initialize the dw_cfi_next field.
7736         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7737         rather than list operations.
7738         (lookup_cfa): Use vector rather than list operations.
7739         (output_cfis): New argument upto. Accept a cfi_vec rather than
7740         a dw_cfi_ref list head as argument. All callers changed.
7741         Iterate over the vector using upto as a maximum index.
7742         (output_all_cfis): New static function.
7743         (output_fde): Use vector rather than list operations. Use the
7744         new upto argument for output_cfis rather than manipulating a
7745         list.
7746         (dwarf2out_begin_prologue): Change initializations to match
7747         new struct members.
7748         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7749         from the vector length rather than searching for the end of a list.
7750         Use output_all_cfis.
7751         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7752
7753 2011-04-13  Nick Clifton  <nickc@redhat.com>
7754
7755         * config/rx/rx.md (movmemsi): Do not use this pattern when
7756         volatile pointers are involved.
7757
7758 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7759
7760         * config/i386/sse.md (pinsrbits): Remove.
7761         (sse2_packsswb): Merge with *avx_packsswb.
7762         (sse2_packssdw): Merge with *avx_packssdw.
7763         (sse2_packuswb): Merge with *avx_packuswb.
7764         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7765         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7766         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7767         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7768         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7769         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7770         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7771         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7772         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7773         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7774         (sse2_loadld): Merge with *avx_loadld.
7775         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7776         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7777         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7778         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7779         (vec_concatv2di): Merge with *vec_concatv2di_avx.
7780
7781 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7782
7783         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7784         calling TREE_CHAIN.
7785         * print-tree.c (print_node): Likewise.
7786         * tree-inline.c (copy_tree_r): Likewise.
7787         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7788         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7789         instead of TS_COMMON.
7790         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7791         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7792         (copy_node_stat): Zero TREE_CHAIN only if necessary.
7793         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7794         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7795         ...and these...
7796         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7797         * tree.h: ...here.
7798         (TREE_CHAIN): Check for a TS_COMMON structure.
7799         (TREE_TYPE): Check for a TS_TYPED structure.
7800
7801 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
7802
7803         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7804         cgraph_get_create_node instead of cgraph_node.
7805
7806 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7807
7808         * c-parser.c (c_parser_initelt): Updated call to
7809         objc_build_message_expr.
7810         (c_parser_postfix_expression): Likewise.
7811
7812 2011-04-12  Kai Tietz  <ktietz@redhat.com>
7813
7814         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7815         MASK_MS_BITFIELD_LAYOUT bit.
7816
7817 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7818
7819         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7820         assert it is always true.
7821         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7822         moves.
7823
7824 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7825
7826         * c-parser.c (c_lex_one_token): Rewritten conditional used when
7827         compiling Objective-C to be more efficient.
7828
7829 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
7830
7831         * opts-common.c (decode_cmdline_options_to_array): Remove variable
7832         argv_copied.
7833
7834 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7835
7836         * recog.h, genoutput.c, optabs.c: Revert last patch.
7837
7838 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7839
7840         PR target/48090
7841         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7842
7843 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7844
7845         * recog.h (insn_operand_data): Add an "allows_mem" field.
7846         * genoutput.c (output_operand_data): Initialize it.
7847         * optabs.c (maybe_legitimize_operand_same_code): New function.
7848         (maybe_legitimize_operand): Use it when matching the original
7849         op->value.
7850
7851 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7852
7853         * genpreds.c (process_define_predicate): Move most processing
7854         to gensupport.c.  Continue to validate the expression.
7855         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7856         (process_define_predicate): Move processing to gensupport.c.
7857         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7858         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7859         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
7860         argument.
7861         (valid_predicate_name_p): New function, split out from old
7862         genpreds.c:process_define_predicate.
7863         (process_define_predicate): New function, combining code from
7864         old genpreds.c and genrecog.c functions.
7865         (process_rtx): Call it for DEFINE_PREDICATE and
7866         DEFINE_SPECIAL_PREDICATE.
7867
7868 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7869
7870         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7871         size of a '%A' memory reference.
7872         (T_DREG, T_QREG): New neon_builtin_type_bits.
7873         (arm_init_neon_builtins): Assert that the load and store operands
7874         are neon_struct_operands.
7875         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7876         (NEON_ARG_MEMORY): New builtin_arg.
7877         (neon_dereference_pointer): New function.
7878         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7879         Handle NEON_ARG_MEMORY.
7880         (arm_expand_neon_builtin): Update after above interface changes.
7881         Use NEON_ARG_MEMORY for loads and stores.
7882         * config/arm/predicates.md (neon_struct_operand): New predicate.
7883         * config/arm/iterators.md (V_two_elem): Tweak formatting.
7884         (V_three_elem): Use BLKmode for accesses that have no associated mode.
7885         (V_four_elem): Tweak formatting.
7886         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7887         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7888         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7889         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7890         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7891         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7892         (neon_vst4<mode>): Replace pointer operand with a memory operand.
7893         Use %A in the output template.
7894         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7895         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7896         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7897         the width of the memory access.  Remove post-increment.
7898         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7899
7900 2011-04-12  Nick Clifton  <nickc@redhat.com>
7901
7902         * config/v850/v850.c (expand_prologue): Do not use the CALLT
7903         instruction for interrupt handlers if the target is the basic V850
7904         architecture.
7905         (expand_epilogue): Likewise.
7906
7907 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7908
7909         PR rtl-optimization/48549
7910         * combine.c (propagate_for_debug): Also stop after BB_END of
7911         this_basic_block.  Process LAST and just stop processing after it.
7912         (combine_instructions): If last_combined_insn has been deleted,
7913         set last_combined_insn to its PREV_INSN.
7914
7915 2011-04-12  Richard Guenther  <rguenther@suse.de>
7916
7917         PR tree-optimization/46076
7918         * gimple.h (struct gimple_statement_call): Add fntype field.
7919         (gimple_call_fntype): Adjust.
7920         (gimple_call_set_fntype): New function.
7921         * gimple.c (gimple_build_call_1): Set the call function type.
7922         * gimplify.c (gimplify_call_expr): Preserve the function
7923         type the frontend used for the call.
7924         (gimplify_modify_expr): Likewise.
7925         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7926         function type.
7927         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7928         function type.
7929         * tree-ssa.c (useless_type_conversion_p): Function pointer
7930         conversions are useless.
7931
7932 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7933
7934         * cgraph.h (cgraph_node): Remove function declaration.
7935         (cgraph_create_node): Declare.
7936         (cgraph_get_create_node): Likewise.
7937         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7938         Updated all callers.
7939         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7940         the decl does not already exist.  Call cgraph_get_create_node instead
7941         of cgraph_node.
7942         (cgraph_get_create_node): New function.
7943         (cgraph_same_body_alias): Update comment.
7944         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7945         assert it does not return NULL.
7946         (cgraph_update_edges_for_call_stmt): Likewise.
7947         (cgraph_clone_edge): Likewise.
7948         (cgraph_create_virtual_clone): Likewise.
7949         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7950         instead of cgraph_node.
7951         (cgraph_add_new_function): Call cgraph_create_node or
7952         cgraph_get_create_node instead of cgraph_node.
7953         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7954         instead of cgraph_node.
7955         (record_eh_tables): Likewise.
7956         (mark_address): Likewise.
7957         (mark_load): Likewise.
7958         (build_cgraph_edges): Call cgraph_get_create_node instead
7959         of cgraph_node.
7960         (rebuild_cgraph_edges): Likewise.
7961         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7962         instead of cgraph_node.
7963         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7964         cgraph_node.
7965         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7966         cgraph_create_node instead of cgraph_node.
7967         * c-decl.c (finish_function): Call cgraph_get_create_node instead
7968         of cgraph_node.
7969         * lto-cgraph.c (input_node): Likewise.
7970         * lto-streamer-in.c (input_function): Likewise.
7971         * varasm.c (mark_decl_referenced): Likewise.
7972         (assemble_alias): Likewise.
7973
7974 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7975
7976         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7977         instead of cgraph_node and assert it does not return NULL.
7978         * lto-streamer-in.c (lto_read_body): Likewise.
7979         * omp-low.c (new_omp_context): Likewise.
7980         (create_task_copyfn): Likewise.
7981         * tree-emutls.c (lower_emutls_function_body): Likewise.
7982         * matrix-reorg.c (transform_allocation_sites): Likewise.
7983
7984 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7985
7986         PR c/48552
7987         * c-typeck.c (build_asm_expr): Error out on attempts to use
7988         void type outputs or inputs for constraints that allow reg or
7989         don't allow memory.
7990
7991 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
7992             Richard Earnshaw  <rearnsha@arm.com>
7993
7994         PR target/48250
7995         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7996         to use sign-magnitude offsets. Reject unsupported unaligned
7997         cases. Add detailed description in comments.
7998         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7999         condition from TARGET_32BIT to TARGET_ARM.
8000
8001 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
8002
8003         * tree.h (struct typed_tree): New.
8004         (struct tree_common): Include it instead of tree_base.
8005         (TREE_TYPE): Update for new location of type field.
8006         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8007         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8008         (union tree_node): Add typed field.
8009         * treestruct.def (TS_TYPED): New.
8010         * lto-streamer.c (check_handled_ts_structures): Handle it.
8011         * tree.c (MARK_TS_TYPED): New macro.
8012         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8013
8014 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8015
8016         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8017         (force_nonfallthru): Do not alter the loop nest if no basic block
8018         was created.
8019
8020 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
8021
8022         * config/i386/sse.md (VI): New mode iterator.
8023         (SSEMODEI): Remove.
8024         (AVX256MODEI): Ditto.
8025         (AVXMODEF4P): Ditto.
8026         (avxvecpsmode): Ditto.
8027         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
8028         (sse2_andnot<mode>3): New expander.
8029         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8030         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
8031         (<any_logic:code><mode>3): Use VI mode iterator.
8032         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8033         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
8034         (*andnottf3): Handle AVX three-operand constraints.
8035         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8036
8037 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8038             Robert Millan  <rmh@gnu.org>
8039
8040         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8041         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8042         GNU_USER_DYNAMIC_LINKER64): Define.
8043         (REG_NAME): Don't undefine.
8044         (MD_UNWIND_SUPPORT): Undefine.
8045         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8046         (REG_NAME): Don't undefine.
8047         (MD_UNWIND_SUPPORT): Undefine.
8048         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8049
8050 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8051
8052         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8053         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8054
8055 2011-04-11  Xinliang David Li  <davidxl@google.com>
8056
8057         * value-profile.c (check_ic_target): New function.
8058         (gimple_ic_transform): Sanity check indirect call target.
8059         * gimple-low.c (gimple_check_call_args): Interface change.
8060         (gimple_check_call_matching_types): New function.
8061         * tree-inline.c (tree_can_inline_p): Call new function.
8062
8063 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
8064
8065         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8066         tree-pretty-print.h & realmpfr.h.
8067
8068 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
8069
8070         PR middle-end/48464
8071         * ira.c (setup_pressure_classes): Fix typo in loop condition.
8072         (setup_allocno_and_important_classes): Ditto.
8073
8074 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8075
8076         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8077         GNU_USER_DYNAMIC_LINKER.
8078         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8080         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8081         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8082         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8083         GNU_USER_TARGET_OS_CPP_BUILTINS.
8084         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8085         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8086         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8088         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8089         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8090         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8091         GNU_USER_TARGET_OS_CPP_BUILTINS.
8092         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8093         GNU_USER_DYNAMIC_LINKER.
8094         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8095         GNU_USER_TARGET_OS_CPP_BUILTINS.
8096         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8097         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8098         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8099         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8100         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8101         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8102         GNU_USER_DYNAMIC_LINKER64): Remove.
8103         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8104         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8105         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8106         GNU_USER_DYNAMIC_LINKER.
8107         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8108         GNU_USER_TARGET_OS_CPP_BUILTINS.
8109         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8110         GNU_USER_TARGET_OS_CPP_BUILTINS.
8111         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8112         to GNU_USER_TARGET_OS_CPP_BUILTINS.
8113         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8114         GNU_USER_TARGET_OS_CPP_BUILTINS.
8115         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8116         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8117         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8118         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8119         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8120         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8121         GNU_USER_DYNAMIC_LINKER.
8122         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8123         GNU_USER_TARGET_OS_CPP_BUILTINS.
8124         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8126         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8127         GNU_USER_DYNAMIC_LINKER.
8128         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8129         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8130         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8131         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8132         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8133         GNU_USER_DYNAMIC_LINKER.
8134         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8135         GNU_USER_DYNAMIC_LINKERN32.
8136         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8137         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
8138         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
8139         GNU_USER_DYNAMIC_LINKER32.
8140         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8141         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8142         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8143         GNU_USER_DYNAMIC_LINKER.
8144         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8145         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8146         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8147         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8148         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8149         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8150         GNU_USER_DYNAMIC_LINKER32.
8151         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8152         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8153         GNU_USER_DYNAMIC_LINKER.
8154         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8155         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8156         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8157         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
8158         GNU_USER_DYNAMIC_LINKER64.
8159         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8161         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8162         GNU_USER_DYNAMIC_LINKER.
8163         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8165         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8166         GNU_USER_DYNAMIC_LINKER.
8167         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8168         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8169         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8170         GNU_USER_DYNAMIC_LINKER32.
8171         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8172         GNU_USER_DYNAMIC_LINKER64.
8173         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8174         GNU_USER_DYNAMIC_LINKER64.
8175         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8177         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8178         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8179         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8180
8181 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8182
8183         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
8184         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8185         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8186         GNU_USER_DYNAMIC_LINKER.
8187         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8188         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
8189         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8190         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8191         GNU_USER_DYNAMIC_LINKER64.
8192         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8193         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8194         GNU_USER_LINK_EMULATION.
8195         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8196         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8197         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8198         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8199         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8200         CPP_SPEC, CC1_SPEC): Remove.
8201         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8202         (GNU_USER_DYNAMIC_LINKER): Define.
8203         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8204         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8205         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8206         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8207         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8208         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8209         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8210         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8211         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8212         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8213         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8214         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8215         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8216         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8217         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8218         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8219         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8220         GNU_USER_DYNAMIC_LINKER.
8221         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8222         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
8223         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8224         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
8225         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8226         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
8227         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8228         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8229         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8230         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8231
8232 2011-04-11  Kai Tietz  <ktietz@redhat.com>
8233
8234         PR target/9601
8235         PR target/11772
8236         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8237         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8238         comment.
8239         (ix86_is_msabi_thiscall): Removed.
8240         (ix86_is_type_thiscall): Likewise.
8241         (ix86_get_callcvt): New function.
8242         (ix86_comp_type_attributes): Simplify check.
8243         (ix86_function_regparm): Use ix86_get_callcvt for calling
8244         convention attribute checks.
8245         (ix86_return_pops_args): Likewise.
8246         (ix86_static_chain): Likewise.
8247         (x86_this_parameter): Likewise.
8248         (x86_output_mi_thunk): Likewise.
8249         (ix86_function_type_abi): Optimize check for types without attributes.
8250         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8251         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8252         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8253         by flag-values.
8254         (IX86_BASE_CALLCVT): Helper macro.
8255         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8256         Use ix86_get_callcvt for calling convention attribute checks and avoid
8257         symbol-decoration for stdcall in TARGET_RTD case.
8258         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8259         Likewise.
8260         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8261         for declaration.
8262
8263 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
8264
8265         * config/i386/sse.md (VI_128): New mode iterator.
8266         (VI12_128): Rename from SSEMODE12.
8267         (VI14_128): Rename from SSEMODE14.
8268         (VI124_128): New mode iterator.
8269         (VI24_128): Rename from SSEMODE248.
8270         (VI248_128): Rename from SSEMODE248.
8271         (SSEMODE124C8): Remove.
8272         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8273         (*sse2_<plusminus_insn><mode>3): Merge with
8274         *avx_<plusminus_insn><mode>3.
8275         (*mulv8hi3): Merge with *avx_mulv8hi3.
8276         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8277         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8278         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8279         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8280         (ashr<mode>3): Merge with *avx_ashr<mode>3.
8281         (lshr<mode>3): Merge with *avx_lshr<mode>3.
8282         (ashl<mode>3): Merge with *avx_ashl<mode>3.
8283         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8284         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8285         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8286         (*<smaxmin:code>v8hi3): Ditto.
8287         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8288         (*<smaxmin:code>v16qi3): Ditto.
8289         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8290         (*sse2_eq<mode>3): Ditto.
8291         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8292         (*sse2_gt<mode>3): Ditto.
8293         (vcondv2di): Split out of vcond<mode>.
8294         (vconduv2di): Split out of vcondu<mode>.
8295
8296 2011-04-11  Richard Guenther  <rguenther@suse.de>
8297
8298         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8299         before calling tree_low_cst.
8300
8301 2011-04-11  Richard Guenther  <rguenther@suse.de>
8302
8303         * stor-layout.c (layout_type): Compute all array index size operations
8304         in the original type.
8305         (initialize_sizetypes): Add comment.
8306         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8307
8308 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8309
8310         * common.opt (Tbss=, Tdata=, Ttext=): New options.
8311
8312 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8313
8314         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8315         of cgraph_node, handle NULL return value.
8316         (cgraph_global_info): Likewise.
8317         (cgraph_rtl_info): Likewise.
8318         * tree-inline.c (estimate_num_insns): Likewise.
8319         * gimplify.c (unshare_body): Likewise.
8320         (unvisit_body): Likewise.
8321         (gimplify_body): Likewise.
8322         * predict.c (optimize_function_for_size_p): Likewise.
8323         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8324         (call_may_clobber_ref_p_1): Likewise.
8325         * varasm.c (function_section_1): Likewise.
8326         (assemble_start_function): Likewise.
8327
8328 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8329
8330         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8331         of cgraph_node.
8332         * final.c (rest_of_clean_state): Likewise.
8333         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8334         * passes.c (pass_init_dump_file): Likewise.
8335         (execute_all_ipa_transforms): Likewise.
8336         (function_called_by_processed_nodes_p): Likewise.
8337         * predict.c (maybe_hot_frequency_p): Likewise.
8338         (probably_never_executed_bb_p): Likewise.
8339         (compute_function_frequency): Likewise.
8340         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8341         (unnest_nesting_tree_1): Likewise.
8342         (lower_nested_functions): Likewise.
8343         * tree-optimize.c (execute_fixup_cfg): Likewise.
8344         (tree_rest_of_compilation): Likewise.
8345         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8346         * tree-sra.c (ipa_early_sra): Likewise.
8347         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8348         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8349         * ipa.c (record_cdtor_fn): Likewise.
8350         * ipa-inline.c (cgraph_early_inlining): Likewise.
8351         (compute_inline_parameters_for_current): Likewise.
8352         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8353         * ipa-pure-const.c (local_pure_const): Likewise.
8354         * ipa-split.c (split_function): Likewise.
8355         (execute_split_functions): Likewise.
8356         * cgraphbuild.c (build_cgraph_edges): Likewise.
8357         (rebuild_cgraph_edges): Likewise.
8358         (cgraph_rebuild_references): Likewise.
8359         (remove_cgraph_callee_edges): Likewise.
8360         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8361         (verify_cgraph_node): Likewise.
8362         (cgraph_analyze_functions): Likewise.
8363         (cgraph_preserve_function_body_p): Likewise.
8364         (save_inline_function_body): Likewise.
8365         (save_inline_function_body): Likewise.
8366         * tree-inline.c (copy_bb): Likewise.
8367         (optimize_inline_calls): Likewise.
8368
8369 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8370
8371         PR tree-optimization/48195
8372         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8373         ipa_check_create_edge_args.
8374         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8375         ipa_check_create_edge_args.
8376         * ipa-inline.c (inline_generate_summary): Do not call
8377         ipa_check_create_node_params and ipa_check_create_edge_args.
8378         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8379         ipa_check_create_edge_args.
8380
8381 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
8382
8383         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8384         instead of loop.
8385         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8386         * function.c (record_hard_reg_sets): Likewise.
8387         * ira.c (compute_regs_asm_clobbered): Likewise.
8388         * sched-deps.c (sched_analyze_1): Likewise.
8389         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8390
8391 2011-04-09  Xinliang David Li  <davidxl@google.com>
8392
8393         PR tree-optimization/PR48484
8394         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8395         has_valid_pred lazily
8396
8397 2011-04-09  Duncan Sands  <baldrick@free.fr>
8398
8399         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8400
8401 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8402
8403         * combine.c (combine_validate_cost): Adjust comments.  Set registered
8404         cost of I0 to zero at the end, if any.
8405
8406 2011-04-08  Xinliang David Li  <davidxl@google.com>
8407
8408         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8409         to insane profile data.
8410
8411 2011-04-08  Xinliang David Li  <davidxl@google.com>
8412
8413         * ipa-cp.c (ipcp_update_profiling): Correct
8414          negative scale factor due to insane profile data.
8415
8416 2011-04-08  Xinliang David Li  <davidxl@google.com>
8417
8418         * final.c (dump_basic_block_info): New function.
8419         (final): Dump basic block.
8420         (final_scan_insn): Remove old dump.
8421
8422 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
8423
8424         PR target/47829
8425         * config.gcc (i386-*-freebsd): Disable unwind table generation for
8426         crtbegin/crtend.
8427
8428 2011-04-08  Michael Matz  <matz@suse.de>
8429
8430         PR middle-end/48389
8431         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8432         functions.
8433         (rebuild_jump_labels): Call rebuild_jump_labels_1.
8434         * rtl.h (rebuild_jump_labels_chain): Declare.
8435         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8436         insns inserted on edges.
8437
8438 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
8439
8440         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8441         * config/arm/arm-arches.def: New.
8442         * config/arm/arm-opts.h: New.
8443         * config/arm/genopt.sh: New.
8444         * config/arm/arm-tables.opt: New (generated).
8445         * config/arm/arm.c (arm_handle_option, arm_target_help,
8446         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8447         (all_architectures): Get most table contents from arm-arches.def.
8448         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8449         arm_selected_tune here.
8450         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8451         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8452         (march=, mcpu=, mtune=): Use Enum and Var.
8453         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8454         (arm.o): Update dependencies.
8455
8456 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
8457
8458         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8459         of header_file.
8460         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8461         (write_typed_alloc_defns): Likewise.
8462         (main): Calls write_typed_alloc_defns with output_header.
8463
8464 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
8465
8466         PR inline-asm/48435
8467         * ira-color.c (setup_profitable_hard_regs): Add comments.
8468         Don't take prohibited hard regs into account.
8469         (setup_conflict_profitable_regs): Rename to
8470         get_conflict_profitable_regs.
8471         (check_hard_reg_p): Check prohibited hard regs.
8472
8473 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
8474
8475         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8476         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8477         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8478
8479 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8480
8481         PR target/48366
8482         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8483         move from floating point to shift amount register.
8484         (emit_move_sequence): Remove secondary reload support for floating
8485         point to shift amount amount register copies.
8486         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8487         amount register copies.
8488         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8489         register, return false if mode isn't a scalar integer mode.
8490         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8491
8492 2011-04-08  Richard Guenther  <rguenther@suse.de>
8493
8494         * gimple.c (gimple_call_flags): Remove kludge.
8495
8496 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8497
8498         * sel-sched.c (sel_region_init): Move call to
8499         sel_setup_region_sched_flags after setup_current_loop_nest.
8500
8501 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
8502
8503         PR rtl-optimization/48272
8504         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8505         init_insn_reg_pressure_info.  Adjust a caller.
8506         * sched-int.h (init_insn_reg_pressure_info): Declare.
8507         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8508         when sched-pressure is enabled.
8509
8510 2011-04-08  Richard Guenther  <rguenther@suse.de>
8511
8512         * gimple.c (gimple_set_modified): Do not queue calls to
8513         MODIFIED_NORETURN_CALLS here ...
8514         * tree-ssa-operands.c (update_stmt_operands): ... but here.
8515
8516 2011-04-08  Richard Guenther  <rguenther@suse.de>
8517
8518         PR lto/48467
8519         * toplev.c (lang_dependent_init): Do not open asm_out_file
8520         in WPA mode, nor perform debug machinery initialization.
8521         (finalize): Do not unlink asm_out_file in WPA mode.
8522
8523 2011-04-08  Richard Guenther  <rguenther@suse.de>
8524
8525         * gimple.h (gimple_call_fntype): New function.
8526         (gimple_call_return_type): Use it.
8527         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8528         * gimple-low.c (gimple_check_call_args): Likewise.
8529         * gimple.c (gimple_call_flags): Likewise.
8530         (gimple_call_arg_flags): Likewise.
8531         (gimple_call_return_flags): Likewise.
8532         * tree-cfg.c (verify_gimple_call): Likewise.
8533         (do_warn_unused_result): Likewise.
8534         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8535         * value-prof.c (gimple_ic_transform): Fix fndecl check.
8536
8537 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
8538
8539         PR rtl-optimization/48235
8540         * sel-sched.c (code_motion_process_successors): Recompute the last
8541         insn in basic block if control flow changed.
8542         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
8543         Update condition for ilist_remove.
8544
8545 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8546
8547         PR rtl-optimization/48302
8548         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8549         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
8550         it to record added preheader blocks.
8551         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
8552         on to sel_add_loop_preheaders.
8553         (sel_region_init): Move call to setup_current_loop_nest after
8554         sel_init_bbs.
8555
8556 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8557
8558         PR target/48273
8559         * cfgloop.h (loop_has_exit_edges): New helper.
8560         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8561         non-clonable.
8562         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8563         that have no exit edges.
8564
8565 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8566
8567         PR rtl-optimization/48442
8568         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
8569         all callers.  Adjust assert.
8570
8571 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
8572
8573         PR tree-optimization/48377
8574         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8575         is_packed to true even for types with smaller TYPE_ALIGN than
8576         TYPE_SIZE.
8577
8578 2011-04-08  Richard Guenther  <rguenther@suse.de>
8579
8580         PR bootstrap/48513
8581         * doc/tm.texi: Re-generate.
8582
8583 2011-04-08  Wei Guozhi  <carrot@google.com>
8584
8585         PR target/47855
8586         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8587         * config/arm/arm.c (arm_attr_length_push_multi): New function.
8588         * config/arm/arm.md (*push_multi): Change the length computation to
8589         call a C function.
8590
8591 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
8592
8593         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8594         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8595         * doc/tm.texi: Regenerate.
8596         * system.h (ASM_OUTPUT_BSS): Poison.
8597         * varasm.c (asm_output_bss): Remove function.
8598         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8599
8600         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8601         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8602         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8603         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8604         Likewise.
8605         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8606         Likewise.
8607         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8608         Likewise.
8609         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8610
8611 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8612
8613         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8614         EnumValue lines.
8615
8616 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8617
8618         * config/m68k/m68k.c (m68k_handle_option): Don't handle
8619         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8620         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8621         OPT_mcpu32.
8622         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8623         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8624         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8625         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8626         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8627         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8628         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8629         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8630         options.  Don't map other m68k options manually.  Don't handle
8631         old-style options as canonical.
8632         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8633         * doc/install.texi (m68k-*-*): Document binutils version requirement.
8634
8635 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8636
8637         * basic-block.h (force_nonfallthru): Move to...
8638         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8639         (force_nonfallthru): ...here.
8640         * cfghooks.c (force_nonfallthru): New function.
8641         * cfgrtl.c (force_nonfallthru): Rename into...
8642         (rtl_force_nonfallthru): ...this.
8643         (commit_one_edge_insertion): Do not set AUX field.
8644         (commit_edge_insertions): Do not discover new basic blocks.
8645         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8646         (cfg_layout_rtl_cfg_hooks): Likewise.
8647         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8648         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
8649         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8650
8651 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
8652
8653         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8654         Remove macros.
8655
8656 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
8657
8658         * config/i386/sse.md: Update copyright year.
8659         (avxcvtvecmode): Remove.
8660         (sse_movhlps): Merge with *avx_movhlps.
8661         (sse_movlhps): Merge with *avx_movlhps.
8662         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8663         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8664         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8665         (sse_loadhps): Merge with *avx_loadhps.
8666         (sse_storelps): Merge with *avx_storelps.
8667         (sse_loadlps): Merge with *avx_loadlps.
8668         (sse_movss): Merge with *avx_movss.
8669         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8670         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8671         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8672         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8673         (vec_set<mode>_0): Ditto.
8674         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8675         (sse4_1_insertps): Merge with *avx_insertps.
8676         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8677         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8678         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8679         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8680         (sse2_storehpd): Merge with *avx_storehpd.
8681         (sse2_loadhpd): Merge with *avx_loadhpd.
8682         (sse2_loadlpd): Merge with *avx_loadlpd.
8683         (sse2_movsd): Merge with *avx_movsd.
8684         (*vec_concatv2df): Merge with *vec_concatv2df.
8685
8686 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
8687
8688         PR debug/48343
8689         * combine.c (combine_instructions): Add last_combined_insn,
8690         update it if insn is after it, pass it to all try_combine calls.
8691         (try_combine): Add last_combined_insn parameter, pass it instead of
8692         i3 to propagate_for_debug.
8693
8694 2011-04-07  Nick Clifton  <nickc@redhat.com>
8695
8696         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8697         to handle MDR <-> data register transfers.
8698         (movhi_internal): Likewise.
8699
8700 2011-04-07  Alan Modra  <amodra@gmail.com>
8701
8702         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8703         previous stack info.
8704
8705 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8706
8707         PR target/43920
8708         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
8709         flow_find_cross_jump.  Swap variables to implement backward replacement.
8710         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8711
8712 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8713
8714         PR target/43920
8715         * cfgcleanup.c (walk_to_nondebug_insn): New function.
8716         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
8717         and bb2.
8718         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8719         src1 or src2.  Redirect edges to the last basic block.  Update
8720         frequency and count on multiple basic blocks in case of fallthru.
8721
8722 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8723
8724         PR target/43920
8725         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8726         function.
8727         (old_insns_match_p): Change return type.  Replace return false/true
8728         with return dir_none/dir_both.  Use can_replace_by.
8729         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
8730         direction from dir_p.  Register replacement direction in dir, last_dir
8731         and afterlast_dir.  Handle new return type of old_insns_match_p using
8732         merge_dir.  Return replacement direction in dir_p.
8733         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8734         return type of old_insns_match_p.
8735         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8736         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8737         flow_find_cross_jump.
8738         * basic-block.h (enum replace_direction): New type.
8739         (flow_find_cross_jump): Add parameter to declaration.
8740
8741 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8742
8743         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8744         (AVXMODEDCVTPS2DQ): Ditto.
8745         (VEC_FLOAT_MODE): Ditto.
8746         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
8747         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8748         (<any_logic:code><mode>3): Use VF mode iterator.
8749         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8750         Use VF mode iterator.
8751         (copysign<mode>3): Use VF mode iterator.
8752         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
8753         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8754         (*<any_logic:code><MODEF:mode>3): Merge with
8755         *avx_<any_logic:code><MODEF:mode>3.
8756         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8757         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8758         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8759         (avx_cvtdq2ps<avxmodesuffix>): Remove.
8760         (sse2_cvtdq2ps): Use %v modifier.
8761         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8762         (avx_cvtps2dq<avxmodesuffix>): Remove.
8763         (sse2_cvtps2dq): Use %v modifier.
8764         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8765         (avx_cvttps2dq<avxmodesuffix>): Remove.
8766         (sse2_cvttps2dq): Use %v modifier.
8767         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8768         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8769         (sse2_cvtsd2siq): Fix insn template.
8770         (sse2_cvtsd2siq_2): Ditto.
8771         (sse2_cvttsd2siq): Ditto.
8772         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8773         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8774
8775 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8776
8777         * gcov-io.c: Use GCC Runtime Library Exception.
8778
8779 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
8780
8781         PR debug/48466
8782         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8783         as base_reg whatever register reg has been eliminated to, instead
8784         of hardcoding STACK_POINTER_REGNUM.
8785
8786 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8787
8788         * doc/tm.texi.in: Document C target hooks as separate from general
8789         target hooks.
8790         * doc/tm.texi: Regenerate.
8791         * genhooks.c (struct hook_desc): Add docname field.
8792         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
8793         docname field.
8794         (hook_array): Include c-target.def.
8795         (emit_documentation): Use docname field in output.
8796         (emit_init_macros): Take docname argument.  Only emit definitions
8797         for hooks matching docname.
8798         (main): Expect additional arguments in all cases.  Pass argument
8799         to emit_init_macros.
8800         * target.def: Move initial macro definitions and comments to
8801         target-hooks-macros.h.
8802         (gcc_targetcm): Move to c-family/c-target.def.
8803         * target.h (targetcm): Move declaration to c-family/c-target.h.
8804         * targhooks.c (default_handle_c_option): Move to
8805         c-family/c-opts.c.
8806         * targhooks.h (default_handle_c_option): Move declaration to
8807         c-family/c-common.h.
8808         * target-hooks-macros.h: New file.
8809         * config.gcc (target_has_targetcm): Define and use to add to
8810         c_target_objs and cxx_target_objs.
8811         * config/default-c.c: New file.
8812         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8813         of target.h and target-def.h.
8814         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8815         (darwin_objc_construct_string, darwin_cfstring_ref_p,
8816         darwin_check_cfstring_format_arg): Make static.
8817         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8818         TARGET_STRING_OBJECT_REF_TYPE_P,
8819         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8820         * config/darwin-protos.h (darwin_objc_construct_string,
8821         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8822         declare.
8823         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8824         TARGET_STRING_OBJECT_REF_TYPE_P,
8825         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8826         * config/t-darwin (darwin-c.o): Update dependencies.
8827         * system.h (TARGET_HAS_TARGETCM): Poison.
8828         * Makefile.in (TARGET_H): Update.
8829         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8830         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8831         (default-c.o): New target.
8832         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8833         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8834         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
8835         c-target.def.
8836         (build/genhooks.o): Update dependencies.
8837
8838 2011-04-06  Richard Guenther  <rguenther@suse.de>
8839
8840         * ipa-inline.c (enum inlining_mode): Remove.
8841         (cgraph_flatten): Use some other token.
8842         (cgraph_edge_early_inlinable_p): New function, split out from ...
8843         (cgraph_perform_always_inlining): New function, split out from ...
8844         (cgraph_decide_inlining_incrementally): ... here.
8845         (cgraph_mark_inline_edge): Adjust.
8846         (cgraph_early_inlining): Re-structure.
8847         (pass_early_inline): Require SSA form.
8848
8849 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
8850             Julian Brown  <julian@codesourcery.com>
8851             Mark Shinwell  <shinwell@codesourcery.com>
8852
8853         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8854         LO_REGS only for Thumb-1.
8855         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8856         be used in short instructions when optimising for size on Thumb-2.
8857
8858 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8859
8860         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8861         associated with user returns to be preserved.
8862
8863 2011-04-06  Tristan Gingold  <gingold@adacore.com>
8864
8865         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8866         symbol_queue_size, DBXOUT_DECR_NESTING,
8867         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8868         if XCOFF_DEBUGGING_INFO.
8869
8870 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8871
8872         * config/i386/i386.md (attribute isa): New.
8873         (attribute enabled): New.
8874         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8875         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8876         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8877         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8878         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8879         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8880         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8881         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8882
8883         * config/i386/sse.md (VF): New mode iterator.
8884         (VF1): Ditto.
8885         (VF2): Ditto.
8886         (VF_128): Ditto.
8887         (SSEMODEF4): Remove.
8888         (attribute sse): Handle V8SF and V4DF modes.
8889         (<absneg:code><mode>2): Use VF mode iterator.
8890         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
8891         mode iterator.
8892         (<plusminus_insn><mode>3): Use VF mode iterator.
8893         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8894         Use VF mode iterator.
8895         (<sse>_vm<plusminus_insn><mode>3): Merge with
8896         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
8897         (mul<mode>3): Use VF mode iterator.
8898         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
8899         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
8900         mode iterator.
8901         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8902         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8903         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
8904         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
8905         mode iterator.
8906         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8907         Use VF1 mode iterator.
8908         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8909         (sqrt<VF2:mode>2): New expander.
8910         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8911         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8912         and sqrtv2df2.  Use VF mode iterator.
8913         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
8914         mode iterator.
8915         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8916         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8917         Use VF1 mode iterator.
8918         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8919         (<smaxmin:code><mode>3): Use VF mode iterator.
8920         (*<smaxmin:code><mode>3_finite): Merge with
8921         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
8922         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8923         (<sse>_vm<smaxmin:code><mode>2): Merge with
8924         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
8925         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
8926         mode iterator.
8927         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
8928         mode iterator.
8929         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8930         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8931         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8932         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8933         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
8934         VF mode iterator.
8935         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8936         Use VF_128 mode iterator.
8937         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
8938         mode iterator.
8939         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
8940         VF_128 mode iterator.
8941         (vcond<mode>): Use VF mode iterator.
8942         * config/i386/predicates.md (sse_comparison_operator): Merge with
8943         avx_comparison_float_operator.  Do not declare as special_predicate.
8944         * config/i386/i386.c (struct builtin_description): Update for renamed
8945         compare patterns.
8946         (ix86_expand_args_builtin): Ditto.
8947         (ix86_expand_sse_compare_mask): Ditto.
8948
8949 2011-04-06  Richard Guenther  <rguenther@suse.de>
8950
8951         * tree-inline.c (estimate_num_insns): For calls simply account
8952         for all passed arguments and a used return value.
8953
8954 2011-04-06  Richard Guenther  <rguenther@suse.de>
8955
8956         PR tree-optimization/47663
8957         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8958         call_stmt_time fields.
8959         (cgraph_edge_inlinable_p): Declare.
8960         (cgraph_edge_recursive_p): New inline function.
8961         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8962         (cgraph_clone_edge): Copy it.
8963         * ipa-inline.c (cgraph_estimate_edge_time): New function.
8964         Account for call stmt time.
8965         (cgraph_estimate_time_after_inlining): Take edge argument.
8966         (cgraph_estimate_edge_growth): Account call stmt size.
8967         (cgraph_estimate_size_after_inlining): Take edge argument.
8968         (cgraph_mark_inline_edge): Adjust.
8969         (cgraph_check_inline_limits): Likewise.
8970         (cgraph_recursive_inlining_p): Remove.
8971         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8972         (cgraph_decide_recursive_inlining): Take edge argument and
8973         adjust.
8974         (cgraph_decide_inlining_of_small_functions): Do not avoid
8975         diags for recursive inlining here.
8976         (cgraph_flatten): Adjust.
8977         (cgraph_decide_inlining_incrementally): Likewise.
8978         (estimate_function_body_sizes): Remove call cost handling.
8979         (compute_inline_parameters): Initialize caller edge call costs.
8980         (cgraph_estimate_edge_growth): New function.
8981         (cgraph_estimate_growth): Use it.
8982         (cgraph_edge_badness): Likewise.
8983         (cgraph_check_inline_limits): Take an edge argument.
8984         (cgraph_decide_inlining_of_small_functions): Adjust.
8985         (cgraph_decide_inlining): Likewise.
8986         * tree-inline.c (estimate_num_insns): Only account for call
8987         return value if it is used.
8988         (expand_call_inline): Avoid diagnostics on recursive inline
8989         functions here.
8990         * lto-cgraph.c (lto_output_edge): Output edge call costs.
8991         (input_edge): Input edge call costs.
8992
8993 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8994
8995         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8996
8997 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8998
8999         * doc/invoke.texi (Spec Files): Fix typo.
9000
9001 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9002
9003         * profile.c (branch_prob): Move declaration of local variable.  Remove
9004         obsolete ??? comment.  Expand the location explicitly instead of using
9005         the LOCATION_FILE and LOCATION_LINE macros.
9006
9007 2011-04-06  Wei Guozhi  <carrot@google.com>
9008
9009         PR target/47855
9010         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9011         (arm_cond_branch): Likewise.
9012         (arm_cond_branch_reversed): Likewise.
9013         (arm_jump): Likewise.
9014         (push_multi): Likewise.
9015         * config/arm/constraints.md (Py): New constraint.
9016
9017 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9018
9019         PR bootstrap/48471
9020         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9021         Move these...
9022         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9023         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9024         #ifdef DBX_DEBUGGING_INFO.
9025
9026 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
9027
9028         PR bootstrap/48403
9029         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9030         if old and new states differ.
9031
9032 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
9033
9034         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9035         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9036         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9037         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9038         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9039         mcfv4e): Use Alias.
9040         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9041         ColdFire options to -mcpu= options.
9042
9043 2011-04-05  Jeff Law  <law@redhat.com>
9044
9045         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9046         check if BB is a successor of LOOP->header and return
9047         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9048
9049 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
9050
9051         * cprop.c (struct reg_use): Remove.
9052         (reg_use_table): Make an array of RTX.
9053         (find_used_regs, constprop_register, local_cprop_pass,
9054         bypass_block): Simplify users of reg_use_table.
9055         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
9056         on one of the uses found by find_used_regs.
9057
9058 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9059
9060         PR bootstrap/48469
9061         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9062         declaration.
9063
9064 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9065
9066         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9067         as an rtx.
9068         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9069
9070 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
9071
9072         PR middle-end/48441
9073         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9074
9075 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9076
9077         * combine.c: Include obstack.h.
9078         (struct insn_link): Define.
9079         (uid_log_links): Adjust type.
9080         (FOR_EACH_LOG_LINK): New macro.
9081         (insn_link_obstack): Declare.
9082         (alloc_insn_link): Define.
9083         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
9084         type of link variables.
9085         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9086         (try_combine, record_promoted_values, distribute_notes): Likewise.
9087         (distribute_links): Likewise.  Tweak prototype.
9088         (clear_log_links): Delete.
9089         (adjust_for_new_dest): Call alloc_insn_link.
9090         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9091
9092 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9093
9094         * gcse.c (modify_mem_list): Convert to an array of VECs.
9095         (canon_modify_mem_list, compute_transp): Tweak formatting.
9096         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
9097         (load_killed_in_block_p): Likewise.
9098         (record_last_mem_set_info): Likewise.
9099         (clear_modify_mem_tables): Likewise.
9100
9101 2011-04-05  Tom de Vries  <tom@codesourcery.com>
9102
9103         PR middle-end/48461
9104         * function.c (emit_use_return_register_into_block): Only define if
9105         HAVE_return.
9106
9107 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
9108
9109         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9110
9111 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
9112
9113         * config/rx/rx-opts.h: New.
9114         * config/rx/rx.c (rx_cpu_type): Remove.
9115         (rx_handle_option): Don't assert that global structures are in
9116         use.  Access variables via opts pointer.  Defer most handling of
9117         OPT_mint_register_.  Use error_at.
9118         (rx_option_override): Handle deferred OPT_mint_register_ here.
9119         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9120         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9121         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9122         (rx_cpu_types): New Enum and EnumValue entries.
9123         (mint-register=): Use Defer and use Var accordingly.
9124
9125 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9126
9127         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9128         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9129         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9130         Move these...
9131         (debug_free_queue, debug_nesting, symbol_queue_index):
9132         ...and these...
9133         * dbxout.c: ...to here.  Make static.
9134
9135 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
9136
9137         * gcse.c (modify_pair): Define.  Define a VEC of it.
9138         (canon_modify_mem_list): Convert to an array of VECs.
9139         (free_insn_expr_list_list): Delete.
9140         (clear_modify_mem_tables): Call VEC_free instead.
9141         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9142         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9143         (canon_list_insert, compute_transp): Likewise.
9144
9145 2011-04-05  Tom de Vries  <tom@codesourcery.com>
9146
9147         PR target/43920
9148         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9149         for size.
9150
9151 2011-04-05  Tom de Vries  <tom@codesourcery.com>
9152
9153         PR target/43920
9154         * function.c (emit_use_return_register_into_block): New function.
9155         (thread_prologue_and_epilogue_insns): Use
9156         emit_use_return_register_into_block.
9157
9158 2011-04-05  Tom de Vries  <tom@codesourcery.com>
9159
9160         PR target/43920
9161         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9162         insn.
9163
9164 2011-04-05  Tom de Vries  <tom@codesourcery.com>
9165
9166         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9167
9168 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
9169
9170         * config/arm/arm.md (define_constants for unspec): Replace with
9171         define_c_enum.
9172         (define_constants for unspecv): Replace with define_c_enum.
9173         * config/arm/neon.md (define_constants for unspec): Replace with
9174         define_c_enum.
9175
9176 2011-04-04  Richard Henderson  <rth@redhat.com>
9177
9178         PR bootstrap/48400
9179         * dwarf2out.c (output_line_info): Always emit line info from
9180         at least one section.
9181         (dwarf2out_init): Create text_section_line_info here ...
9182         (set_cur_line_info_table): ... not here.
9183
9184 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
9185
9186         PR target/48380
9187         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9188         not called.
9189
9190         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9191
9192 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
9193
9194         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9195         (expr_equiv_p): Remove.
9196         (insert_set_in_table): Look at <dest, src> pair instead of expr.
9197         (hash_scan_set): Update call to insert_set_in_table.
9198         (dump_hash_table): Dump <dest, src> pair.
9199         (lookup_set): Simplify.  Lookup <dest, src> pair.
9200         (compute_transp): Remove, fold heavily simplified code into...
9201         (compute_local_properties): ...here.  Expect COMP and TRANSP
9202         unconditionally.
9203         (find_avail_set): Take set directly from struct expr.
9204         (find_bypass-set): Likewise.
9205         (bypass_block): Likewise.
9206         (cprop_insn): Likewise.  Remove redundant INSN_P test.
9207
9208         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9209         checks on form of COND from find_implicit_sets to here.
9210         (find_implicit_sets): Cleanup control flow. Split critical edges
9211         if it exposes implicit sets.  Allocate/resize implicit_sets as
9212         necessary.
9213         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9214         changed something.  Run df_analyze after find_implicit_sets if any
9215         edges were split.  Do not allocate implicit_sets here.
9216
9217         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9218         (gcse_obstack): Renamed to cprop_obstack.
9219         (GNEW, GNEWVEC, GNEWVAR): Remove.
9220         (gmalloc): Remove.
9221         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9222         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9223         (gcse_alloc): Likewise, and rename to cprop_alloc.
9224         (alloc_gcse_men, free_gcse_mem): Remove.
9225         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9226         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9227         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9228
9229         * cprop.c (oprs_not_set_p): Remove.
9230         (mark_set, mark_clobber): Remove.
9231         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9232         (reg_not_set_p): New function.
9233         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9234         (cprop_insn): Likewise.
9235         (cprop_jump): Use FOR_EACH_EDGE.
9236
9237 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
9238
9239         PR bootstrap/48403
9240         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9241         (rank_for_schedule): Use scheduled_insns vector instead of
9242         last_scheduled_insn.
9243         (ok_for_early_queue_removal): Likewise.
9244         (queue_to_ready): Search forward in nonscheduled_insns_begin if
9245         we have a dbg_cnt.
9246         (choose_ready): Likewise.
9247         (commit_schedule): Use VEC_iterate.
9248         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
9249         a dbg_cnt, use it and ensure the first insn is in the ready list.
9250         (haifa_sched_init): Allocate scheduled_insns.
9251         (sched_extend_ready_list): Don't allocate it; reserve space.
9252         (haifa_sched_finish): Free it.
9253
9254 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
9255
9256         * optc-gen.awk: Always remove type from Variable entry before
9257         recording in var_seen.
9258
9259 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
9260
9261         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9262         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9263         call to tidy_fallthru_edges.
9264
9265 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * doc/options.texi (ToLower): Document.
9268         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9269         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9270         * opts.h (cl_option): Add cl_tolower field.
9271         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9272         arguments with lowercase strings.
9273         * config/rx/rx.opt (mcpu=): Add ToLower.
9274         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9275         argument.
9276
9277 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
9278
9279         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9280
9281 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
9282
9283         * config/vax/vax.c: Include reload.h.
9284
9285 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
9286
9287         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9288         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9289         (sparc_preferred_reload_class): New function.
9290
9291 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
9292
9293         PR debug/48401
9294         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9295         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9296
9297 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
9298
9299         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9300         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9301
9302 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
9303
9304         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9305         (ASM_OUTPUT_ALIGNED_BSS): Define.
9306
9307 2011-04-03  Michael Matz  <matz@suse.de>
9308
9309         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9310         and next_slot members.
9311         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9312         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9313         (lto_streamer_cache_append): Declare.
9314         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9315         unsigned index, remove offset parameter, ensure that we append
9316         or update existing entries.
9317         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9318         parameter, update next_slot for append.
9319         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9320         parameter.
9321         (lto_streamer_cache_insert_at): Likewise.
9322         (lto_streamer_cache_append): New function.
9323         (lto_streamer_cache_lookup): Use unsigned index.
9324         (lto_streamer_cache_get): Likewise.
9325         (lto_record_common_node): Don't test tree_node_can_be_shared.
9326         (preload_common_node): Adjust call to lto_streamer_cache_insert.
9327         (lto_streamer_cache_delete): Don't free offsets member.
9328         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9329         (lto_output_string_with_length): Use lto_output_data_stream.
9330         (lto_output_tree_header): Remove ix parameter, don't write it.
9331         (lto_output_builtin_tree): Likewise.
9332         (lto_write_tree): Adjust callers to above, don't track and write
9333         offset, write unsigned index.
9334         (output_unreferenced_globals): Don't emit all global vars.
9335         (write_global_references): Use unsigned indices.
9336         (lto_output_decl_state_refs): Likewise.
9337         (write_symbol): Likewise.
9338         * lto-streamer-in.c (lto_input_chain): Move earlier.
9339         (input_function): Use unsigned index.
9340         (input_alias_pairs): Don't read and then ignore all global vars.
9341         (lto_materialize_tree): Remove ix_p parameter, don't read index,
9342         don't pass it back, use lto_streamer_cache_append.
9343         (lto_register_var_decl_in_symtab): Use unsigned index.
9344         (lto_register_function_decl_in_symtab): Likewise.
9345         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9346         index.
9347         (lto_get_builtin_tree): Don't read index, use
9348         lto_streamer_cache_append.
9349         (lto_read_tree): Adjust call to lto_materialize_tree.
9350
9351         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9352         don't use function calls in arguments to MIN.
9353
9354         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9355         twice.
9356
9357         * gimple.c (gimple_type_leader_entry): Mark deletable.
9358
9359 2011-04-03  Alan Modra  <amodra@gmail.com>
9360
9361         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9362
9363 2011-04-03  Michael Matz  <matz@suse.de>
9364
9365         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9366         an integer.
9367         * tree.h (tree_decl_non_common.vindex): Adjust comment.
9368
9369 2011-04-03  Michael Matz  <matz@suse.de>
9370
9371         * cgraphbuild.c (record_reference): Canonicalize constructor values.
9372         * gimple-fold.c (canonicalize_constructor_val): Accept being called
9373         without function context.
9374         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9375         current_function_decl and cfun.
9376
9377 2011-04-03  Michael Matz  <matz@suse.de>
9378
9379         * tree.c (decl_init_priority_insert): Don't create entry for
9380         default priority.
9381         (decl_fini_priority_insert): Ditto.
9382         (fields_compatible_p, find_compatible_field): Remove.
9383         * tree.h (fields_compatible_p, find_compatible_field): Remove.
9384         * gimple.c (gimple_compare_field_offset): Adjust block comment.
9385
9386 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
9387
9388         * combine.c (try_combine): Remove useless local variable.
9389
9390 2011-04-03  Richard Guenther  <rguenther@suse.de>
9391             Ira Rosen  <ira.rosen@linaro.org>
9392
9393         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9394         non-variable offsets and compare the remaining bases of the two
9395         accesses instead of looking for exact same data-ref.
9396
9397 2011-04-02  Kai Tietz  <ktietz@redhat.com>
9398
9399         PR target/48416
9400         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9401
9402         * i386.c (ix86_is_msabi_thiscall): New helper function.
9403         (ix86_is_type_thiscall): New helper function.
9404         (ix86_comp_type_attributes): Handle thiscall for method-functions
9405         special.
9406         (init_cumulative_args): Likewise.
9407         (find_drap_reg): Likewise.
9408         (ix86_static_chain): Likewise.
9409         (x86_this_parameter): Likewise.
9410         (x86_output_mi_thunk): Likewise.
9411
9412 2011-04-01  Olivier Hainque  <hainque@adacore.com>
9413             Nicolas Setton  <setton@adacore.com>
9414             Eric Botcazou  <ebotcazou@adacore.com>
9415
9416         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9417         (add_gnat_descriptive_type_attribute): New function.
9418         (gen_array_type_die): Call it.
9419         (gen_enumeration_type_die): Likewise.
9420         (gen_struct_or_union_type_die): Likewise.
9421         (modified_type_die): Likewise.
9422         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9423         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9424         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9425
9426 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
9427
9428         PR bootstrap/48148
9429         * dwarf2out.c (resolve_addr): Don't call force_decl_die
9430         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9431
9432         Revert:
9433         2011-03-17  Richard Guenther  <rguenther@suse.de>
9434
9435         PR bootstrap/48148
9436         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9437         origin for decls in other ltrans units.
9438         (input_varpool_node): Likewise.
9439
9440 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
9441
9442         PR middle-end/48335
9443         * expr.c (expand_assignment): Handle all possibilities
9444         if TO_RTX is CONCAT.
9445         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9446         (store_split_bit_field): If SUBREG_REG (op0) or
9447         op0 itself has smaller mode than word, return it
9448         for offset 0 and const0_rtx for out-of-bounds stores.
9449         If word is const0_rtx, skip it.
9450
9451 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
9452
9453         * config/h8300/h8300.c (print_operand_address): Rename to...
9454         (h8300_print_operand_address): ...this. Make static. Adjust comments.
9455         Call h8300_print_operand and h8300_print_operand_address instead of
9456         print_operand and print_operand_address. Declare.
9457         (print_operand): Renake to...
9458         (h8300_print_operand): ...this. Make static. Adjust comments.
9459         Call h8300_print_operand instead of print_operand. Declare.
9460         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9461         (h8300_register_move_cost): Likewise.
9462         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9463         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9464         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9465         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9466         * config/h8300/h8300-protos.h (print_operand): Delete.
9467         (print_operand_address): Delete.
9468
9469 2011-04-01  Richard Henderson  <rth@redhat.com>
9470
9471         PR 48400
9472         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9473         in strict mode before dwarf4.  Re-order tests to early out
9474         before switching sections.
9475
9476 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
9477
9478         * config/h8300/constraints.md: New file.
9479         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
9480         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9481         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9482         * config/h8300/predicates.md (bit_operand): Likewise.
9483         (incdec_operand): Use satisfies_constraint_M and
9484         satisfies_constraint_O.  Don't use C code block.
9485         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9486         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9487         (compute_mov_length): Use satisfies_constraint_G.
9488         (fix_bit_operand): Use satisfies_constraint_U.
9489         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9490         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9491         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9492         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9493         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9494         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9495         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9496         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9497         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9498         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9499         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9500         (EXTRA_MEMORY_CONSTRAINT): Delete.
9501
9502 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
9503             Michael Meissner  <meissner@linux.vnet.ibm.com>
9504
9505         PR target/48262
9506         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9507         operands, as per the specifications.
9508
9509         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9510         (vec_extract_evenv4sf): Ditto.
9511         (vec_extract_evenv8hi): Ditto.
9512         (vec_extract_evenv16qi): Ditto.
9513         (vec_extract_oddv4si): Ditto.
9514
9515 2011-03-31  Mark Wielaard  <mjw@redhat.com>
9516
9517         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9518         high_pc attribute if the CU has no associated code. Only output
9519         DW_AT_entry_pc for CU if not generating strict dwarf and
9520         dwarf_version < 4.
9521
9522 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
9523
9524         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9525         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9526         out of ...
9527         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9528         * final.c (final_start_function): Call the new function rather
9529         than using a NULL argument for dwarf2out_frame_debug.
9530
9531         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9532         that contains the prologue.
9533
9534         * haifa-sched.c (queue_insn): New arg REASON.  All callers
9535         changed.  Print it in debugging output.
9536
9537         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9538
9539         * sched-ebb.c (begin_schedule_ready): Remove second argument.
9540         Split most of the code into...
9541         (begin_move_insn): ... here.  New function.
9542         (ebb_sched_info): Add a pointer to it.
9543         * haifa-sched.c (scheduled_insns): New static variable.
9544         (sched_extend_ready_list): Allocate it.
9545         (schedule_block): Use it to record the order of scheduled insns.
9546         Perform RTL changes to move insns only after all scheduling
9547         decisions have been made.
9548         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9549         begin_move_insn field.
9550         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9551         * sched-int.h (struct haifa_sched_info): Remove second argument
9552         from begin_schedule_ready hook.  Add new member begin_move_insn.
9553         * sched-rgn.c (begin_schedule_ready): Remove second argument.
9554         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9555
9556         * haifa-sched.c (prune_ready_list): New function, broken out of
9557         schedule_block.
9558         (schedule_block): Use it.
9559
9560 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9561
9562         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9563
9564 2011-04-01  Kai Tietz  <ktietz@redhat.com>
9565
9566         * config.gcc (*-*-mingw*): Allow as option the
9567         posix threading model.
9568         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
9569         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9570         definition.
9571         (CPP_SPEC): Add pthread/no-pthread handling.
9572         (LIB_SPEC): Likewise.
9573         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9574         (LIB_SPEC): Likewise.
9575         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9576         flag to pass -pthread option for shared libgcc build.
9577         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9578         for shared libgcc build.
9579         * config/i386/t-mingw-pthread: New file.
9580         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9581         New define to enable use of library pthread by default.
9582         * config/i386/mingw.opt (pthread): New driver option.
9583         (no-pthread): New driver option.
9584         * config/i386/cygming.opt: Make sure trailing empty line is retained.
9585         * config/i386/mingw-w64.opt: Likewise.
9586
9587 2011-04-01  Gary Funck  <gary@intrepid.com>
9588
9589         * c-decl.c (grokdeclarator): Fix formatting.
9590
9591 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9592
9593         * expr.c (emit_block_move_via_movmem): Use n_generator_args
9594         instead of n_operands.
9595         (set_storage_via_setmem): Likewise.
9596         * optabs.c (maybe_gen_insn): Likewise.
9597         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9598         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9599         (mips_expand_builtin_direct): Likewise.
9600         * config/spu/spu.c (expand_builtin_args): Likewise.
9601
9602 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9603
9604         * recog.h (insn_data_d): Add n_generator_args.
9605         * genoutput.c (data): Likewise.
9606         (output_insn_data): Print it.
9607         (max_opno, num_dups): Delete.
9608         (scan_operands): Just fill in "d->operand[...]".
9609         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9610
9611 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9612
9613         * gensupport.h (pattern_stats): New structure.
9614         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9615         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9616         (max_operand_1, max_operand_vec): Delete.
9617         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9618
9619 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
9620
9621         * emit-rtl.c (emit_pattern_after_setloc): New function.
9622         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9623         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9624         (emit_pattern_after): New function.
9625         (emit_insn_after, emit_jump_insn_after): Call it.
9626         (emit_call_insn_after, emit_debug_insn_after): Likewise.
9627         (emit_pattern_before_setloc): New function.
9628         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9629         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9630         Likewise.
9631         (emit_pattern_before): New function.
9632         (emit_insn_before, emit_jump_insn_before): Call it.
9633         (emit_call_insn_before, emit_debug_insn_before): Likewise.
9634
9635 2011-03-31  Richard Henderson  <rth@redhat.com>
9636
9637         * dwarf2out.c (dw_separate_line_info_ref): Remove.
9638         (dw_separate_line_info_entry): Remove.
9639         (enum dw_line_info_opcode): New.
9640         (dw_line_info_entry): Use it.
9641         (dw_line_info_table, dw_line_info_table_p): New.
9642         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9643         (line_info_table, line_info_label_num): Remove.
9644         (line_info_table_in_use): Remove.
9645         (separate_line_info_table): Remove.
9646         (separate_line_info_table_allocated): Remove.
9647         (separate_line_info_table_in_use): Remove.
9648         (LINE_INFO_TABLE_INCREMENT): Remove.
9649         (line_info_label_num): New.
9650         (cur_line_info_table): New.
9651         (text_section_line_info, cold_text_section_line_info): New.
9652         (separate_line_info): New.
9653         (SEPARATE_LINE_CODE_LABEL): Remove.
9654         (print_dwarf_line_table): Remove.
9655         (debug_dwarf): Don't dump it.
9656         (output_one_line_info_table): New.
9657         (output_line_info): Use it.
9658         (new_line_info_table): New.
9659         (set_cur_line_info_table): New.
9660         (dwarf2out_switch_text_section): Use it.
9661         (dwarf2out_begin_function): Likewise.
9662         (push_dw_line_info_entry): New.
9663         (dwarf2out_source_line): Rewrite for new line info tables.
9664         (dwarf2out_init): Remove dead initailizations.
9665
9666 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9667
9668         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
9669         various flags.
9670         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9671         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9672         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9673         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9674         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9675         * opt-functions.awk (flag_init, switch_bit_fields): New.
9676         (switch_flags): Don't handle flags moved to bit-fields.  Don't
9677         generate CL_MISSING_OK or CL_SAVE.
9678         * optc-gen.awk: Update to generate bit-field output as well as
9679         flags field.
9680         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9681         bit-field instead of CL_REJECT_DRIVER flag.
9682         * opts-common.c (generate_canonical_option,
9683         decode_cmdline_option): Use bit-fields instead of CL_* flags.
9684         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9685         instead of CL_REJECT_NEGATIVE flag.
9686         * toplev.c (print_switch_values): Use cl_report bit-field instead
9687         of CL_REPORT flag.
9688
9689 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9690
9691         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9692         a zero minimum index only if it is redundant.
9693
9694 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9695
9696         PR rtl-optimization/48381
9697         * ira-color.c (assign_hard_reg): Use hard reg set intersection
9698         instead of ira_class_hard_reg_index for calculating conflicting
9699         hard registers.
9700
9701 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
9702
9703         * cprop.c: Clean up hash table building.
9704         (reg_avail_info): Remove.
9705         (oprs_available_p): Remove.
9706         (record_last_reg_set_info): Remove.
9707         (record_last_set_info): Remove.
9708         (reg_available_p): New function.
9709         (gcse_constant_p): Do not treat unfolded conditions as constants.
9710         (make_set_regs_unavailable): New function.
9711         (hash_scan_set): Simplify with new reg_available_p.
9712         (compute_hash_table_work): Traverse insns stream only once.
9713         Do not compute reg_avail_info. Traverse insns in reverse order.
9714         Record implicit sets after recording explicit sets from the block.
9715
9716 2011-03-31  Michael Matz  <matz@suse.de>
9717
9718         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9719
9720 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
9721
9722         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9723         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9724         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9725         (h8300_mode_dependent_address_p): New function.
9726         (h8300_get_index): Make static.
9727
9728 2011-03-31  Jeff Law  <law@redhat.com>
9729
9730         * reload1.c (elimination_effects): Fix typo in recent change.
9731
9732         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9733         typo potentially leading to null pointer dereference.
9734
9735         * caller-save.c (new_saved_hard_reg): Eliminate return value.
9736         (setup_save_areas): Corresponding changes to avoid useless
9737         assignments.
9738
9739         * jump.c (reversed_comparison_code_parts): Avoid successive return
9740         statements when REVERSE_CONDITION is defined.
9741
9742         * expr.c (expand_assignment): Avoid useless assignments.
9743         (expand_expr_real_1): Likewise.
9744         (expand_expr_real_2): Avoid useless statements.
9745
9746         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9747
9748         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9749
9750         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9751         statements.
9752
9753         * stmt.c (expand_expr_stmt): Avoid useless assignment.
9754
9755 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9756
9757         PR target/47109
9758         * doc/tm.texi.in (TARGET_VERSION): Remove.
9759         * doc/tm.texi: Regenerate.
9760         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9761         * collect2.c (main): Don't use TARGET_VERSION.
9762         * mips-tdump.c (main): Don't use TARGET_VERSION.
9763         * mips-tfile.c (main): Don't use TARGET_VERSION.
9764         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9765         * config/rs6000/vxworksae.h: Remove.
9766         * config/alpha/alpha.h (TARGET_VERSION): Remove.
9767         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9768         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9769         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9770         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9771         * config/arm/arm.h (TARGET_VERSION): Remove.
9772         * config/arm/coff.h (TARGET_VERSION): Remove.
9773         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9774         * config/arm/elf.h (TARGET_VERSION): Remove.
9775         * config/arm/freebsd.h (TARGET_VERSION): Remove.
9776         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9777         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9778         * config/arm/pe.h (TARGET_VERSION): Remove.
9779         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9780         * config/arm/semi.h (TARGET_VERSION): Remove.
9781         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9782         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9783         * config/arm/vxworks.h (TARGET_VERSION): Remove.
9784         * config/avr/avr.h (TARGET_VERSION): Remove.
9785         * config/bfin/bfin.h (TARGET_VERSION): Remove.
9786         * config/fr30/fr30.h (TARGET_VERSION): Remove.
9787         * config/frv/frv.h (TARGET_VERSION): Remove.
9788         * config/h8300/h8300.h (TARGET_VERSION): Remove.
9789         * config/i386/cygwin.h (TARGET_VERSION): Remove.
9790         * config/i386/darwin.h (TARGET_VERSION): Remove.
9791         * config/i386/darwin64.h (TARGET_VERSION): Remove.
9792         * config/i386/djgpp.h (TARGET_VERSION): Remove.
9793         * config/i386/freebsd.h (TARGET_VERSION): Remove.
9794         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9795         * config/i386/gnu.h (TARGET_VERSION): Remove.
9796         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9797         * config/i386/i386elf.h (TARGET_VERSION): Remove.
9798         * config/i386/linux.h (TARGET_VERSION): Remove.
9799         * config/i386/linux64.h (TARGET_VERSION): Remove.
9800         * config/i386/lynx.h (TARGET_VERSION): Remove.
9801         * config/i386/mingw32.h (TARGET_VERSION): Remove.
9802         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9803         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9804         * config/i386/netware.h (TARGET_VERSION): Remove.
9805         * config/i386/nto.h (TARGET_VERSION): Remove.
9806         * config/i386/openbsd.h (TARGET_VERSION): Remove.
9807         * config/i386/vxworks.h (TARGET_VERSION): Remove.
9808         * config/ia64/elf.h (TARGET_VERSION): Remove.
9809         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9810         * config/ia64/hpux.h (TARGET_VERSION): Remove.
9811         * config/ia64/linux.h (TARGET_VERSION): Remove.
9812         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9813         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9814         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9815         * config/lm32/lm32.h (TARGET_VERSION): Remove.
9816         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9817         * config/m32c/m32c.h (TARGET_VERSION): Remove.
9818         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9819         * config/m32r/m32r.h (TARGET_VERSION): Remove.
9820         * config/m68k/linux.h (TARGET_VERSION): Remove.
9821         * config/m68k/m68k.h (TARGET_VERSION): Remove.
9822         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9823         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9824         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9825         * config/mep/mep.h (TARGET_VERSION): Remove.
9826         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9827         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9828         * config/mips/iris6.h (MACHINE_TYPE): Remove.
9829         * config/mips/linux.h (TARGET_VERSION): Remove.
9830         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9831         * config/mips/vxworks.h (TARGET_VERSION): Remove.
9832         * config/mmix/mmix.h (TARGET_VERSION): Remove.
9833         * config/mn10300/linux.h (TARGET_VERSION): Remove.
9834         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9835         * config/pa/pa.h (TARGET_VERSION): Remove.
9836         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9837         * config/picochip/picochip.h (TARGET_VERSION): Remove.
9838         * config/rs6000/aix.h (TARGET_VERSION): Remove.
9839         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9840         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9841         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9842         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9843         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9844         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9845         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9846         * config/rs6000/linux.h (TARGET_VERSION): Remove.
9847         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9848         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9849         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9850         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9851         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9852         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9853         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9854         * config/s390/linux.h (TARGET_VERSION): Remove.
9855         * config/s390/s390.h (TARGET_VERSION): Remove.
9856         * config/s390/tpf.h (TARGET_VERSION): Remove.
9857         * config/score/score.h (TARGET_VERSION): Remove.
9858         * config/sh/linux.h (TARGET_VERSION): Remove.
9859         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9860         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9861         * config/sh/sh.h (TARGET_VERSION): Remove.
9862         * config/sh/sh64.h (TARGET_VERSION): Remove.
9863         * config/sh/superh.h (TARGET_VERSION): Remove.
9864         * config/sh/vxworks.h (TARGET_VERSION): Remove.
9865         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9866         * config/sparc/linux.h (TARGET_VERSION): Remove.
9867         * config/sparc/linux64.h (TARGET_VERSION): Remove.
9868         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9869         TARGET_NAME32, TARGET_NAME): Remove.
9870         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9871         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9872         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9873         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9874         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9875         * config/spu/spu.h (TARGET_VERSION): Remove.
9876         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9877         * config/v850/v850.h (TARGET_VERSION): Remove.
9878         * config/vax/linux.h (TARGET_VERSION): Remove.
9879         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9880         * config/xtensa/elf.h (TARGET_VERSION): Remove.
9881         * config/xtensa/linux.h (TARGET_VERSION): Remove.
9882
9883 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9884
9885         PR target/48142
9886         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9887         frame-related from frame-unrelated adjustments to the stack pointer.
9888
9889 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * common.opt (fdebug-types-section): Move earlier.
9892         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9893
9894 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
9895
9896         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9897         var.
9898
9899 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
9900
9901         * tree.h (CASE_CHAIN): Define.
9902         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9903         (gimple_redirect_edge_and_branch): Likewise.
9904
9905 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9906
9907         PR middle-end/48367
9908         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9909         calculation.
9910
9911 2011-03-30  Jeff Law  <law@redhat.com>
9912
9913         * PR bootstrap/48371
9914         * reload1.c (reload): Fix botch in last change.
9915
9916         * reload.h (struct reload): Fix typo introduced in last change.
9917
9918 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9919
9920         * config/arm/arm.opt (mhard-float, msoft-float): Mark
9921         Undocumented.  Remove help text.
9922         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9923         -mhard-float.
9924
9925 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9926
9927         * doc/options.texi (NegativeAlias): Document.
9928         (Alias): Mention NegativeAlias.
9929         * opt-functions.awk: Handle NegativeAlias.
9930         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9931         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9932         * opts.h (CL_NEGATIVE_ALIAS): Define.
9933         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9934         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9935         OPT_mspe_.
9936         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9937         Alias entries.
9938         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9939         mno-spe and mno-isel instead of mspe=no and -misel=no.
9940
9941 2011-03-29  Mark Wielaard  <mjw@redhat.com>
9942
9943         * common.opt (fdebug-types-section): New flag.
9944         * doc/invoke.texi: Document new -fno-debug-types-section flag.
9945         * dwarf2out.c (use_debug_types): New define.
9946         (struct die_struct): Mark die_id with GTY desc use_debug_types.
9947         (print_die): Guard output of type unit signatures using
9948         use_debug_types.
9949         (build_abbrev_table): Replace assert of dwarf_version >= 4
9950         with assert on use_debug_types.
9951         (size_of_die): Likewise.
9952         (unmark_dies): Likewise.
9953         (value_format): Decide AT_ref_external form on use_debug_types.
9954         (output_die): Replace dwarf_version version check guard with
9955         use_debug_types where appropriate.
9956         (modified_type_die): Likewise.
9957         (gen_reference_type_die): Likewise.
9958         (dwarf2out_start_source_file): Likewise.
9959         (dwarf2out_end_source_file): Likewise.
9960         (prune_unused_types_walk_attribs): Likewise.
9961         (dwarf2out_finish): Likewise.
9962
9963 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9964
9965         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9966
9967 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9968
9969         PR rtl-optimization/48332
9970         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9971         mode of input operand N and modeN to its actual mode.
9972
9973 2011-03-30  Jeff Law  <law@redhat.com>
9974
9975         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9976         define accessor macro.
9977         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9978         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9979         (reg_equiv_init): Likewise.
9980         (reg_equivs_size): New variable.
9981         (reg_equiv_init_size): Remove.
9982         (allocate_initial_values): Move prototype to here from....
9983         * integrate.h (allocate_initial_values): Remove prototype.
9984         * integrate.c: Include reload.h.
9985         (allocate_initial_values): Corresponding changes.
9986         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9987         (fix_reg_equiv_init, no_equiv): Corresponding changes.
9988         (update_equiv_regs): Corresponding changes.
9989         (ira): Corresponding changes.
9990         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9991         (push_secondary_reload): Corresponding changes.
9992         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9993         (make_memloc, find_reloads_address): Corresponding changes.
9994         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9995         (find_reloads_address_1): Corresponding changes.
9996         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9997         (refers_to_regno_for_reload_p): Corresponding changes.
9998         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9999         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10000         * reload1.c: Include ggc.h.
10001         (grow_reg_equivs): New function.
10002         (replace_pseudos_in, reload): Corresponding changes.
10003         (calculate_needs_all_insns, alter_regs): Corresponding changes.
10004         (eliminate_regs_1, elimination_effects): Corresponding changes.
10005         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10006         (delete_output_reload): Likewise.
10007         * caller-save.c (mark_referenced_regs): Corresponding changes.
10008         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10009         * frv/predicates.md (frv_load_operand): Corresponding changes.
10010         * microblaze/microblaze.c (double_memory_operand): Corresponding
10011         changes.
10012         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10013         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10014         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10015         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10016         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10017         changes.
10018         * pa/pa.c (emit_move_sequence): Corresponding changes.
10019         * vax/vax.c (nonindexed_address_p): Corresponding changes.
10020
10021 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
10022
10023         PR target/47551
10024         * config/arm/arm.c (coproc_secondary_reload_class): Handle
10025         structure modes.  Don't check neon_vector_mem_operand for
10026         vector or structure modes.
10027
10028 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
10029             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10030
10031         PR target/43590
10032         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10033         operand 1 and reshuffle the operands to match.
10034         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10035
10036 2011-03-30  Christian Schüler  <cschueler@gmx.de>
10037
10038         PR driver/48208
10039         * config/c.opt (F): Added 'Driver' to -F option.
10040
10041         PR driver/48260
10042         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10043           handler function.
10044         * config/darwin.opt: Added '-arch' option.
10045
10046 2011-03-30  Nick Clifton  <nickc@redhat.com>
10047
10048         * config/rx/rx.md: Add peepholes and patterns to combine
10049         extending loads and simple arithmetic instructions.
10050         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10051         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10052         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10053         modes to use pre-decrement and post-increment addressing.
10054         (rx_is_restricted_memory_address): Add range checking of REG+INT
10055         addresses.
10056         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
10057         (rx_memory_move_cost): Adjust cost of stores.
10058         (rx_adjust_insn_length): New function.
10059
10060 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
10061
10062         PR c/48305
10063         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10064         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10065         matching arg00/arg01 types.
10066
10067 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10068
10069         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10070         last_location to UNKNOWN_LOCATION.
10071
10072 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         PR target/48349
10075         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10076         FLOAT_SSE_REGS.
10077
10078 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
10079             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10080
10081         PR bootstrap/48337
10082         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10083         Init(PROCESSOR_V7).
10084         (sparc_cpu): Likewise.
10085         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10086         PROCESSOR_V7.
10087
10088 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
10089
10090         PR target/48336
10091         PR middle-end/48342
10092         PR rtl-optimization/48345
10093         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10094         hard regs for given mode from profitable regs when doing secondary
10095         allocation.
10096
10097 2011-03-29  Jeff Law  <law@redhat.com>
10098
10099         PR bootstrap/48327
10100         * tree-ssa-threadupdate.c (struct redirection_data): Remove
10101         do_not_duplicate field.
10102         (lookup_redirection_data): Corresponding changes.
10103         (create_duplicates): Always create a template block.
10104         (redirect_edges): Remove code which reused the original block
10105         when it was going to become unreachable code.
10106         (thread_block): Don't set do_not_duplicate field.
10107
10108 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
10109
10110         * lto-opts.c (register_user_option_p, lto_register_user_option):
10111         Make type argument unsigned.
10112         * lto-streamer.h (lto_register_user_option): Make type argument
10113         unsigned.
10114         * opth-gen.awk: Make CL_* macros unsigned.
10115         * opts-common.c (find_opt): Make lang_mask argument unsigned.
10116         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10117         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10118         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10119         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10120         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10121         (find_opt): Make lang_mask argument unsigned.
10122
10123 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
10124
10125         PR rtl-optimization/48331
10126         PR rtl-optimization/48334
10127         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10128         for any used algorithm.
10129
10130 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
10131
10132         * ira-conflicts.c (build_object_conflicts): Add unused attribute
10133         to parent_max.
10134
10135 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
10136
10137         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10138         (alpha_option_override): Don't set alpha_sr_alias_set.
10139         (emit_frame_store_1): Use gen_frame_mem rather than calling
10140         set_mem_alias_set.
10141         (alpha_expand_epilogue): Ditto.
10142
10143 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
10144
10145         PR tree-optimization/48290
10146         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10147         vectorization, check that relevant phis in the basic block after
10148         the inner loop are really inner loop's exit phis.
10149
10150 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
10151
10152         PR debug/48190
10153         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10154         (cached_dw_loc_list_def): New structure.
10155         (cached_dw_loc_list): New typedef.
10156         (cached_dw_loc_list_table): New variable.
10157         (cached_dw_loc_list_table_hash): New function.
10158         (cached_dw_loc_list_table_eq): Likewise.
10159         (add_location_or_const_value_attribute): Take a bool cache_p.
10160         Cache the list when the parameter is true.
10161         (gen_formal_parameter_die): Update caller.
10162         (gen_variable_die): Likewise.
10163         (dwarf2out_finish): Likewise.
10164         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10165         while generating debug info for the decl.
10166         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10167         (dwarf2out_init): Initialize cached_dw_loc_list_table.
10168         (resolve_addr): Cache the result of resolving a chain of
10169         location lists.
10170
10171 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
10172
10173         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10174         conflict object hard regset nodes have intersecting hard reg sets.
10175
10176         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10177         after regstat_init_n_sets_and_refs.
10178
10179         * ira.c: Add more comments at the top.
10180         (setup_stack_reg_pressure_class, setup_pressure_classes):
10181         Add comments how we compute the register pressure classes.
10182         (setup_allocno_and_important_classes): Add more comments.
10183         (setup_class_translate_array, reorder_important_classes)
10184         (setup_reg_class_relations): Add comments.
10185
10186         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
10187         start of the file.
10188
10189         * ira-color.c: Add 2011 to the Copyright line.
10190         (assign_hard_reg):  Add more comments.
10191         (improve_allocation): Ditto.
10192
10193         * ira-costs.c: Add 2011 to the Copyright line.
10194         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10195         comments.
10196         (setup_regno_cost_classes_by_mode): Ditto.
10197
10198         Initial patches from ira-improv branch:
10199
10200         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
10201
10202         * ira-build.c (ira_create_object): Remove initialization of
10203         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
10204         (ira_create_allocno): Remove initialization of
10205         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10206         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10207         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10208         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10209         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10210         Initialize ALLOCNO_ADD_DATA.
10211         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10212         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10213         ALLOCNO_REG.
10214         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
10215         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10216
10217         * ira.c (ira_reallocate): Remove.
10218         (setup_pressure_classes): Call
10219         ira_init_register_move_cost_if_necessary.  Use
10220         ira_register_move_cost instead of ira_get_register_move_cost.
10221         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10222         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10223
10224         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10225         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10226         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10227         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10228         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10229         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10230         Fix formatting.
10231         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10232         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10233         (struct allocno_color_data): New.
10234         (allocno_color_data_t): New typedef.
10235         (allocno_color_data): New definition.
10236         (ALLOCNO_COLOR_DATA): New macro.
10237         (struct object_color_data): New.
10238         (object_color_data_t): New typedef.
10239         (object_color_data): New definition.
10240         (OBJECT_COLOR_DATA): New macro.
10241         (update_copy_costs, calculate_allocno_spill_cost): Call
10242         ira_init_register_move_cost_if_necessary.  Use
10243         ira_register_move_cost instead of ira_get_register_move_cost.
10244         (move_spill_restore, update_curr_costs): Ditto.
10245         (allocno_spill_priority): Make it inline.
10246         (color_pass): Allocate and free allocno_color_dat and object_color_data.
10247         (struct coalesce_data, coalesce_data_t): New.
10248         (allocno_coalesce_data): New definition.
10249         (ALLOCNO_COALESCE_DATA): New macro.
10250         (merge_allocnos, coalesced_allocno_conflict_p): Use
10251         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10252         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10253         (coalesce_allocnos): Ditto.
10254         (setup_coalesced_allocno_costs_and_nums): Ditto.
10255         (collect_spilled_coalesced_allocnos): Ditto.
10256         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10257         (setup_slot_coalesced_allocno_live_ranges): Ditto.
10258         (coalesce_spill_slots): Ditto.
10259         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
10260         free allocno_coalesce_data.
10261
10262         * ira-conflicts.c: Fix formatting.
10263         (process_regs_for_copy): Call
10264         ira_init_register_move_cost_if_necessary.  Use
10265         ira_register_move_cost instead of ira_get_register_move_cost.
10266         (build_object_conflicts): Optimize.
10267
10268         * ira-costs.c (record_reg_classes): Optimize.  Call
10269         ira_init_register_move_cost_if_necessary.  Use
10270         ira_register_move_cost, ira_may_move_in_cost, and
10271         ira_may_move_out_cost instead of ira_get_register_move_cost and
10272         ira_get_may_move_cost.
10273         (record_address_regs): Ditto.
10274         (scan_one_insn): Optimize.
10275         (find_costs_and_classes): Optimize.
10276         (process_bb_node_for_hard_reg_moves): Call
10277         ira_init_register_move_cost_if_necessary.  Use
10278         ira_register_move_cost instead of ira_get_register_move_cost.
10279
10280         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10281         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10282         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10283         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10284         definitions.
10285         (ira_initiate_emit_data, ira_finish_emit_data)
10286         (create_new_allocno): New functions.
10287         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10288         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10289         Use ira_register_move_cost instead of ira_get_register_move_cost.
10290
10291         * ira-int.h: Fix some comments.
10292         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10293         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10294         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10295         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
10296         add_data.
10297         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
10298         bitfield after mode.  Make hard_regno a short int.  Make
10299         hard_regno short.  Remove first_coalesced_allocno and
10300         next_coalesced_allocno.  Move mem_optimized_dest_p,
10301         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10302         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
10303         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10304         temp, colorable_p.  Add new member add_data.
10305         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10306         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10307         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10308         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10309         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10310         (ALLOCNO_ADD_DATA): New macro.
10311         (ira_emit_data_t): New typedef.
10312         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
10313         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10314         from struct ira_allocno.
10315         (ALLOCNO_EMIT_DATA): New macro.
10316         (ira_allocno_emit_data, allocno_emit_reg): New.
10317         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10318         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10319         (OBJECT_ADD_DATA): New macro.
10320         (ira_reallocate): Remove.
10321         (ira_initiate_emit_data, ira_finish_emit_data): New.
10322         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10323         (ira_init_register_move_cost_if_necessary): New.
10324         (ira_object_conflict_iter_next): Merge into
10325         ira_object_conflict_iter_cond.
10326         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10327
10328         * ira-live.c (process_single_reg_class_operands): Call
10329         ira_init_register_move_cost_if_necessary.  Use
10330         ira_register_move_cost instead of ira_get_register_move_cost.
10331
10332         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
10333
10334         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10335
10336         * ira-costs.c: Fix formatting.
10337         (cost_classes, cost_classes_num): Remove.
10338         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10339         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10340         (cost_classes_del, cost_classes_htab): New.
10341         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10342         (initiate_regno_cost_classes, setup_cost_classes): New.
10343         (setup_regno_cost_classes_by_aclass): New.
10344         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10345         (record_reg_classes): Use regno_cost_classes instead of
10346         cost_classes.  Move checking opposite operand up.
10347         (record_address_regs): Use regno_cost_classes
10348         instead of cost_classes.
10349         (scan_one_insn): Ditto.  Use always general register.
10350         (print_allocno_costs): Use regno_cost_classes instead of
10351         cost_classes.
10352         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
10353         (find_costs_and_classes): Set up cost classes for each registers.
10354         Use also their mode for this.  Use regno_cost_classes instead of
10355         cost_classes.
10356         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10357         cost_classes.
10358         (free_ira_costs, ira_init_costs): Don't use cost_classes.
10359         (ira_costs, ira_set_pseudo_classes): Call
10360         initiate_regno_cost_classes and finish_regno_cost_classes.
10361
10362         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
10363
10364         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10365
10366         * target.def (ira_cover_classes): Remove.
10367
10368         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10369
10370         * doc/tm.texi.in: Ditto.
10371
10372         * ira-conflicts.c: Remove mentioning cover classes from the file.
10373         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
10374         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
10375
10376         * targhooks.c (default_ira_cover_classes): Remove.
10377
10378         * targhooks.h (default_ira_cover_classes): Ditto.
10379
10380         * haifa-sched.c: Remove mentioning cover classes from the file.
10381         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
10382         ira_pressure_classes and ira_pressure_classes_num instead of
10383         ira_reg_class_cover_size and ira_reg_class_cover.  Use
10384         sched_regno_pressure_class instead of sched_regno_cover_class.
10385         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10386         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10387
10388         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
10389         classes from the file.
10390         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10391         (struct object_hard_regs, struct object_hard_regs_node): New.
10392         (struct ira_object): New members profitable_hard_regs,
10393         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10394         (struct ira_allocno): Rename cover_class to aclass.  Rename
10395         cover_class_cost and updated_cover_class_cost to class_cost and
10396         updated_class_cost.  Remove splay_removed_p and
10397         left_conflict_size.  Add new members colorable_p.
10398         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10399         (ALLOCNO_COLORABLE_P): New macro.
10400         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10401         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10402         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10403         (OBJECT_...): Rename parameter C to O.
10404         (OBJECT_PROFITABLE_HARD_REGS): New macro.
10405         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10406         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10407         (struct target_ira_int): New members x_ira_max_memory_move_cost,
10408         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10409         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10410         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10411         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
10412         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
10413         x_ira_reg_class_subunion.
10414         (ira_max_memory_move_cost, ira_max_register_move_cost)
10415         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10416         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10417         (ira_important_class_nums, ira_reg_class_superunion): New macros.
10418         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10419         (ira_reg_class_union): Rename to ira_reg_class_subunion.
10420         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10421         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10422         (ira_tune_allocno_costs_and_cover_classes): Rename to
10423         ira_tune_allocno_costs.
10424         (ira_debug_hard_regs_forest): New.
10425         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10426         (ira_object_conflict_iter_next): Fix comments.
10427         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10428         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10429         cover_class to aclass.
10430         (ira_allocate_and_accumulate_costs): Ditto.
10431         (ira_allocate_and_set_or_copy_costs): Ditto.
10432
10433         * opts.c (decode_options): Remove ira_cover_class check.
10434
10435         * ira-color.c: Remove mentioning cover classes from the file.  Use
10436         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10437         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10438         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
10439         (splay-tree.h): Remove include.
10440         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10441         before copy_freq_compare_func.
10442         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10443         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10444         New definitions.
10445         (hard_regs_roots, hard_regs_node_vec): Ditto.
10446         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10447         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10448         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10449         (create_new_object_hard_regs_node): Ditto.
10450         (add_new_object_hard_regs_node_to_forest): Ditto.
10451         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10452         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10453         Ditto.
10454         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10455         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10456         (remove_unused_object_hard_regs_nodes): Ditto.
10457         (enumerate_object_hard_regs_nodes): Ditto.
10458         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10459         (object_hard_regs_subnode_t): Ditto.
10460         (struct object_hard_regs_subnode): Ditto.
10461         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10462         (setup_object_hard_regs_subnode_index): Ditto.
10463         (get_object_hard_regs_subnodes_num): Ditto.
10464         (form_object_hard_regs_nodes_forest): Ditto.
10465         (finish_object_hard_regs_nodes_tree): Ditto.
10466         (finish_object_hard_regs_nodes_forest): Ditto.
10467         (allocnos_have_intersected_live_ranges_p): Rename to
10468         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
10469         (pseudos_have_intersected_live_ranges_p): Rename to
10470         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
10471         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10472         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10473         (update_copy_costs): Remove assert.  Skip cost update if the hard
10474         reg does not belong the class.
10475         (assign_hard_reg): Process only profitable hard regs.
10476         (uncolorable_allocnos_num): Make it scalar.
10477         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10478         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10479         and ira_reg_class_max_nregs.
10480         (bucket_allocno_compare_func): Check frequency first.
10481         (sort_bucket): Add compare function as a parameter.
10482         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10483         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10484         (push_allocno_to_stack): Rewrite for checking new allocno
10485         colorability.
10486         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
10487         (push_only_colorable): Pass new parameter to sort_bucket.
10488         (push_allocno_to_spill): Remove.
10489         (allocno_spill_priority_compare): Make it inline and rewrite.
10490         (splay_tree_allocate, splay_tree_free): Remove.
10491         (allocno_spill_sort_compare): New function.
10492         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
10493         build and use splay tree.  Choose first allocno in uncolorable
10494         allocno bucket to spill.  Remove setting spill cost.
10495         (all_conflicting_hard_regs): Remove.
10496         (setup_allocno_available_regs_num): Check only profitable hard
10497         regs.  Print info about hard regs nodes.
10498         (setup_allocno_left_conflicts_size): Remove.
10499         (put_allocno_into_bucket): Don't call
10500         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
10501         (improve_allocation): New.
10502         (color_allocnos): Call setup_profitable_hard_regs,
10503         form_object_hard_regs_nodes_forest, improve_allocation,
10504         finish_object_hard_regs_nodes_forest.  Setup spill cost.
10505         (print_loop_title): Use pressure classes.
10506         (color_allocnso): Ditto.
10507         (do_coloring): Remove allocation and freeing splay_tree_node_pool
10508         and allocnos_for_spilling.
10509         (ira_sort_regnos_for_alter_reg): Don't setup members
10510         {first,next}_coalesced_allocno.
10511         (color): Remove allocating and freeing removed_splay_allocno_vec.
10512         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10513         prohibited_class_mode_regs.
10514
10515         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
10516         formatting.
10517         (update_allocno_pressure_excess_length): Use pressure classes.
10518         (inc_register_pressure, dec_register_pressure): Check for pressure
10519         class.
10520         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10521         pressure class.  Use ira_reg_class_nregs instead of
10522         ira_reg_class_max_nregs.
10523         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10524         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10525         (single_reg_class): Use ira_reg_class_nregs instead of
10526         ira_reg_class_max_nregs.
10527         (process_bb_node_lives): Use pressure classes.
10528
10529         * ira-emit.c: Remove mentioning cover classes from the file.  Use
10530         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10531         (change_loop): Use pressure classes.
10532         (modify_move_list): Call ira_set_allocno_class instead of
10533         ira_set_allocno_cover_class.
10534
10535         * ira-build.c: Remove mentioning cover classes from the file.  Use
10536         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10537         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
10538         ALLOCNO_UPDATED_CLASS_COST instead of
10539         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
10540         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10541         (ira_create_allocno): Remove initialization of
10542         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
10543         ALLOCNO_COLORABLE_P.
10544         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10545         Update conflict regs for the objects.
10546         (create_cap_allocno): Remove assert.  Don't propagate
10547         ALLOCNO_AVAILABLE_REGS_NUM.
10548         (ira_free_allocno_costs): New function.
10549         (finish_allocno): Change a part of code into call of
10550         ira_free_allocno_costs.
10551         (low_pressure_loop_node_p): Use pressure classes.
10552         (object_range_compare_func): Don't compare classes.
10553         (setup_min_max_conflict_allocno_ids): Ditto.
10554
10555         * loop-invariant.c: Remove mentioning cover classes from the file.
10556         Use ira_pressure_classes and ira_pressure_classes_num instead of
10557         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
10558         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10559         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10560         Use reg_allocno_class instead of reg_cover_class.
10561         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10562         STACK_REG_COVER_CLASS.
10563         (get_regno_cover_class): Rename to get_regno_pressure_class.
10564         (move_loop_invariants): Initialize and finalize regstat.
10565
10566         * ira.c: Remove mentioning cover classes from the file.  Add
10567         comments about coloring without cover classes.  Use ALLOCNO_CLASS
10568         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10569         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10570         setup_class_subset_and_memory_move_costs.
10571         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10572         (setup_cover_and_important_classes): Rename to
10573         setup_allocno_and_important_classes.
10574         (setup_class_translate_array): New.
10575         (setup_class_translate): Call it for allocno and pressure classes.
10576         (cover_class_order): Rename to allocno_class_order.
10577         (comp_reg_classes_func): Use ira_allocno_class_translate instead
10578         of ira_class_translate.
10579         (reorder_important_classes): Set up ira_important_class_nums.
10580         (setup_reg_class_relations): Set up ira_reg_class_superunion.
10581         (print_class_cover): Rename to print_classes.  Add parameter.
10582         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10583         Print pressure classes too.
10584         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
10585         setup_reg_subclasses.
10586         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10587         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10588         (setup_prohibited_class_mode_regs): Use
10589         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10590         (clarify_prohibited_class_mode_regs): New function.
10591         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10592         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10593         (ira_init_once): Initialize them.
10594         (free_register_move_costs): Process them.
10595         (ira_init): Move calls of find_reg_classes and
10596         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10597         Call clarify_prohibited_class_mode_regs.
10598         (ira_no_alloc_reg): Remove.
10599         (too_high_register_pressure_p): Use pressure classes.
10600
10601         * sched-deps.c: Remove mentioning cover classes from the file.
10602         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
10603         ira_pressure_classes and ira_pressure_classes_num instead of
10604         ira_reg_class_cover_size and ira_reg_class_cover.
10605         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10606         sched_regno_pressure_class instead of sched_regno_cover_class.
10607         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
10608         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10609
10610         * ira.h: Add 2010 to Copyright.
10611         (ira_no_alloc_reg): Remove external.
10612         (struct target_ira): Rename x_ira_hard_regno_cover_class,
10613         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10614         x_ira_class_translate to x_ira_hard_regno_allocno_class,
10615         x_ira_allocno_classes_num, x_ira_allocno_classes, and
10616         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
10617         x_ira_pressure_classes, x_ira_pressure_class_translate, and
10618         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
10619         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
10620         x_ira_no_alloc_regs.
10621         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10622         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10623         ira_allocno_classes_num and ira_allocno_classes.
10624         (ira_class_translate): Rename to ira_allocno_class_translate.
10625         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10626         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10627         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10628         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10629         (ira_no_alloc_regs): New.
10630
10631         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
10632         classes from the file.  Use ALLOCNO_CLASS instead of
10633         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
10634         ALLOCNO_COVER_CLASS_COST.
10635         (regno_cover_class): Rename to regno_aclass.
10636         (record_reg_classes): Use ira_reg_class_subunion instead of
10637         ira_reg_class_union.
10638         (record_address_regs): Check overflow.
10639         (scan_one_insn): Ditto.
10640         (print_allocno_costs): Print total mem cost fore regional allocation.
10641         (print_pseudo_costs): Use REG_N_REFS.
10642         (find_costs_and_classes): Use classes intersected with them on the
10643         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
10644         ira_reg_class_union.  Use ira_allocno_class_translate and
10645         regno_aclass instead of ira_class_translate and regno_cover_class.
10646         Modify code for finding regno_aclass.  Setup preferred classes for
10647         the next pass.
10648         (setup_allocno_cover_class_and_costs): Rename to
10649         setup_allocno_class_and_costs.  Use regno_aclass instead of
10650         regno_cover_class.  Use ira_set_allocno_class instead of
10651         ira_set_allocno_cover_class.
10652         (init_costs, finish_costs): Use regno_aclass instead of
10653         regno_cover_class.
10654         (ira_costs): Use setup_allocno_class_and_costs instead of
10655         setup_allocno_cover_class_and_costs.
10656         (ira_tune_allocno_costs_and_cover_classes): Rename to
10657         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
10658         by processing objects.  Use ira_reg_class_max_nregs instead of
10659         ira_reg_class_nregs.
10660
10661         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10662
10663         * sched-int.h: Remove mentioning cover classes from the file.
10664         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10665
10666         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
10667         classes from the file.
10668         (struct reg_pref): Rename coverclass into allocnoclass.
10669         (reg_cover_class): Rename to reg_allocno_class.
10670
10671         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10672
10673         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10674
10675         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10676
10677         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10678
10679         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10680
10681         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10682
10683         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10684
10685         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10686
10687         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10688
10689         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10690
10691         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10692         (i386_ira_cover_classes): Ditto.
10693
10694         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10695
10696         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10697
10698         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10699
10700         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10701
10702         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10703
10704         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10705
10706         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10707         (mips_ira_cover_classes): Ditto.
10708
10709         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10710
10711         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10712
10713         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10714
10715         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10716
10717         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10718
10719         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10720         (IRA_COVER_CLASSES_VSX): Ditto.
10721
10722         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10723         (rs6000_ira_cover_classes): Ditto.
10724
10725         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10726
10727         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10728
10729         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10730
10731         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10732
10733         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10734
10735         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10736
10737         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10738
10739         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10740
10741         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10742
10743         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10744
10745 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
10746
10747         PR debug/48253
10748         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10749         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10750         dw_fde_unlikely_section_end_label, cold_in_std_section,
10751         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10752         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10753         fields.
10754         (output_fde): Use dw_fde_second_{begin,end} if second is
10755         true, otherwise dw_fde_{begin,end}.
10756         (output_call_frame_info): Test dw_fde_second_begin != NULL
10757         instead of dw_fde_switched_sections.
10758         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10759         fields, initialize new fields.  Initialize in_std_section
10760         unconditionally from the first partition.
10761         (dwarf2out_end_epilogue): Don't override dw_fde_end when
10762         dw_fde_second_begin is non-NULL.
10763         (dwarf2out_switch_text_section): Stop initializing removed
10764         dw_fde_struct fields, initialize new fields, initialize
10765         also dw_fde_end here.  Set dw_fde_switch_cfi even when
10766         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
10767         (struct var_loc_list_def): Add last_before_switch field.
10768         (arange_table, arange_table_allocated, arange_table_in_use,
10769         ARANGE_TABLE_INCREMENT, add_arange): Removed.
10770         (size_of_aranges): Count !in_std_section and !second_in_std_section
10771         hunks in fdes, instead of looking at arange_table_in_use.
10772         (output_aranges): Add aranges_length argument, don't call
10773         size_of_aranges here.  Instead of using aranges_table*
10774         emit ranges for fdes when !in_std_section resp.
10775         !second_in_std_section.
10776         (dw_loc_list): Break ranges crossing section switch.
10777         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
10778         use dw_fde_second_end instead of dw_fde_end as end of last range.
10779         (gen_subprogram_die): Don't call add_arange.  Use
10780         dw_fde_{begin,end} for first partition and if switched
10781         section dw_fde_second_{begin,end} for the second.
10782         (var_location_switch_text_section_1,
10783         var_location_switch_text_section): New functions.
10784         (dwarf2out_begin_function): Initialize cold_text_section even
10785         when function_section () isn't text_section.
10786         (prune_unused_types): Don't walk arange_table.
10787         (dwarf2out_finish): Don't needlessly test
10788         flag_reorder_blocks_and_partition when testing cold_text_section_used.
10789         If info_section_emitted, call size_of_aranges and if it indicates
10790         non-empty .debug_aranges, call output_aranges with the computed
10791         size.  Stop using removed dw_fde_struct fields, use
10792         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10793         for second.
10794
10795         PR debug/48203
10796         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10797         create ENTRY_VALUE if incoming or address of incoming's MEM
10798         is a hard REG.
10799         * dwarf2out.c (mem_loc_descriptor): Don't emit
10800         DW_OP_GNU_entry_value of DW_OP_fbreg.
10801         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10802         on ENTRY_VALUE is able to find the canonical parameter VALUE.
10803         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10804         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10805         ENTRY_VALUE_EXPs.
10806         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10807         is a REG_P or MEM_P with REG_P address, compute hash directly
10808         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10809         (preserve_only_constants): Don't clear VALUES forwaring
10810         ENTRY_VALUE to some other VALUE.
10811
10812 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
10813
10814         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10815         instead of GEN_INT.
10816
10817 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10818
10819         * cfgexpand.c (expand_gimple_cond): Always set the source location and
10820         block before expanding the statement.
10821         (expand_gimple_stmt_1): Likewise.  Set them here...
10822         (expand_gimple_stmt): ...and not here.  Tidy.
10823         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10824         unknown.
10825
10826 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10827
10828         * Makefile.in: New rule for cprop.o.
10829         * gcse.c: Move constant/copy propagation to cprop.c.
10830         (compute_local_properties): Only handle expression tables.
10831         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10832         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10833         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10834         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10835         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10836         compute_cprop_data, find_used_regs, try_replace_reg,
10837         find_avail_set, cprop_jump, constprop_register, cprop_insn,
10838         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10839         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10840         find_bypass_set, reg_killed_on_edge, bypass_block,
10841         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10842         execute_rtl_cprop, pass_rtl_cprop): Move to...
10843         * cprop.c: ...here.  New file, constant/copy propagation for RTL
10844         moved from gcse.c to here with minor cleanups in duplicated code.
10845
10846 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10847
10848         * config/i386/i386.c (flag_opts): Fix a typo in
10849         -mavx256-split-unaligned-store.
10850
10851 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10852
10853         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10854         LIBCALL_VALUE): Remove macros.
10855         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10856         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10857         (h8300_function_value, h8300_libcall_value,
10858         h8300_function_value_regno_p): New functions.
10859
10860 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10861
10862         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10863
10864 2011-03-28  Jeff Law  <law@redhat.com>
10865
10866         * tree-ssa-threadupdate.c (redirect_edges): Call
10867         create_edge_and_update_destination_phis as needed.
10868         (create_edge_and_update_destination_phis): Accept new BB argument.
10869         All callers updated.
10870         (thread_block): Do not update the profile when threading around
10871         intermediate blocks.
10872         (thread_single_edge): Likewise.
10873         (determine_bb_domination_status): If BB is not a successor of the
10874         loop header, return NONDOMINATING.
10875         (register_jump_thread): Note when we register a jump thread around
10876         an intermediate block.
10877         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10878         (thread_across_edge): Use it.
10879
10880 2011-03-28  Tristan Gingold  <gingold@adacore.com>
10881
10882         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10883         when for_return is 2.
10884
10885 2011-03-28  Jeff Law  <law@redhat.com>
10886
10887         * var-tracking.c (canonicalize_values_mark): Delete unused
10888         lhs assignment.
10889         (canonicalize_values_star, set_variable_part): Likewise.
10890         (clobber_variable_part, delete_variable_part): Likewise.
10891
10892 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10893
10894         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10895
10896 2011-03-28  Martin Jambor  <mjambor@suse.cz>
10897
10898         * tree-inline.c (expand_call_inline): Do not check that destination
10899         node is analyzed.
10900         (optimize_inline_calls): Assert that destination node is analyzed.
10901         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10902         not call tree_lowering_passes.
10903         * cgraph.h (cgraph_analyze_function): Declare.
10904         * cgraphunit.c (cgraph_analyze_function): Make public.
10905
10906 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
10907
10908         * config/sparc/sparc-opts.h: New.
10909         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10910         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10911         (sparc_option_override): Store processor_type enumeration rather
10912         than string in cpu_default.  Remove name and enumeration from
10913         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
10914         without using sparc_select.  Use target_flags_explicit instead of
10915         fpu_option_set.
10916         * config/sparc/sparc.h (enum processor_type): Move to
10917         sparc-opts.h.
10918         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10919         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10920         HeaderInclude entry.
10921         (mcpu=, mtune=): Use Var and Enum.
10922         (sparc_processor_type): New Enum and EnumValue entries.
10923
10924 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10925             Iain Sandoe  <iains@gcc.gnu.org>
10926
10927         PR target/48245
10928         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10929
10930 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10931
10932         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10933         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10934         Insert new statements at it in lieu of STMT.
10935         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10936         * tree-vect-stmts.c (vectorizable_store): Likewise.
10937         (vectorizable_load): Likewise.
10938
10939 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
10940
10941         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10942         (divtf3): Ditto.
10943         (multf3): Ditto.
10944         (subtf3): Ditto.
10945
10946 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10947
10948         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10949         unaligned 256bit load/store.
10950         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10951         (*avx_movdqu<avxmodesuffix>): Likewise.
10952
10953 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10954
10955         PR target/48288
10956         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10957         * config/pa/pa.md (iordi3): Use new predicate in expander.
10958         (iorsi3): Likewise.
10959
10960 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
10961
10962         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10963         FUNCTION_VALUE_REGNO_P): Remove macros.
10964         * config/mips/mips-protos.h (mips_function_value): Remove.
10965         * config/mips/mips.c (mips_function_value): Rename to...
10966         (mips_function_value_1): ... this. Make static.  Handle receiving
10967         the function type in 'fn_decl_or_type' argument.
10968         (mips_function_value, mips_libcall_value,
10969         mips_function_value_regno_p): New function.
10970         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10971         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10972
10973 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10974
10975         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10976         and -mavx256-split-unaligned-store.
10977         (ix86_option_override_internal): Split 32-byte AVX unaligned
10978         load/store by default.
10979         (ix86_avx256_split_vector_move_misalign): New.
10980         (ix86_expand_vector_move_misalign): Use it.
10981
10982         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10983         -mavx256-split-unaligned-store.
10984
10985         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10986         256bit load/store.  Generate unaligned store on misaligned memory
10987         operand.
10988         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10989         256bit load/store.
10990         (*avx_movdqu<avxmodesuffix>): Likewise.
10991
10992         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10993         -mavx256-split-unaligned-store.
10994
10995 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
10996
10997         PR target/38598
10998         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10999         Update commentary.
11000
11001 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
11002
11003         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11004         opno arguments with an expand_operand.  Use create_input_operand.
11005         (mips_prepare_builtin_target): Delete.
11006         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11007         functions.
11008         (mips_expand_builtin_direct): Use create_output_operand and
11009         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
11010         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
11011         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11012
11013 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
11014
11015         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11016         function.
11017         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11018
11019 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11020
11021         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11022         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
11023         basic blocks and call commit_edge_insertions directly.
11024         (fixup_abnormal_edges): Move from here to...
11025         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
11026         on the edges and return whether some have actually been inserted.
11027         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11028         compensation code.
11029
11030 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
11031
11032         PR rtl-optimization/48144
11033         * sel-sched-ir.c (merge_history_vect): Factor out from ...
11034         (merge_expr_data): ... here.
11035         (av_set_intersect): Rename to av_set_code_motion_filter.
11036         Update all callers.  Call merge_history_vect when an expression
11037         is found in both sets.
11038         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11039
11040 2011-03-26  Alan Modra  <amodra@gmail.com>
11041
11042         * config/rs6000/predicates.md (word_offset_memref_op): Handle
11043         cmodel medium addresses.
11044         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11045         64-bit gpr loads and stores.
11046         (rs6000_secondary_reload_ppc64): New function.
11047         * config/rs6000/rs6000-protos.h: Declare it.
11048         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11049
11050 2011-03-26  Alan Modra  <amodra@gmail.com>
11051
11052         PR target/47487
11053         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11054         GNU Go in traceback table.
11055
11056 2011-03-25  Richard Henderson  <rth@redhat.com>
11057
11058         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11059         if there are exactly 6 operands.
11060         (set_storage_via_setmem): Similarly.
11061
11062 2011-03-25  Kai Tietz  <ktietz@redhat.com>
11063
11064         * collect2.c (write_c_file_stat): Handle backslash
11065         as right-hand directory separator.
11066         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11067         checking just for slash.
11068         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11069         instead of checking for trailing slash.
11070         * gcc.c (record_temp_file): Use filename_cmp instead
11071         of strcmp.
11072         (do_spec_1): Likewise.
11073         (replace_outfile_spec_function): Likewise.
11074         (is_directory): Use filename_ncmp instead of strncmp.
11075         (print_multilib_info): Likewise.
11076         * gcov.c (find_source): Use filename_cmp instead
11077         instead of strcmp.
11078         (make_gcov_file_name): Fix order of slash/backslash
11079         checks.
11080         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11081         (add_standard_paths): Likewise.
11082         * mips-tfile.c (saber_stop): Handle backslash.
11083         * prefix.c (update_path): Use filename_ncmp instead of
11084         strncmp.
11085         * profile.c (output_location): Use filename_cmp instead
11086         of strcmp.
11087         * read-md.c (handle_toplevel_file): Handle backslash.
11088         * tlink.c (frob_extension):  Likewise.
11089         * tree-cfg.c (same_line_p): Use filename_cmp instead of
11090         strcmp.
11091         * tree-dump.c (dequeue_and_dump): Handle backslash.
11092         * tree.c (get_file_function_name): Likewise.
11093         * gengtype.c (read_input_list): Likewise.
11094         (get_file_realbasename): Likewise.
11095         (get_output_file_with_visibility): Use filename_cmp
11096         instead of strcmp.
11097
11098 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
11099
11100         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11101         case to VFPv1.
11102
11103 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
11104
11105         * fold-const.c (expr_location_or): New function.
11106         (fold_truth_not_expr): Call it.
11107
11108 2011-03-25  Jeff Law  <law@redhat.com>
11109
11110         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11111         va_end.
11112         * c-family/c-common.c (def_fn_type): Likewise.
11113         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11114         * emit-rtl.c (gen_rtvec): Likewise.
11115         * lto/lto-lang.c (def_fn_type): Likewise.
11116
11117 2011-03-25  Richard Guenther  <rguenther@suse.de>
11118
11119         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11120         also generate copies.
11121         (fini_copy_prop): Handle constant values properly.
11122
11123 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
11124
11125         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11126         mode size instead of bitsize with DWARF2_ADDR_SIZE.
11127         (hash_loc_operands, compare_loc_operands): Handle
11128         DW_OP_GNU_entry_value.
11129
11130 2011-03-25  Kai Tietz  <ktietz@redhat.com>
11131
11132         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11133         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11134         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11135         comment and use macro TARGET_64BIT_MS_ABI instead.
11136         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11137         and change default behavior for 32-bit MS_ABI.
11138         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11139         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11140         32-bit, too.
11141         (ix86_cfun_abi): Likewise.
11142         (ix86_maybe_switch_abi): Adjust comment.
11143         (init_cumulative_args): Check for bit-ness in MS_ABI case.
11144         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11145         instead of checking for SYSV_ABI.
11146         (ix86_nsaved_sseregs): Likewise.
11147         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11148         to 16 bytes.
11149         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11150         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11151         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11152         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11153         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11154
11155 2011-03-25  Richard Guenther  <rguenther@suse.de>
11156
11157         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11158         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11159         (verify_gimple): Remove.
11160         * tree-cfg.c (verify_gimple_call): Merge verification
11161         from verify_stmts.
11162         (verify_gimple_phi): Merge verification from verify_stmts.
11163         (verify_gimple_label): New function.
11164         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11165         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11166         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11167         (verify_stmts): Rename to verify_gimple_in_cfg.
11168         (verify_gimple_in_cfg): New function.
11169         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11170         * tree-ssa.c (verify_ssa): Likewise.
11171         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11172
11173 2011-03-25  Richard Guenther  <rguenther@suse.de>
11174
11175         * passes.c (init_optimization_passes): Add FRE pass after
11176         early SRA.
11177
11178 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
11179             Andrew Stubbs  <ams@codesourcery.com>
11180
11181         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11182         for Cortex-A8.
11183         (arm_movdi_vfp_cortexa8): New pattern.
11184         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11185         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11186         instructions when tuning for Cortex-A8.  Set attribute "arch".
11187         * config/arm/arm.md: Move include arm-tune.md up a bit.
11188         (define_attr "arch"): Add "onlya8" and "nota8" values.
11189         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11190
11191 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
11192
11193         PR bootstrap/48282
11194         Revert:
11195         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11196
11197         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11198         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
11199         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11200         * passes.c (init_optimization_passes): Move
11201         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11202
11203 2011-03-25  Kai Tietz  <ktietz@redhat.com>
11204
11205         * c-typeck.c (comptypes_internal): Replace target
11206         hook call of comp_type_attributes by version in tree.c file.
11207         * gimple.c (gimple_types_compatible_p_1): Likewise.
11208         * tree-ssa.c (useless_type_conversion_p): Likewise.
11209         * tree.c (build_type_attribute_qual_variant): Likewise.
11210         (attribute_value_equal): New static helper function.
11211         (comp_type_attributes): New function.
11212         (merge_attributes): Use attribute_value_equal for comparison.
11213         (attribute_list_contained): Likewise.
11214         * tree.h (comp_type_attributes): New prototype.
11215
11216 2011-03-25  Richard Guenther  <rguenther@suse.de>
11217
11218         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11219         of complex types at -O0.
11220         (verify_gimple_assign_binary): Likewise.
11221         (verify_gimple_assign_ternary): Likewise.
11222
11223 2011-03-24  Mark Wielaard  <mjw@redhat.com>
11224
11225         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11226         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11227
11228 2011-03-24  Mark Wielaard  <mjw@redhat.com>
11229
11230         PR debug/48041
11231         * dwarf2out.c (output_abbrev_section): Only write table when
11232         abbrev_die_table_in_use > 1.
11233
11234 2011-02-24  Richard Henderson  <rth@redhat.com>
11235
11236         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11237         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11238         (alpha_expand_unaligned_load_words): Use extql.
11239         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11240         (emit_insxl): Handle all modes for consistency.
11241
11242 2011-02-24  Richard Henderson  <rth@redhat.com>
11243
11244         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11245         (alpha_expand_unaligned_load): Likewise.
11246         (alpha_expand_unaligned_store): Likewise.
11247         (alpha_expand_unaligned_load_words): Likewise.
11248         (alpha_expand_unaligned_store_words): Likewise.
11249         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11250         (alpha_split_lock_test_and_set_12): Likewise.
11251         (print_operand, alpha_fold_builtin_extxx): Likewise.
11252         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11253         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11254         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11255         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11256         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11257         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11258         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11259         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11260         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11261         (extwl, extll, extql): Similarly.
11262         (inswh, inslh, insqh): Similarly.
11263         (mskbl, mskwl, mskll, mskql): Similarly.
11264         (mskwh, msklh, mskqh): Similarly.
11265
11266 2011-02-24  Richard Henderson  <rth@redhat.com>
11267
11268         * config/alpha/alpha.md (attribute isa): Add er, ner.
11269         (attribute enabled): Handle them.
11270         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11271
11272 2011-02-24  Richard Henderson  <rth@redhat.com>
11273
11274         * config/alpha/alpha.md (attribute isa): Add vms.
11275         (attribute enabled): Handle it.
11276         (*movsf): Merge *movsf_{nofix,fix,nofp}.
11277         (*movdf): Merge *movdf_{nofix,fix,nofp}.
11278         (*movtf): Rename from *movtf_internal for consistency.
11279         (*movsi): Merge with *movsi_nt_vms.
11280         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11281         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11282         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11283         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11284
11285 2011-02-24  Richard Henderson  <rth@redhat.com>
11286
11287         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11288         (extendqisi2, extendhisi2): Likewise.
11289         (extendqidi2): Simplify BWX/non-BWX expansions.
11290         (extendhidi2): Similarly.
11291
11292 2011-02-24  Richard Henderson  <rth@redhat.com>
11293
11294         * config/alpha/alpha.md (attribute isa): New.
11295         (attribute enabled): New.
11296         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11297         (zero_extendqisi2, zero_extendqidi2): Similarly.
11298         (zero_extendhisi2, zero_extendhidi2): Similarly.
11299         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11300
11301 2011-02-24  Richard Henderson  <rth@redhat.com>
11302
11303         * config/alpha/predicates.md (input_operand): Revert last change;
11304         update comment to mention 32-bit VMS rather than Windows.
11305
11306 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11307
11308         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11309         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
11310         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11311         * passes.c (init_optimization_passes): Move
11312         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11313
11314 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11315
11316         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11317
11318 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
11319
11320         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11321         correctly.
11322
11323 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
11324
11325         PR debug/48204
11326         * simplify-rtx.c (simplify_const_unary_operation): Call
11327         real_convert when changing mode class with FLOAT_EXTEND.
11328
11329 2011-03-24  Nick Clifton  <nickc@redhat.com>
11330
11331         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11332         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11333         * config/rx/rx.c (rx_option_override): Set align_jumps,
11334         align_loops and align_labels if not set by the user.
11335         (rx_align_for_label): New function.
11336         (rx_max_skip_for_label): New function.
11337         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11338         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11339         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11340         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11341         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11342
11343 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11344
11345         PR rtl-optimization/48263
11346         * optabs.c (expand_binop_directly): Reinstate convert_modes code
11347         and original commutative_p handling.  Use maybe_gen_insn.
11348
11349 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11350
11351         * reload.c (find_reloads_subreg_address): Add address_reloaded
11352         parameter and return true there if the full address has been
11353         reloaded.
11354         (find_reloads_toplev): Pass address_reloaded flag.
11355         (find_reloads_address_1): Don't use address_reloaded parameter.
11356
11357 2011-03-24  Jeff Law  <law@redhat.com>
11358
11359         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11360         unused variable "ann".
11361         (remove_unused_locals): Likewise.
11362
11363         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11364         statement.
11365
11366         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11367         after it is freed.
11368
11369 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11370
11371         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11372         for invalid symbolic addresses.
11373         (s390_secondary_reload): Don't use s390_check_symref_alignment for
11374         larl operands.
11375
11376 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11377
11378         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11379         the argument in calls to fold_truth_not_expr.
11380
11381 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11382
11383         * tree.c (record_node_allocation_statistics): New function.
11384         (make_node_stat, copy_node_stat, build_string): Call it.
11385         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11386         (build1_stat, build_omp_clause): Likewise.
11387
11388 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11389
11390         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11391         last commit.
11392
11393 2011-03-24  Richard Guenther  <rguenther@suse.de>
11394
11395         PR tree-optimization/48271
11396         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11397         blocks that still exist.
11398
11399 2011-03-24  Richard Guenther  <rguenther@suse.de>
11400
11401         PR tree-optimization/48270
11402         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11403         not free datarefs before ddrs.
11404
11405 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11406
11407         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11408         from the address built for a reference with variable offset.
11409
11410 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
11411
11412         PR target/48237
11413         * config/i386/i386.md (*movdf_internal_rex64): Do not split
11414         alternatives that can be handled with movq or movabsq insn.
11415         (*movdf_internal): Disable for !TARGET_64BIT.
11416         (*movdf_internal_nointeger): Ditto.
11417         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11418
11419 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11420
11421         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11422         (FUNCTION_ARG_ADVANCE): Likewise.
11423         * tm.texi.in: Change references to them to hook references.
11424         * tm.texi: Regenerate.
11425         * targhooks.c (default_function_arg): Eliminate check for target macro.
11426         (default_function_incoming_arg): Likewise.
11427         (default_function_arg_advance): Likewise.
11428         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11429         (function_arg_advance): Likewise.
11430         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11431
11432 2011-03-24  Richard Guenther  <rguenther@suse.de>
11433
11434         PR middle-end/48269
11435         * tree-object-size.c (addr_object_size): Do not double-account
11436         for MEM_REF offsets.
11437
11438 2011-03-24  Diego Novillo  <dnovillo@google.com>
11439
11440         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11441         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11442         (lto_input_data_block): Move from lto-opts.c.  Make extern.
11443         Update all users.
11444         (lto_input_string): Rename from input_string.  Make extern.
11445         Update all users.
11446         * lto-streamer-out.c (lto_output_string_with_length): Rename from
11447         output_string_with_length.
11448         Output 0 to indicate a non-NULL string.  Update all callers to
11449         not emit 0.
11450         (lto_output_string): Rename from output_string.  Make extern.
11451         Update all users.
11452         (lto_output_decl_state_streams): Make extern.
11453         (lto_output_decl_state_refs): Make extern.
11454         * lto-streamer.h (lto_input_string): Declare.
11455         (lto_input_data_block): Declare.
11456         (lto_output_string): Declare.
11457         (lto_output_string_with_length): Declare.
11458         (lto_output_decl_state_streams): Declare.
11459         (lto_output_decl_state_refs): Declare.
11460
11461 2011-03-24  Richard Guenther  <rguenther@suse.de>
11462
11463         PR tree-optimization/46562
11464         * tree.c (build_invariant_address): New function.
11465         * tree.h (build_invariant_address): Declare.
11466         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11467         a renamed function moved ...
11468         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11469         Take valueization callback parameter.
11470         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11471         * gimple-fold.h: New file.
11472         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11473         (ccp_fold, fold_const_aggregate_ref,
11474         fold_ctor_reference, fold_nonarray_ctor_reference,
11475         fold_array_ctor_reference, fold_string_cst_ctor_reference,
11476         get_base_constructor): Move ...
11477         * gimple-fold.c: ... here.
11478         (gimple_fold_stmt_to_constant_1): New function
11479         split out from ccp_fold.  Take a valueization callback parameter.
11480         Valueize all operands.
11481         (gimple_fold_stmt_to_constant): New wrapper function.
11482         (fold_const_aggregate_ref_1): New function split out from
11483         fold_const_aggregate_ref.  Take a valueization callback parameter.
11484         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11485         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11486         invariant POINTER_PLUS_EXPRs to invariant form.
11487         (vn_valueize): New function.
11488         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11489         * tree-vrp.c (vrp_valueize): New function.
11490         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11491         to fold statements to constants.
11492         * tree-ssa-pre.c (eliminate): Properly guard propagation of
11493         function declarations.
11494         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11495         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11496
11497 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11498
11499         * config/h8300/predicates.md (jump_address_operand): Fix register
11500         mode check.
11501
11502 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
11503
11504         * doc/invoke.texi (max-stores-to-sink): Document.
11505         * params.h (MAX_STORES_TO_SINK): Define.
11506         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11507         if either vectorization or if-conversion is disabled.
11508         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11509         tree-vect-data-refs.c vect_equal_offsets.
11510         (dr_equal_offsets_p): New function.
11511         (find_data_references_in_bb): Remove static.
11512         * tree-data-ref.h (find_data_references_in_bb): Declare.
11513         (dr_equal_offsets_p): Likewise.
11514         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11515         (vect_drs_dependent_in_basic_block): Update calls to
11516         vect_equal_offsets.
11517         (vect_check_interleaving): Likewise.
11518         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11519         (cond_if_else_store_replacement): Rename to...
11520         (cond_if_else_store_replacement_1): ... this.  Change arguments and
11521         documentation.
11522         (cond_if_else_store_replacement): New function.
11523         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11524         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11525
11526 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
11527
11528         PR target/46934
11529         * config/arm/arm.md (casesi): Use the gen_int_mode() function
11530         to subtract lower bound instead of GEN_INT().
11531
11532 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
11533
11534         PR other/48179
11535         PR other/48221
11536         PR other/48234
11537         * doc/extend.texi (Alignment): Move section to match order in TOC.
11538         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11539         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11540
11541 2011-03-23  Jeff Law  <law@redhat.com>
11542
11543         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11544         before removing the edge.
11545
11546         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11547         it may have been freed by redirect_branch_edge or
11548         redirect_edge_succ_nodup.
11549
11550 2011-03-23  Richard Guenther  <rguenther@suse.de>
11551
11552         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11553         (check_va_list_escapes): Likewise.
11554         (check_all_va_list_escapes): Likewise.
11555
11556 2011-03-23  Richard Guenther  <rguenther@suse.de>
11557
11558         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11559         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11560         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11561         (alias.o): Likewise.
11562         (ipa-type-escape.o): Remove.
11563         (ipa-struct-reorg.o): Likewise.
11564         (GTFILES): Remove ipa-struct-reorg.c.
11565         * alias.c: Do not include ipa-type-escape.h.
11566         * tree-ssa-alias.c: Likewise.
11567         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11568         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11569         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11570         and ipa-type-escape passes.
11571         * tree-pass.h (pass_ipa_type_escape): Remove.
11572         (pass_ipa_struct_reorg): Likewise.
11573         * ipa-struct-reorg.h: Remove.
11574         * ipa-struct-reorg.c: Likewise.
11575         * ipa-type-escape.h: Likewise.
11576         * ipa-type-escape.c: Likewise.
11577         * doc/invoke.texi (-fipa-struct-reorg): Remove.
11578         (--param struct-reorg-cold-struct-ratio): Likewise.
11579         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11580         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11581         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11582
11583 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11584
11585         * config/s390/2084.md: Enable all insn reservations also for z9_ec
11586         cpu attribute value.
11587         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11588         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11589         * config/s390/s390.c (processor_flags_table): New constant array.
11590         (s390_handle_arch_option): Remove.
11591         (s390_handle_option): Remove s390_handle_arch_option invocations
11592         and OPT_mwarn_framesize_ handling.
11593         (s390_option_override): Remove s390_handle_arch_option invocation.
11594         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11595         warnings.
11596         * config/s390/s390.md (cpu attribute): Add z9_ec value.
11597         * config/s390/s390.opt (s390_tune, s390_arch)
11598         (march=): Replace s390_arch_option enum and values with
11599         processor_type.  Set variable name to s390_arch.  Set
11600         initialization value.
11601         (mtune=): Replace s390_arch_option with processor_type.  Set
11602         variable name to s390_tune.  Set initialization value.
11603
11604 2011-03-23  Julian Brown  <julian@codesourcery.com>
11605
11606         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11607         accesses which are not naturally aligned.
11608
11609 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11610
11611         PR target/47553
11612         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11613
11614 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11615
11616         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11617         parameter from "int" to "enum insn_code".
11618         (expand_operand_type): New enum.
11619         (expand_operand): New structure.
11620         (create_expand_operand): New function.
11621         (create_fixed_operand, create_output_operand): Likewise
11622         (create_input_operand, create_convert_operand_to): Likewise.
11623         (create_convert_operand_from, create_address_operand): Likewise.
11624         (create_integer_operand): Likewise.
11625         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11626         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11627         (expand_insn, expand_jump_insn): Likewise.
11628         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11629         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11630         (expand_movstr, expand_builtin___clear_cache): Likewise.
11631         (expand_builtin_lock_release): Likewise.
11632         * explow.c (allocate_dynamic_stack_space): Likewise.
11633         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
11634         and use the default handling in that case.
11635         * expmed.c (check_predicate_volatile_ok): Delete.
11636         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11637         (emit_cstore): Likewise.
11638         * expr.c (emit_block_move_via_movmem): Likewise.
11639         (set_storage_via_setmem, expand_assignment): Likewise.
11640         (emit_storent_insn, try_casesi): Likewise.
11641         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
11642         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11643         (expand_vec_shift_expr, expand_binop_directly): Likewise.
11644         (expand_twoval_unop, expand_twoval_binop): Likewise.
11645         (expand_unop_direct, emit_indirect_jump): Likewise.
11646         (emit_conditional_move, vector_compare_rtx): Likewise.
11647         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11648         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11649         (expand_sync_lock_test_and_set): Likewise.
11650         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
11651         (emit_unop_insn): Likewise.
11652         (expand_copysign_absneg): Change icode to an insn_code.
11653         (create_convert_operand_from_type): New function.
11654         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11655         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11656         (expand_insn, expand_jump_insn): Likewise.
11657         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11658         than const_int_operand for operand 2.
11659
11660 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11661
11662         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11663         if possible.
11664
11665 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11666
11667         * emit-rtl.c (emit_pattern_before_noloc): New function.
11668         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11669         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11670         (emit_pattern_after_noloc): New function.
11671         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11672         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11673
11674 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11675
11676         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11677         (__ffsDI2): Likewise.
11678
11679 2011-03-22  Richard Henderson  <rth@redhat.com>
11680
11681         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11682         of !TARGET_ABI_OPEN_VMS.
11683         (alpha_trampoline_init, alpha_start_function): Likewise.
11684         (alpha_expand_epilogue, alpha_file_start): Likewise.
11685         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11686         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11687         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11688         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11689         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11690
11691 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * config/s390/s390-opts.h: New.
11694         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11695         s390_arch_flags, s390_warn_framesize, s390_stack_size,
11696         s390_stack_guard): Remove.
11697         (s390_handle_arch_option): Return void.  Take enum
11698         s390_arch_option value instead of string and searching array.
11699         (s390_handle_option): Don't assert that global structures are in
11700         use.  Access variables via opts pointer.  Use error_at.  Don't use
11701         sscanf for -mstack-guard= or -mstack-size=.  Update call to
11702         s390_handle_arch_option.
11703         (s390_option_override): Update call to s390_handle_arch_option.
11704         (s390_emit_prologue): Use %d format for s390_stack_size in
11705         diagnostic.  Use %wd for HOST_WIDE_INT.
11706         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11707         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11708         * config/s390/s390.opt (config/s390/s390-opts.h): New
11709         HeaderInclude entry.
11710         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11711         s390_arch_flags, s390_warn_framesize): New Variable entries.
11712         (s390_arch_option): New Enum and EnumValue entries.
11713         (march=): Use Enum instead of Var.
11714         (mstack-guard=, mstack-size=): Use UInteger and Var.
11715         (mtune=): Use Enum.
11716
11717 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11718
11719         * config/score/score.c (score_handle_option): Don't assert that
11720         global structures are in use.  Access target_flags via opts
11721         pointer.  Use value of -march= option to determine target_flags
11722         settings.
11723         * config/score/score.opt (march=): Use Enum.
11724         (score_arch): New Enum and EnumValue entries.
11725
11726 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11727
11728         * config/mep/mep.c (option_mtiny_specified): Remove.
11729         (mep_option_override): Move register handling for -mivc2 from
11730         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
11731         instead of option_mtiny_specified.
11732         (mep_handle_option): Access target_flags via opts pointer.  Don't
11733         assert that global structures are in use.  Defer part of -mivc2
11734         handling and move it to mep_option_override.
11735         * config/mep/mep.opt (IVC2): New Mask entry.
11736         (mivc2): Use Var and Defer instead of Mask.
11737
11738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11739
11740         * config/v850/v850-opts.h: New.
11741         * config/v850/v850.c (small_memory): Replace with
11742         small_memory_physical_max array.  Make that array static const.
11743         (v850_handle_memory_option): Take integer value of argument.  Take
11744         gcc_options pointer, option text and location.  Return void.
11745         Update for changes to small memory structures.
11746         (v850_handle_option): Access target_flags via opts pointer.  Don't
11747         assert that global structures are in use.  Update calls to
11748         v850_handle_memory_option.
11749         (v850_encode_data_area): Update references to small memory settings.
11750         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11751         (enum small_memory_type): Move to v850-opts.h.
11752         * config/v850/v850.opt (config/v850/v850-opts.h): New
11753         HeaderInclude entry.
11754         (small_memory_max): New Variable entry.
11755         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
11756         (mtda, mzda): Likewise.
11757
11758 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11759
11760         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11761         pointer.  Don't assert that global structures are in use.
11762
11763 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11764
11765         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11766         via opts pointer.  Don't assert that global structures are in use.
11767
11768 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11769
11770         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11771         (munix=93): Use Var.
11772         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11773         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11774         * config/pa/pa-opts.h: New.
11775         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11776         (pa_handle_option): Don't assert that global structures are in
11777         use.  Access target_flags via opts pointer.  Don't handle
11778         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11779         OPT_munix_98 here.
11780         (pa_option_override): Handle deferred OPT_mfixed_range_.
11781
11782 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11783
11784         * config/mn10300/mn10300-opts.h: New.
11785         * config/mn10300/mn10300.c (mn10300_processor,
11786         mn10300_tune_string): Remove.
11787         (mn10300_handle_option): Don't assert that global structures are
11788         in use.  Access mn10300_processor via opts pointer.  Don't handle
11789         OPT_mtune_ here.
11790         * config/mn10300/mn10300.h (enum processor_type): Move to
11791         mn10300-opts.h.
11792         (mn10300_processor): Remove.
11793         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11794         HeaderInclude entry.
11795         (mn10300_processor): New Variable entry.
11796         (mtune=): Use Var.
11797
11798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11799
11800         * config/microblaze/microblaze.c: Don't include opts.h.
11801         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11802         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11803         (mno-clearbss): Use Var and Warn.
11804
11805 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11806
11807         * config/m32r/m32r-opts.h: New.
11808         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11809         (m32r_handle_option): Don't assert that global structures are in
11810         use.  Access target_flags and m32r_cache_flush_func via opts
11811         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
11812         OPT_mno_flush_trap here.
11813         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11814         include of m32r-opts.h.
11815         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11816         HeaderInclude entry.
11817         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11818         (mmodel=): Use Enum and Var.
11819         (m32r_model): New Enum and EnumValue entries.
11820         (mno-flush-trap): Use Var.
11821         (msdata=): Use Enum and Var.
11822         (m32r_sdata): New Enum and EnumValue entries.
11823
11824 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11825
11826         * config/m32c/m32c.c: Don't include opts.h.
11827         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11828         m32c_handle_option): Remove.
11829         (m32c_option_override): Check global_options_set.x_target_memregs
11830         instead of target_memregs_set.
11831         * config/m32c/m32c.h (target_memregs): Remove.
11832         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11833         variable.
11834
11835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11836
11837         * config/iq2000/iq2000-opts.h: New.
11838         * config/iq2000/iq2000.c: Don't include opts.h.
11839         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11840         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11841         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11842         HeaderInclude entry.
11843         (iq2000_tune): New Variable entry.
11844         (march=): Add comment.  Use Enum.
11845         (iq2000_arch): New Enum and EnumValue entries.
11846         (mcpu=): Use Enum and Var.
11847         (iq2000_tune): New Enum and EnumValue entries.
11848
11849 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11850
11851         * config/ia64/ia64-opts.h: New.
11852         * config/ia64/ia64.c (ia64_tune): Remove.
11853         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11854         here.  Use error_at.
11855         (ia64_option_override): Handle deferred OPT_mfixed_range_.
11856         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11857         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11858         HeaderInclude entry.
11859         (ia64_tune): New Variable entry.
11860         (mfixed-range=): Use Defer and Var.
11861         (mtune=): Use Enum and Var.
11862         (ia64_tune): New Enum and EnumValue entries.
11863
11864 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11865
11866         * config/frv/frv-opts.h: New.
11867         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11868         frv-opts.h.
11869         (frv_cpu_type): Remove.
11870         * config/frv/frv.c: Don't include opts.h.
11871         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11872         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11873         (frv_cpu_type): New Variable entry.
11874         (frv_cpu): New Enum and EnumValue entries.
11875
11876 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * config/cris/cris.c (cris_handle_option): Access target_flags via
11879         opts pointer.  Don't assert that global structures are in use.
11880         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11881         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11882
11883 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * config/bfin/bfin-opts.h: New.
11886         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11887         bfin_si_revision, bfin_workarounds): Remove.
11888         (bfin_cpus): Make static const.
11889         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11890         not bfin_lib_id_given.
11891         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
11892         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11893         pointer. Use error_at.  Don't assert that global structures are in use.
11894         * config/bfin/bfin.h: Include bfin-opts.h.
11895         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11896         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11897         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11898         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11899         entries.
11900
11901 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11902
11903         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11904         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11905         or -msoft-float here.
11906         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11907         -msoft-float and -mhard-float.
11908         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11909         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11910         msoft-float.
11911         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11912         -msoft-float.
11913         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11914         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11915         not mhard-float.
11916         (LIBGCC_SPEC): Don't handle -msoft-float.
11917         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11918         -mhard-float.
11919         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11920         msoft-float.
11921         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11922         -mfloat-abi=*, not -msoft-float and -mhard-float.
11923         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11924         -msoft-float.
11925         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11926         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11927         mhard-float and msoft-float.
11928         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11929         mfloat-abi=soft in comments, not mhard-float and msoft-float.
11930         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11931         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11932         mhard-float.
11933         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11934         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11935         msoft-float.
11936         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11937         not mhard-float.
11938         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11939         not msoft-float.
11940
11941 2011-03-22  Richard Henderson  <rth@redhat.com>
11942
11943         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11944         TARGET_ABI_WINDOWS_NT.
11945         (alpha_output_function_end_prologue): Likewise.
11946         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11947         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11948         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11949         (trap, *movsi_nt_vms): Likewise.
11950         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11951         (*tablejump_osf_nt_internal): Remove.
11952         * config/alpha/predicates.md (input_operand): Only test Pmode.
11953
11954 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11955
11956         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11957         via opts pointer.  Use error_at.  Don't assert that global
11958         structures are in use.
11959
11960 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11961
11962         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11963         (ix86_handle_option): Access ix86_isa_flags and
11964         ix86_isa_flags_explicit via opts pointer.  Don't assert that
11965         global structures are in use.
11966         (ix86_function_specific_save, ix86_function_specific_restore):
11967         Update ix86_isa_flags_explicit field name.
11968         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11969         (ix86_isa_flags_explicit): Rename TargetSave entry to
11970         x_ix86_isa_flags_explicit.
11971
11972 2011-03-22  Richard Henderson  <rth@redhat.com>
11973
11974         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11975         (alpha_option_override, direct_return): Likewise.
11976         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11977         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11978         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11979         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11980         (alpha_expand_epilogue, alpha_end_function): Likewise.
11981         (alpha_init_libfuncs): Likewise.
11982         (struct machine_function): Remove unicosmk members.
11983         (print_operand) ['t']: Remove.
11984         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11985         unicosmk_output_module_name, unicosmk_output_common,
11986         current_section_align, unicosmk_output_text_section_asm_op,
11987         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11988         unicosmk_section_type_flags, unicosmk_unique_section,
11989         unicosmk_asm_named_section, unicosmk_insert_attributes,
11990         unicosmk_output_align, unicosmk_defer_case_vector,
11991         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11992         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11993         unicosmk_output_ssib, unicosmk_add_call_info_word,
11994         unicosmk_extern_head, unicosmk_output_default_externs,
11995         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11996         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11997         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11998         * config/alpha/alpha-protos.h: Update.
11999         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12000         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12001         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12002         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12003         (*mulsi_se, mulvsi3): Likewise.
12004         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12005         (*divmodsi_internal, call, call_value, realign): Likewise.
12006         (moddi3, umoddi3): Likewise; remove duplicate expander.
12007         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12008         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12009         (*movdi_nofix): Remove r/U alternative.
12010         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12011         * config/alpha/constraints.md ("U"): Remove.
12012         * config/alpha/predicates.md (call_operand"): Don't test
12013         TARGET_ABI_UNICOSMK.
12014
12015 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12016
12017         * target.def (handle_option): Take gcc_options and
12018         cl_decoded_option pointers and location_t.
12019         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12020         * doc/tm.texi: Regenerate.
12021         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12022         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12023         * lto-opts.c (lto_reissue_options): Generate option structure for
12024         targetm.handle_option call.
12025         * opts.c (target_handle_option): Update call to
12026         targetm.handle_option.  Remove assertions about values now passed
12027         down to hook.
12028         * targhooks.c (default_target_handle_option): New.
12029         * targhooks.h (default_target_handle_option): Declare.
12030         * config/alpha/alpha.c: Include opts.h.
12031         (alpha_handle_option): Update to new hook interface.
12032         * config/arm/arm.c: Include opts.h.
12033         (arm_handle_option): Update to new hook interface.
12034         * config/arm/t-arm (arm.o): Update dependencies.
12035         * config/bfin/bfin.c: Include opts.h.
12036         (bfin_handle_option): Update to new hook interface.
12037         * config/cris/cris.c: Include opts.h.
12038         (cris_handle_option): Update to new hook interface.
12039         * config/frv/frv.c: Include opts.h.
12040         (frv_handle_option): Update to new hook interface.
12041         * config/i386/i386.c: Include opts.h.
12042         (ix86_handle_option): Update to new hook interface.
12043         (ix86_valid_target_attribute_inner_p): Generate option structure
12044         for call to ix86_handle_option.
12045         * config/i386/t-i386 (i386.o): Update dependencies.
12046         * config/ia64/ia64.c: Include opts.h.
12047         (ia64_handle_option): Update to new hook interface.
12048         * config/ia64/t-ia64 (ia64.o): Update dependencies.
12049         * config/iq2000/iq2000.c: Include opts.h.
12050         (iq2000_handle_option): Update to new hook interface.
12051         * config/m32c/m32c.c: Include opts.h.
12052         (m32c_handle_option): Update to new hook interface.
12053         * config/m32r/m32r.c: Include opts.h.
12054         (m32r_handle_option): Update to new hook interface.
12055         * config/m68k/m68k.c: Include opts.h.
12056         (m68k_handle_option): Update to new hook interface.
12057         * config/mep/mep.c: Include opts.h.
12058         (mep_handle_option): Update to new hook interface.
12059         * config/microblaze/microblaze.c: Include opts.h.
12060         (microblaze_handle_option): Update to new hook interface.
12061         * config/mips/mips.c: Include opts.h.
12062         (mips_handle_option): Update to new hook interface.
12063         * config/mn10300/mn10300.c: Include opts.h.
12064         (mn10300_handle_option): Update to new hook interface.
12065         * config/pa/pa.c: Include opts.h.
12066         (pa_handle_option): Update to new hook interface.
12067         * config/pdp11/pdp11.c: Include opts.h.
12068         (pdp11_handle_option): Update to new hook interface.
12069         * config/rs6000/rs6000.c: Include opts.h.
12070         (rs6000_handle_option): Update to new hook interface.
12071         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12072         * config/rx/rx.c: Include opts.h.
12073         (rx_handle_option): Update to new hook interface.
12074         * config/s390/s390.c: Include opts.h.
12075         (s390_handle_option): Update to new hook interface.
12076         * config/score/score.c: Include opts.h.
12077         (score_handle_option): Update to new hook interface.
12078         * config/sh/sh.c: Include opts.h.
12079         (sh_handle_option): Update to new hook interface.
12080         * config/sparc/sparc.c: Include opts.h.
12081         (sparc_handle_option): Update to new hook interface.
12082         * config/v850/v850.c: Include opts.h.
12083         (v850_handle_option): Update to new hook interface.
12084
12085 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12086
12087         * gcc.c (driver_unknown_option_callback): Only permit and save
12088         unknown -Wno- options.
12089         (driver_wrong_lang_callback): Save options directly instead of via
12090         driver_unknown_option_callback.
12091
12092 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
12093
12094         * combine.c (simplify_set): Try harder to find the best CC mode when
12095         simplifying a nested COMPARE on the RHS.
12096
12097 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
12098
12099         * config/alpha/gnu.h: Remove.
12100         * config/arc: Remove directory.
12101         * config/arm/netbsd.h: Remove.
12102         * config/arm/t-pe: Remove.
12103         * config/crx: Remove directory.
12104         * config/i386/netbsd.h: Remove.
12105         * config/m68hc11: Remove directory.
12106         * config/m68k/uclinux-oldabi.h: Remove.
12107         * config/mcore/mcore-pe.h: Remove.
12108         * config/mcore/t-mcore-pe: Remove.
12109         * config/netbsd-aout.h: Remove.
12110         * config/rs6000/gnu.h: Remove.
12111         * config/sh/sh-symbian.h: Remove.
12112         * config/sh/symbian-base.c: Remove.
12113         * config/sh/symbian-c.c: Remove.
12114         * config/sh/symbian-cxx.c: Remove.
12115         * config/sh/symbian-post.h: Remove.
12116         * config/sh/symbian-pre.h: Remove.
12117         * config/sh/t-symbian: Remove.
12118         * config/svr3.h: Remove.
12119         * config/vax/netbsd.h: Remove.
12120         * config.build: Don't handle i[34567]86-*-pe.
12121         * config.gcc: Remove handling of deprecations for most deprecated
12122         targets.
12123         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12124         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12125         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12126         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12127         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12128         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12129         Remove cases.
12130         * config.host: Don't handle i[34567]86-*-pe.
12131         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12132         (ASM_SPEC32): Don't handle -mcall-gnu.
12133         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12134         -mcall-gnu.
12135         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12136         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12137         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12138         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12139         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12140         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12141         conditional on SYMBIAN.
12142         * configure.ac: Don't handle powerpc*-*-gnu*.
12143         * configure: Regenerate.
12144         * doc/extend.texi (interrupt attribute): Don't mention CRX.
12145         * doc/install-old.texi (m6811, m6812): Don't mention.
12146         * doc/install.texi (arc-*-elf*): Don't document multilib option.
12147         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12148         (m68k-uclinuxoldabi): Don't mention.
12149         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12150         Remove.
12151         (-mcall-gnu): Remove.
12152         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12153         families): Remove constraint documentation.
12154
12155 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
12156
12157         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12158         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12159         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12160
12161 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12162
12163         PR target/48226
12164         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12165         vector when peeking at the next token for vector, don't expand the
12166         keywords.
12167
12168 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
12169
12170         * config/avr/avr-protos.h (expand_epilogue): Change prototype
12171         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12172         * config/avr/avr.c (init_cumulative_args)
12173         (avr_function_arg_advance): Use it.
12174         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12175         sibcall epilogues.
12176         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12177         (avr_function_ok_for_sibcall): ...this new function.
12178         (avr_lookup_function_attribute1): New static Function.
12179         (avr_naked_function_p, interrupt_function_p)
12180         (signal_function_p, avr_OS_task_function_p)
12181         (avr_OS_main_function_p): Use it.
12182         * config/avr/avr.md ("sibcall", "sibcall_value")
12183         ("sibcall_epilogue"): New expander.
12184         ("*call_insn", "*call_value_insn"): New insn.
12185         ("call_insn", "call_value_insn"): Remove
12186         ("call", "call_value", "epilogue"): Change expander to handle
12187         sibling calls.
12188
12189 2011-03-21  Nick Clifton  <nickc@redhat.com>
12190
12191         * doc/invoke.texi (Overall Options): Move closing brace to end of
12192         options list.
12193         (Optimization Options): Add missing @gol.
12194         (Directory Options): Likewise.
12195         (i386 and x86-64 Options): Likewise.
12196         (RS6000 and PowerPC Options): Likewise.
12197         (i386 and x86-64 Windows Options): Likewise.
12198         (V850 Options): Add text missing from descriptions.
12199
12200 2011-03-22  Richard Henderson  <rth@redhat.com>
12201
12202         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12203         (avr_incoming_return_addr_rtx): New.
12204         (emit_push_byte): New.
12205         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
12206         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
12207         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
12208         (emit_pop_byte): New.
12209         (expand_epilogue): Use it.  Pop frame pointer by bytes.
12210         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12211         (INCOMING_RETURN_ADDR_RTX): New.
12212         (INCOMING_FRAME_SP_OFFSET): New.
12213         (ARG_POINTER_CFA_OFFSET): New.
12214         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12215         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12216         (pophi): Remove.
12217
12218         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12219
12220 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
12221
12222         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12223         (FUNCTION_ARG_ADVANCE): Likewise.
12224         * tm.texi.in: Change references to them to hook references.
12225         * tm.texi: Regenerate.
12226         * targhooks.c (default_function_arg): Eliminate check for target
12227         macro.
12228         (default_function_incoming_arg): Likewise.
12229         (default_function_arg_advance): Likewise.
12230         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12231         (function_arg_advance): Likewise.
12232         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12233
12234 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
12235
12236         * tree.c (build_call_1): New function.
12237         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12238
12239 2011-03-22  Richard Guenther  <rguenther@suse.de>
12240
12241         PR tree-optimization/48228
12242         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12243         for single-arg PHIs.
12244
12245 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
12246
12247         PR rtl-optimization/48143
12248         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12249         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12250         sse2_cvtps2pd): Likewise.
12251
12252 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12253
12254         * recog.c (canonicalize_change_group): Use validate_unshare_change.
12255
12256 2011-03-22  Richard Guenther  <rguenther@suse.de>
12257
12258         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12259         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12260         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12261         and REALIGN_LOAD_EXPR.
12262         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12263         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12264         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12265         DOT_PROD_EXPR case ...
12266         (expand_expr_real_2): ... here.
12267         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12268         and REALIGN_LOAD_EXPR.
12269         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12270         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12271         (vect_create_epilog_for_reduction): Likewise.
12272         (vectorizable_reduction): Likewise.
12273         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12274         * tree-vect-stmts.c (vectorizable_load): Likewise.
12275
12276 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
12277
12278         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12279
12280 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12281
12282         * config/s390/s390.c (s390_delegitimize_address): Fix offset
12283         handling for PLTOFF/GOTOFF.
12284
12285 2011-03-22  Nick Clifton  <nickc@redhat.com>
12286
12287         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12288         trailing backslash from the end of the macro definition.
12289
12290 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12291
12292         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12293         and PLT unspecs.
12294
12295 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
12296
12297         * expr.h (prepare_operand): Move to...
12298         * optabs.h (prepare_operand): ...here and change the insn code
12299         parameter from "int" to "enum insn_code".
12300         (insn_operand_matches): Declare.
12301         * expr.c (init_expr_target): Use insn_operand_matches.
12302         (compress_float_constant): Likewise.
12303         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12304         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12305         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12306         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12307         Likewise.
12308         (gen_cond_trap): Likewise.
12309         (prepare_operand): Likewise.  Change icode to an insn_code.
12310         (insn_operand_matches): New function.
12311         * reload.c (find_reloads_address_1): Use insn_operand_matches.
12312         * reload1.c (gen_reload): Likewise.
12313         * targhooks.c (default_secondary_reload): Likewise.
12314
12315 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
12316
12317         * config/alpha/alpha.md (unspec): New define_c_enum.
12318         (unspecv): Ditto.
12319
12320 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
12321
12322         PR debug/48214
12323         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12324         between a call and its CALL_ARG_LOCATION note.
12325
12326 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
12327
12328         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12329
12330 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
12331
12332         PR c/42544
12333         PR c/48197
12334         * c-common.c (shorten_compare): If primopN is first sign-extended
12335         to opN and then zero-extended to result type, set primopN to opN.
12336
12337 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
12338
12339         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12340         for barrier handlers.
12341
12342 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12343
12344         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12345         UNSPEC constants to be in the unspec enumeration, and redefine
12346         all UNSPECV constants to be in the unspecv enumeration, so that
12347         dumps print which unspec/unspec_volatile this is.
12348         * config/rs6000/vector.md (UNSPEC_*): Ditto.
12349         * config/rs6000/paired.md (UNSPEC_*): Ditto.
12350         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12351         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12352         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12353
12354         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12355         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12356         UNSPECV_LWSYNC, since these are used as unspec_volatile.
12357         * config/rs6000/sync.md (isync, lwsync): Ditto.
12358
12359 2011-03-21  Richard Guenther  <rguenther@suse.de>
12360
12361         * params.def (lto-min-partition): Fix typo.
12362
12363 2011-03-21  Richard Guenther  <rguenther@suse.de>
12364
12365         PR c/47939
12366         * c-decl.c (grokdeclarator): Drop to the main variant only
12367         for array types.  Drop flag_gen_aux_info check.
12368
12369 2011-03-21  Richard Guenther  <rguenther@suse.de>
12370
12371         PR translation/47911
12372         * params.def (lto-partitions): Fix typo.
12373         (lto-min-partition): Fix wording.
12374
12375 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
12376
12377         * config/rs6000/t-freebsd: Remove duplication from file.
12378
12379 2011-03-21  Richard Guenther  <rguenther@suse.de>
12380
12381         PR middle-end/47661
12382         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12383
12384 2011-03-21  Richard Guenther  <rguenther@suse.de>
12385
12386         PR lto/48210
12387         * params.def (lto-partitions): Require at least 1 partition.
12388
12389 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12390
12391         * gthr-solaris.h: Remove.
12392         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12393         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12394         (LIB_SPEC): Likewise.
12395         * config/sol2.opt (threads): Remove.
12396         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12397         (sparc*-*-solaris2*): Likewise.
12398         * configure.ac (enable_threads): Enable solaris support.
12399         * configure: Regenerate.
12400         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12401         * doc/install.texi (Configuration, --enable-threads=lib): Remove
12402         solaris.
12403
12404 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12405
12406         * config.gcc: Obsolete *-*-solaris2.8*.
12407         * doc/install.texi (Specific, *-*-solaris2*): Document it.
12408
12409 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12410
12411         PR bootstrap/48135
12412         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12413         reference.  Solaris 8 perl works.
12414
12415 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12416
12417         PR bootstrap/48135
12418         * doc/install.texi (Prerequisites): Move jar etc. up.
12419         Explain support library version requirements.
12420
12421 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12422
12423         PR bootstrap/48135
12424         * doc/install.texi (Prerequisites): Move Perl to build
12425         requirements.  Always necessary on Solaris 2 with Sun ld.
12426
12427 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12428
12429         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12430         binutils 2.21.
12431         (Specific, i?86-*-solaris2.[89]): Likewise.
12432         (Specific, i?86-*-solaris2.10): Likewise.
12433         (Specific, mips-sgi-irix6): Likewise.
12434         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12435         Update for binutils 2.21.
12436
12437 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12438
12439         * configure.ac (gcc_cv_lto_plugin): Fix typo.
12440         Allow -fuse-linker-plugin for non-default plugin linker.
12441         * configure: Regenerate.
12442
12443 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12444
12445         PR bootstrap/48167
12446         * gengtype.c (files_rules): Added rule for cp/parser.h.
12447
12448 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
12449
12450         PR target/48213
12451         * config/s390/s390.c (s390_delegitimize_address): Don't call
12452         lowpart_subreg if orig_x has BLKmode.
12453
12454 2011-03-21  Kai Tietz  <ktietz@redhat.com>
12455
12456         PR target/12171
12457         * doc/plugins.texi: Adjust documentation for plugin register_callback.
12458         * tree.h (attribute_spec): Add new member affects_type_identity.
12459         * attribs.c (empty_attribute_table): Adjust attribute_spec
12460         initializers.
12461         * config/alpha/alpha.c: Likewise.
12462         * config/arc/arc.c: Likewise.
12463         * config/arm/arm.c: Likewise.
12464         * config/avr/avr.c: Likewise.
12465         * config/bfin/bfin.c: Likewise.
12466         * config/crx/crx.c: Likewise.
12467         * config/darwin.h: Likewise.
12468         * config/h8300/h8300.c: Likewise.
12469         * config/i386/cygming.h: Likewise.
12470         * config/i386/i386.c: Likewise.
12471         * config/ia64/ia64.c: Likewise.
12472         * config/m32c/m32c.c: Likewise.
12473         * config/m32r/m32r.c: Likewise.
12474         * config/m68hc11/m68hc11.c: Likewise.
12475         * config/m68k/m68k.c: Likewise.
12476         * config/mcore/mcore.c: Likewise.
12477         * config/mep/mep.c: Likewise.
12478         * config/microblaze/microblaze.c: Likewise.
12479         * config/mips/mips.c: Likewise.
12480         * config/rs6000/rs6000.c: Likewise.
12481         * config/rx/rx.c: Likewise.
12482         * config/sh/sh.c: Likewise.
12483         * config/sol2.h: Likewise.
12484         * config/sparc/sparc.c: Likewise.
12485         * config/spu/spu.c: Likewise.
12486         * config/stormy16/stormy16.c: Likewise.
12487         * config/v850/v850.c: Likewise.
12488
12489 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
12490
12491         * simplify-rtx.c (simplify_binary_operation_1): Handle
12492         (xor (and A B) C) case when B and C are both constants.
12493
12494 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
12495
12496         * tree-dfa.c (add_referenced_var): Fix typo in comment.
12497
12498 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12499
12500         PR bootstrap/48168
12501         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12502
12503 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
12504
12505         PR rtl-optimization/48156
12506         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12507         assume df and df_lr are not NULL.
12508
12509 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12510
12511         PR debug/48023
12512         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12513         between a call and its CALL_ARG_LOCATION note.
12514
12515 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12516
12517         PR debug/48178
12518         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12519         between a call and its corresponding CALL_ARG_LOCATION note.
12520
12521 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
12522
12523         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12524         instead of loop. Use HARD_REGISTER_NUM_P predicate.
12525         * haifa-sched.c (setup_ref_regs): Ditto.
12526         * caller-save.c (add_used_regs_1): Ditto.
12527         * dse.c (look_for_hardregs): Ditto.
12528         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12529         * sched-rgn.c (check_live_1): Ditto.
12530
12531 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12532
12533         * c-decl.c (diagnose_mismatched_decls): Give an error for
12534         redefining a typedef with variably modified type.
12535
12536 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12537
12538         * c-decl.c (grokfield): Don't allow typedefs for structures or
12539         unions with no tag by default.
12540         * doc/extend.texi (Unnamed Fields): Update.
12541
12542 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
12543
12544         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12545         Rewrite using indirect functions.
12546         (lwp_slwpcb): Ditto.
12547         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12548         (avx_vinsertf128<mode>): Ditto.
12549
12550 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12551
12552         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12553         unspecs.
12554
12555 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12556
12557         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12558         splitting between a call and its corresponding CALL_ARG_LOCATION note.
12559
12560 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12561
12562         PR rtl-optimization/48170
12563         * gcse.c (hoist_code): Remove bogus asserts.
12564
12565 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
12566
12567         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12568         computation for prologue/epilogue.
12569
12570 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12571
12572         * Makefile.in (check-consistency): Remove.
12573
12574 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
12575
12576         PR debug/48176
12577         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12578         arange_table_in_use is 0, but either text_section_used or
12579         cold_text_section_used is true.  Don't call it if
12580         !info_section_emitted.
12581
12582 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
12583
12584         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12585         FUNCTION_VALUE_REGNO_P): Remove.
12586         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12587         Remove.
12588         * config/avr/avr.c (avr_ret_register): Make static inline.
12589         (avr_function_value_regno_p): New function.
12590         (avr_libcall_value): Make static. Add 'func' argument.
12591         (avr_function_value): Make static. Rename 'func' argument to
12592         'fn_decl_or_type', forward it to avr_libcall_value. Call
12593         avr_ret_register function instead of RET_REGISTER macro.
12594         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12595
12596 2011-03-18  Jason Merrill  <jason@redhat.com>
12597
12598         PR c++/23372
12599         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12600
12601 2011-03-18  Richard Guenther  <rguenther@suse.de>
12602
12603         * doc/install.texi (--enable-gold): Remove.
12604         (--with-plugin-ld): Document.
12605         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12606
12607 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
12608
12609         PR middle-end/47790
12610         * expr.c (optimize_bitfield_assignment_op): Revamp to work
12611         again after expansion changes.
12612
12613 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
12614
12615         * combine.c (try_combine): Do simplification only call of
12616         subst() on i2 even when i1 is present. Update comments.
12617
12618 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12619
12620         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12621         and UNSPEC_PCREL_SYMOFF.
12622
12623 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12624
12625         * config/s390/s390.md: Use define_c_enum for the unspec constant
12626         definitions.
12627
12628 2011-03-18  Richard Henderson  <rth@redhat.com>
12629             Jakub Jelinek  <jakub@redhat.com>
12630
12631         PR bootstrap/48161
12632         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12633         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12634
12635 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12636
12637         PR middle-end/47725
12638         * combine.c (cant_combine_insn_p): Don't check zero/sign
12639         extended hard registers.
12640
12641 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12642
12643         PR middle-end/47725
12644         * combine.c (cant_combine_insn_p): Check zero/sign extended
12645         hard registers.
12646
12647 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
12648
12649         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12650         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12651         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12652         Change return type to bool.
12653         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12654
12655 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12656
12657         PR debug/48163
12658         * var-tracking.c (prepare_call_arguments): If CALL target
12659         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12660         pc instead of looking it up using cselib_lookup and use
12661         Pmode for it if x has VOIDmode.
12662         * dwarf2out.c (gen_subprogram_die): If also both first and
12663         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12664
12665         PR debug/48163
12666         * function.c (assign_parms): For data.passed_pointer parms
12667         use MEM of data.entry_parm instead of data.entry_parm itself
12668         as DECL_INCOMING_RTL.
12669         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12670         also when passed and declared mode is the same, DECL_RTL
12671         is a MEM with pseudo as address and DECL_INCOMING_RTL is
12672         a MEM too.
12673
12674 2011-03-16  Jeff Law  <law@redhat.com>
12675
12676         PR rtl-optimization/37273
12677         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12678         handle them like argument loads from stack slots.  Do not double
12679         count memory for memory constants and argument loads from stack slots.
12680
12681 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12682
12683         PR debug/48160
12684         * var-tracking.c (prepare_call_arguments): Check SUBREG.
12685
12686 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12687
12688         PR target/48171
12689         * config/i386/i386.opt: Add Save to -mavx and -mfma.
12690
12691 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12692
12693         PR bootstrap/48153
12694         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12695         if dwarf_strict.
12696         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12697         Clear call_arg_locations and call_arg_loc_last always.
12698
12699         PR middle-end/48152
12700         * var-tracking.c (prepare_call_arguments): If argument needs to be
12701         passed by reference, adjust argtype and mode.
12702
12703 2011-03-17  Richard Guenther  <rguenther@suse.de>
12704
12705         PR middle-end/48134
12706         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12707         a value make sure to fold the statement.
12708
12709 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
12710
12711         PR target/43872
12712         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12713         return condition with !cfun->calls_alloca.
12714
12715 2011-03-17  Richard Guenther  <rguenther@suse.de>
12716
12717         PR bootstrap/48148
12718         * lto-cgraph.c (input_overwrite_node): Clear the abstract
12719         origin for decls in other ltrans units.
12720         (input_varpool_node): Likewise.
12721
12722 2011-03-17  Richard Guenther  <rguenther@suse.de>
12723
12724         PR middle-end/48165
12725         * tree-object-size.c (compute_object_offset): Properly return
12726         the offset operand of MEM_REFs as sizetype.
12727
12728 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12729
12730         PR rtl-optimization/48141
12731         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12732         * dse.c: Include params.h.
12733         (active_local_stores_len): New variable.
12734         (add_wild_read, dse_step1): Clear it when setting active_local_stores
12735         to NULL.
12736         (record_store, check_mem_read_rtx): Decrease it when removing
12737         from the chain.
12738         (scan_insn): Likewise.  Increase it when adding to chain, if it
12739         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12740         set active_local_stores to NULL before the addition.
12741         * Makefile.in (dse.o): Depend on $(PARAMS_H).
12742
12743         PR rtl-optimization/48141
12744         * dse.c (record_store): If no positions are needed in an insn
12745         that cannot be deleted, at least unchain it from active_local_stores.
12746
12747 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
12748
12749         PR debug/47510
12750         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12751         (lookup_type_die_strip_naming_typedef): ... here.
12752         (get_context_die): Use it.
12753         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12754         the anonymous struct named by the naming typedef.
12755
12756 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12757
12758         PR target/48154
12759         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12760         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12761
12762 2011-03-16  Jeff Law  <law@redhat.com>
12763
12764         * tree-vrp.c (identify_jump_threads): Slightly simplify type
12765         check for operands of conditional.  Allow type to be a pointer.
12766
12767 2011-03-16  Richard Guenther  <rguenther@suse.de>
12768
12769         PR tree-optimization/48149
12770         * fold-const.c (fold_binary_loc): Fold
12771         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12772
12773 2011-03-16  Richard Guenther  <rguenther@suse.de>
12774
12775         PR tree-optimization/26134
12776         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12777         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12778         (non_rewritable_mem_ref_base): Handle complex type component
12779         accesses, constrain offsets for vector and complex extracts
12780         more properly.
12781
12782 2011-03-16  Richard Guenther  <rguenther@suse.de>
12783
12784         PR tree-optimization/48146
12785         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12786         operands avoiding the need for renaming.
12787
12788 2011-03-16  Richard Guenther  <rguenther@suse.de>
12789
12790         * gimple-fold.c (maybe_fold_reference): Open-code relevant
12791         constant folding.  Move MEM_REF canonicalization first.
12792         Rely on fold_const_aggregate_ref for initializer folding.
12793         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12794
12795 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12796
12797         PR middle-end/48136
12798         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12799         arg0/arg1 or their arguments are always fold converted to matching
12800         types.
12801
12802         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12803         to nargs.
12804
12805 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12806
12807         PR lto/46944
12808         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12809         Handle in-tree gold.
12810         (ld_vers): Extract binutils version for gold.
12811         (gcc_cv_ld_hidden): Handle gold here.
12812         (gcc_cv_lto_plugin): Determine level of linker plugin support.
12813         * configure: Regenerate.
12814         * config.in: Regenerate.
12815         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12816         -fuse-linker-plugin otherwise.
12817         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
12818         (LINK_COMMAND_SPEC): Use it.
12819         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12820
12821 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12822
12823         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12824         * calls.c: Remove debug.h include.
12825         (emit_call_1): Don't call virtual_call_token debug hook.
12826         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12827         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12828         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12829         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12830         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12831         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12832         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12833         dwarf2out_virtual_call): Remove.
12834         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12835         copy_call_info and virtual_call hooks.
12836         (dwarf2out_init): Don't initialize vcall_insn_table,
12837         debug_dcall_section and debug_vcall_section.
12838         (prune_unused_types): Don't mark nodes from dcall_table.
12839         (dwarf2out_finish): Don't output dcall or vcall tables.
12840         * final.c (final_scan_insn): Don't call direct_call or
12841         virtual_call debug hooks.
12842         * debug.h (struct gcc_debug_hooks): Remove direct_call,
12843         virtual_call_token, copy_call_info and virtual_call hooks.
12844         (debug_nothing_uid): Remove prototype.
12845         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12846         copy_call_info and virtual_call hooks.
12847         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12848         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12849         * debug.c (do_nothing_debug_hooks): Likewise.
12850         (debug_nothing_uid): Remove.
12851         * doc/invoke.texi (-fenable-icf-debug): Remove.
12852         * common.opt (-fenable-icf-debug): Likewise.
12853
12854         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12855         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12856         call's MEM.  Handle functions returning aggregate through a hidden
12857         first pointer.  For virtual calls add clobbered pc to call arguments
12858         chain.
12859         * dwarf2out.c (gen_subprogram_die): Emit
12860         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12861         can't be emitted.
12862
12863         PR debug/45882
12864         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12865         * rtl.h (ENTRY_VALUE_EXP): Define.
12866         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12867         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12868         * print-rtl.c (print_rtx): Likewise.
12869         * gengtype.c (adjust_field_rtx_def): Likewise.
12870         * var-tracking.c (vt_add_function_parameter): Adjust
12871         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12872         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12873         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12874         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12875         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12876
12877         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12878         Call var_location debug hook even on CALL_INSNs.
12879         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12880         * rtl.def (ENTRY_VALUE): New.
12881         * dwarf2out.c: Include cfglayout.h.
12882         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12883         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12884         (struct call_arg_loc_node): New type.
12885         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12886         tail_call_site_count): New variables.
12887         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12888         DW_TAG_GNU_call_site_parameter.
12889         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12890         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12891         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12892         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12893         and DW_AT_GNU_all_source_call_sites.
12894         (mem_loc_descriptor): Handle ENTRY_VALUE.
12895         (add_src_coords_attributes): Don't add enything if
12896         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12897         (dwarf2out_abstract_function): Save and clear call_arg_location,
12898         call_site_count and tail_call_site_count around dwarf2out_decl call.
12899         (gen_call_site_die): New function.
12900         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12901         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12902         (dwarf2out_function_decl): Clear call_arg_locations,
12903         call_arg_loc_last, set call_site_count and tail_call_site_count
12904         to -1 and free block_map.
12905         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12906         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
12907         followed by any real instructions.
12908         (dwarf2out_begin_function): Set call_site_count and
12909         tail_call_site_count to 0.
12910         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12911         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12912         attempt to force a DIE for it and worst case remove the attribute.
12913         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12914         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12915         the decl itself.
12916         * var-tracking.c: Include tm_p.h.
12917         (vt_stack_adjustments): For calls call note_register_arguments.
12918         (argument_reg_set): New variable.
12919         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12920         ensure the VALUE is resolved.
12921         (call_arguments): New variable.
12922         (prepare_call_arguments): New function.
12923         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12924         (struct expand_loc_callback_data): Add ignore_cur_loc field.
12925         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12926         always use the best expression.
12927         (vt_expand_loc): Add ignore_cur_loc argument.
12928         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12929         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12930         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12931         note for all calls.
12932         (vt_add_function_parameter): Use cselib_lookup_from_insn.
12933         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12934         argument.  Don't call cselib_preserve_only_values and
12935         cselib_reset_table.
12936         (note_register_arguments): New function.
12937         (vt_initialize): Compute argument_reg_set.  Call
12938         vt_add_function_parameters before processing basic blocks instead of
12939         afterwards.  For calls call prepare_call_arguments before calling
12940         cselib_process_insn.
12941         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12942         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12943         (var-tracking.o): Depend on $(TM_P_H).
12944         * cfglayout.h (insn_scope): New prototype.
12945         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12946         * cfglayout.c (insn_scope): No longer static.
12947         * insn-notes.def (CALL_ARG_LOCATION): New.
12948         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12949         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12950         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12951         nothing for DECL_EXTERNAL BLOCK_VARS.
12952
12953 2011-03-16  Alan Modra  <amodra@gmail.com>
12954
12955         PR target/45844
12956         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12957         create invalid offset address for vsx splat insn.
12958         * config/rs6000/predicates.md (splat_input_operand): New.
12959         * config/rs6000/vsx.md (vsx_splat_*): Use it.
12960
12961 2011-03-15  Xinliang David Li  <davidxl@google.com>
12962
12963         PR c/47837
12964         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12965         (normalize_preds): New function.
12966         (is_use_properly_guarded): Normalize def predicates.
12967
12968 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12969
12970         PR target/46788
12971         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12972         in the output template.
12973
12974 2011-03-15  Richard Guenther  <rguenther@suse.de>
12975
12976         PR middle-end/47650
12977         * tree-pretty-print.c (dump_function_declaration): Properly
12978         dump unprototyped and varargs function types.
12979
12980 2011-03-15  Richard Guenther  <rguenther@suse.de>
12981
12982         PR tree-optimization/13954
12983         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12984         and friends.
12985
12986 2011-03-15  Richard Guenther  <rguenther@suse.de>
12987
12988         PR tree-optimization/48037
12989         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12990         selects into BIT_FIELD_REFs.
12991         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12992         vector select.
12993
12994 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
12995
12996         PR tree-optimization/48129
12997         * builtins.c (fold_builtin_snprintf): Convert to type of
12998         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12999         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13000
13001 2011-03-15  Richard Guenther  <rguenther@suse.de>
13002
13003         PR tree-optimization/41490
13004         * tree-ssa-dce.c (propagate_necessity): Handle returns without
13005         value but with VUSE.
13006         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13007         return statements.
13008         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13009         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13010         * tree-tailcall.c (find_tail_calls): Ignore returns.
13011
13012 2011-03-15  Richard Guenther  <rguenther@suse.de>
13013
13014         PR middle-end/48031
13015         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13016         or variable-indexed array accesses when in gimple form.
13017
13018 2011-03-15  Richard Guenther  <rguenther@suse.de>
13019
13020         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13021
13022 2011-03-15  Alan Modra  <amodra@gmail.com>
13023
13024         PR target/48032
13025         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13026         presume symbol_refs without a symbol_ref_decl are suitably
13027         aligned, nor other trees we may see here.  Handle anchor symbols.
13028         (legitimate_constant_pool_address_p): Comment.  Add mode param.
13029         Check cmodel=medium addresses.  Adjust all calls.
13030         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13031         creating cmodel=medium optimized access to locals.
13032         * config/rs6000/constraints.md (R): Pass QImode to
13033         legitimate_constant_pool_address_p.
13034         * config/rs6000/predicates.md (input_operand): Pass mode to
13035         legitimate_constant_pool_address_p.
13036         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13037         Update prototype.
13038
13039 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13040
13041         PR target/48053
13042         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13043         64-bit constants being loaded into registers other than GPRs such
13044         as loading 0 into a VSX register.
13045
13046 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13047
13048         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13049
13050 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
13051
13052         PR middle-end/47917
13053         * builtins.c (fold_builtin_snprintf): New function.
13054         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13055         (fold_builtin_4): Likewise.
13056
13057         PR middle-end/38878
13058         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13059         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
13060         and C - X == X also strip nops from +/-/p+ operand.
13061         When optimizing -X == C, fold C to arg0's type.
13062
13063         PR debug/47946
13064         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13065         emit it as add_AT_int instead of add_AT_unsigned.
13066
13067 2011-03-14  Tom Tromey  <tromey@redhat.com>
13068
13069         * unwind-dw2.c: Include sys/sdt.h if it exists.
13070         (_Unwind_DebugHook): Use STAP_PROBE2.
13071         * config.in, configure: Rebuild.
13072         * configure.ac: Check for sys/sdt.h.
13073
13074 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
13075
13076         * config/i386/i386.md (ROUND_FLOOR): New constant.
13077         (ROUND_CEIL): Ditto.
13078         (ROUND_TRUNC): Ditto.
13079         (ROUND_MXCSR): Ditto.
13080         (ROUND_NO_EXC): Ditto.
13081         (rint<mode>2): Use new defines instead of numerical constants.
13082         (floor<mode>2): Ditto.
13083         (ceil<mode>2): Ditto.
13084         (btrunc<mode>2): Ditto.
13085         * config/i386/i386-builtin-types.def: Define ROUND function type
13086         aliases.
13087         * config/i386/i386.c (enum ix86_builtins): Add
13088         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13089         (struct builtin_description): Add
13090         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13091         (ix86_expand_sse_round): New static function.
13092         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13093         function types.
13094         (ix86_builtin_vectorized_function): Handle
13095         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13096
13097 2011-03-14  Tom Tromey  <tromey@redhat.com>
13098
13099         * c-parser.c (c_parser_asm_string_literal): Clear
13100         warn_overlength_strings.
13101
13102 2011-03-14  Tom Tromey  <tromey@redhat.com>
13103
13104         * c-parser.c (disable_extension_diagnostics): Save
13105         warn_overlength_strings.
13106         (restore_extension_diagnostics): Restore warn_overlength_strings.
13107
13108 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
13109
13110         * BASE-VER: Change to 4.7.0.
13111
13112 2011-03-14  Richard Guenther  <rguenther@suse.de>
13113
13114         PR middle-end/48098
13115         * tree.c (build_vector_from_val): Adjust assert to requirements
13116         and reality.
13117
13118 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
13119
13120         PR bootstrap/48102
13121         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13122
13123 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
13124
13125         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13126         terms of target_flags_explicit. Adjust copyright year.
13127
13128         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13129         * config/rs6000/t-freebsd: New file. Add override for
13130         LIB2FUNCS_EXTRA.
13131
13132 2011-03-13  Chris Demetriou  <cgd@google.com>
13133
13134         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13135         (-fno-diagnostics-show-option): this, to reflect current default.
13136         (-Werror=): Update text about -fno-diagnostics-show-option.
13137
13138 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
13139
13140         PR target/48053
13141         * config/rs6000/predicates.md (easy_vector_constant_add_self,
13142         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13143         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13144         mode is not V2DImode or V2DFmode.
13145         (vspltis_constant): Do not handle V2DImode and V2DFmode.
13146         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13147         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13148         registers to 0.
13149         (movdi_internal64): Likewise.
13150
13151 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
13152
13153         PR tree-optimization/47127
13154         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13155         parameter.
13156         (set_cloog_options): Same.
13157         (scop_to_clast): Same.
13158         (print_clast_stmt): Do not call cloog_state_malloc and
13159         cloog_state_free.
13160         (print_generated_program): Same.
13161         (gloog): Same.
13162         * graphite-clast-to-gimple.h (cloog_state): Declared.
13163         (scop_to_clast): Adjust declaration.
13164         * graphite.c (cloog_state): Defined here.
13165         (graphite_initialize): Call cloog_state_malloc.
13166         (graphite_finalize): Call cloog_state_free.
13167
13168 2011-03-11  Jason Merrill  <jason@redhat.com>
13169
13170         * attribs.c (lookup_attribute_spec): Take const_tree.
13171         * tree.h: Adjust.
13172
13173 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
13174
13175         * config/sparc/sparc.c (sparc_option_override): Use
13176         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13177
13178 2011-03-11  Richard Guenther  <rguenther@suse.de>
13179
13180         PR tree-optimization/48067
13181         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13182         multiplication result will be only used once on the target
13183         stmt.
13184
13185 2011-03-11  Richard Guenther  <rguenther@suse.de>
13186
13187         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13188
13189 2011-03-11  Richard Guenther  <rguenther@suse.de>
13190
13191         PR lto/48073
13192         * tree.c (find_decls_types_r): Do not walk types only reachable
13193         from IDENTIFIER_NODEs.
13194
13195 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR middle-end/48044
13198         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13199         all vnode->force_output nodes as needed.
13200
13201 2011-03-11  Jason Merrill  <jason@redhat.com>
13202
13203         PR c++/48069
13204         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13205         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13206
13207 2011-03-11  Martin Jambor  <mjambor@suse.cz>
13208
13209         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13210         cgraph_node.
13211
13212 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
13213
13214         PR tree-optimization/48063
13215         * ipa-inline.c (cgraph_decide_inlining): Don't try to
13216         inline functions called once if !tree_can_inline_p (node->callers).
13217
13218 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
13219
13220         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13221         extra_objs.
13222         * config/score/score3.c: Delete.
13223         * config/score/score3.h: Delete.
13224         * config/score/mul-div.S: Delete.
13225         * config/score/sfp-machine.h: Add new file.
13226         * config/score/constraints.md: Add new file.
13227         * config/score/t-score-softfp: Add new file.
13228         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13229         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13230         (score7_extra_constraint): Delete.
13231         (score7_option_override): Remove unused code.
13232         * config/score/score.c: Remove score3 and score5 define and code.
13233         * config/score/score.h: Remove score3 and score5 define and code.
13234         * config/score/score.md: Remove score3 template and unusual insn.
13235         * config/score/score.opt: Remove score3 and score5 options.
13236
13237 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13238
13239         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13240         when _HPUX_SOURCE is defined.
13241         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13242
13243 2011-03-10  Jason Merrill  <jason@redhat.com>
13244
13245         PR c++/48029
13246         * stor-layout.c (layout_type): Don't set structural equality
13247         on arrays of incomplete type.
13248         * tree.c (type_hash_eq): Handle comparing them properly.
13249
13250 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13251
13252         PR debug/48043
13253         * config/s390/s390.c (s390_delegitimize_address): Make sure the
13254         result mode matches original rtl mode.
13255
13256 2011-03-10  Nick Clifton  <nickc@redhat.com>
13257
13258         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13259         (andsi3, andsi3_flags): Fix timings for three operand alternative.
13260
13261 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
13262
13263         PR rtl-optimization/47866
13264         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13265         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13266         if target wasn't scalar.
13267         * function.c (assign_stack_temp_for_type): Assert that neither
13268         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13269         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13270         macro.
13271         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13272
13273 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13274
13275         * config/s390/s390-protos.h (s390_label_align): New prototype.
13276         * config/s390/s390.c (s390_label_align): New function.
13277         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13278
13279 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
13280
13281         PR target/47755
13282         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13283         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
13284         (output_vec_const_move): Ditto.
13285
13286 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
13287
13288         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13289         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13290         * config/mips/mips.c (mips_preferred_reload_class): Make static.
13291         Change 'rclass' argument and result type to reg_class_t.
13292         (TARGET_PREFERRED_RELOAD_CLASS): Define.
13293
13294 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
13295
13296         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13297         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13298         (TARGET_MEMORY_MOVE_COST): Define.
13299         (avr_register_move_cost, avr_memory_move_cost): New Functions.
13300
13301 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
13302
13303         PR debug/47881
13304         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13305         removed anything.
13306
13307         PR tree-optimization/48022
13308         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13309         for EQ/NE_EXPR.
13310
13311 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
13312
13313         PR debug/47991
13314         * var-tracking.c (find_use_val): Return NULL for
13315         cui->sets && cui->store_p BLKmode MEMs.
13316
13317 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
13318
13319         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13320         Remove.
13321         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13322         xstormy16_print_operand_address): Remove.
13323         * config/stormy16/stormy16.c (xstormy16_print_operand,
13324         xstormy16_print_operand_address): Make static.
13325         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13326
13327 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
13328
13329         PR target/47862
13330         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13331         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13332         before definition.
13333
13334 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
13335
13336         PR bootstrap/48000
13337         * cfgloopmanip.c (fix_bb_placements): Return immediately
13338         if FROM is BASE_LOOP's header.
13339
13340 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
13341
13342         * gimplify.c (gimplify_function_tree): Fix building calls
13343         to __builtin_return_address.
13344
13345 2011-03-07  Alan Modra  <amodra@gmail.com>
13346
13347         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13348         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13349         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13350         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13351         return_mode args.
13352         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13353         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13354         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13355         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13356         * config/rs6000/rs6000.c
13357         (rs6000_elf_end_indicate_exec_stack): Rename to..
13358         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
13359         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
13360         (rs6000_file_start): ..here.
13361         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13362         file scope variables.
13363         (call_ABI_of_interest): New function.
13364         (init_cumulative_args): Set above vars when function return value
13365         is a float, vector, or small struct.
13366         (rs6000_function_arg_advance_1): Likewise for function args.
13367         (rs6000_va_start): Set rs6000_passes_float if variable arg function
13368         references float args.
13369
13370 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
13371
13372         * doc/cfg.texi: Remove "See" before @ref.
13373         * doc/invoke.texi: Likewise.
13374
13375 2011-03-05  Jason Merrill  <jason@redhat.com>
13376
13377         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13378
13379 2011-03-05  Anthony Green  <green@moxielogic.com>
13380
13381         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13382
13383 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
13384
13385         PR rtl-optimization/47899
13386         * cfgloopmanip.c (fix_bb_placements): Fix first argument
13387         to flow_loop_nested_p when moving the loop upward.
13388
13389 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
13390
13391         PR target/47719
13392         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
13393
13394 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
13395
13396         PR tree-optimization/47967
13397         * ipa-cp.c (build_const_val): Return NULL instead of creating
13398         VIEW_CONVERT_EXPR for mismatching sizes.
13399         (ipcp_create_replace_map): Return NULL if build_const_val failed.
13400         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13401         give up on versioning.
13402
13403 2011-03-05  Alan Modra  <amodra@gmail.com>
13404
13405         PR target/47986
13406         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13407         full cmodel medium/large lo_sum + high addresses.
13408
13409 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13410
13411         * config/s390/s390.c (s390_decompose_address): Reject non-literal
13412         pool references in UNSPEC_LTREL_OFFSET.
13413
13414 2011-03-04  Jan Hubicka  <jh@suse.cz>
13415
13416         PR lto/47497
13417         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13418         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13419         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13420         Add node pointers.
13421         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13422         cgraph_add_thunk): Add node pointers.
13423         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13424         associated to right node.
13425         (input_node): Update use of cgraph_same_body_alias
13426         and cgraph_add_thunk.
13427
13428 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
13429
13430         * config/i386/i386.opt (mprefer-avx128): New flag.
13431         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13432         modes when the flag -mprefer-avx128 is on.
13433
13434 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
13435
13436         * dwarf2out.c (compare_loc_operands): Fix address handling.
13437
13438 2011-03-04  Alan Modra  <amodra@gmail.com>
13439
13440         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13441
13442 2011-03-04  Richard Guenther  <rguenther@suse.de>
13443
13444         PR middle-end/47968
13445         * expmed.c (extract_bit_field_1): Prefer vector modes that
13446         vec_extract patterns can handle.
13447
13448 2011-03-04  Richard Guenther  <rguenther@suse.de>
13449
13450         PR middle-end/47975
13451         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13452
13453 2011-03-04  Richard Henderson  <rth@redhat.com>
13454
13455         * explow.c (emit_stack_save): Remove 'after' parameter.
13456         (emit_stack_restore): Likewise.
13457         * expr.h: Update to match.
13458         * builtins.c, calls.c, stmt.c: Likewise.
13459         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13460         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13461         * function.c (expand_function_end): Insert the emit_stack_save
13462         sequence before parm_birth_insn instead of after.
13463
13464 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
13465
13466         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13467         (ssse3_pmaddubsw128): Ditto.
13468         (ssse3_pmaddubsw): Ditto.
13469
13470 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
13471
13472         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13473
13474 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
13475
13476         PR c/47963
13477         * gimplify.c (omp_add_variable): Only call omp_notice_variable
13478         on TYPE_SIZE_UNIT if it is a DECL.
13479
13480         PR debug/47283
13481         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13482         first operand is not is_gimple_mem_ref_addr, try to fold it.
13483         If the operand still isn't is_gimple_mem_ref_addr, clear
13484         MEM_EXPR on op0.
13485
13486 2011-03-03  Richard Guenther  <rguenther@suse.de>
13487
13488         PR middle-end/47283
13489         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13490         match comment.
13491         (refs_may_alias_p_1): For release branches return true if
13492         we are confused by our input.
13493
13494 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13495
13496         * config/s390/s390.c (s390_function_value): Rename to ...
13497         (s390_function_and_libcall_value): ... this.
13498         (s390_function_value): New function.
13499         (s390_libcall_value): New function.
13500         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13501         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13502         target macro definitions.
13503         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13504
13505 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
13506
13507         * config/i386/freebsd64.h (CC1_SPEC): Define.
13508         * config/i386/linux64.h (CC1_SPEC): Define.
13509         * config/i386/x86-64.h (CC1_SPEC): Don't define.
13510
13511 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
13512
13513         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13514         Remove.
13515         * config/stormy16/stormy16.c: Include reload.h.
13516         (xstormy16_memory_move_cost): New function.
13517         (TARGET_MEMORY_MOVE_COST): Define.
13518
13519 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
13520
13521         PR rtl-optimization/47925
13522         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13523         with side effects.  Remove the more-specific check for volatile asms.
13524
13525 2011-03-02  Alan Modra  <amodra@gmail.com>
13526
13527         PR target/47935
13528         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13529         toc relative addresses for valid offsets.
13530
13531 2011-03-01  Richard Guenther  <rguenther@suse.de>
13532
13533         PR tree-optimization/47890
13534         * tree-vect-loop.c (get_initial_def_for_induction): Set
13535         related stmt properly.
13536
13537 2011-03-01  Richard Guenther  <rguenther@suse.de>
13538
13539         PR lto/47924
13540         * lto-streamer.c (lto_record_common_node): Also register
13541         the canonical type.
13542
13543 2011-03-01  Richard Guenther  <rguenther@suse.de>
13544
13545         PR lto/46911
13546         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13547         Do not stream DECL_ABSTRACT_ORIGIN.
13548         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13549         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13550         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13551         Do not stream DECL_ABSTRACT_ORIGIN.
13552         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13553         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13554
13555 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
13556
13557         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13558         FUNCTION_VALUE_REGNO_P): Remove.
13559         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13560         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13561         Add 'outgoing' argument.
13562         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13563         function.
13564         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13565         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13566
13567 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
13568
13569         PR debug/28047
13570         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13571         (lookup_filename): Likewise.
13572         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13573
13574 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
13575             Jakub Jelinek  <jakub@redhat.com>
13576
13577         PR middle-end/47893
13578         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13579         (assign_stack_local_1): Change last argument type to int.
13580         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13581         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
13582         don't record padding space into frame_space_list nor use those areas.
13583         (assign_stack_local): Adjust caller.
13584         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13585         of assign_stack_local, pass 0 as last argument.
13586         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13587         callers.
13588
13589 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
13590
13591         PR debug/47283
13592         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13593         Use target address_mode and pointer_mode hooks instead of hardcoded
13594         Pmode and ptr_mode.  Handle some simple cases of extending if
13595         POINTERS_EXTEND_UNSIGNED < 0.
13596         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13597         Call convert_debug_memory_address.
13598         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13599         convert_debug_memory_address.
13600
13601         PR middle-end/46790
13602         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13603         * configure: Regenerated.
13604         * config.in: Regenerated.
13605         * varasm.c (default_function_section): Return NULL
13606         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13607
13608 2011-02-28  Martin Jambor  <mjambor@suse.cz>
13609
13610         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13611         the description to match the printed values.
13612
13613 2011-02-28  Richard Guenther  <rguenther@suse.de>
13614
13615         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13616         of the copied scope tree.
13617
13618 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13619
13620         * doc/extend.texi (Function Attributes): Avoid deeply (and
13621         wrongly) nested tables.
13622
13623 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13624
13625         PR middle-end/47903
13626         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13627         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13628         r isn't op0 nor op1.
13629
13630 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13631
13632         * config/avr/avr.md: Remove magic comment for emacs.
13633
13634 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13635
13636         PR target/45261
13637         * config/avr/avr.c (avr_option_override): Use error on bad options.
13638         (avr_help): New function.
13639         (TARGET_HELP): Define.
13640
13641 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
13642
13643         PR target/42240
13644         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13645         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13646
13647 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
13648
13649         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13650         (ARM Options): Ditto.
13651         (i386 and x86-64 Options): Ditto.
13652         (RX Options): Ditto.
13653         (SPARC Options): Ditto.
13654
13655 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
13656
13657         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13658         FreeBSD 6 and later.  Generally use cpu generic.
13659
13660 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
13661
13662         * doc/cpp.texi: Update copyright years.
13663
13664 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13665
13666         PR target/46898
13667         * config/lm32/lm32.md (ashrsi3): Added needed variable.
13668
13669 2011-02-25  Jon Beniston  <jon@beniston.com>
13670
13671         PR target/46898
13672         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13673         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13674         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13675         (lm32_block_move_inline): Add type cast to remove warning.
13676         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13677         (gen_int_relational): Move declarations to start of function.
13678
13679 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
13680
13681         PR tree-optimization/45470
13682         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13683         can throw internally only.
13684         * tree-vect-stmts.c (vectorizable_call): Likewise.
13685
13686 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
13687
13688         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13689         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13690         * config/stormy16/stormy16-protos.h
13691         (xstormy16_preferred_reload_class): Remove.
13692         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13693         static. Change 'rclass' argument and return type to reg_class_t.
13694         (TARGET_PREFERRED_RELOAD_CLASS,
13695         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13696
13697 2011-02-24  Richard Guenther  <rguenther@suse.de>
13698
13699         * lto-streamer-in.c (input_bb): Do not find referenced vars
13700         in debug statements.
13701
13702 2011-02-23  Jason Merrill  <jason@redhat.com>
13703
13704         * common.opt (fabi-version): Document v5 and v6.
13705
13706 2011-02-23  Richard Guenther  <rguenther@suse.de>
13707
13708         PR tree-optimization/47849
13709         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13710
13711 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13712
13713         * opts-common.c (decode_cmdline_option): Print empty string
13714         argument as "" in decoded->orig_option_with_args_text.
13715         * gcc.c (execute): Print empty string argument as ""
13716         in the verbose output.
13717         (do_spec_1): Keep empty string argument.
13718
13719 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
13720
13721         * config.gcc: Declare score-* and crx-* obsolete.
13722
13723 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13724
13725         PR rtl-optimization/47763
13726         * web.c (web_main): Ignore naked clobber when replacing register.
13727
13728 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
13729
13730         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13731         Remove.
13732
13733 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13734
13735         PR doc/47848
13736         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13737
13738 2011-02-22  Mike Stump  <mikestump@comcast.net>
13739
13740         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13741         assembler.
13742         * configure: Regenerate.
13743
13744 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
13745
13746         PR rtl-optimization/46002
13747         * ira-color.c (update_copy_costs): Change class intersection
13748         test to reg_class_contents[] test of 'hard_regno'.
13749
13750 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
13751
13752         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13753         than Driver option.
13754         * config/hpux11.opt (mt): Likewise.
13755         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13756         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13757         * config/vax/elf.opt (mno-asm-pic): Likewise.
13758         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13759
13760 2011-02-21  Mike Stump  <mikestump@comcast.net>
13761
13762         PR target/47822
13763         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13764         tree so we can get save the type.
13765         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13766         for CFString instead of trying to use past the end of the builtins.
13767         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13768         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13769         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13770         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13771         Rename to darwin_builtin_cfstring.
13772         (darwin_init_cfstring_builtins): Return the built type.
13773
13774 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
13775
13776         PR target/47840
13777         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13778         (_mm256_insert_epi64): Use _mm_insert_epi64.
13779
13780 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
13781
13782         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13783         * config/stormy16/stormy16-protos.h
13784         (xstormy16_mode_dependent_address_p): Remove.
13785         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13786         Make static. Change return type to bool. Change argument type to
13787         const_rtx. Remove dead code.
13788         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13789
13790 2011-02-21  Richard Guenther  <rguenther@suse.de>
13791
13792         PR lto/47820
13793         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13794         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13795         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13796         TUs context.
13797         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13798         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13799
13800 2011-02-20  Richard Guenther  <rguenther@suse.de>
13801
13802         PR lto/47822
13803         * tree.c (free_lang_data_in_decl): Clean builtins from
13804         the TU decl BLOCK_VARS.
13805
13806 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
13807
13808         PR debug/47620
13809         PR debug/47630
13810         * haifa-sched.c (fix_tick_ready): Skip tick computation
13811         for debug insns.
13812
13813 2011-02-19  Richard Guenther  <rguenther@suse.de>
13814
13815         PR lto/47647
13816         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13817         Remove lazy BLOCK_VARS streaming.
13818         (lto_input_ts_block_tree_pointers): Likewise.
13819         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13820
13821 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13822
13823         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13824
13825 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13826
13827         * config/i386/biarch32.h, config/i386/mach.h,
13828         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13829
13830 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13831
13832         PR target/47800
13833         * config/i386/i386.md (peephole2 for shift and plus): Use
13834         operands[1] original mode in the first insn.
13835
13836 2011-02-18  Mike Stump  <mikestump@comcast.net>
13837
13838         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13839
13840 2011-02-18  Jan Hubicka  <jh@suse.cz>
13841
13842         PR middle-end/47788
13843         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13844         to zero when the function is not inlinable at all.
13845
13846 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13847
13848         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13849         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13850         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13851         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13852         * config/pa/t-pa64: Likewise.
13853         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13854
13855 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13856
13857         PR driver/47787
13858         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13859
13860 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13861
13862         PR target/47792
13863         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13864
13865 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
13866
13867         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13868         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13869         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13870         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13871         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13872         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13873         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13874         m32r_load_postinc_p, m32r_store_preinc_predec_p,
13875         m32r_legitimate_address_p): New functions.
13876         * config/m32r/constraints.md (constraint "S"): Don't use
13877         STORE_PREINC_PREDEC_P.
13878         (constraint "U"): Don't use LOAD_POSTINC_P.
13879
13880 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
13881
13882         PR rtl-optimization/46178
13883         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13884         compute ira_hard_regno_cover_class[].
13885
13886 2011-02-18  Richard Guenther  <rguenther@suse.de>
13887
13888         PR lto/47798
13889         * lto-streamer.h (lto_global_var_decls): Declare.
13890         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13891         statics for global var processing.
13892
13893 2011-02-18  Richard Guenther  <rguenther@suse.de>
13894
13895         PR tree-optimization/47737
13896         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13897         edge dominance check.
13898
13899 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13900
13901         PR debug/47780
13902         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13903         avoid invalid rtx sharing.
13904
13905 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
13906
13907         * doc/cpp.texi (Obsolete Features): Add background on the
13908         origin of assertions.
13909
13910 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13911
13912         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13913         objc_abi == 2.
13914         * config/darwin.c (output_objc_section_asm_op): Added support for
13915         ABI v1 and v2.
13916         (is_objc_metadata): New.
13917         (darwin_objc2_section): New.
13918         (darwin_objc1_section): New.
13919         (machopic_select_section): Added support for ABI v1 and v2.
13920         (darwin_emit_objc_zeroed): New.
13921         (darwin_output_aligned_bss): Detect objc metadata and treat it
13922         appropriately.
13923         (darwin_asm_output_aligned_decl_common): Same.
13924         (darwin_asm_output_aligned_decl_local): Same.
13925         * config/darwin-sections.def: Updated for ABI v1 and v2.
13926         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13927         compiling Objective-C code for the NeXT runtime, default to using
13928         ABI version 0 for 32-bit, and version 2 for 64-bit.
13929
13930 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13931
13932         * common.opt (optimize_fast): New Variable.
13933         * opts.c (default_options_optimization): Use opts->x_optimize_fast
13934         instead of local variable ofast.
13935
13936 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
13937
13938         * doc/invoke.texi (fobjc-abi-version): Documented.
13939         (fobjc-nilcheck): Documented.
13940         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13941         version.
13942
13943 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13944
13945         PR driver/47390
13946         * common.opt (export-dynamic): New Driver option.
13947         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13948
13949 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13950
13951         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13952
13953 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
13954             Jan Hubicka  <jh@suse.cz>
13955
13956         PR debug/47106
13957         PR debug/47402
13958         * cfgexpand.c (account_used_vars_for_block): Remove.
13959         (estimated_stack_frame_size): Use referenced vars.
13960         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13961         that were referenced in the original function.  Test src_fn
13962         rather than cfun.  Drop redundant get_var_ann.
13963         (setup_one_parameter): Drop redundant get_var_ann.
13964         (declare_return_variable): Likewise.
13965         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13966         (copy_arguments_for_versioning): Drop redundant get_var_ann.
13967         * ipa-inline.c (compute_inline_parameters): Do not compute
13968         disregard_inline_limits here.
13969         (compute_inlinable_for_current, pass_inlinable): New.
13970         (pass_inline_parameters): Require PROP_referenced_vars.
13971         * cgraphunit.c (cgraph_process_new_functions): Don't run
13972         compute_inline_parameters explicitly unless function is in SSA form.
13973         (cgraph_analyze_function): Set .disregard_inline_limits.
13974         * tree-sra.c (convert_callers): Compute inliner parameters
13975         only for functions already in SSA form.
13976
13977 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13978
13979         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13980         -mlittle-endian-data.
13981
13982 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13983
13984         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13985         -mno-fpu, not -fpu and -no-fpu.
13986         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13987         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13988
13989 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
13990
13991         PR target/43653
13992         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13993         input reload with PLUS RTX.
13994
13995 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13996
13997         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13998         of InverseVar(MDMX).
13999
14000 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
14001
14002         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14003         --m4-340.
14004
14005 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
14006
14007         * config/mn10300/mn10300.opt (mno-crt0): New.
14008
14009 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
14010
14011         * config/m68k/uclinux.opt (static-libc): New Driver option.
14012
14013 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
14014
14015         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14016
14017 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
14018
14019         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14020         %{muser-extend-enabled}.
14021
14022 2011-02-16  Richard Guenther  <rguenther@suse.de>
14023
14024         PR tree-optimization/47738
14025         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14026         the TODO from tree_predictive_commoning.
14027
14028 2011-02-15  Jeff Law  <law@redhat.com>
14029
14030         Revert
14031         2011-01-25  Jeff Law  <law@redhat.com>
14032
14033         PR rtl-optimization/37273
14034         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14035         handle them like argument loads from stack slots.  Do not double
14036         count memory for memory constants and argument loads from stack slots.
14037
14038 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
14039
14040         PR middle-end/47725
14041         * combine.c (cant_combine_insn_p): Revert the last change.
14042
14043 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
14044
14045         PR target/47755
14046         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14047         mode for vector constants.  Remove code that checks for TImode.
14048
14049 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
14050
14051         PR debug/47106
14052         PR debug/47402
14053         * cgraph.h (compute_inline_parameters): Return void.
14054         * ipa-inline.c (compute_inline_parameters): Adjust.
14055
14056 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
14057
14058         PR debug/47106
14059         PR debug/47402
14060         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14061         rather than decl.
14062         * cfgexpand.c (estimated_stack_frame_size): Likewise.
14063         * ipa-inline.c (compute_inline_parameters): Adjust.
14064
14065 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
14066
14067         PR debug/47106
14068         PR debug/47402
14069         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14070         Adjust all users.  Pass FN to...
14071         * tree-flow-inline.h (first_referenced_var): ... this.  Add
14072         fn argument.
14073         * ipa-struct-reorg.c: Adjust.
14074         * tree-dfa.c: Adjust.
14075         * tree-into-ssa.c: Adjust.
14076         * tree-sra.c: Adjust.
14077         * tree-ssa-alias.c: Adjust.
14078         * tree-ssa-live.c: Adjust.
14079         * tree-ssa.c: Adjust.
14080         * tree-ssanames.c: Adjust.
14081         * tree-tailcall.c: Adjust.
14082
14083 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
14084
14085         PR debug/47106
14086         PR debug/47402
14087         * tree-flow.h (referenced_var_lookup): Add fn parameter.
14088         Adjust all callers.
14089         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14090         * tree-flow-inline.h: Adjust.
14091         * gimple-pretty-print.c: Adjust.
14092         * tree-into-ssa.c: Adjust.
14093         * tree-ssa.c: Adjust.
14094         * cfgexpand.c: Adjust.
14095
14096 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
14097
14098         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14099         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14100         (EXTRA_CONSTRAINT): Delete.
14101         * config/iq2000/constraints.md: New file.
14102         * config/iq2000/iq2000.md: Include it.
14103         (define_insn ""): Delete.
14104         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14105         unsupported constraint letters from patterns.
14106         (call_value, call_value_internal1): Likewise.
14107         (call_value_multiple_internal1): Likewise.
14108
14109 2011-02-15  Nick Clifton  <nickc@redhat.com>
14110
14111         * config/mn10300/mn10300.c: Include tm-constrs.h.
14112         (struct liw_data): New data structure describing an LIW candidate
14113         instruction.
14114         (extract_bundle): Use struct liw_data.  Allow small integer
14115         operands for some instructions.
14116         (check_liw_constraints): Use struct liw_data.  Remove swapped
14117         parameter.  Add comments describing the checks.  Fix bug when
14118         assigning the source of liw1 to the source of liw2.
14119         (liw_candidate): Delete.  Code moved into extract_bundle.
14120         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
14121         before swapping.
14122         * config/mn10300/predicates.md (liw_operand): New predicate.
14123         Allows registers and small integer constants.
14124         * config/mn10300/constraints.md (O): New constraint.  Accetps
14125         integers in the range -8 to +7 inclusive.
14126         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14127         for moving a small integer into a register.  Give this alternative
14128         LIW attributes.
14129         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14130         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14131         using the J,K,L and M constraints,
14132         (liw): Remove SI mode on second operands to allow for HI and QI
14133         mode values.
14134         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
14135         instruction.
14136
14137 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
14138
14139         PR middle-end/47725
14140         * combine.c (cant_combine_insn_p): Check zero/sign extended
14141         hard registers.
14142
14143 2011-02-15  Richard Guenther  <rguenther@suse.de>
14144
14145         PR tree-optimization/47743
14146         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14147         for a non-type-compatible VN lookup bail out.
14148
14149 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
14150
14151         * config/fr30/constraints.md: New file.
14152         * config/fr30/fr30.md: Include it.
14153         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14154         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14155         (EXTRA_CONSTRAINT): Delete.
14156
14157 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
14158
14159         * config/frv/constraints.md: New file.
14160         * config/frv/predicates.md: Include it.
14161         * config/frv/frv.c (reg_class_from_letter): Delete.
14162         (frv_option_override): Don't initialize it.
14163         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14164         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14165         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14166         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14167         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14168         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14169         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14170         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14171         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14172         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14173         (REG_CLASS_FROM_CONSTRAINT): Delete.
14174
14175 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
14176
14177         PR middle-end/47581
14178         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14179         if frame size is 0 in a leaf function.
14180
14181 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14182
14183         PR pch/14940
14184         * config/alpha/host-osf.c: New file.
14185         * config/alpha/x-osf: New file.
14186         * config.host (alpha*-dec-osf*): Use it.
14187
14188 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
14189
14190         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14191         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14192         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14193         (rx_mode_dependent_address_p): ...this. Make static. Change argument
14194         type to const_rtx.
14195         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14196
14197 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
14198
14199         * config/stormy16/constraints.md: New file.
14200         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14201         Use satisfies_constraint_Q and satisfies_constraint_R.
14202         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14203         Delete.
14204         (xstormy16_legitiamte_address_p): Declare.
14205         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14206         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14207         (EXTRA_CONSTRAINT): Delete.
14208         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14209         Un-staticize.
14210         (xstormy16_extra_constraint_p): Delete.
14211
14212 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14213
14214         PR tree-optimization/46494
14215         * loop-unroll.c (split_edge_and_insert): Adjust comment.
14216         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14217         (pass_rtl_loop_done): Add TODO_verify_flow.
14218         * fwprop.c (pass_rtl_fwprop): Likewise.
14219         * modulo-sched.c (pass_sms): Likewise.
14220         * tree-ssa-dom.c (pass_dominator): Likewise.
14221         * tree-ssa-loop-ch.c (pass_ch): Likewise.
14222         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14223         (pass_tree_loop_done): Likewise.
14224         * tree-ssa-pre.c (execute_pre): Likewise.
14225         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14226         * tree-ssa-sink.c (pass_sink_code): Likewise.
14227         * tree-vrp.c (pass_vrp): Likewise.
14228
14229 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
14230
14231         * config/v850/constraints.md: New file.
14232         * config/v850/v850.md: Include it.
14233         * config/v850/predicates.md (reg_or_0_operand): Use
14234         satisfies_constraint_G.
14235         (special_symbolref_operand): Use satisfies_constraint_K.
14236         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14237         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14238         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14239         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14240         (EXTRA_CONSTRAINT): Delete.
14241         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14242         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14243         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14244
14245 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
14246
14247         PR target/47696
14248         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14249         description.
14250
14251 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
14252
14253         * config/mcore/constraints.md: New file.
14254         * config/mcore/mcore.md: Include it.
14255         * config/mcore/mcore.c (reg_class_from_letter): Delete.
14256         * config/mcore/mcore.h (reg_class_from_letter): Delete.
14257         (REG_CLASS_FROM_LETTER): Delete.
14258         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14259         insn_const_int_ok_for_constraint.
14260         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14261         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14262         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14263         (EXTRA_CONSTRAINT): Delete.
14264
14265 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14266
14267         PR ada/41929
14268         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14269         (IS_SIGHANDLER): Define.
14270         (sparc64_is_sighandler): New function, split off from
14271         sparc64_fallback_frame_state.
14272         (sparc_is_sighandler): New function, split off from
14273         sparc_fallback_frame_state.
14274         (sparc64_fallback_frame_state): Merge with ...
14275         (sparc_fallback_frame_state): ... this into ...
14276         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14277         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
14278         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
14279         stack instead of hardcoded offsets.
14280
14281 2011-02-14  Andriy Gapon  <avg@freebsd.org>
14282
14283         PR target/45808
14284         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14285
14286 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14287
14288         * configure: Regenerate.
14289
14290 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
14291
14292         PR driver/45731
14293         * gcc.c (asm_options): Correct spec matching --target-help.
14294
14295 2011-02-12  Martin Jambor  <mjambor@suse.cz>
14296
14297         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14298         to gimple call error.
14299
14300 2011-02-12  Mike Stump  <mikestump@comcast.net>
14301
14302         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14303         comments in backslash regions.
14304
14305 2011-02-12  Mike Stump  <mikestump@comcast.net>
14306             Jakub Jelinek  <jakub@redhat.com>
14307             Iain Sandoe  <iains@gcc.gnu.org>
14308
14309         PR target/47324
14310         * dwarf2out.c (output_cfa_loc): When required, apply the
14311         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14312         (output_loc_sequence): Likewise.
14313         (output_loc_operands_raw): Likewise.
14314         (output_loc_sequence_raw): Likewise.
14315         (output_cfa_loc): Likewise.
14316         (output_loc_list): Suppress register number adjustment when
14317         calling output_loc_sequence()
14318         (output_die): Likewise.
14319
14320 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
14321
14322         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14323         Remove macros.
14324         * config/xtensa/xtensa.c (xtensa_register_move_cost,
14325         xtensa_memory_move_cost): New functions.
14326         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14327
14328 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
14329
14330         PR lto/47225
14331         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14332         in the current directory.
14333         * configure: Rebuilt.
14334
14335 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
14336
14337         * config/darwin.c (darwin_override_options): Add a hunk missed
14338         from the commit of r168571.  Trim comment line lengths and
14339         correct indents of the preceding block.
14340
14341 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
14342
14343         * gcc.c (driver_handle_option): Concatenate the argument to -F with
14344         the switch.
14345
14346 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
14347
14348         * common.opt (nostartfiles): New Driver option.
14349
14350 2011-02-11  Xinliang David Li  <davidxl@google.com>
14351
14352         PR tree-optimization/47707
14353         * tree-chrec.c (convert_affine_scev): Keep type precision.
14354
14355 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
14356
14357         PR tree-optimization/47420
14358         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14359
14360 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
14361
14362         PR rtl-optimization/47614
14363         * rtl.h (check_for_inc_dec): Declare.
14364         * dse.c (check_for_inc_dec): Externalize...
14365         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14366         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14367
14368 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
14369
14370         PR driver/47678
14371         * gcc.c (main): Do not compile inputs if there were errors in
14372         option handling.
14373         * opts-common.c (read_cmdline_option): Check for wrong language
14374         after other error checks.
14375
14376 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
14377
14378         * cgraph.c: Fix comment typos.
14379         * cgraph.h: Likewise.
14380         * cgraphunit.c: Likewise.
14381         * ipa-cp.c: Likewise.
14382         * ipa-inline.c: Likewise.
14383         * ipa-prop.c: Likewise.
14384         * ipa-pure-const.c: Likewise.
14385         * ipa-ref.c: Likewise.
14386         * ipa-reference.c: Likewise.
14387
14388 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14389
14390         PR debug/47684
14391         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14392
14393 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14394
14395         PR testsuite/47400
14396         * doc/sourcebuild.texi (Require Support): Document
14397         dg-require-ascii-locale.
14398
14399 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
14400
14401         * doc/lto.texi (Write summary): Fix missing parentheses.
14402
14403 2011-02-10  DJ Delorie  <dj@redhat.com>
14404
14405         * config/m32c/m32c.c (m32c_option_override): Disable
14406         -fcombine-stack-adjustments until flag value tracking and compare
14407         optimization can be rewritten.
14408
14409 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
14410
14411         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14412         PROCESSOR_POWER7.
14413         (PROCESSOR_DEFAULT64): Likewise.
14414
14415 2011-02-10  Richard Henderson  <rth@redhat.com>
14416
14417         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14418         change from 2011-02-03.
14419         * config/rx/rx.c (flags_from_code): Likewise.
14420         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14421         is valid, n/pz otherwise.
14422         (rx_select_cc_mode): Return CCmode if Y is not zero.
14423
14424 2011-02-10  Richard Guenther  <rguenther@suse.de>
14425
14426         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14427
14428 2011-02-10  Richard Guenther  <rguenther@suse.de>
14429
14430         PR tree-optimization/47677
14431         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14432
14433 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
14434
14435         PR target/47665
14436         * combine.c (make_compound_operation): Only change shifts into
14437         multiplication for SCALAR_INT_MODE_P.
14438
14439 2011-02-10  Jie Zhang  <jie@codesourcery.com>
14440
14441         PR testsuite/47622
14442         Revert
14443         2011-02-05  Jie Zhang  <jie@codesourcery.com>
14444         PR debug/42631
14445         * web.c (entry_register): Don't clobber the number of the
14446         first uninitialized reference in used[].
14447
14448 2011-02-09  Richard Guenther  <rguenther@suse.de>
14449
14450         PR tree-optimization/47664
14451         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14452         all edges again.
14453
14454 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
14455
14456         PR target/46481
14457         PR target/47032
14458         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14459         PROCESSOR_POWER7.
14460         (PROCESSOR_DEFAULT64): Same.
14461         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14462
14463 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14464
14465         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14466
14467 2011-02-09  Martin Jambor  <mjambor@suse.cz>
14468
14469         PR middle-end/45505
14470         * tree-sra.c (struct access): New flags grp_scalar_read and
14471         grp_scalar_write.  Changed description of assignment read and write
14472         flags.
14473         (dump_access): Dump new flags, reorder all of them.
14474         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14475         to detect multiple scalar reads.
14476         (analyze_access_subtree): Use the new scalar read write flags instead
14477         of the old flags.  Adjusted comments.
14478
14479 2011-02-08  DJ Delorie  <dj@redhat.com>
14480
14481         PR target/47548
14482         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14483         patterns.
14484
14485 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14486
14487         * config/m68k/uclinux.opt: New.
14488         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14489
14490 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14491
14492         * config/cris/elf.opt (sim): New Driver option.
14493
14494 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14495
14496         * config/xtensa/elf.opt: New.
14497         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14498
14499 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14500
14501         * config/vax/elf.opt: New.
14502         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14503
14504 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14505
14506         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14507
14508 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14509
14510         * config/gnu-user.opt: New.
14511         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14512         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14513         *-*-uclinux*): Use gnu-user.opt.
14514
14515 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
14516
14517         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14518         * config/i386/gnu.h (CPP_SPEC): Likewise.
14519
14520 2011-02-08  Ian Lance Taylor  <iant@google.com>
14521
14522         * common.opt (fcx-limited-range): Add SetByCombined flag.
14523         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14524         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14525         (fassociative-math, freciprocal-math): Likewise.
14526         (funsafe-math-optimizations): Likewise.
14527         * opth-gen.awk: Handle SetByCombined.
14528         * optc-gen.awk: Likewise.
14529         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14530         (set_unsafe_math_optimizations_flags): Likewise.
14531         * doc/options.texi (Option properties): Document SetByCombined.
14532
14533 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14534
14535         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14536         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14537         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14538         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14539         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14540
14541 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
14542
14543         PR tree-optimization/46834
14544         PR tree-optimization/46994
14545         PR tree-optimization/46995
14546         * graphite-sese-to-poly.c (used_outside_reduction): New.
14547         (detect_commutative_reduction): Call used_outside_reduction.
14548         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14549         translate_scalar_reduction_to_array only when at least one
14550         loop-phi/close-phi tuple has been detected.
14551
14552 2011-02-08  Richard Guenther  <rguenther@suse.de>
14553
14554         PR middle-end/47639
14555         * tree-vect-generic.c (expand_vector_operations_1): Update
14556         stmts here ...
14557         (expand_vector_operations): ... not here.  Cleanup EH info
14558         and the CFG if required.
14559
14560 2011-02-08  Richard Guenther  <rguenther@suse.de>
14561
14562         PR tree-optimization/47641
14563         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14564         require type compatibility.
14565
14566 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14567
14568         * gimple-low.c (lower_function_body): Don't remove the location of
14569         the return statement here.
14570         (lower_gimple_return): Do it here instead but only if the return
14571         statement is actually used twice.
14572
14573 2011-02-08  Richard Guenther  <rguenther@suse.de>
14574
14575         PR tree-optimization/47632
14576         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14577         unused up_to_stmt parameter, return whether cfg-cleanup is
14578         necessary, remove EH info properly.
14579         (forward_propagate_into_gimple_cond): Adjust caller.
14580         (forward_propagate_into_cond): Likewise.
14581         (forward_propagate_comparison): Likewise.
14582         (tree_ssa_forward_propagate_single_use_vars): Make
14583         forward_propagate_comparison case similar to the two others.
14584
14585 2011-02-08  Nick Clifton  <nickc@redhat.com>
14586
14587         * config/mn10300/mn10300.opt (mliw): New command line option.
14588         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14589         (liw_bundling): New automaton.
14590         (liw): New attribute.
14591         (liw_op): New attribute.
14592         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14593         (movsi_internal): Add LIW attributes.
14594         (andsi3): Likewise.
14595         (iorsi3): Likewise.
14596         (xorsi3): Likewise.
14597         (addsi3): Separate register and immediate alternatives.
14598         Add LIW attributes.
14599         (subsi3): Likewise.
14600         (cmpsi): Likewise.
14601         (aslsi3): Likewise.
14602         (lshrsi3): Likewise.
14603         (ashrsi3): Likewise.
14604         (liw): New pattern.
14605         * config/mn10300/mn10300.c (liw_op_names): New
14606         (mn10300_print_operand): Handle 'W' operand descriptor.
14607         (extract_bundle): New function.
14608         (check_liw_constraints): New function.
14609         (liw_candidate): New function.
14610         (mn10300_bundle_liw): New function.
14611         (mn10300_reorg): New function.
14612         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14613         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14614         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14615         __LIW__ or __NO_LIW__.
14616         * doc/invoke.texi: Describe the -mliw command line option.
14617
14618 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14619
14620         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14621         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14622         pthread_mutex_unlock): Remove.
14623         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14624         * config/pa/t-pa64: Likewise.
14625         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14626         shared libc if not linking against libpthread.
14627         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14628
14629 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
14630
14631         PR target/47558
14632         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14633         on 10.6 and later to ensure that we always use the unwinder from
14634         the system.  Only add -no_compact_unwind when tarteting darwin
14635         10.6 or later.
14636
14637 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
14638
14639         PR target/46997
14640         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14641         (vec_interleave_lowv2sf): Ditto.
14642         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14643         (vec_extract_oddv2sf): Ditto.
14644
14645 2011-02-07  Mike Stump  <mikestump@comcast.net>
14646
14647         PR target/42333
14648         Add __ieee_divdc3 entry point.
14649         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14650         entry point.
14651         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14652         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14653         * config/darwin.c (darwin_rename_builtins): Add.
14654         * config/darwin-protos.h (darwin_rename_builtins): Add.
14655
14656 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14657
14658         PR target/47636
14659         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14660         for the condition.
14661
14662 2011-02-07  Mike Stump  <mikestump@comcast.net>
14663
14664         * config/darwin.opt (mmacosx-version-min): Update default OS version.
14665
14666 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
14667
14668         PR target/47534
14669         * config/avr/libgcc.S (exit): Move .endfunc
14670
14671 2011-02-07  Richard Guenther  <rguenther@suse.de>
14672
14673         PR tree-optimization/47615
14674         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14675         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14676         (run_scc_vn): Initialize it.
14677         (visit_reference_op_load): Use it.
14678         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14679
14680 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14681
14682         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14683         DImode trapping arithmetic libfuncs.
14684
14685 2011-02-07  Richard Guenther  <rguenther@suse.de>
14686
14687         PR tree-optimization/47621
14688         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14689         two duplicates ...
14690         (execute_update_addresses_taken): ... here.  Make it more
14691         conservative in what we accept.
14692
14693 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14694
14695         * config/sparc/freebsd.h (ASM_SPEC): Define.
14696         * config/sparc/vxworks.h (ASM_SPEC): Define.
14697
14698 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14699
14700         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14701
14702 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
14703
14704         * doc/invoke.texi: Remove reference to compiler internals from
14705         user documentation.
14706
14707         * reg-notes.def: Remove REG_VALUE_PROFILE.
14708         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14709
14710 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
14711
14712         PR middle-end/47610
14713         * varasm.c (default_section_type_flags): If decl is NULL,
14714         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14715
14716 2011-02-05  Jie Zhang  <jie@codesourcery.com>
14717
14718         PR debug/42631
14719         * web.c (entry_register): Don't clobber the number of the
14720         first uninitialized reference in used[].
14721
14722 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
14723
14724         PR tree-optimization/46194
14725         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14726         (build_classic_dist_vector_1): Do not represent classic distance
14727         vectors when the access functions are variating in different loops.
14728
14729 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14730
14731         * config/mips/iris6.opt: New.
14732         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14733
14734 2011-02-04  Richard Henderson  <rth@redhat.com>
14735             Steve Ellcey  <sje@cup.hp.com>
14736
14737         PR target/46997
14738         * config/ia64/predicates.md (mux1_brcst_element): New.
14739         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14740         * config/ia64/ia64.c (ia64_unpack_assemble): New.
14741         (ia64_unpack_sign): New.
14742         (ia64_expand_unpack): Rewrite using new routines.
14743         (ia64_expand_widen_sum): Ditto.
14744         (ia64_expand_dot_prod_v8qi): Ditto.
14745         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14746         routines, add endian check.
14747         (pmpy2_even): Rename from pmpy2_r, add endian check.
14748         (pmpy2_odd): Rename from pmpy2_l, add endian check.
14749         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14750         (vec_widen_smult_hi_v4hi): Ditto.
14751         (vec_widen_umult_lo_v4hi): Ditto.
14752         (vec_widen_umult_hi_v4hi): Ditto.
14753         (mulv2si3): Change endian checks.
14754         (sdot_prodv4hi): Rewrite with new calls.
14755         (udot_prodv4hi): New.
14756         (vec_pack_ssat_v4hi): Add endian check.
14757         (vec_pack_usat_v4hi): Ditto.
14758         (vec_pack_ssat_v2si): Ditto.
14759         (max1_even): Rename from max1_r, add endian check.
14760         (max1_odd): Rename from max1_l, add endian check.
14761         (*mux1_rev): Format change.
14762         (*mux1_mix): Ditto.
14763         (*mux1_shuf): Ditto.
14764         (*mux1_alt): Ditto.
14765         (*mux1_brcst_v8qi): Use new predicate.
14766         (vec_extract_evenv8qi): Remove endian check.
14767         (vec_extract_oddv8qi): Ditto.
14768         (vec_interleave_lowv4hi): Format change.
14769         (vec_interleave_highv4hi): Ditto.
14770         (mix2_even): Rename from mix2_r, add endian check.
14771         (mix2_odd): Rename from mux2_l, add endian check.
14772         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14773         (vec_extract_evenodd_helper): Format change.
14774         (vec_extract_evenv4hi): Remove endian check.
14775         (vec_extract_oddv4hi): Remove endian check.
14776         (vec_interleave_lowv2si): Format change.
14777         (vec_interleave_highv2si): Format change.
14778         (vec_initv2si): Remove endian check.
14779         (vecinit_v2si): Add endian check.
14780         (reduc_splus_v2sf): Add endian check.
14781         (reduc_smax_v2sf): Ditto.
14782         (reduc_smin_v2sf): Ditto.
14783         (vec_initv2sf): Remove endian check.
14784         (fpack): Add endian check.
14785         (fswap): Add endian check.
14786         (vec_interleave_highv2sf): Add endian check.
14787         (vec_interleave_lowv2sf): Add endian check.
14788         (fmix_lr): Add endian check.
14789         (vec_setv2sf): Format change.
14790         (*vec_extractv2sf_0_be): Use shift to extract operand.
14791         (*vec_extractv2sf_1_be): New.
14792         (vec_pack_trunc_v4hi): Add endian check.
14793         (vec_pack_trunc_v2si): Format change.
14794
14795 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
14796
14797         PR inline-asm/23200
14798         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
14799         do bb, locus and block comparison and disallow loads if it is not set.
14800         (stmt_is_replaceable_p): New function.
14801         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14802         callers.
14803         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14804         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14805         SSA_NAME_DEF_STMT.
14806         * tree-flow.h (stmt_is_replaceable_p): New prototype.
14807
14808 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14809
14810         * config/rs6000/xilinx.opt: New.
14811         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14812
14813 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14814
14815         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14816
14817 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
14818
14819         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14820         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14821         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14822         secondary_reload_info, xtensa_secondary_reload): Remove.
14823         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14824         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14825         (xtensa_preferred_reload_class): Make static. Change return and
14826         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14827         Use CONST_DOUBLE_P predicate.
14828         (xtensa_preferred_output_reload_class): New function.
14829         (xtensa_secondary_reload): Make static.
14830
14831 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
14832
14833         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14834         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14835         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14836
14837 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14838
14839         PR middle-end/31490
14840         * output.h (SECTION_RELRO): Define.
14841         (SECTION_MACH_DEP): Adjust.
14842         (get_variable_section): New prototype.
14843         * varpool.c (varpool_finalize_named_section_flags): New function.
14844         (varpool_assemble_pending_decls): Call it.
14845         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14846         * cgraphunit.c (cgraph_output_in_order): Call
14847         varpool_finalize_named_section_flags.
14848         * varasm.c (get_section): Allow section flags conflicts between
14849         relro and read-only sections if the section hasn't been declared yet.
14850         Set SECTION_OVERRIDE after diagnosing section type conflict.
14851         (get_variable_section): No longer static.
14852         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14853         readonly sections that need relocations.
14854         (decl_readonly_section_1): New function.
14855         (decl_readonly_section): Use it.
14856
14857         Revert:
14858         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
14859                     Steve Ellcey  <sje@cup.hp.com>
14860
14861         PR middle-end/31490
14862         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14863         if section attribute used.
14864
14865 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14866
14867         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14868         * config/darwin.c (SECTION_NO_ANCHOR): Define.
14869         (darwin_init_sections): Remove assertion.
14870
14871 2011-02-03  Nick Clifton  <nickc@redhat.com>
14872
14873         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14874         lt and ge.
14875         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14876         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14877         instead of "n" and "pz".
14878         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14879         CC_FLAG_S.
14880
14881 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14882
14883         PR target/47312
14884         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14885         fma, expand FMA_EXPR as fma{,f,l} call.
14886
14887         PR lto/47274
14888         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14889         copy them into a unsigned char variable and pass address of it to
14890         lto_output_data_stream.
14891
14892         PR target/47564
14893         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14894         around backend_init_target and lang_dependent_init_target calls.
14895         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14896         (verify_cgraph_node): Don't call set_cfun here.  Use
14897         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14898         Set error_found for incorrectly represented calls to thunks.
14899
14900 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14901
14902         PR debug/43092
14903         PR rtl-optimization/43494
14904         * rtl.h (for_each_inc_dec_fn): New type.
14905         (for_each_inc_dec): Declare.
14906         * rtlanal.c (struct for_each_inc_dec_ops): New type.
14907         (for_each_inc_dec_find_inc_dec): New fn.
14908         (for_each_inc_dec_find_mem): New fn.
14909         (for_each_inc_dec): New fn.
14910         * dse.c (struct insn_size): Remove.
14911         (replace_inc_dec, replace_inc_dec_mem): Remove.
14912         (emit_inc_dec_insn_before): New fn.
14913         (check_for_inc_dec): Use it, along with for_each_inc_dec.
14914         (canon_address): Pass mem modes to cselib_lookup.
14915         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
14916         (cselib_lookup_from_insn): Likewise.
14917         (cselib_subst_to_values): Likewise.
14918         * cselib.c (find_slot_memmode): New var.
14919         (cselib_find_slot): New fn.  Use it instead of
14920         htab_find_slot_with_hash everywhere.
14921         (entry_and_rtx_equal_p): Use find_slot_memmode.
14922         (autoinc_split): New fn.
14923         (rtx_equal_for_cselib_p): Rename and implement in terms of...
14924         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
14925         Deal with autoinc.  Special-case recursion into MEMs.
14926         (cselib_hash_rtx): Likewise.
14927         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
14928         address and MEM modes.
14929         (cselib_subst_to_values): Add memmode, pass it on.
14930         Deal with autoinc.
14931         (cselib_lookup): Add memmode argument, pass it on.
14932         (cselib_lookup_from_insn): Add memmode.
14933         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14934         (struct cselib_record_autoinc_data): New.
14935         (cselib_record_autoinc_cb): New fn.
14936         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
14937         mode to cselib_lookup.  Reset autoinced REGs here instead of...
14938         (cselib_process_insn): ... here.
14939         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14940         to cselib_lookup.
14941         (add_uses): Likewise, also to cselib_subst_to_values.
14942         (add_stores): Likewise.
14943         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
14944         cselib_subst_to_values.
14945         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
14946         * gcse.c (do_local_cprop): Adjusted.
14947         * postreload.c (reload_cse_simplify_set): Adjusted.
14948         (reload_cse_simplify_operands): Adjusted.
14949         * sel-sched-dump (debug_mem_addr_value): Pass mode.
14950
14951 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14952
14953         PR tree-optimization/45122
14954         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14955         unsafe assumptions when there's more than one loop exit.
14956
14957 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14958
14959         PR target/47272
14960         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14961         Document using vector double with the load/store builtins, and
14962         that the load/store builtins always use Altivec instructions.
14963
14964         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14965         to use altivec memory instructions, even on VSX.
14966         (vector_altivec_store_<mode>): Ditto.
14967
14968         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14969         function.
14970
14971         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14972         V2DF, V2DI support to load/store overloaded builtins.
14973
14974         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14975         altivec load/store builtins for V2DF/V2DI types.
14976
14977         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14978         set avoid indexed addresses on power6 if -maltivec.
14979         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14980         vector_altivec_load/vector_altivec_store builtins.
14981         (altivec_expand_st_builtin): Ditto.
14982         (altivec_expand_builtin): Add VSX memory builtins.
14983         (rs6000_init_builtins): Add V2DI types to internal types.
14984         (altivec_init_builtins): Add support for V2DF/V2DI altivec
14985         load/store builtins.
14986         (rs6000_address_for_altivec): Insure memory address is appropriate
14987         for Altivec.
14988
14989         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14990         vec_vsx_ld and vec_vsx_st.
14991         (vsx_store_<mode>): Ditto.
14992
14993         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14994         variables to hold long long types for VSX vector memory builtins.
14995         (RS6000_BTI_unsigned_long_long): Ditto.
14996         (long_long_integer_type_internal_node): Ditti.
14997         (long_long_unsigned_type_internal_node): Ditti.
14998
14999         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15000         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15001         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15002
15003         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15004         short cuts.
15005         (vec_vsx_st): Ditto.
15006
15007 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
15008
15009         * config/pa/pa-hpux10.opt: New.
15010         * config/hpux11.opt (pthread): New Driver option.
15011         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15012         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15013
15014 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
15015
15016         * config/ia64/vms.opt: New.
15017         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15018
15019 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15020
15021         PR target/47580
15022         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15023         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15024         generator functions.
15025         (vsx_floatuns<VSi><mode>2): Ditto.
15026         (vsx_fix_trunc<mode><VSi>2): Ditto.
15027         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15028
15029 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
15030
15031         * config/i386/djgpp.opt (posix): New Driver option.
15032
15033 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15034
15035         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15036         Move to the unsupported targets list.
15037
15038 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
15039
15040         PR rtl-optimization/47525
15041         * df-scan.c: Update copyright years.
15042         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15043         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15044
15045 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15046
15047         * config/i386/sysv4.h (TARGET_VERSION): Remove.
15048         (SUBTARGET_RETURN_IN_MEMORY): Remove.
15049         (ASM_OUTPUT_ASCII): Remove.
15050         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15051
15052 2011-02-02  Jeff Law  <law@redhat.com>
15053
15054         PR middle-end/47543
15055         * reload.c (find_reloads_address): Handle reg+d address where both
15056         components are invalid by reloading the entire address.
15057
15058 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
15059             Richard Guenther  <rguenther@suse.de>
15060
15061         PR tree-optimization/40979
15062         PR bootstrap/47044
15063         * passes.c (init_optimization_passes): After LIM call copy_prop
15064         and DCE to clean up.
15065         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15066
15067 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
15068
15069         PR tree-optimization/47576
15070         PR tree-optimization/47555
15071         * doc/invoke.texi (scev-max-expr-complexity): Documented.
15072         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15073         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15074         * tree-scalar-evolution.c (follow_ssa_edge): Use
15075         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15076
15077 2011-02-02  Richard Guenther  <rguenther@suse.de>
15078
15079         PR tree-optimization/47566
15080         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15081
15082 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
15083
15084         PR debug/47106
15085         PR debug/47402
15086         * tree-inline.c (declare_return_variable): Remove unused caller
15087         variable.
15088
15089         PR debug/47106
15090         PR debug/47402
15091         * tree-flow-inline.h (clear_is_used, is_used_p): New.
15092         * cfgexpand.c (account_used_vars_for_block): Use them.
15093         * tree-nrv.c (tree_nrv): Likewise.
15094         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15095         (dump_scope_block): Likewise.
15096         (remove_unused_locals): Likewise.
15097
15098         PR debug/47106
15099         PR debug/47402
15100         * tree-inline.c (declare_return_variable): Add result decl to
15101         local decls only once.
15102         * gimple-low.c (record_vars_into): Mark newly-created variables
15103         as referenced.
15104
15105 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
15106
15107         PR debug/47498
15108         PR debug/47501
15109         PR debug/45136
15110         PR debug/45130
15111         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15112         debug insns.
15113         (no_real_insns_p, schedule_block, set_priorities): Drop special
15114         treatment of boundary debug insns.
15115         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15116         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15117         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15118         (BOUNDARY_DEBUG_INSN_P): Likewise.
15119         (SCHEDULE_DEBUG_INSN_P): Likewise.
15120         * sched-rgn.c (init_ready_list): Drop special treatment of
15121         boundary debug insns.
15122         * final.c (rest_of_clean_state): Clear notes' BB.
15123
15124 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15125
15126         * config/openbsd.opt (assert=): New Driver option.
15127
15128 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15129
15130         * config/i386/nto.opt: New.
15131         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15132
15133 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15134
15135         * config/i386/netware.opt: New.
15136         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15137
15138 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15139
15140         * config/interix.opt (posix): New Driver option.
15141
15142 2011-02-01  DJ Delorie  <dj@redhat.com>
15143
15144         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15145
15146         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15147         class for A0/A1.
15148
15149 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
15150
15151         PR tree-optimization/47561
15152         * toplev.c (process_options): Print the Graphite flags.  Add
15153         flag_loop_flatten to the list of options requiring Graphite.
15154
15155 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15156
15157         * config/i386/cygming.opt (posix): New Driver option.
15158
15159 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15160
15161         * config/arm/vxworks.opt: New.
15162         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15163
15164 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
15165
15166         * config/alpha/elf.opt: New.
15167         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15168         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15169
15170 2011-02-01  Richard Guenther  <rguenther@suse.de>
15171
15172         PR tree-optimization/47559
15173         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15174         store-motion on references that can throw.
15175
15176 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
15177
15178         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15179         * tree-pass.h (TDF_CSELIB): New macro.
15180         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15181         cselib_lookup): Check for it rather than for TDF_DETAILS.
15182
15183 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
15184
15185         PR driver/47547
15186         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15187         is HOST_BIT_BUCKET.
15188
15189         * opts.c (finish_options): Don't add x_aux_base_name if it is
15190         HOST_BIT_BUCKET.
15191
15192 2011-02-01  Richard Guenther  <rguenther@suse.de>
15193
15194         PR tree-optimization/47555
15195         Revert
15196         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
15197
15198         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15199
15200 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15201
15202         PR gcc/46692
15203         * config/lm32/t-lm32: Add multilib for all CPU options.
15204
15205 2011-02-01  Richard Guenther  <rguenther@suse.de>
15206
15207         PR tree-optimization/47541
15208         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15209         sure to have a field at offset zero.
15210
15211 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
15212
15213         * config/arc/arc.opt (EB, EL): New Driver options.
15214
15215 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
15216
15217         * config/alpha/osf5.opt: New.
15218         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15219
15220 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
15221
15222         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15223
15224 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
15225
15226         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15227         -floop-interchange.
15228         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15229         is an alias of -floop-interchange and that it requires the
15230         Graphite infrastructure.
15231         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15232         flag_loop_interchange based on the value of flag_tree_loop_linear.
15233
15234 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
15235             Richard Guenther  <rguenther@suse.de>
15236
15237         PR tree-optimization/47538
15238         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15239         type instead of r1type, except for comparisons.  For right
15240         shifts and comparisons punt if there are mismatches in
15241         sizetype vs. non-sizetype types.
15242
15243 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15244
15245         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15246         avx_runtime.
15247
15248 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15249
15250         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15251         version number.
15252         * configure: Regenerate.
15253
15254 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15255
15256         * configure.ac (gcc_cv_ld_static_option): Define.
15257         (gcc_cv_ld_dynamic_option): Define.
15258         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15259         instead.
15260         (HAVE_LD_STATIC_DYNAMIC): Update message.
15261         (LD_STATIC_OPTION): Define.
15262         (LD_DYNAMIC_OPTION): Define.
15263         * configure: Regenerate.
15264         * config.in: Regenerate.
15265         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15266         HAVE_LD_STATIC_DYNAMIC]: Use them.
15267
15268 2011-01-31  Nick Clifton  <nickc@redhat.com>
15269
15270         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15271         registers inside interrupt handlers if the handler is not a leaf
15272         function.
15273
15274 2011-01-31  Nick Clifton  <nickc@redhat.com>
15275
15276         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15277         reg_renumber returning an INVALID_REGNUM.
15278
15279 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
15280
15281         PR libgcj/44341
15282         * doc/install.texi: Document host options discarded when cross
15283         configuring target libraries.
15284
15285 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
15286
15287         Reverted:
15288         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
15289         PR debug/45136
15290         PR debug/45130
15291         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15292         debug insns.
15293         (no_real_insns_p, schedule_block, set_priorities): Drop special
15294         treatment of boundary debug insns.
15295         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15296         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15297         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15298         (BOUNDARY_DEBUG_INSN_P): Likewise.
15299         (SCHEDULE_DEBUG_INSN_P): Likewise.
15300         * sched-rgn.c (init_ready_list): Drop special treatment of
15301         boundary debug insns.
15302         * final.c (rest_of_clean-state): Clear notes' BB.
15303
15304 2011-01-31  Alan Modra  <amodra@gmail.com>
15305
15306         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15307         toc relative expressions as we do in print_operand_address.
15308
15309 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
15310
15311         * doc/extend.texi: Follow spelling conventions.
15312         * doc/invoke.texi: Fix a typo.
15313
15314 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
15315
15316         * config/hpux11.opt: New.
15317         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15318         ia64*-*-hpux*): Use hpux11.opt.
15319
15320 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
15321
15322         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15323         to tmake_file.
15324
15325 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15326
15327         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15328         support sites.
15329
15330 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15331
15332         * doc/install.texi (Binaries): Remove outdated reference for
15333         Motorola 68HC11/68HC12 downloads.
15334
15335 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15336
15337         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15338         Drepper's paper.
15339
15340 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
15341
15342         PR bootstrap/47147
15343         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15344         used by NetBSD.
15345
15346 2011-01-28  Ahmad Sharif  <asharif@google.com>
15347
15348         * value-prof.c (check_counter): Corrected error message.
15349
15350 2011-01-29  Jie Zhang  <jie@codesourcery.com>
15351
15352         * config/arm/arm.c (arm_legitimize_reload_address): New.
15353         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15354         arm_legitimize_reload_address.
15355         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15356
15357 2011-01-28  Ian Lance Taylor  <iant@google.com>
15358
15359         * godump.c (go_define): Ignore macros whose definitions include
15360         two adjacent operands.
15361
15362 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
15363
15364         PR target/42894
15365         * varasm.c (force_const_mem): Store copy of x in desc->constant
15366         instead of x itself.
15367         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15368         itself into REG_EQUAL note.
15369
15370 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
15371
15372         * config/freebsd.opt (posix, rdynamic): New Driver options.
15373
15374 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15375
15376         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15377         -Bstatic/-Bdynamic.
15378         * configure: Regenerate.
15379
15380 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
15381
15382         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15383         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15384
15385 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
15386
15387         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15388         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15389         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15390         (s390_preferred_reload_class): Make static. Change return and
15391         'rclass' argument type to reg_class_t.
15392
15393 2011-01-27  Jan Hubicka  <jh@suse.cz>
15394
15395         PR middle-end/46949
15396         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15397         (process_function_and_variable_attributes): Check defined weakrefs.
15398
15399 2011-01-27  Martin Jambor  <mjambor@suse.cz>
15400
15401         PR tree-optimization/47228
15402         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15403         build_ref_for_offset.
15404
15405 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15406
15407         * config/spu/spu-elf.h (ASM_SPEC): Remove.
15408
15409 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
15410
15411         PR rtl-optimization/46856
15412         * postreload.c (reload_combine_recognize_const_pattern): Do not
15413         separate cc0 setter and user on cc0 targets.
15414
15415 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
15416
15417         PR c/43082
15418         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15419         passed a VOID_TYPE expression, immediately emit an error and
15420         return error_mark_node.
15421
15422 2011-01-26  Jeff Law  <law@redhat.com>
15423
15424         PR rtl-optimization/47464
15425         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15426         rather than may_trap_p as needed.
15427
15428 2011-01-26  DJ Delorie  <dj@redhat.com>
15429
15430         PR rtl-optimization/46878
15431         * combine.c (insn_a_feeds_b): Check for the implicit cc0
15432         setter/user dependency as well.
15433
15434 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15435
15436         PR rtl-optimization/44469
15437         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15438         after removing trivially dead basic blocks.
15439
15440 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15441
15442         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15443         * config/frv/frv.h (LINK_SPEC): Likewise.
15444         * config/i386/netware.h (LINK_SPEC): Likewise.
15445         * config/m68k/linux.h (ASM_SPEC): Likewise.
15446         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15447         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15448         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15449         * config/sparc/linux.h (ASM_SPEC): Likewise.
15450         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15451         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15452
15453 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15454
15455         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15456         * config/frv/frv.h (ASM_SPEC): Likewise.
15457         * config/m68k/linux.h (ASM_SPEC): Likewise.
15458         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15459         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15460         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15461         * config/sparc/linux.h (ASM_SPEC): Likewise.
15462         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15463         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15464
15465 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15466
15467         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15468         * config/frv/frv.h (LINK_SPEC): Likewise.
15469         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15470
15471 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15472
15473         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15474         * config/frv/frv.h (ASM_SPEC): Likewise.
15475         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15476         * config/m68k/linux.h (ASM_SPEC): Likewise.
15477         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15478         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15479         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15480         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15481         * config/sparc/linux.h (ASM_SPEC): Likewise.
15482         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15483         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15484         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15485
15486 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
15487
15488         PR target/46997
15489         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15490         (*mux2): Ditto.
15491         (vec_extract_evenodd_help): Ditto.
15492         (vec_extract_evenv4hi): Ditto.
15493         (vec_extract_oddv4hi): Ditto.
15494         (vec_interleave_lowv2si): Ditto.
15495         (vec_interleave_highv2si): Ditto.
15496         (vec_extract_evenv2si): Ditto.
15497         (vec_extract_oddv2si: Ditto.
15498         (vec_pack_trunc_v2si): Ditto.
15499
15500 2011-01-22  Jan Hubicka  <jh@suse.cz>
15501
15502         PR target/47237
15503         * cgraph.h (cgraph_local_info): New field can_change_signature.
15504         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15505         signature can change.
15506         (ipcp_estimate_growth): Call sequence simplify only if calle signature
15507         can change.
15508         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15509         (cgraph_function_versioning): We can not change signature of functions
15510         that don't allow that.
15511         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15512         (lto_input_node): Likewise.
15513         * ipa-inline.c (compute_inline_parameters): Compute
15514         local.can_change_signature.
15515         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15516         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15517         functions that can not change signature.
15518         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15519         init_cumulative_args): Do not use local calling conventions
15520         for functions that can not change signature.
15521
15522 2011-01-22  Jan Hubicka  <jh@suse.cz>
15523
15524         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15525
15526 2011-01-26  Richard Guenther  <rguenther@suse.de>
15527
15528         PR tree-optimization/47190
15529         * cgraphunit.c (process_common_attributes): New function.
15530         (process_function_and_variable_attributes): Use it.
15531
15532 2011-01-26  Richard Guenther  <rguenther@suse.de>
15533
15534         PR lto/47423
15535         * cgraphbuild.c (record_eh_tables): Record reference to personality
15536         function.
15537
15538 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
15539
15540         PR debug/45454
15541         * sel-sched.c (moveup_expr): Don't let debug insns prevent
15542         non-debug insns from moving up.
15543
15544 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15545
15546         PR target/40125
15547         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15548         t-dlldir{,-x} fragment for build and add it to tmake_file.
15549         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15550         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15551         * config/i386/t-dlldir: New file.
15552         (SHLIB_DLLDIR): Define.
15553         * config/i386/t-dlldir-x: New file.
15554         (SHLIB_DLLDIR): Define.
15555         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15556         (SHLIB_INSTALL): Use it.
15557
15558 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
15559
15560         PR target/47246
15561         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15562         lower bound of the allowed Thumb-2 coprocessor load/store
15563         index range to -256. Add explaining comment.
15564
15565 2011-01-25  Ian Lance Taylor  <iant@google.com>
15566
15567         * godump.c (go_define): Improve lexing of macro expansion to only
15568         accept expressions which match Go spec.
15569
15570 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15571
15572         PR c++/43601
15573         * tree.c (handle_dll_attribute): Handle it.
15574         * doc/extend.texi (@item dllexport): Mention it.
15575         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15576
15577 2011-01-25  Ian Lance Taylor  <iant@google.com>
15578
15579         PR tree-optimization/26854
15580         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15581         (decl_jump_unsafe): Move higher in file, with no other change.
15582         (bind): Set has_jump_unsafe_decl if appropriate.
15583         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15584         (check_earlier_gotos): Likewise.
15585         (c_check_switch_jump_warnings): Likewise.
15586
15587 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
15588
15589         * doc/invoke.texi (Warning Options): Add missing hyphen.
15590         (-fprofile-dir): Minor grammatical fixes.
15591         (-fbranch-probabilities): Likewise.
15592
15593 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
15594
15595         PR debug/45136
15596         PR debug/45130
15597         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15598         debug insns.
15599         (no_real_insns_p, schedule_block, set_priorities): Drop special
15600         treatment of boundary debug insns.
15601         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15602         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15603         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15604         (BOUNDARY_DEBUG_INSN_P): Likewise.
15605         (SCHEDULE_DEBUG_INSN_P): Likewise.
15606         * sched-rgn.c (init_ready_list): Drop special treatment of
15607         boundary debug insns.
15608         * final.c (rest_of_clean-state): Clear notes' BB.
15609
15610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15611
15612         * Makefile.in (LAMBDA_H): Removed.
15613         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15614         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15615         lambda-trans.o, and tree-loop-linear.o.
15616         (lto-symtab.o): Remove dependence on LAMBDA_H.
15617         (tree-loop-linear.o): Remove rule.
15618         (lambda-mat.o): Same.
15619         (lambda-trans.o): Same.
15620         (lambda-code.o): Same.
15621         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15622         (tree-vect-slp.o): Same.
15623         * hwint.h (gcd): Moved here.
15624         (least_common_multiple): Same.
15625         * lambda-code.c: Removed.
15626         * lambda-mat.c: Removed.
15627         * lambda-trans.c: Removed.
15628         * lambda.h: Removed.
15629         * tree-loop-linear.c: Removed.
15630         * lto-symtab.c: Do not include lambda.h.
15631         * omega.c (gcd): Removed.
15632         * passes.c (init_optimization_passes): Remove pass_linear_transform.
15633         * tree-data-ref.c (print_lambda_vector): Moved here.
15634         (lambda_vector_copy): Same.
15635         (lambda_matrix_copy): Same.
15636         (lambda_matrix_id): Same.
15637         (lambda_vector_first_nz): Same.
15638         (lambda_matrix_row_add): Same.
15639         (lambda_matrix_row_exchange): Same.
15640         (lambda_vector_mult_const): Same.
15641         (lambda_vector_negate): Same.
15642         (lambda_matrix_row_negate): Same.
15643         (lambda_vector_equal): Same.
15644         (lambda_matrix_right_hermite): Same.
15645         * tree-data-ref.h: Do not include lambda.h.
15646         (lambda_vector): Moved here.
15647         (lambda_matrix): Same.
15648         (dependence_level): Same.
15649         (lambda_transform_legal_p): Removed declaration.
15650         (lambda_collect_parameters): Same.
15651         (lambda_compute_access_matrices): Same.
15652         (lambda_vector_gcd): Same.
15653         (lambda_vector_new): Same.
15654         (lambda_vector_clear): Same.
15655         (lambda_vector_lexico_pos): Same.
15656         (lambda_vector_zerop): Same.
15657         (lambda_matrix_new): Same.
15658         * tree-flow.h (least_common_multiple): Removed declaration.
15659         * tree-parloops.c (lambda_trans_matrix): Moved here.
15660         (LTM_MATRIX): Same.
15661         (LTM_ROWSIZE): Same.
15662         (LTM_COLSIZE): Same.
15663         (LTM_DENOMINATOR): Same.
15664         (lambda_trans_matrix_new): Same.
15665         (lambda_matrix_vector_mult): Same.
15666         (lambda_transform_legal_p): Same.
15667         * tree-pass.h (pass_linear_transform): Removed declaration.
15668         * tree-ssa-loop.c (tree_linear_transform): Removed.
15669         (gate_tree_linear_transform): Removed.
15670         (pass_linear_transform): Removed.
15671         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15672         flag_loop_interchange.
15673
15674 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15675
15676         PR tree-optimization/47265
15677         PR tree-optimization/47443
15678         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15679         if name still has some uses.
15680
15681 2011-01-25  Martin Jambor  <mjambor@suse.cz>
15682
15683         PR tree-optimization/47382
15684         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15685         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15686
15687 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
15688
15689         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15690         sjlj_except_unwind_info.
15691
15692 2011-01-25  Richard Guenther  <rguenther@suse.de>
15693
15694         PR tree-optimization/47426
15695         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15696         visible functions results escape.
15697
15698 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15699
15700         PR target/45701
15701         * config/arm/arm.c (any_sibcall_uses_r3): New function.
15702         (arm_get_frame_offsets): Use it.
15703
15704 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15705             Jakub Jelinek  <jakub@redhat.com>
15706
15707         PR tree-optimization/47271
15708         * tree-if-conv.c (bb_postdominates_preds): New.
15709         (if_convertible_bb_p): Call bb_postdominates_preds.
15710         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15711         (predicate_scalar_phi): Call bb_postdominates_preds.
15712
15713 2011-01-25  Nick Clifton  <nickc@redhat.com>
15714
15715         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15716         * config/rx/rx.c (rx_function_value): Likewise.
15717         (rx_promote_function_mode): Likewise.
15718         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15719         in order to make it legitimate.
15720         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15721         make sure that the first operand is the same as the result register.
15722         (addsi3_unspec): Delete.
15723         (subdi3): Do not accept immediate operands.
15724         (subdi3_internal): Likewise.
15725
15726 2011-01-25  Jeff Law  <law@redhat.com>
15727
15728         PR rtl-optimization/37273
15729         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15730         handle them like argument loads from stack slots.  Do not double
15731         count memory for memory constants and argument loads from stack slots.
15732
15733 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15734
15735         PR tree-optimization/47427
15736         PR tree-optimization/47428
15737         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15738         coalesce if the new root var would be TREE_READONLY.
15739
15740 2011-01-25  Richard Guenther  <rguenther@suse.de>
15741
15742         PR middle-end/47414
15743         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15744         correct type for TBAA.
15745
15746 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15747
15748         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15749         (close_phi_written_to_memory): Call for_each_index with
15750         dr_indices_valid_in_loop.
15751
15752 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15753
15754         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15755         when it is initialized.
15756
15757 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15758
15759         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15760         call to graphite_find_data_references_in_stmt.
15761         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15762         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
15763         call to graphite_find_data_references_in_stmt.
15764         (analyze_drs_in_stmts): Same.
15765         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15766         in which the scalar analysis of indices is performed.
15767         (create_data_ref): Same.  Update call to dr_analyze_indices.
15768         (find_data_references_in_stmt): Update call to create_data_ref.
15769         (graphite_find_data_references_in_stmt): Same.
15770         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15771         declaration.
15772         (create_data_ref): Same.
15773         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15774         call to create_data_ref.
15775
15776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15777
15778         * graphite-sese-to-poly.c (build_poly_scop): Move
15779         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15780
15781 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15782
15783         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15784         VAR_DECL, PARM_DECL, and RESULT_DECL.
15785
15786 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15787
15788         * graphite-dependences.c (reduction_dr_1): Allow several reductions
15789         in a reduction PBB.
15790         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15791         that have already been marked as PBB_IS_REDUCTION.
15792
15793 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15794
15795         * graphite-scop-detection.c (same_close_phi_node): New.
15796         (remove_duplicate_close_phi): New.
15797         (make_close_phi_nodes_unique): New.
15798         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15799
15800 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15801
15802         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15803         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15804         of both data references to be the same.
15805
15806 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15807
15808         * graphite-dependences.c (build_lexicographical_constraint): Remove
15809         the gdim parameter.
15810         (build_lexicographical_constraint): Adjust call to
15811         ppl_powerset_is_empty.
15812         (dependence_polyhedron): Same.
15813         (graphite_legal_transform_dr): Same.
15814         (graphite_carried_dependence_level_k): Same.
15815         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15816         parameter.
15817         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15818
15819 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15820
15821         * graphite-sese-to-poly.c
15822         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15823         (close_phi_written_to_memory): New.
15824         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15825         and unshare_expr.
15826
15827 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15828
15829         * doc/install.texi: Update the expected version number of PPL to 0.11.
15830         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15831         #if PPL_VERSION_MINOR < 11.
15832
15833 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15834
15835         * graphite-dependences.c: Include graphite-cloog-util.h.
15836         (new_poly_ddr): Inlined into dependence_polyhedron.
15837         (free_poly_ddr): Moved close by new_poly_ddr.
15838         (dependence_polyhedron_1): Renamed dependence_polyhedron.
15839         Early return NULL when ppl_powerset_is_empty returns true.
15840         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
15841         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
15842         (graphite_legal_transform_dr): Call new_poly_ddr.
15843         (graphite_carried_dependence_level_k): Same.
15844         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
15845         (dot_transformed_deps_stmt_1): Removed.
15846         (dot_deps_stmt_1): Call dot_deps_stmt_2.
15847         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
15848         (dot_deps_1): Call dot_deps_2.
15849         * Makefile.in (graphite-dependences.o): Add missing dependence on
15850         graphite-cloog-util.h.
15851
15852 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15853
15854         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15855         (build_lexicographical_constraint): Same.
15856         (dependence_polyhedron_1): Same.
15857         (graphite_legal_transform_dr): Same.
15858         (graphite_carried_dependence_level_k): Same.
15859         * graphite-ppl.c (ppl_powerset_is_empty): New.
15860         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15861         * tree-data-ref.c (dump_data_reference): Print the basic block index.
15862
15863 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15864
15865         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15866         the "a followed by b" relation and document it.
15867
15868 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15869
15870         * graphite-dependences.c (build_lexicographical_constraint): Stop the
15871         iteration when the bag of constraints is empty.
15872
15873 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15874
15875         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15876
15877 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15878
15879         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15880         nest and two loop depths as parameters.
15881         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15882         lst_perfect_nestify.
15883
15884 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15885
15886         * graphite-dependences.c (print_pddr): Call
15887         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15888
15889 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15890
15891         * graphite-ppl.c (debug_gmp_value): New.
15892         * graphite-ppl.h (debug_gmp_value): Declared.
15893
15894 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
15895
15896         * doc/install.texi: Document availability of cloog-0.16.
15897
15898 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
15899
15900         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15901         invalid postdominance info.
15902
15903 2011-01-24  Jan Hubicka  <jh@suse.cz>
15904
15905         PR c/21659
15906         * doc/extend.texi (weak pragma): Drop claim that it must
15907         appear before definition.
15908         * varasm.c (merge_weak, declare_weak): Only sanity check
15909         that DECL is not output at a time it is declared weak.
15910
15911 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
15912
15913         * machmode.def: Fixed comments.
15914
15915 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
15916
15917         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15918
15919 2011-01-24  Paul Koning  <ni1d@arrl.net>
15920
15921         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15922         WORDS_BIG_ENDIAN.
15923
15924 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15925
15926         PR target/46519
15927         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15928         (block_info): Add scanned and prev.
15929         (move_or_delete_vzeroupper_2): Return if the basic block
15930         has been scanned and the upper 128bit state is unchanged
15931         from the last scan.
15932         (move_or_delete_vzeroupper_1): Return true if the exit
15933         state is changed.
15934         (move_or_delete_vzeroupper): Visit basic blocks using the
15935         work-list based algorithm based on vt_find_locations in
15936         var-tracking.c.
15937
15938         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15939
15940 2011-01-24  Nick Clifton  <nickc@redhat.com>
15941
15942         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15943         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15944         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
15945         then define __v850e1__.
15946         * doc/invoke.texi: Document -mv850es.
15947
15948 2011-01-24  Richard Henderson  <rth@redhat.com>
15949
15950         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15951         compound unordered comparisons.
15952         * config/rx/rx.c (rx_split_fp_compare): Remove.
15953         * config/rx/rx-protos.h: Update.
15954         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15955         (cbranchsf4): Don't call rx_split_fp_compare.
15956         (*cbranchsf4): Use rx_split_cbranch.
15957         (*cmpsf): Don't accept "i" constraint.
15958         (*conditional_branch): Only valid after reload.
15959         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
15960
15961 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15962
15963         PR target/47385
15964         * config/rs6000/altivec.md (vector constant splitters): Add
15965         support for creating vector single precision constants if -mvsx is
15966         used and we would create the constant using Altivec primitives.
15967
15968 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
15969             Richard Sandiford  <rdsandiford@googlemail.com>
15970
15971         PR rtl-optimization/47166
15972         * reload1.c (emit_reload_insns): Disable the spill_reg_store
15973         mechanism for PRE_MODIFY and POST_MODIFY.
15974         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15975         reloadreg.
15976
15977 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
15978
15979         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15980
15981 2011-01-22  Jan Hubicka  <jh@suse.cz>
15982
15983         PR lto/47333
15984         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15985
15986 2011-01-22  Jan Hubicka  <jh@suse.cz>
15987
15988         PR tree-optimization/43884
15989         PR lto/44334
15990         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15991         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15992
15993 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
15994
15995         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15996         * config/s390/s390.c (s390_register_move_cost,
15997         s390_memory_move_cost): New.
15998         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15999
16000 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16001
16002         PR middle-end/47401
16003         * except.c (sjlj_assign_call_site_values): Move setting the
16004         crtl->uses_eh_lsda flag to ...
16005         (sjlj_mark_call_sites): ... here.
16006         (sjlj_emit_function_enter): Support NULL dispatch label.
16007         (sjlj_build_landing_pads): In a function with no landing pads
16008         that still has must-not-throw regions, generate code to register
16009         a personality function with empty LSDA.
16010
16011 2011-01-21  Richard Henderson  <rth@redhat.com>
16012
16013         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16014
16015         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16016
16017         * compare-elim.c: New file.
16018         * Makefile.in (OBJS-common): Add it.
16019         (compare-elim.o): New.
16020         * common.opt (fcompare-elim): New.
16021         * opts.c (default_options_table): Add OPT_fcompare_elim.
16022         * tree-pass.h (pass_compare_elim_after_reload): New.
16023         * passes.c (init_optimization_passes): Add it.
16024         * recog.h: Protect against re-inclusion.
16025         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16026         * doc/invoke.texi (-fcompare-elim): Document it.
16027         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16028         * doc/tm.texi: Rebuild.
16029
16030 2011-01-22  Nick Clifton  <nickc@redhat.com>
16031
16032         * config/rx/rx.md (cstoresf4): Pass comparison operator to
16033         rx_split_fp_compare.
16034
16035 2011-01-22  Nick Clifton  <nickc@redhat.com>
16036
16037         * config/rx/rx.md (UNSPEC_CONST): New.
16038         (deallocate_and_return): Wrap the amount popped off the stack in
16039         an UNSPEC_CONST in order to stop it being rejected by
16040         -mmax-constant-size.
16041         (pop_and_return): Add a "(return)" rtx.
16042         (call): Drop the immediate operand.
16043         (call_internal): Likewise.
16044         (call_value): Likewise.
16045         (call_value_internal): Likewise.
16046         (sibcall_internal): Likewise.
16047         (sibcall_value_internal): Likewise.
16048         (sibcall): Likewise.  Generate an explicit call using
16049         sibcall_internal.
16050         (sibcall_value): Likewise.
16051         (mov<>): FAIL if a constant operand is not legitimate.
16052         (addsi3_unpsec): New pattern.
16053
16054         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16055         (ok_for_max_constant): New function.
16056         (gen_safe_add): New function.
16057         (rx_expand_prologue): Use gen_safe_add.
16058         (rx_expand_epilogue): Likewise.
16059         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
16060         UNSPEC CONSTs.
16061
16062 2011-01-21  Jeff Law  <law@redhat.com>
16063
16064         PR tree-optimization/47053
16065         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16066         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16067         statements are deleted.
16068         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
16069         is nonempty, then purge dead edges and cleanup the CFG.
16070
16071 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
16072
16073         PR debug/47402
16074         Temporarily revert:
16075         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
16076         PR debug/47106
16077         * tree-dfa.c (create_var_ann): Mark variable as used.
16078
16079 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
16080
16081         PR middle-end/45566
16082         * except.c (convert_to_eh_region_ranges): Emit queued no-region
16083         notes from other section in hot/cold partitioning even if
16084         last_action is -3.  Increment call_site_base.
16085
16086         PR rtl-optimization/47366
16087         * fwprop.c (forward_propagate_into): Return bool.  If
16088         any changes are made, -fnon-call-exceptions is used and
16089         REG_EH_REGION note is present, call purge_dead_edges
16090         and return true if it purged anything.
16091         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16092         any EH edges were purged.
16093
16094 2011-01-21  Jeff Law  <law@redhat.com>
16095
16096         PR rtl-optimization/41619
16097         * caller-save.c (setup_save_areas): Break out code to determine
16098         which hard regs are live across calls by examining the reload chains
16099         so that it is always used.
16100         Eliminate code which checked REG_N_CALLS_CROSSED.
16101
16102 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
16103
16104         PR tree-optimization/47355
16105         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16106         NOP has non-debug uses beyond PHIs in new_bb.
16107
16108 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
16109
16110         PR debug/47106
16111         * cfgexpand.c (account_used_vars_for_block): Only account vars
16112         that are annotated as used.
16113         (estimated_stack_frame_size): Don't set TREE_USED.
16114         * tree-dfa.c (create_var_ann): Mark variable as used.
16115
16116 2011-01-21  Richard Guenther  <rguenther@suse.de>
16117
16118         PR middle-end/47395
16119         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16120
16121 2011-01-21  Richard Guenther  <rguenther@suse.de>
16122
16123         PR tree-optimization/47365
16124         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16125         (vn_reference_lookup_pieces): Adjust.
16126         (vn_reference_lookup): Likewise.
16127         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16128         (vn_reference_lookup_3): Only look through kills if in
16129         VN_WALKREWRITE mode.
16130         (vn_reference_lookup_pieces): Adjust.
16131         (vn_reference_lookup): Likewise.
16132         (visit_reference_op_load): Likewise.
16133         (visit_reference_op_store): Likewise.
16134         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16135         (compute_avail): Likewise.
16136         (eliminate): Likewise.
16137
16138 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
16139
16140         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16141         DECL_IGNORED_P non-reg vars if they are used.
16142
16143         PR tree-optimization/47391
16144         * varpool.c (const_value_known_p): Return false if
16145         decl is volatile.
16146
16147 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
16148
16149         PR bootstrap/47215
16150         * config/i386/i386.c (ix86_local_alignment): Handle
16151         case for va_list_type_node is nil.
16152         (ix86_canonical_va_list_type): Likewise.
16153
16154 2011-01-21  Alan Modra  <amodra@gmail.com>
16155
16156         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16157         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16158
16159 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16160
16161         * config/arm/arm.md (define_attr type): Rename f_load
16162         and f_store to f_fpa_load and f_fpa_store. Update.
16163         (write_conflict): Deal with rename fallout.
16164         (*push_fp_multi): Likewise.
16165         * config/arm/fpa.md (f_load): Use f_fpa_load.
16166         (f_store): Use f_fpa_store.
16167         (*movsf_fpa): Likewise.
16168         (*movdf_fpa): Likewise.
16169         (*movxf_fpa): Likewise.
16170         (*thumb2_movsf_fpa): Likewise.
16171         (*thumb2_movdf_fpa): Likewise.
16172         (*thumb2_movxf_fpa): Likewise.
16173         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16174         f_loadd and f_stored.
16175         (*thumb2_movdi_vfp): Likewise.
16176         (*thumb2_movsf_vfp): Fix attribute to f_loads.
16177         (*thumb2_movsi_vfp): Likewise.
16178         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16179         Use f_loads instead of f_load.
16180         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16181
16182 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
16183
16184         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16185         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16186         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16187         (xtensa_mode_dependent_address_p): New function.
16188         (constantpool_address_p): Make static. Change return type to bool.
16189         Change argument type to const_rtx. Use CONST_INT_P predicate.
16190
16191 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
16192
16193         PR debug/46583
16194         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16195
16196 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
16197
16198         PR debug/47283
16199         * cfgexpand.c (expand_debug_expr): Instead of generating
16200         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16201         etc. handling.
16202
16203 2011-01-20  Richard Guenther  <rguenther@suse.de>
16204
16205         PR middle-end/47370
16206         * tree-inline.c (remap_gimple_op_r): Recurse manually for
16207         the pointer operand of MEM_REFs.
16208
16209 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
16210
16211         PR tree-optimization/46130
16212         * ipa-split.c (consider_split): If return_bb contains non-virtual
16213         PHIs other than for retval or if split_function would not adjust it,
16214         refuse to split.
16215
16216 2011-01-20  Richard Guenther  <rguenther@suse.de>
16217
16218         PR tree-optimization/47167
16219         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16220         Revert previous change, only avoid enumeral type changes.
16221
16222 2011-01-19  Mike Stump  <mikestump@comcast.net>
16223
16224         * doc/tm.texi.in (BRANCH_COST): Englishify.
16225         * doc/tm.texi (BRANCH_COST): Likewise.
16226
16227 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
16228
16229         PR c++/47291
16230         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16231         (gen_scheduled_generic_parms_dies): New functions.
16232         (gen_struct_or_union_type_die): Schedule template parameters DIEs
16233         generation for the end of CU compilation.
16234         (dwarf2out_finish): Generate template parameters DIEs here.
16235
16236 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16237
16238         PR debug/46240
16239         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16240         debug bind stmt on merge edges.
16241
16242 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16243
16244         PR debug/47079
16245         PR debug/46724
16246         * function.c (instantiate_expr): Instantiate incoming rtl of
16247         implicit arguments, and recurse on VALUE_EXPRs.
16248         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16249         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16250
16251 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16252
16253         * c-parser.c (c_parser_for_statement): Initialize
16254         collection_expression.
16255
16256 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16257
16258         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16259
16260 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16261
16262         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16263         (LINK_SHLIB_SPEC): Don't use %(link_path).
16264         (SUBTARGET_EXTRA_SPECS): Remove link_path.
16265
16266 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16267
16268         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16269         (NO_SHARED_LIB_SUPPORT): Remove.
16270         (LINK_SHLIB_SPEC): Remove one conditional definition.
16271
16272 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16273
16274         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16275         %{call_shared}.
16276         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16277         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16278         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16279         %{call_shared} and conditionals on these options not being passed.
16280         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16281         %{call_shared}.
16282
16283 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
16284
16285         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16286         simplify.
16287
16288         * ipa-split.c: Spelling fixes.
16289
16290 2011-01-19  Richard Henderson  <rth@redhat.com>
16291
16292         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16293         (*mulsi3): Likewise.
16294
16295         * longlong.h [__mn10300__] (count_leading_zeros): New.
16296         [__mn10300__] (umul_ppmm, smul_ppmm): New.
16297         [__mn10300__] (add_ssaaaa, subddmmss): New.
16298         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16299         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16300
16301 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16302
16303         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16304
16305 2011-01-19  Richard Henderson  <rth@redhat.com>
16306
16307         * config/mn10300/mn10300.md (addsi3_flags): New.
16308         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16309         (subsi3_flags, subc_internal, subdi3): New.
16310         (subdi3_internal, *subdi3_degenerate): New.
16311         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16312
16313         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16314         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16315         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
16316         * config/mn10300/mn10300-protos.h: Update.
16317         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16318         (return_ret): Likewise.  Rename from return_internal_regs.
16319         (return_internal): Remove.
16320
16321         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16322         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16323         (mn10300_legitimate_constant_p): Likewise.
16324         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16325         (mn10300_frame_size): New.
16326         (mn10300_expand_prologue): Use it.
16327         (mn10300_expand_epilogue): Likewise.
16328         (mn10300_initial_offset): Likewise.
16329         * config/mn10300/mn10300-protos.h: Update.
16330         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16331         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16332         (prologue, epilogue, return_internal): Tidy output code.
16333         (mn10300_store_multiple_operation, return): Likewise.
16334         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16335         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16336         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16337         (load_pic, am33_load_pic): New.
16338         (mn10300_load_pic0, mn10300_load_pic1): New.
16339
16340         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16341         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16342         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16343         (cc_flags_for_mode, cc_flags_for_code): New.
16344         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16345         overflow flag is not valid.  Validate that the flags we need
16346         for the comparison are valid.
16347         (mn10300_output_cmp): Remove.
16348         (mn10300_output_add): New.
16349         (mn10300_select_cc_mode): Use cc_flags_for_code.
16350         (mn10300_split_cbranch): New.
16351         (mn10300_match_ccmode): New.
16352         (mn10300_split_and_operand_count): New.
16353         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16354         to the function.
16355         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16356         (addsi3): ... here.  Use mn10300_output_add.
16357         (*addsi3_flags): New.
16358         (*am33_subsi3, *mn10300_subsi3): Merge...
16359         (subsi3): ... here.  Use attribute isa.
16360         (*subsi3_flags): New.
16361         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
16362         when possible.
16363         (*am33_andsi3, *mn10300_andsi3): Merge...
16364         (andsi3): ... here.
16365         (*andsi3_flags): New.
16366         (andsi3 splitters): New.
16367         (*am33_iorsi3, *mn10300_iorsi3): Merge...
16368         (iorsi3): ... here.
16369         (*iorsi3_flags): New.
16370         (*am33_xorsi3, *mn10300_xorsi3): Merge...
16371         (xorsi3): ... here.
16372         (*xorsi3_flags): New.
16373         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16374         (one_cmplsi2): ... here.
16375         (*one_cmplsi2_flags): New.
16376         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
16377         instead of "dax" in constraints.  Use mn10300_split_cbranch.
16378         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
16379         use matching constraints to eliminate a self-comparison.
16380         (*integer_conditional_branch): Rename from integer_conditional_branch.
16381         Use int_mode_flags to match CC_REG.
16382         (*cbranchsi4_btst, *btstsi): New.
16383         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
16384         mn10300_split_cbranch.
16385         (*am33_cmpsf): Rename from am33_cmpsf.
16386         (*float_conditional_branch): Rename from float_conditional_branch.
16387         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16388         (zero_extendqisi2): ... here.
16389         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16390         (zero_extendhisi2): ... here.
16391         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16392         (extendqisi2): ... here.
16393         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16394         (extendhisi2): ... here.
16395         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16396         (ashlsi3): ... here.
16397         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16398         (lshrsi3): ... here.
16399         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16400         (ashrsi3): ... here.
16401         (consecutive add peephole): Remove.
16402         * config/mn10300/predicates.md (label_ref_operand): New.
16403         (int_mode_flags): New.
16404         (CCZN_comparison_operator): New.
16405
16406         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16407         (throughput_42_latency_43): New reservation.
16408         (mulsidi3, umulsidi3): New expanders.
16409         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
16410         the MDR register to allocation; separately allocate the low and
16411         high parts of the DImode result.
16412         (umulsidi3_internal): Similarly.
16413         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16414         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
16415         (udivsi3, umodsi3): Remove.
16416         (udivmodsi4, divmodsi4): New expanders.
16417         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
16418         (*divmodsi4): Simiarly.
16419         (ext_internal): New.
16420
16421         * config/mn10300/constraints.md ("z"): New constraint.
16422         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16423         (FIXED_REGISTERS): Don't fix MDR.
16424         (CALL_USED_REGSITERS): Reformat nicely.
16425         (REG_ALLOC_ORDER): Add MDR.
16426         (enum regclass): Add MDR_REGS.
16427         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16428         (IRA_COVER_CLASSES): Add MDR_REGS.
16429         (REGNO_REG_CLASS): Handle MDR_REG.
16430         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16431         (mn10300_register_move_cost): Likewise.
16432         * config/mn10300/mn10300.md (MDR_REG): New.
16433         (*movsi_internal): Handle moves to/from MDR_REGS.
16434
16435         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16436         POST_MODIFY.
16437         (mn10300_secondary_reload): Tidy combination reload classes.
16438         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16439         addresses for AM33.  Allow symbolic offsets for reg+imm.
16440         (mn10300_regno_in_class_p): New.
16441         (mn10300_legitimize_reload_address): New.
16442         * config/mn10300/mn10300.h (enum reg_class): Remove
16443         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16444         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
16445         SP_OR_GENERAL_REGS.
16446         (REG_CLASS_NAMES): Update to match.
16447         (REG_CLASS_CONTENTS): Likewise.
16448         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16449         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16450         (REGNO_IN_RANGE_P): Remove.
16451         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16452         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16453         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16454         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16455         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16456         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16457         (REGNO_GENERAL_P): New.
16458         (HAVE_POST_MODIFY_DISP): New.
16459         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16460         (LEGITIMIZE_RELOAD_ADDRESS): New.
16461         * config/mn10300/mn10300-protos.h: Update.
16462
16463         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16464         DATA_REGS for AM33 stack-pointer destination.
16465         (mn10300_preferred_output_reload_class): Likewise.
16466         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16467         into a form appropriate for ...
16468         (TARGET_SECONDARY_RELOAD): New.
16469         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16470         * config/mn10300/mn10300-protos.h: Update.
16471         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16472         reload_insi; use the "A" constraint for the scratch; handle AM33
16473         moves of sp to non-address registers.
16474
16475         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16476         (*movqi_internal): ... here.
16477         (*am33_movhi, *mn10300_movhi): Merge into...
16478         (*movhi_internal): ... here.
16479         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
16480         as the source/destination of moves from/to SP.
16481         (movsf): Only allow for AM33-2.
16482         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16483         any integer constant constraint.  Only allow for AM33-2.  Tidy
16484         all of the alternative outputs.
16485         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16486         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
16487         for MN103.
16488         (udivsi3, umodsi3): New patterns for MN103 only.
16489
16490 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
16491
16492         * doc/tm.texi.in: Spell out that a lack of register class unions
16493         can lead to ICEs.
16494         * doc/tm.texi: Regenerate.
16495
16496 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
16497
16498         PR rtl-optimization/47337
16499         * dce.c (check_argument_store): New function.
16500         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
16501
16502         PR tree-optimization/47290
16503         * tree-eh.c (infinite_empty_loop_p): New function.
16504         (cleanup_empty_eh): Use it.
16505
16506 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
16507
16508         PR target/46997
16509         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16510         (a64_expand_widen_sum): Ditto.
16511         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16512         (vec_extract_evenodd_help): Ditto.
16513         (vec_extract_evenv4hi): Ditto.
16514         (vec_extract_oddv4hi): Ditto.
16515         (vec_extract_evenv2si): Ditto.
16516         (vec_extract_oddv2si): Ditto.
16517         (vec_extract_evenv2sf): Ditto.
16518         (vec_extract_oddv2sf): Ditto.
16519         (vec_pack_trunc_v4hi: Ditto.
16520         (vec_pack_trunc_v2si): Ditto.
16521         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16522         (vec_interleave_highv8qi): Ditto.
16523         (mix1_r): Ditto.
16524         (vec_extract_oddv8qi): Ditto.
16525         (vec_interleave_lowv4hi): Ditto.
16526         (vec_interleave_highv4hi): Ditto.
16527         (vec_interleave_lowv2si): Ditto.
16528         (vec_interleave_highv2si): Ditto.
16529
16530 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16531
16532         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16533         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16534         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
16535         (pa_c_mode_for_suffix): New.
16536         (TARGET_EXPAND_BUILTIN): Define.
16537         (TARGET_C_MODE_FOR_SUFFIX): Define.
16538         (pa_builtins): Define.
16539         (pa_init_builtins): Register __float128 type and init new support
16540         builtins.
16541         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16542         * config/pa/quadlib.c (_U_Qfcopysign): New.
16543
16544 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
16545
16546         PR middle-end/46894
16547         * explow.c (allocate_dynamic_stack_space): Do not assume more than
16548         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16549         are defined.
16550
16551 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16552
16553         PR tree-optimization/47179
16554         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16555         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16556
16557 2011-01-18  Richard Guenther  <rguenther@suse.de>
16558
16559         PR rtl-optimization/47216
16560         * emit-rtl.c: Include tree-flow.h.
16561         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16562         of replicating it with different semantics.
16563         * Makefile.in (emit-rtl.o): Adjust.
16564
16565 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16566
16567         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16568         (cortex_a9_dp): Handle neon types correctly.
16569
16570 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
16571
16572         PR rtl-optimization/47299
16573         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16574         subtarget.  Use normal multiplication if both operands are constants.
16575         * expmed.c (expand_widening_mult): Don't try to optimize constant
16576         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
16577         before using it.
16578
16579 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16580
16581         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
16582         spacing after 'e.g.', typos, comma, hyphenation.
16583
16584 2011-01-17  Richard Henderson  <rth@redhat.com>
16585
16586         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16587         (rx_restricted_mem_operand): New.
16588         (rx_shift_operand): Use register_operand.
16589         (rx_source_operand, rx_compare_operand): Likewise.
16590         * config/rx/rx.md (addsi3_flags): New expander.
16591         (adddi3): Rewrite as expander.
16592         (adc_internal, *adc_flags, adddi3_internal): New patterns.
16593         (subsi3_flags): New expander.
16594         (subdi3): Rewrite as expander.
16595         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16596
16597         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16598         (rx_init_builtins): Remove sat builtin.
16599         (rx_expand_builtin): Likewise.
16600         * config/rx/rx.md (ssaddsi3): New.
16601         (*sat): Rename from sat.  Represent the CC_REG input.
16602
16603         * config/rx/predicates.md (rshift_operator): New.
16604         * config/rx/rx.c (rx_expand_insv): Remove.
16605         * config/rx/rx-protos.h: Update.
16606         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
16607         operand to the canonical position.
16608         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16609         (*bitclr, *bitclr_in_memory): Similarly.
16610         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16611         (insv): Retain the zero_extract in the expansion.
16612
16613         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16614         (bswaphi2, bitinvert, revw): Likewise.
16615
16616         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16617         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16618         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16619         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16620         (bitset, bitset_in_memory): Likewise.
16621         (bitinvert, bitinvert_in_memory): Likewise.
16622         (bitclr, bitclr_in_memory): Likewise.
16623         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16624         (rx_strend, rx_cmpstrn): Likewise.
16625         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
16626         (bitop peep2 patterns): Remove.
16627
16628         * config/rx/rx.c (rx_match_ccmode): New.
16629         * config/rx/rx-protos.h: Update.
16630         * config/rx/rx.md (abssi2): Clobber, don't set flags.
16631         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16632         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16633         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16634         (fix_truncsfsi2, floatsisf2): Likewise.
16635         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16636         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16637         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16638         (*subsi3_flags, *xorsi3_flags): New.
16639
16640         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16641
16642         * config/rx/rx.c (rx_print_operand): Remove workaround for
16643         unsplit comparison operations.
16644
16645         * config/rx/rx.md (movsicc): Split after reload.
16646         (*movsicc): Merge *movsieq and *movsine via match_operator.
16647         (*stcc): New pattern.
16648
16649         * config/rx/rx.c (rx_float_compare_mode): Remove.
16650         * config/rx/rx.h (rx_float_compare_mode): Remove.
16651         * config/rx/rx.md (cstoresi4): Split after reload.
16652         (*sccc): New pattern.
16653
16654         * config/rx/predicates.md (label_ref_operand): New.
16655         (rx_z_comparison_operator): New.
16656         (rx_zs_comparison_operator): New.
16657         (rx_fp_comparison_operator): New.
16658         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16659         Validate that the flags are set properly for the comparison.
16660         (rx_gen_cond_branch_template): Remove.
16661         (rx_cc_modes_compatible): Remove.
16662         (mode_from_flags): New.
16663         (flags_from_code): Rename from flags_needed_for_conditional.
16664         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16665         (rx_select_cc_mode): Likewise.
16666         (rx_split_fp_compare): New.
16667         (rx_split_cbranch): New.
16668         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16669         (*cbranchsi4): Use match_operator and rx_split_cbranch.
16670         (*cbranchsf4): Similarly.
16671         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
16672         match_operator and rx_split_cbranch.
16673         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16674         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
16675         (*cmpsi): Rename from cmpsi.
16676         (*tstsi): Rename from tstsi.
16677         (*cmpsf): Rename from cmpsf; use CC_Fmode.
16678         (*conditional_branch): Rename from conditional_branch.
16679         (*reveresed_conditional_branch): Remove.
16680         (b<code>): Remove expander.
16681         * config/rx/rx-protos.h: Update.
16682
16683         * config/rx/rx.c (rx_compare_redundant): Remove.
16684         * config/rx/rx.md (cmpsi): Don't use it.
16685         * config/rx/rx-protos.h: Update.
16686
16687         * config/rx/rx-modes.def (CC_F): New mode.
16688         * config/rx/rx.c (rx_select_cc_mode): New.
16689         * config/rx/rx.h (SELECT_CC_MODE): Use it.
16690         * config/rx/rx-protos.h: Update.
16691
16692 2011-01-17  Richard Henderson  <rth@redhat.com>
16693
16694         * except.c (dump_eh_tree): Fix stray ; after for statement.
16695
16696 2011-01-17  Richard Guenther  <rguenther@suse.de>
16697
16698         PR tree-optimization/47313
16699         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16700         handling before copying the body.  Properly deal with
16701         by-reference result in SSA form.
16702
16703 2011-01-17  Ian Lance Taylor  <iant@google.com>
16704
16705         PR target/47219
16706         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16707         (struct_value_alias_set): Don't define.
16708         (sparc_option_override): Don't set sparc_sr_alias_set and
16709         struct_value_alias_set.
16710         (save_or_restore_regs): Use gen_frame_mem rather than calling
16711         set_mem_alias_set.
16712         (sparc_struct_value_rtx): Likewise.
16713
16714 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16715
16716         PR target/47318
16717         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16718         (_mm_maskstore_pd): Likewise.
16719         (_mm_maskload_ps): Likewise.
16720         (_mm_maskstore_ps): Likewise.
16721         (_mm256_maskload_pd): Change mask to __m256i.
16722         (_mm256_maskstore_pd): Likewise.
16723         (_mm256_maskload_ps): Likewise.
16724         (_mm256_maskstore_ps): Likewise.
16725
16726         * config/i386/i386-builtin-types.def: Updated.
16727         (ix86_expand_special_args_builtin): Likewise.
16728
16729         * config/i386/i386.c (bdesc_special_args): Update
16730         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16731         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16732         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16733         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16734
16735         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16736         Use <avxpermvecmode> on mask register.
16737         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16738
16739 2011-01-17  Olivier Hainque  <hainque@adacore.com>
16740             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16741             Eric Botcazou  <ebotcazou@adacore.com>
16742
16743         PR target/46655
16744         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16745         if <= USHRT_MAX in 32-bit mode.
16746
16747 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16748
16749         * doc/install.texi (Configuration, Specific): Wrap long
16750         lines in examples.  Allow line wrapping in long options
16751         and URLs where beneficial for PDF output.
16752
16753 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
16754
16755         * config/mips/mips.c (mips_classify_symbol): Don't return
16756         SYMBOL_PC_RELATIVE for nonlocal labels.
16757
16758 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16759
16760         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16761
16762 2011-01-15  Jan Hubicka  <jh@suse.cz>
16763
16764         PR tree-optimization/47276
16765         * ipa.c (function_and_variable_visibility): Do not try to mark alias
16766         declarations as needed.
16767
16768 2011-01-15  Martin Jambor  <mjambor@suse.cz>
16769
16770         * common.opt (fdevirtualize): New flag.
16771         * doc/invoke.texi (Option Summary): Document it.
16772         * opts.c (default_options_table): Add devirtualize flag.
16773         * ipa-prop.c (detect_type_change): Return immediately if
16774         devirtualize flag is not set.
16775         (detect_type_change_ssa): Likewise.
16776         (compute_known_type_jump_func): Likewise.
16777         (ipa_analyze_virtual_call_uses): Likewise.
16778
16779 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16780
16781         PR tree-optimization/45934
16782         PR tree-optimization/46302
16783         * ipa-prop.c (type_change_info): New type.
16784         (stmt_may_be_vtbl_ptr_store): New function.
16785         (check_stmt_for_type_change): Likewise.
16786         (detect_type_change): Likewise.
16787         (detect_type_change_ssa): Likewise.
16788         (compute_complex_assign_jump_func): Check for dynamic type change.
16789         (compute_complex_ancestor_jump_func): Likewise.
16790         (compute_known_type_jump_func): Likewise.
16791         (compute_scalar_jump_functions): Likewise.
16792         (ipa_analyze_virtual_call_uses): Likewise.
16793         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16794
16795 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16796
16797         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16798         * config/i386/i386.opt (msse5): New Alias.
16799
16800 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16801
16802         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16803         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16804         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16805         * config/sparc/sparc.h (CC1_SPEC): Likewise.
16806
16807 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16810         -mcpu options.
16811         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16812         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16813         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16814         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16815         Likewise.
16816         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16817
16818 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16819
16820         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16821
16822 2011-01-14  Mike Stump  <mikestump@comcast.net>
16823
16824         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16825         * config/fr30/fr30.md: Likweise
16826         (movsi_push): Likewise.
16827         (movsi_pop): Likewise.
16828         (enter_func): Likewise.
16829         * config/moxie/moxie.md (movsi_push): Likewise.
16830         (movsi_pop): Likewise.
16831
16832 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16833
16834         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16835         %{no_archive} %{exact_version}.
16836         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16837         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16838         %{no_archive} %{exact_version}.
16839         * config/mips/openbsd.h (LINK_SPEC): Likewise.
16840         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16841         * config/mips/vxworks.h: Likewise.
16842
16843 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16844
16845         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16846
16847 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16848
16849         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16850         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16851
16852 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16853
16854         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16855         -nodefaultlib.
16856
16857 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16858
16859         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16860         for mcpu not cpu.
16861         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16862         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16863         not cpu.
16864         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16865         Don't handle -shlib.
16866
16867 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16868
16869         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16870         (CC1_SPEC): Don't handle -profile.
16871
16872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16873
16874         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16875         * config/mips/mips.h (CC1_SPEC): Likewise.
16876
16877 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16878
16879         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16880         * config/mips/mips.h (CC1_SPEC): Likewise.
16881
16882 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16883
16884         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16885         * config/m32r/linux.h (LINK_SPEC): Likewise.
16886         * config/mips/linux.h (LINK_SPEC): Likewise.
16887         * config/mips/linux64.h (LINK_SPEC): Likewise.
16888         * config/sparc/linux.h (LINK_SPEC): Likewise.
16889         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16890         LINK_SPEC): Likewise.
16891         * config/xtensa/linux.h (LINK_SPEC): Likewise.
16892
16893 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16894
16895         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16896         %{version:-v}.
16897         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16898
16899 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16900
16901         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16902         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16903
16904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16905
16906         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16907
16908 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16909
16910         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16911         supports -Bstatic/-Bdynamic.
16912         * configure: Regenerate.
16913
16914 2011-01-14  Jan Hubicka  <jh@suse.cz>
16915             Jack Howarth  <howarth@bromo.med.uc.edu>
16916
16917         PR target/46037
16918         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16919         when checking debug_info_level. Test write_symbols instead of
16920         debug_hooks->var_location when setting flag_var_tracking_uninit.
16921
16922 2011-01-14  Richard Guenther  <rguenther@suse.de>
16923
16924         PR tree-optimization/47179
16925         * target.def (ref_may_alias_errno): New target hook.
16926         * targhooks.h (default_ref_may_alias_errno): Declare.
16927         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16928         (default_ref_may_alias_errno): New function.
16929         * target.h (struct ao_ref_s): Declare.
16930         * tree-ssa-alias.c: Include target.h.
16931         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16932         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16933         (targhooks.o): Likewise.
16934         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16935         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16936
16937 2011-01-14  Richard Guenther  <rguenther@suse.de>
16938
16939         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
16940
16941 2011-01-14  Richard Guenther  <rguenther@suse.de>
16942
16943         PR tree-optimization/47280
16944         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16945         return CFG changes.
16946         (tree_ssa_forward_propagate_single_use_vars): Deal with
16947         CFG changes from associate_plusminus.
16948
16949 2011-01-14  Richard Guenther  <rguenther@suse.de>
16950
16951         PR middle-end/47281
16952         Revert
16953         2011-01-11  Richard Guenther  <rguenther@suse.de>
16954
16955         PR tree-optimization/46076
16956         * tree-ssa.c (useless_type_conversion_p): Conversions from
16957         unprototyped to empty argument list function types are useless.
16958
16959 2011-01-14  Richard Guenther  <rguenther@suse.de>
16960
16961         PR tree-optimization/47286
16962         * tree-ssa-structalias.c (new_var_info): Register variables are global.
16963
16964 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16965
16966         PR middle-end/46823
16967         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16968
16969 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
16970
16971         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16972         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16973         * config/xtensa/xtensa.c (xtensa_libcall_value,
16974         xtensa_function_value_regno_p): New functions.
16975         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16976
16977 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
16978
16979         PR c++/47213
16980         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16981         PE specific hook.
16982         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16983         New function prototype.
16984         * config/i386/winnt.c (i386_pe_assemble_visibility):
16985         Warn only if attribute was specified by user.
16986
16987 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16988
16989         PR target/47251
16990         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16991         floating point.
16992         (floatunsdidf2_fcfidu): Ditto.
16993
16994 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16995
16996         * config/s390/s390.c (print_operand_address): Replace 'error' with
16997         'output_operand_lossage'.
16998         (print_operand): Likewise.
16999
17000 2011-01-13  Jeff Law  <law@redhat.com>
17001
17002         PR rtl-optimization/39077
17003         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17004         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17005         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17006         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17007         * gcse.c (prune_insertions_deletions): New function.
17008         (compute_pre_data): Use it.
17009
17010 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
17011
17012         PR debug/PR46973
17013         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17014         static function.
17015         (prune_unused_types_mark): Use it.
17016
17017 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
17018
17019         PR rtl-optimization/45352
17020         * sel-sched.c: Update copyright years.
17021         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17022         in the advancing loop when we have issued issue_rate insns.
17023
17024 2011-01-12  Richard Henderson  <rth@redhat.com>
17025
17026         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17027         (TARGET_MD_ASM_CLOBBERS): New.
17028
17029         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17030         (TARGET_DELEGITIMIZE_ADDRESS): New.
17031
17032         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17033         (clzsi2, *bsch): New patterns.
17034
17035         * config/mn10300/mn10300.md (INT): New mode iterator.
17036         (*mov<INT>_clr): New pattern, and peep2 to generate it.
17037
17038         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17039         flag_split_wide_types.
17040
17041         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17042         (mn10300_trampoline_init): Rewrite without a template, an immediate
17043         load and a direct branch.
17044         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17045
17046 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
17047
17048         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17049         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17050         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17051         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17052
17053 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
17054
17055         PR debug/47209
17056         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17057         of type.
17058
17059 2011-01-12  Jan Hubicka  <jh@suse.cz>
17060
17061         PR driver/47244
17062         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17063         (PLUGIN_COND_CLOSE): New macro.
17064         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17065
17066 2011-01-12  Richard Guenther  <rguenther@suse.de>
17067
17068         PR lto/47259
17069         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17070         register variables in a MEM_REF.
17071
17072 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
17073
17074         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17075         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17076         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17077         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17078         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17079         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17080         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17081         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17082         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17083         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17084         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17085         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17086         * config/gnu-user.h: New.  Copied from linux.h.
17087         (LINUX_TARGET_STARTFILE_SPEC): Rename to
17088         GNU_USER_TARGET_STARTFILE_SPEC.
17089         (LINUX_TARGET_ENDFILE_SPEC): Rename to
17090         GNU_USER_TARGET_ENDFILE_SPEC.
17091         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17092         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17093         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17094         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17095         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17096         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17097         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17098         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17099         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17100         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17101         * config/arm/linux-eabi.h (CC1_SPEC): Use
17102         GNU_USER_TARGET_CC1_SPEC.
17103         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17104         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17105         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17106         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17107         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17108         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17109         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17110         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17111
17112 2011-01-12  Richard Guenther  <rguenther@suse.de>
17113
17114         PR other/46946
17115         * doc/invoke.texi (ffast-math): Document it is turned on
17116         with -Ofast.
17117
17118 2011-01-12  Jan Hubicka  <jh@suse.cz>
17119
17120         PR tree-optimization/47233
17121         * opts.c (common_handle_option): Disable ipa-reference with profile
17122         feedback.
17123
17124 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17125
17126         * c-parser.c (c_parser_objc_at_property_declaration): Improved
17127         error message.
17128
17129 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17130
17131         * c-parser.c (c_lex_one_token): Updated and reindented some
17132         comments.  No changes in code.
17133
17134 2011-01-11  Ian Lance Taylor  <iant@google.com>
17135
17136         * godump.c (go_output_var): Don't output the variable if there is
17137         already a type with the same name.
17138
17139 2011-01-11  Ian Lance Taylor  <iant@google.com>
17140
17141         * godump.c (go_format_type): Don't generate float80.
17142
17143 2011-01-11  Richard Henderson  <rth@redhat.com>
17144
17145         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17146         declaration.  Rewrite for both speed and size.
17147         (mn10300_address_cost_1): Remove.
17148         (mn10300_register_move_cost): New.
17149         (mn10300_memory_move_cost): New.
17150         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
17151         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
17152         extensions, shifts, BSWAP, CLZ.
17153         (mn10300_wide_const_load_uses_clr): Remove.
17154         (TARGET_REGISTER_MOVE_COST): New.
17155         (TARGET_MEMORY_MOVE_COST): New.
17156         * config/mn10300/mn10300-protos.h: Update.
17157         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17158
17159         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17160         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17161         * config/mn10300/mn10300-protos.h: Update.
17162         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17163         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17164         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17165         (*test_int_bitfield, *test_byte_bitfield): Remove.
17166         (*bit_test, *subreg_bit_test): Remove.
17167         * config/mn10300/predicates.md (const_8bit_operand): Remove.
17168
17169         * config/mn10300/constraints.md ("c"): Rename from "A".
17170         ("A", "D"): New constraint letters.
17171         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17172         (fmssf4, fnmasf4, fnmssf4): Likewise.
17173
17174         * config/mn10300/mn10300.md (isa): New attribute.
17175         (enabled): New attribute.
17176
17177         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17178         (abssf2, negsf2): Define only for hardware fp.
17179         (sqrtsf2): Reformat.
17180         (addsf3, subsf3, mulsf3): Merge expander and insn.
17181
17182         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17183         (DEBUGGER_AUTO_OFFSET): Remove.
17184         (DEBUGGER_ARG_OFFSET): Remove.
17185
17186         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17187         Emit register stores with the same offsets as the hardware.
17188         (mn10300_store_multiple_operation): Don't check that the register
17189         save offsets are monotonic.
17190         * config/mn10300/mn10300-protos.h: Update.
17191
17192         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17193
17194         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17195         in terms of the value on the stack, not the MDR register.
17196
17197 2011-01-11  Jan Hubicka  <jh@suse.cz>
17198
17199         PR lto/45721
17200         PR lto/45375
17201         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17202         (symbol_alias_set_destroy, symbol_alias_set_contains,
17203         propagate_aliases_backward): Declare.
17204         * lto-streamer-out.c (struct sets): New sturcture.
17205         (trivally_defined_alias): New function.
17206         (output_alias_pair_p): Rewrite.
17207         (output_unreferenced_globals): Fix output of alias pairs.
17208         (produce_symtab): Likewise.
17209         * ipa.c (function_and_variable_visibility): Set weak alias destination
17210         as needed in lto.
17211         * varasm.c (symbol_alias_set_t): Remove.
17212         (symbol_alias_set_destroy): Export.
17213         (propagate_aliases_forward, propagate_aliases_backward): New functions
17214         based on ...
17215         (compute_visible_aliases): ... this one; remove.
17216         (trivially_visible_alias): New
17217         (trivially_defined_alias): New.
17218         (remove_unreachable_alias_pairs): Rewrite.
17219         (finish_aliases_1): Reorganize code checking if alias is defined.
17220         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17221         in LTO mode.
17222
17223 2011-01-11  Richard Guenther  <rguenther@suse.de>
17224
17225         PR tree-optimization/46076
17226         * tree-ssa.c (useless_type_conversion_p): Conversions from
17227         unprototyped to empty argument list function types are useless.
17228
17229 2011-01-11  Richard Guenther  <rguenther@suse.de>
17230
17231         PR middle-end/45235
17232         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17233         volatile MEMs as MEM_READONLY_P.
17234
17235 2011-01-11  Richard Guenther  <rguenther@suse.de>
17236
17237         PR tree-optimization/47239
17238         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17239
17240 2011-01-11  Jeff Law  <law@redhat.com>
17241
17242         PR tree-optimization/47086
17243         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17244         IVs from statements that might throw.
17245
17246 2011-01-10  Jan Hubicka  <jh@suse.cz>
17247
17248         PR lto/45375
17249         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17250
17251 2011-01-10  Jan Hubicka  <jh@suse.cz>
17252
17253         PR lto/45375
17254         * profile.c (read_profile_edge_counts): Ignore profile inconistency
17255         when correcting profile.
17256
17257 2011-01-10  Jan Hubicka  <jh@suse.cz>
17258
17259         PR lto/46083
17260         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17261         DECL_FINI_PRIORITY.
17262         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17263         Restore DECL_FINI_PRIORITY.
17264
17265 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17266
17267         * doc/gimple.texi: Fix quoting of multi-word return values in
17268         @deftypefn statements.  Ensure presence of return value.  Wrap
17269         overlong @deftypefn lines.
17270         (is_gimple_operand, is_gimple_min_invariant_address): Remove
17271         descriptions of removed functions.
17272         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17273         of multi-word return value in @deftypefn statement.
17274
17275 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17276
17277         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17278         (Conditional Expressions, Logical Operators)
17279         (Statement and operand traversals): Do not indent smallexample
17280         code.  Fix duplicate function argument in example.
17281
17282 2011-01-10  Jeff Law  <law@redhat.com>
17283
17284         PR tree-optimization/47141
17285         * ipa-split.c (split_function): Handle case where we are
17286         returning a value and the return block has a virtual operand phi.
17287
17288 2011-01-10  Jan Hubicka  <jh@suse.cz>
17289
17290         PR tree-optimization/47234
17291         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17292         (pass_feedback_split_functions): Declare.
17293         * passes.c (init_optimization_passes): Add ipa-split as subpass of
17294         tree-profile.
17295         * ipa-split.c (gate_split_functions): Update comments; disable
17296         split-functions for profile_arc_flag and branch_probabilities.
17297         (gate_feedback_split_functions): New function.
17298         (execute_feedback_split_functions): New function.
17299         (pass_feedback_split_functions): New global var.
17300
17301 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
17302
17303         PR lto/46760
17304         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17305         calling gimple_call_set_cannot_inline.
17306
17307 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
17308
17309         * config/darwin-sections.def: Remove unused section.
17310
17311 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
17312
17313         PR c++/47218
17314         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17315
17316 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
17317
17318         PR objc/47232
17319         * c-parser.c (c_parser_declaration_or_fndef): Improved
17320         error message.
17321
17322 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
17323
17324         * config/i386/winnt.c (i386_pe_start_function): Make sure
17325         to switch back to function's section.
17326
17327 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
17328
17329         PR gcc/46902
17330         PR testsuite/46912
17331         * plugin.c: Move include of dlfcn.h from here...
17332         * system.h: ... to here.
17333
17334 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17335
17336         * doc/cpp.texi (C++ Named Operators): Fix markup for header
17337         file name.
17338         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17339         two extra empty pages in PDF output.
17340
17341 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
17342
17343         PR objc/47078
17344         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17345         for error recovery purposes behave as if it was not specified so
17346         that the default type is usd.
17347
17348 2011-01-07  Jan Hubicka  <jh@suse.cz>
17349
17350         PR tree-optmization/46469
17351         * ipa.c (function_and_variable_visibility): Clear needed flags on
17352         nodes with external decls; handle weakrefs merging correctly.
17353
17354 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
17355
17356         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17357         not false.
17358
17359 2011-01-07  Jan Hubicka  <jh@suse.cz>
17360
17361         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17362         and no longer claim that gold is required for linker plugin.
17363         * configure: Regenerate.
17364         * gcc.c (PLUGIN_COND): New macro.
17365         (LINK_COMMAND_SPEC): Use it.
17366         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17367         * config.in (HAVE_LTO_PLUGIN): New.
17368         * configure.ac (--with-lto-plugin): New parameter; autodetect
17369         HAVE_LTO_PLUGIN.
17370
17371 2011-01-07  Jan Hubicka  <jh@suse.cz>
17372
17373         PR tree-optimization/46367
17374         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17375         when we can update original.
17376         (cgraph_mark_inline_edge): Sanity check.
17377         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17378
17379 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17380
17381         * config/spu/spu.h (ASM_COMMENT_START): Define.
17382
17383 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17384
17385         PR driver/42445
17386         * gcc.c (%>S): New.
17387         (SWITCH_KEEP_FOR_GCC): Likewise.
17388         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17389         (do_spec_1): Handle "%>".
17390
17391         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17392
17393 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
17394
17395         PR target/47201
17396         * config/i386/i386.c (ix86_delegitimize_address): If
17397         simplify_gen_subreg fails, return orig_x.
17398
17399         PR bootstrap/47187
17400         * value-prof.c (gimple_stringop_fixed_value): Handle
17401         lhs of the call properly.
17402
17403 2011-01-07  Jan Hubicka  <jh@suse.cz>
17404
17405         PR lto/45375
17406         * lto-opt.c (lto_reissue_options): Set flag_shlib.
17407
17408 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
17409
17410         * target.def (function_switched_text_sections): New hook.
17411         * doc/tm.texi: Regenerated.
17412         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17413         * final.c (default_function_switched_text_sections): New.
17414         (final_scan_insn): Call function_switched_text_sections when a
17415         mid-function section change occurs.
17416         * output.h (default_function_switched_text_sections): Declare.
17417         * config/darwin-protos.h (darwin_function_switched_text_sections):
17418         Likewise.
17419         * config/darwin.c (darwin_function_switched_text_sections): New.
17420         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17421
17422 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
17423
17424         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
17425         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
17426         the secondary code fragment when outputting for DWARF == 2.
17427
17428 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
17429
17430         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17431         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17432         Remove.
17433         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17434         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17435
17436 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17437
17438         PR debug/46704
17439         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17440         when it is not empty.
17441
17442 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
17443
17444         Bobcat Enablement
17445         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17446         (case ${target}): Add btver1.
17447         * config/i386/driver-i386.c (host_detect_local_cpu): Let
17448         -march=native recognize btver1 processors.
17449         * config/i386/i386-c.c (ix86_target_macros_internal): Add
17450         btver1 def_and_undef
17451         * config/i386/i386.c (struct processor_costs btver1_cost): New
17452         btver1 cost table.
17453         (m_BTVER1): New definition.
17454         (m_AMD_MULTIPLE): Includes m_BTVER1.
17455         (initial_ix86_tune_features): Add btver1 tune.
17456         (processor_target_table): Add btver1 entry.
17457         (static const char *const cpu_names): Add btver1 entry.
17458         (software_prefetching_beneficial_p): Add btver1.
17459         (ix86_option_override_internal): Add btver1 instruction sets.
17460         (ix86_issue_rate): Add btver1.
17461         (ix86_adjust_cost): Add btver1.
17462         * config/i386/i386.h (TARGET_BTVER1): New definition.
17463         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17464         (enum processor_type): Add PROCESSOR_BTVER1.
17465         * config/i386/i386.md (define_attr "cpu"): Add btver1.
17466
17467 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17468
17469         PR target/43309
17470         * config/i386/i386.c (legitimize_tls_address)
17471         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17472         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17473         (tls_initial_exec_64_sun): New pattern.
17474
17475 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
17476
17477         * doc/invoke.texi (Overall Options): Improve wording and markup
17478         of the description of -wrapper.
17479
17480 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17481
17482         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17483         rdynamic, threads): New Driver options.
17484
17485 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17486
17487         PR target/38118
17488         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17489         if coming from .tdata.
17490         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17491
17492 2011-01-06  Jan Hubicka  <jh@suse.cz>
17493
17494         PR lto/47188
17495         * collect2.c (main): Do not enable LTOmode when plugin is active.
17496
17497 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17498
17499         PR other/45915
17500         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17501         --version output if supported.
17502         * configure: Regenerate.
17503
17504 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17505
17506         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17507         Driver options.
17508
17509 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
17510
17511         PR c/47150
17512         * c-convert.c (convert): When converting a complex expression
17513         other than COMPLEX_EXPR to a different complex type, ensure
17514         c_save_expr is called instead of save_expr, unless in_late_binary_op.
17515         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17516         when converting COMPLEX_TYPE.
17517
17518 2011-01-06  Ira Rosen  <irar@il.ibm.com>
17519
17520         PR tree-optimization/47139
17521         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17522         only the last reduction value is used outside the loop.  Update
17523         documentation.
17524
17525 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
17526
17527         * config/rtems.opt: New.
17528         * config.gcc (*-*-rtems*): Use rtems.opt.
17529
17530 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
17531
17532         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17533         processors do not support 3DNow instructions.
17534
17535 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17536
17537         * config/spu/spu.c (spu_option_override): Set parameter
17538         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17539
17540 2011-01-05  Jan Hubicka  <jh@suse.cz>
17541
17542         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17543         at the command line.
17544
17545 2011-01-05  Martin Jambor  <mjambor@suse.cz>
17546
17547         PR lto/47162
17548         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17549         deltas on streamed outgoing edges.
17550         (output_node_opt_summary): Output info for outgoing edges only when
17551         the node is in new parameter set.
17552         (output_cgraph_opt_summary): New parameter set, passed to the two
17553         aforementioned functions.  Update its forward declaration and its
17554         callee too.
17555
17556 2011-01-05  Tom Tromey  <tromey@redhat.com>
17557
17558         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17559         operator to c_finish_omp_atomic.
17560         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17561         (build_unary_op): Update.
17562         (build_modify_expr): Update.
17563         (build_asm_expr): Update.
17564
17565 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17566
17567         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17568         newly inserted insns.
17569         (pad_bb): Likewise.
17570         (spu_emit_branch_hint): Likewise.
17571         (insert_hbrp_for_ilb_runout): Likewise.
17572         (spu_machine_dependent_reorg): Call df_finish_pass after
17573         schedule_insns returns.
17574
17575 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17576
17577         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17578
17579 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17580
17581         PR tree-optimization/47005
17582         * tree-sra.c (struct access): Add 'non_addressable' bit.
17583         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17584         (decide_one_param_reduction): Return 0 if the parameter is passed by
17585         reference and one of the accesses in the group is non_addressable.
17586
17587 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17588
17589         PR tree-optimization/47056
17590         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17591         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
17592         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
17593
17594 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17595
17596         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17597         initializer.  Skip view conversions from aggregate types.
17598
17599 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
17600
17601         PR bootstrap/47055
17602         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17603
17604 2011-01-04  Philipp Thomas  <pth@suse.de>
17605
17606         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17607         obvious typo.
17608
17609 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17610
17611         * function.c (thread_prologue_and_epilogue_insns): Do not crash
17612         on empty epilogue sequences.
17613
17614 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
17615
17616         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17617         non-static): New Driver options.
17618
17619 2011-01-04  Jie Zhang  <jie@codesourcery.com>
17620
17621         PR driver/47137
17622         * gcc.c (default_compilers[]): Set combinable field to 0
17623         for all assembly languages.
17624
17625 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
17626
17627         * config/mips/loongson3a.md: New file.
17628         * config/mips/mips.md: Include loongson3a.md.
17629         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17630         TUNE_LOONGSON_3A.
17631
17632 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17633
17634         PR middle-end/47017
17635         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17636         instead of convert_memory_address_addr_space on the base expression.
17637
17638 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17639
17640         * config/spu/spu.c (spu_option_override): Update error text
17641         for bad -march= / -mtune= values.
17642
17643 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17644
17645         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17646         if branch-hint optimization will be performed.
17647
17648 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17649
17650         PR tree-optimization/47148
17651         * ipa-split.c (split_function): Convert arguments to
17652         DECL_ARG_TYPE if possible.
17653
17654         PR tree-optimization/47155
17655         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17656         when computing uns.
17657
17658         PR rtl-optimization/47157
17659         * combine.c (try_combine): If undobuf.other_insn becomes
17660         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17661         and set *new_direct_jump_p too.
17662
17663 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17664
17665         PR tree-optimization/47021
17666         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17667
17668 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17669
17670         * gcc.c (process_command): Update copyright notice dates.
17671         * gcov.c (print_version): Likewise.
17672         * gcov-dump.c (print_version): Likewise.
17673         * mips-tfile.c (main): Likewise.
17674         * mips-tdump.c (main): Likewise.
17675
17676 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17677
17678         PR tree-optimization/46801
17679         * tree-sra.c (type_internals_preclude_sra_p): Check whether
17680         aggregate fields start at byte boundary instead of the bit-field flag.
17681
17682 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17683
17684         PR driver/47137
17685         * gcc.c (main): Revert revision 168407.
17686
17687 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17688
17689         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17690
17691 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17692
17693         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17694         vector optab to expand vector/scalar shift, update gimple to vector.
17695
17696 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17697
17698         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17699         a thunk.
17700
17701 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17702
17703         PR tree-optimization/46984
17704         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17705         HOST_WIDE_INT.
17706         (cgraph_create_indirect_edge): Fixed line length.
17707         (cgraph_indirect_call_info): Declare.
17708         (cgraph_make_edge_direct) Update declaration.
17709         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17710         (cgraph_create_indirect_edge): Use it.
17711         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
17712         callees.
17713         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17714         the new thunk_delta representation.
17715         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17716         HOST_WIDE_INT.
17717         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17718         (ipa_read_indirect_edge_info): Likewise.
17719         * lto-cgraph.c (output_edge_opt_summary): New function.
17720         (output_node_opt_summary): Call it on all outgoing edges.
17721         (input_edge_opt_summary): New function.
17722         (input_node_opt_summary): Call it on all outgoing edges.
17723
17724 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
17725
17726         PR driver/47137
17727         * gcc.c (main): Don't check have_o when settting combine_inputs.
17728
17729 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
17730
17731         * regrename.c: Add general comment describing the pass.
17732         (struct du_head): Remove 'length' field.
17733         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17734         (regrename_optimize): Do not sort chains.  Rework comments, add others.
17735         Force renaming to the preferred class (if any) in the first pass and do
17736         not consider registers that belong to it in the second pass.
17737         (create_new_chain): Do not set 'length' field.
17738         (scan_rtx_reg): Likewise.
17739
17740 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
17741
17742         PR tree-optimization/47140
17743         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17744         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17745         to bit_value_binop.
17746
17747         PR rtl-optimization/47028
17748         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17749         parm_birth_insn instead of at the beginning of first bb.
17750
17751 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
17752
17753         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17754         Remove the word "see" before "@pxref".
17755         * doc/rtl.texi: Remove the word "see" before "@pxref".
17756
17757 2011-01-01  Jan Hubicka  <jh@suse.cz>
17758
17759         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17760         memory.
17761
17762 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
17763
17764         PR target/38662
17765         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17766
17767 \f
17768 Copyright (C) 2011 Free Software Foundation, Inc.
17769
17770 Copying and distribution of this file, with or without modification,
17771 are permitted in any medium without royalty provided the copyright
17772 notice and this notice are preserved.