ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize also according...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2
3         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4         also according to actual contants.
5         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6         (gimple_fold_call): Use it.
7         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8
9 2011-04-19  Martin Jambor  <mjambor@suse.cz>
10
11         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
12         non-pointer assignments.
13
14 2011-04-19  Martin Jambor  <mjambor@suse.cz>
15
16         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17         account anc_offset and otr_type from the indirect edge info.
18         * ipa-prop.c (get_ancestor_addr_info): New function.
19         (compute_complex_ancestor_jump_func): Assignment analysis moved to
20         get_ancestor_addr_info, call it.
21         (ipa_note_param_call): Do not initialize information about polymorphic
22         calls, return the indirect call graph edge.  Remove the last
23         parameter, adjust all callers.
24         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
25         parameters.  Initialize polymorphic information in the indirect edge.
26
27 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
28
29         PR lto/48148
30         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
31         the types if they have different enumeration identifiers.
32
33 2011-04-19  Jan Hubicka  <jh@suse.cz>
34
35         * cgraph.h (cgraph_optimize_for_size_p): Declare.
36         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
37         * predict.c (cgraph_optimize_for_size_p): Break out from ...
38         (optimize_function_for_size_p) ... here.
39
40 2011-04-19  Richard Guenther  <rguenther@suse.de>
41
42         PR lto/48207
43         * tree.c (free_lang_data): Do not reset the decl-assembler-name
44         langhook.
45
46 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
47
48         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
49         if DECL_NO_INLINE_WARNING_P is set on the function.
50
51 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
52
53         PR fortran/47976
54         * reload1.c (inc_for_reload): Return void. All callers changed.
55         (emit_input_reload_insns): Don't try to delete previous output
56         reloads to a register, or record spill_reg_store for autoincs.
57
58 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
59
60         * gengtype.h: Updated copyright year.
61         (struct input_file_st): Add inpisplugin field.
62         (type_fileloc): New function.
63         * gengtype.c
64         (write_typed_struct_alloc_def): Add gcc_assert.
65         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
66         (write_typed_alloc_defns): Don't output for plugin files.
67         (input_file_by_name): Clear inpisplugin field.
68         (main): Set inpisplugin field for plugin files.
69
70 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
71
72         * gengtype-state.c (string_eq): New.
73         (read_state): Use string_eq instead of strcmp when creating the
74         state_ident_tab.
75
76 2011-04-19  Wei Guozhi  <carrot@google.com>
77
78         PR target/47855
79         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
80         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
81         linkage.
82         * config/arm/constraints.md (Uu): New constraint.
83         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
84
85 2011-04-19  Tristan Gingold  <gingold@adacore.com>
86
87         * config.gcc (-*-*-*vms): Added.
88         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
89         definitions moved.
90         * config/vms/vms-ld.c: New file.
91         * config/vms/vms-ar.c: New file.
92         * config/vms/t-vmsnative: New file.
93
94 2011-04-18  Xinliang David Li  <davidxl@google.com>
95
96         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
97
98 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
99
100         PR middle-end/48661
101         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
102         if TREE_TYPE (v) is non-NULL.
103
104         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
105         gimple_get_virt_mehtod_for_binfo.
106         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
107         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
108         callers.
109         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
110
111 2011-04-18  Michael Matz  <matz@suse.de>
112             Steve Ellcey  <sje@cup.hp.com>
113
114         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
115         use its mode as source mode if it isn't VOIDmode.
116
117 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
118
119         * doc/passes.texi: Fill crossref nodes.
120
121 2011-04-18  Jim Meyering  <meyering@redhat.com>
122
123         Fix doubled-word typos in comments and strings
124         * config/alpha/vms-unwind.h: s/for for/for/
125         * config/arm/unwind-arm.h: Likewise.
126         * config/microblaze/microblaze.c: Likewise.
127         * config/sh/constraints.md: s/in in/in/
128         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
129
130 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
131
132         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
133         (AVX_FLOAT_MODE_P): Ditto.
134         (AVX128_VEC_FLOAT_MODE_P): Ditto.
135         (AVX256_VEC_FLOAT_MODE_P): Ditto.
136         (AVX_VEC_FLOAT_MODE_P): Ditto.
137         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
138         (UNSPEC_MASKSTORE): Ditto.
139         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
140         Merge from <sse>_movmsk<ssemodesuffix> and
141         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
142         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
143         iterator.
144         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
145         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
146         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
147
148 2011-04-18  Jan Hubicka  <jh@suse.cz>
149
150         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
151
152         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
153         (want_inline_function_called_once_p): Break out the logic from
154         ipa_inline.
155         (edge_badness): Ensure that profile is not misupdated.
156         (lookup_recursive_calls): Prioritize by call frequencies.
157         (inline_small_functions): Move program size estimates here;
158         actually process whole queue even when unit growth has been
159         met. (to properly compute inline_failed reasons and for the
160         case unit size decrease.) Revisit comments on recursive inlining.
161         (ipa_inline): Remove unit summary code; first inline hot calls
162         of functions called once, cold calls next.
163         (order, nnodes): Remove unused variables.
164         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
165         (GTFILES): Remove ipa-inline.c
166         * sel-sched.c (fill_insns): Silence uninitialized var warning.
167
168 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
169
170         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
171
172 2011-04-18  Jie Zhang  <jie@codesourcery.com>
173             Richard Earnshaw  <rearnsha@arm.com>
174
175         * arm.c (neon_builtin_type_bits): Remove.
176         (typedef enum neon_builtin_mode): New.
177         (T_MAX): Don't define.
178         (typedef enum neon_builtin_datum): Remove bits, codes[],
179         num_vars and base_fcode.  Add mode, code and fcode.
180         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
181         VAR10): Change accordingly.
182         (neon_builtin_data[]): Change accordingly
183         (arm_init_neon_builtins): Change accordingly.
184         (neon_builtin_compare): Remove.
185         (locate_neon_builtin_icode): Remove.
186         (arm_expand_neon_builtin): Change accordingly.
187
188         * arm.h (enum arm_builtins): Move to ...
189         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
190
191         * arm.c (arm_builtin_decl): Declare.
192         (TARGET_BUILTIN_DECL): Define.
193         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
194         (arm_builtin_decls[]): New.
195         (arm_init_neon_builtins): Store builtin declarations in
196         arm_builtin_decls[].
197         (arm_init_tls_builtins): Likewise.
198         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
199         (arm_builtin_decl): New.
200
201 2011-04-18  Richard Guenther  <rguenther@suse.de>
202
203         * tree.c (upper_bound_in_type): Build properly canonicalized
204         INTEGER_CSTs.
205         (lower_bound_in_type): Likewise.
206
207 2011-04-18  Richard Guenther  <rguenther@suse.de>
208
209         * gimple.h (gimple_call_addr_fndecl): New function.
210         (gimple_call_fndecl): Use it.
211         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
212         for direct calls.
213         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
214         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
215
216 2011-04-18  Richard Guenther  <rguenther@suse.de>
217
218         PR middle-end/48650
219         * tree.c (build_string): STRING_CST is now derived from tree_typed.
220
221 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
222
223         PR lto/48492
224         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
225         DECL_IN_CONSTANT_POOL without RTL.
226
227 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
228             Ira Rosen  <ira.rosen@linaro.org>
229
230         PR target/48252
231         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
232         to match neon_vzip/vuzp/vtrn_internal.
233         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
234         outputs explicitly dependent on both inputs.
235         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
236
237 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
238
239         PR tree-optimization/48616
240         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
241         whether the shift is by scalar or vector based on whether all SLP
242         scalar stmts have the same rhs.
243
244 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
245
246         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
247         memory operands.
248
249 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
250
251         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
252         registers.
253
254 2011-04-17  Jan Hubicka  <jh@suse.cz>
255
256         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
257         * cgrpahunit.c (cgraph_finalize_function): Do not set
258         finalized_by_frontend.
259         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
260         finalized_by_frontend.
261
262 2011-04-17  Jan Hubicka  <jh@suse.cz>
263
264         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
265         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
266         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
267         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
268         method.
269         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
270         gimple-fold.c
271         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
272
273 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
274
275         PR lto/48538
276         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
277         is non-null before accessing it.
278         (input_cgraph): Remove trailing spaces.
279
280 2011-04-17  Revital Eres  <revital.eres@linaro.org>
281
282         * params.def (sms-min-sc): New param flag.
283         * modulo-sched.c (sms_schedule): Use it.
284         * doc/invoke.texi (sms-min-sc): Document it.
285
286 2011-04-17  Jan Hubicka  <jh@suse.cz>
287
288         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
289         present, also set gimple_call_set_cannot_inline.
290         * ipa-inline.c: Update toplevel comment.
291         (MAX_TIME): Remove.
292         (cgraph_clone_inlined_nodes): Fix linebreaks.
293         (cgraph_check_inline_limits): Restructure to ...
294         (caller_growth_limits): ... this one; be more tolerant
295         on growth in nested inline chains; add explanatory comment;
296         fix stack accounting thinko introduced by previous patch.
297         (cgraph_default_inline_p): Remove.
298         (report_inline_failed_reason): New function.
299         (can_inline_edge_p): New function.
300         (can_early_inline_edge_p): New function.
301         (leaf_node_p): Move upwards in file.
302         (want_early_inline_function_p): New function.
303         (want_inline_small_function_p): New function.
304         (want_inline_self_recursive_call_p): New function.
305         (cgraph_edge_badness): Rename to ...
306         (edge_badness) ... this one; fix linebreaks.
307         (update_edge_key): Update call of edge_baddness; add
308         detailed dump about queue updates.
309         (update_caller_keys): Use can_inline_edge_p and
310         want_inline_small_function_p.
311         (cgraph_decide_recursive_inlining): Rename to...
312         (recursive_inlining): Use can_inline_edge_p and
313         want_inline_self_recursive_call_p; simplify and remove no longer
314         valid FIXME.
315         (cgraph_set_inline_failed): Remove.
316         (add_new_edges_to_heap): Use can_inline_edge_p and
317         want_inline_small_function_p.
318         (cgraph_decide_inlining_of_small_functions): Rename to ...
319         (inline_small_functions): ... this one; cleanup; use
320         can/want predicates; cleanup debug ouput; work edges till fibheap
321         is exhausted and do not stop once unit growth is reached; remove
322         later loop processing remaining edges.
323         (cgraph_flatten): Rename to ...
324         (flatten_function): ... this one; use can_inline_edge_p
325         and can_early_inline_edge_p predicates.
326         (cgraph_decide_inlining): Rename to ...
327         (ipa_inline): ... this one; remove unreachable nodes before
328         inlining functions called once; simplify the pass.
329         (cgraph_perform_always_inlining): Rename to ...
330         (inline_always_inline_functions): ... this one; use
331         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
332         (cgraph_decide_inlining_incrementally): Rename to ...
333         (early_inline_small_functions): ... this one; simplify
334         using new predicates; cleanup; make dumps prettier.
335         (cgraph_early_inlining): Rename to ...
336         (early_inliner): newer inline regular functions into always-inlines;
337         fix updating of call stmt summaries.
338         (pass_early_inline): Update for new names.
339         (inline_transform): Fix formating.
340         (gate_cgraph_decide_inlining): Rename to ...
341         (pass_ipa_inline): ... this one.
342         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
343         * ipa-inline-analysis.c (dump_inline_summary): Update.
344         (compute_inline_parameters): Do not compute disregard_inline_limits;
345         look for mismatching arguments.
346         (estimate_growth): Fix handlig of non-trivial self recursion.
347         (inline_read_summary): Do not read info->disregard_inline_limits.
348         (inline_write_summary): Do not write info->disregard_inline_limits.
349         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
350         and move all checks into can_inline_edge_p predicate; re-enable code
351         comparing optimization levels.
352         (expand_call_inline): Do not test inline_forbidden_into_p.
353         * Makefile.in (ipa-inline.o): Update arguments.
354
355 2011-04-17  Revital Eres  <revital.eres@linaro.org>
356
357         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
358
359 2011-04-17  Revital Eres  <revital.eres@linaro.org>
360
361         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
362
363 2011-04-17  Michael Matz  <matz@suse.de>
364
365         PR tree-optimization/48622
366         PR lto/48645
367         * ipa-inline-analysis.c (inline_read_summary): Read size/time
368         in same order as they're written.
369
370 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
371
372         * config/pa/predicates.md: Reorganize and simplify predicates.
373         Eliminate duplicate code checks.
374         (arith_operand): Rename to arith14_operand
375         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
376         * config/pa/pa.md: Use renamed operands.
377         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
378         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
379         arith11_operand, adddi3_operand, indexed_memory_operand,
380         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
381         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
382         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
383         move_dest_operand, move_src_operand, prefetch_cc_operand,
384         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
385         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
386         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
387         div_operand, int5_operand, movb_comparison_operator,
388         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
389         arith_double_operand, ireg_operand, lhs_lshift_operand,
390         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
391         integer_store_memory_operand): Likewise.
392         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
393         (integer_store_memory_operand, read_only_operand,
394         function_label_operand, borx_reg_operand,
395         non_hard_reg_operand): Likewise.
396         (eq_neq_comparison_operator): Delete unused operator.
397         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
398         function_label_operand.
399         (emit_move_sequence): Likewise.
400
401 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
402
403         * config/i386/sse.md (sseunpackmode): New mode attribute.
404         (ssepackmode): Ditto.
405         (vec_pack_trunc_<mode>): Macroize expander from
406         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
407         (vec_unpacks_lo_<mode>): Macroize expander from
408         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
409         (vec_unpacks_hi_<mode>): Macroize expander from
410         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
411         (vec_unpacku_lo_<mode>): Macroize expander from
412         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
413         (vec_unpacku_hi_<mode>): Macroize expander from
414         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
415         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
416         ix86_expand_sse4_unpack.
417         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
418
419 2011-04-16  Jan Hubicka  <jh@suse.cz>
420
421         * cgraphbuild.c: Include ipa-inline.h.
422         (reset_inline_failed): Use initialize_inline_failed.
423         * cgraph.c: Include ipa-inline.h.
424         (cgraph_create_node_1): Do not initialize estimated_growth.
425         (initialize_inline_failed): More to ipa-inline-analysis.c
426         (dump_cgraph_node): Do not dump inline flags.
427         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
428         and disregard_inline_limits flags.
429         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
430         time, size, estimated_growth.
431         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
432         Update.
433         * cgraphunit.c (cgraph_decide_is_function_needed): Use
434         DECL_DISREGARD_INLINE_LIMITS.
435         (cgraph_analyze_function): Do not initialize
436         node->local.disregard_inline_limits.
437         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
438         inlinable, versionable and disregard_inline_limits.
439         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
440         cgraph_check_inline_limits, cgraph_default_inline_p,
441         cgraph_edge_badness, update_caller_keys, update_callee_keys,
442         add_new_edges_to_heap): Update.
443         (cgraph_decide_inlining_of_small_function): Update; set
444         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
445         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
446         cgraph_decide_inlining_incrementally): Update.
447         * ipa-inline.h (inline_summary): Add inlinable, versionable,
448         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
449         time, size and estimated_growth parameters.
450         (estimate_edge_growth): Update.
451         (initialize_inline_failed): Declare.
452         * ipa-split.c: Include ipa-inline.h
453         (execute_split_functions): Update.
454         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
455         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
456         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
457         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
458         estimated_growth to INT_MIN.
459         (inline_node_duplication_hook): Likewise.
460         (dump_inline_summary): Dump new fields.
461         (compute_inline_parameters): Update.
462         (estimate_edge_time, estimate_time_after_inlining,
463         estimate_size_after_inlining, estimate_growth, inline_read_summary,
464         inline_write_summary):
465         (initialize_inline_failed): Move here from cgraph.c.
466         * tree-sra.c: Include ipa-inline.h.
467         (ipa_sra_preliminary_function_checks): Update.
468         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
469         ipa-inline.h.
470
471 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
472
473         * config/i386/sse.md (V16): New mode iterator.
474         (VI1, VI8): Ditto.
475         (AVXMODEQI, AVXMODEDI): Remove.
476         (sse2, sse3): New mode attribute.
477         (mov<mode>): Use V16 mode iterator.
478         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
479         (push<mode>1): Use V16 mode iterator.
480         (movmisalign<mode>): Ditto.
481         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
482         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
483         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
484         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
485         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
486         avx_movdqu<avxmodesuffix>.
487         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
488         *avx_movdqu<avxmodesuffix>.
489         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
490         avx_lddqu<avxmodesuffix>.
491         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
492         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
493         avx_movnt<AVXMODEDI:mode>.
494         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
495         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
496
497 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
498
499         PR target/48629
500         * haifa-sched.c (prune_ready_list, schedule_block): Use
501         sched_pressure_p rather than flag_sched_pressure.
502
503 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
504
505         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
506         cgraph_get_node instead of cgraph_get_create_node.
507
508 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
509
510         * cfgexpand.c (expand_debug_expr): Use
511         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
512
513 2011-04-15  Michael Matz  <matz@suse.de>
514
515         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
516         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
517         * function.c (gimplify_parameters): Ditto.
518         * gimplify.c (gimplify_vla_decl): Ditto.
519
520         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
521         (gimple_call_set_alloca_for_var): New inline function.
522         (gimple_call_alloca_for_var_p): Ditto.
523         * gimple.c (gimple_build_call_from_tree): Remember
524         CALL_ALLOCA_FOR_VAR_P state.
525         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
526
527         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
528         calls if they were for VLA objects.
529
530 2011-04-15  Martin Jambor  <mjambor@suse.cz>
531
532         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
533         of ADR_EXPRs.
534
535 2011-04-15  Martin Jambor  <mjambor@suse.cz>
536
537         PR middle-end/48601
538         * tree-emutls.c (lower_emutls_function_body): Call
539         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
540         result is non-NULL.
541
542 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
543
544         * c-decl.c (detect_field_duplicates): Call
545         objc_detect_field_duplicates instead of objc_get_interface_ivars.
546
547 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
548
549         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
550         * gimple.c (gimple_asm_clobbers_memory_p): Define.
551         * ipa-pure-const.c (check_stmt): Call it.
552         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
553
554 2011-04-15  Richard Guenther  <rguenther@suse.de>
555
556         PR tree-optimization/48290
557         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
558         Properly decide inhibiting propagation based on the valueized
559         operand.  Do loop-closed SSA form preserving here ...
560         (init_copy_prop): ... not here.
561
562 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
563
564         PR target/48612
565         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
566         (*ieee_smax<mode>3): Likewise.
567
568 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
569
570         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
571         Replace match_operand with match_dup for the third operand in
572         these expanders.
573
574 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
575
576         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
577         to track processing of conditionals.  Update all callers.
578         (try_combine, simplify_if_then_else): Update.
579
580 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
581
582         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
583         -fsched-pressure.
584
585 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
586
587         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
588         instead of match_operand for operand 3.
589
590 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
591
592         * recog.h (insn_operand_data): Add an "allows_mem" field.
593         * genoutput.c (output_operand_data): Initialize it.
594         * optabs.c (maybe_legitimize_operand_same_code): New function.
595         (maybe_legitimize_operand): Use it when matching the original
596         op->value.
597
598 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
599
600         * gimplify.c: Fix issues in comments throughout.
601         (voidify_wrapper_expr): Fix long line.
602         (build_stack_save_restore): Likewise.
603         (gimplify_loop_expr): Likewise.
604         (gimplify_compound_lval): Likewise.
605         (gimplify_init_ctor_eval): Likewise.
606         (gimplify_modify_expr_rhs): Likewise.
607         (omp_notice_threadprivate_variable): Likewise.
608
609 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
610
611         * cfgexpand.c (expand_call_stmt): Convert the function type to the
612         original one if this is not a builtin function.
613
614 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
615
616         PR target/48605
617         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
618         offset it as needed based on top 2 bits in operands[3], change
619         MEM mode to SFmode and mask those 2 bits away from operands[3].
620
621 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
622
623         * c-parser.c (c_parser_objc_protocol_definition): Updated for
624         change from objc_declare_protocols() to objc_declare_protocol().
625
626 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
627
628         * config/i386/sse.md (sse4_1): New mode attribute.
629         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
630         avx_blend<ssemodesuffix><avxmodesuffix> and
631         sse4_1_blend<ssemodesuffix> using VF mode iterator.
632         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
633         avx_blendv<ssemodesuffix><avxmodesuffix> and
634         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
635         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
636         avx_dp<ssemodesuffix><avxmodesuffix> and
637         sse4_1_dp<ssemodesuffix> using VF mode iterator.
638         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
639         (sse4_1_packusdw): Merge with *avx_packusdw.
640         (sse4_1_pblendvb): Merge with *avx_pblendvb.
641         (sse4_1_pblendw): Merge with *avx_pblendw.
642         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
643         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
644         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
645         VF mode iterator.
646         (sse4_1_round<ssescalarmodesuffix>): Merge with
647         *avx_round<ssescalarmodesuffix>.
648         (aesenc): Merge with *avx_aesenc.
649         (aesenclast): Merge with *avx_aesenclast.
650         (aesdec): Merge with *avx_aesdec.
651         (aesdeclast): Merge with *avx_aesdeclast.
652         (pclmulqdq): Merge with *pclmulqdq.
653         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
654         New predicate.
655         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
656
657 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
658
659         PR middle-end/48608
660         * cfgexpand.c (get_decl_align_unit): Renamed to ...
661         (align_local_variable): This.  Update DECL_ALIGN.
662         (add_stack_var): Updated.
663         (expand_one_stack_var): Likewise.
664
665 2011-04-14  Richard Guenther  <rguenther@suse.de>
666
667         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
668         Remove.
669         (dse_initialize_block_local_data, dse_leave_block,
670         record_voperand_set, get_stmt_uid): Likewise.
671         (dse_possible_dead_store_p): Allow any kind of killing stmt.
672         (dse_optimize_stmt): Remove voperand set handling code.
673         Simplify and improve to handle any kind of killing stmt.
674         (dse_record_phi): Remove.
675         (dse_enter_block): Simplify.
676         (tree_ssa_dse): Likewise.
677         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
678
679 2011-04-14  Jan Hubicka  <jh@suse.cz>
680
681         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
682         * cgraph.h (struct inline_summary): Move to ipa-inline.h
683         (cgraph_local_info): Remove inline_summary.
684         * ipa-cp.c: Include ipa-inline.h.
685         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
686         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
687         accesor.
688         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
689         (input_overwrite_node): Do not set inline summary.
690         (input_node): Do not stream inline summary.
691         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
692         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
693         growth; we do not have inline parameters computed for that anyway.
694         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
695         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
696         (inline_summary_t): New type and VECtor.
697         (debug_inline_summary, dump_inline_summaries): Declare.
698         (inline_summary): Use VOCtor.
699         (estimate_edge_growth): Kill hack computing call stmt size directly.
700         * lto-section-in.c (lto_section_name): Add inline section.
701         * ipa-inline-analysis.c: Include lto-streamer.h
702         (node_removal_hook_holder, node_duplication_hook_holder): New holders
703         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
704         (inline_summary_vec): Define.
705         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
706         dump_inline_summaries): New functions.
707         (estimate_function_body_sizes): Properly compute size/time of outgoing
708         calls.
709         (compute_inline_parameters): Alloc inline_summary; do not compute
710         size/time of incomming calls.
711         (estimate_edge_time): Avoid missing time summary hack.
712         (inline_read_summary): Read inline summary info.
713         (inline_write_summary): Write inline summary info.
714         (inline_free_summary): Free all hooks and inline summary vector.
715         * lto-streamer.h: Add LTO_section_inline_summary section.
716         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
717         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
718
719 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
720
721         * tree-vectorizer.h (vect_strided_store_supported): Add a
722         HOST_WIDE_INT argument.
723         (vect_strided_load_supported): Likewise.
724         (vect_permute_store_chain): Return void.
725         (vect_transform_strided_load): Likewise.
726         (vect_permute_load_chain): Delete.
727         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
728         count argument.  Check that the count is a power of two.
729         (vect_strided_load_supported): Likewise.
730         (vect_permute_store_chain): Return void.  Update after above changes.
731         Assert that the access is supported.
732         (vect_permute_load_chain): Likewise.
733         (vect_transform_strided_load): Return void.
734         * tree-vect-stmts.c (vectorizable_store): Update calls after
735         above interface changes.
736         (vectorizable_load): Likewise.
737         (vect_analyze_stmt): Don't check for strided powers of two here.
738
739 2011-04-14  Richard Guenther  <rguenther@suse.de>
740
741         PR tree-optimization/48590
742         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
743         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
744         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
745         BUILT_IN_STACK_SAVE.
746         * tree-ssa-dce.c (propagate_necessity): Handle
747         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
748
749 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
750
751         * c-parser.c (c_parser_objc_class_declaration): Updated call to
752         objc_declare_class.
753
754 2011-04-14  Richard Guenther  <rguenther@suse.de>
755
756         * tree.h (get_object_alignment_1): Declare.
757         * builtins.c (get_object_alignment_1): Split out worker from ...
758         (get_object_alignment): ... here.
759         * fold-const.c (get_pointer_modulus_and_residue): Use
760         get_object_alignment_1.
761
762 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
763
764         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
765         type parameter.
766         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
767         parameter.  Generalise code to handle arrays as well as vectors.
768         (vect_setup_realignment): Update accordingly.
769         * tree-vect-stmts.c (vectorizable_store): Likewise.
770         (vectorizable_load): Likewise.
771
772 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
773
774         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
775         within the per-copy loop.
776
777 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
778
779         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
780         in the dump file.
781
782 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
783
784         * doc/options.texi (Negative): Explicitly mention that the
785         Negative chain must be circular.
786
787 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
788
789         * function.h (block_chainon): Declare.
790         * function.c (block_chainon): Define.
791
792 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
793             Eric Weddington  <eric.weddington@atmel.com>
794             Georg-Johann Lay <avr@gjlay.de>
795
796         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
797         New Includes
798         (avr_init_builtins, avr_expand_builtin,
799         avr_expand_delay_cycles, avr_expand_unop_builtin,
800         avr_expand_binop_builtin ): New functions.
801         (avr_builtin_id): New enum
802         (struct avr_builtin_description): New struct
803         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
804         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
805
806         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
807         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
808         UNSPECV_DELAY_CYCLES): new enumeration values
809         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
810         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
811         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
812         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
813         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
814         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
815         "fmulsu"): New insns
816
817         * config/avr/avr-c.c: fix line endings
818         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
819         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
820         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
821         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
822         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
823
824         * doc/extend.texi (AVR Built-in Functions): New node
825         (Target Builtins): Add documentation of AVR
826         built-in functions.
827
828 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
829
830         PR target/44643
831         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
832         alone. Error if non-const data has attribute progmem.
833
834 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
835
836         * tree.h (struct tree_constructor): Include tree_typed instead of
837         tree_common.
838         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
839         TS_TYPED instead of TS_COMMON.
840
841 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
842
843         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
844         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
845         (sse2_psadbw): Merge with *avx_psadbw.
846         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
847         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
848         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
849         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
850         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
851         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
852         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
853         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
854         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
855         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
856         (ssse3_palignrti): Merge with *avx_palignrti.
857
858 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
859
860         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
861         * tree-ssanames.c (fini_ssanames): VEC_free it.
862         (make_ssa_name_fn): Update for VECness of free_ssanames.
863         (release_ssa_name, release_dead_ssa_names): Likewise.
864         * tree.h (struct tree_ssa_name): Include tree_typed instead of
865         tree_common.
866         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
867         TS_TYPED instead of TS_COMMON.
868
869 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
870
871         * postreload-gcse.c (gcse_after_reload_main): Add calls to
872         statistics_counter_event.
873         * tree-ssa-copyrename.c (stats): Define.
874         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
875         statistics_counter_event.
876         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
877         (bswap_stats, widen_mul_stats): Define.
878         (insert_reciprocals): Increment rdivs_inserted.
879         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
880         rfuncs_inserted.  Add calls to statistics_counter_event.
881         (execute_cse_sincos_1): Increment inserted.
882         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
883         statistics_counter_event.
884         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
885         of bswap_stats.  Add calls to statistics_counter_event.
886         (convert_mult_to_widen): Increment widen_mults_inserted.
887         (convert_plusminus_to_widen): Increment maccs_inserted.
888         (convert_mult_to_fma): Increment fmas_inserted.
889         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
890         calls to statistics_counter_event.
891
892 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
893
894         PR rtl-optimization/48455
895         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
896         `temp_costs->mem_cost'.
897
898 2011-04-13  Jan Hubicka  <jh@suse.cz>
899
900         * ipa-inline.h: New file.
901         * ipa-inline-analysis.c: New file. Broken out of ...
902         * ipa-inline.c: ... this file; update toplevel comment;
903         include ipa-inline.h
904         (inline_summary): Move to ipa-inline.h
905         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
906         ipa-inline-analysis.c.
907         (cgraph_estimate_time_after_inlining): Rename to
908         estiamte_time_after_inlining; move to ipa-inline-analysis.c
909         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
910         to estimate_edge_growth.
911         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
912         rename to estimate_size_after_inlining.
913         (cgraph_mark_inline_edge): Update for new naming convention.
914         (cgraph_check_inline_limits): Likewise.
915         (cgraph_edge_badness): Likewise.
916         (cgraph_decide_recursive_inlining): Likewise.
917         (cgraph_decide_inlining_of_small_functions): Likewise.
918         (cgraph_decide_inlining_incrementally): Likewise.
919         (cgraph_estimate_growth): Rename to estimate_growth; move to
920         ipa-inline-analysis.c.
921         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
922         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
923         (compute_inline_parameters): Likewise.
924         (compute_inline_parameters_for_current): Likewise.
925         (pass_inline_parameters): Likewise.
926         (inline_indirect_intraprocedural_analysis): Likewise.
927         (analyze_function): Rename to inline_analyze_function; likewise.
928         (add_new_function): Move to ipa-inline-analysis.c.
929         (inline_generate_summary): Likewise.
930         (inline_read_summary): Likewise.
931         (inline_write_summary): Likewise.
932         * Makefile.in (ipa-inline-analysis.c): New file.
933
934 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
935
936         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
937         * configure: Regenerate.
938
939 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
940
941         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
942         instead of tree_common.
943         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
944         Likewise.
945         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
946         TS_TYPED rather than TS_COMMON.
947         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
948
949 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
950
951         PR target/45263
952         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
953         r20 around calls of __tablejump_elpm__
954
955 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
956
957         PR middle-end/48591
958         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
959         NULL.
960         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
961
962 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
963
964         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
965         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
966         (cfi_vec): New typedef.
967         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
968         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
969         (cie_cfi_vec): New static variable.
970         (cie_cfi_head): Delete.
971         (add_cfi): Accept a cfi_vec * as first argument. All callers and
972         declaration changed. Use vector rather than list operations.
973         (new_cfi): Don't initialize the dw_cfi_next field.
974         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
975         rather than list operations.
976         (lookup_cfa): Use vector rather than list operations.
977         (output_cfis): New argument upto. Accept a cfi_vec rather than
978         a dw_cfi_ref list head as argument. All callers changed.
979         Iterate over the vector using upto as a maximum index.
980         (output_all_cfis): New static function.
981         (output_fde): Use vector rather than list operations. Use the
982         new upto argument for output_cfis rather than manipulating a
983         list.
984         (dwarf2out_begin_prologue): Change initializations to match
985         new struct members.
986         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
987         from the vector length rather than searching for the end of a list.
988         Use output_all_cfis.
989         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
990
991 2011-04-13  Nick Clifton  <nickc@redhat.com>
992
993         * config/rx/rx.md (movmemsi): Do not use this pattern when
994         volatile pointers are involved.
995
996 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
997
998         * config/i386/sse.md (pinsrbits): Remove.
999         (sse2_packsswb): Merge with *avx_packsswb.
1000         (sse2_packssdw): Merge with *avx_packssdw.
1001         (sse2_packuswb): Merge with *avx_packuswb.
1002         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1003         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1004         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1005         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1006         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1007         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1008         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1009         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1010         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1011         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1012         (sse2_loadld): Merge with *avx_loadld.
1013         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1014         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1015         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1016         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1017         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1018
1019 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1020
1021         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1022         calling TREE_CHAIN.
1023         * print-tree.c (print_node): Likewise.
1024         * tree-inline.c (copy_tree_r): Likewise.
1025         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1026         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1027         instead of TS_COMMON.
1028         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1029         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1030         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1031         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1032         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1033         ...and these...
1034         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1035         * tree.h: ...here.
1036         (TREE_CHAIN): Check for a TS_COMMON structure.
1037         (TREE_TYPE): Check for a TS_TYPED structure.
1038
1039 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1040
1041         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1042         cgraph_get_create_node instead of cgraph_node.
1043
1044 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1045
1046         * c-parser.c (c_parser_initelt): Updated call to
1047         objc_build_message_expr.
1048         (c_parser_postfix_expression): Likewise.
1049
1050 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1051
1052         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1053         MASK_MS_BITFIELD_LAYOUT bit.
1054
1055 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1056
1057         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1058         assert it is always true.
1059         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1060         moves.
1061
1062 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1063
1064         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1065         compiling Objective-C to be more efficient.
1066
1067 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1068
1069         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1070         argv_copied.
1071
1072 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1073
1074         * recog.h, genoutput.c, optabs.c: Revert last patch.
1075
1076 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1077
1078         PR target/48090
1079         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1080
1081 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1082
1083         * recog.h (insn_operand_data): Add an "allows_mem" field.
1084         * genoutput.c (output_operand_data): Initialize it.
1085         * optabs.c (maybe_legitimize_operand_same_code): New function.
1086         (maybe_legitimize_operand): Use it when matching the original
1087         op->value.
1088
1089 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1090
1091         * genpreds.c (process_define_predicate): Move most processing
1092         to gensupport.c.  Continue to validate the expression.
1093         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1094         (process_define_predicate): Move processing to gensupport.c.
1095         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1096         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1097         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1098         argument.
1099         (valid_predicate_name_p): New function, split out from old
1100         genpreds.c:process_define_predicate.
1101         (process_define_predicate): New function, combining code from
1102         old genpreds.c and genrecog.c functions.
1103         (process_rtx): Call it for DEFINE_PREDICATE and
1104         DEFINE_SPECIAL_PREDICATE.
1105
1106 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1107
1108         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1109         size of a '%A' memory reference.
1110         (T_DREG, T_QREG): New neon_builtin_type_bits.
1111         (arm_init_neon_builtins): Assert that the load and store operands
1112         are neon_struct_operands.
1113         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1114         (NEON_ARG_MEMORY): New builtin_arg.
1115         (neon_dereference_pointer): New function.
1116         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1117         Handle NEON_ARG_MEMORY.
1118         (arm_expand_neon_builtin): Update after above interface changes.
1119         Use NEON_ARG_MEMORY for loads and stores.
1120         * config/arm/predicates.md (neon_struct_operand): New predicate.
1121         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1122         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1123         (V_four_elem): Tweak formatting.
1124         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1125         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1126         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1127         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1128         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1129         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1130         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1131         Use %A in the output template.
1132         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1133         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1134         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1135         the width of the memory access.  Remove post-increment.
1136         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1137
1138 2011-04-12  Nick Clifton  <nickc@redhat.com>
1139
1140         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1141         instruction for interrupt handlers if the target is the basic V850
1142         architecture.
1143         (expand_epilogue): Likewise.
1144
1145 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1146
1147         PR rtl-optimization/48549
1148         * combine.c (propagate_for_debug): Also stop after BB_END of
1149         this_basic_block.  Process LAST and just stop processing after it.
1150         (combine_instructions): If last_combined_insn has been deleted,
1151         set last_combined_insn to its PREV_INSN.
1152
1153 2011-04-12  Richard Guenther  <rguenther@suse.de>
1154
1155         PR tree-optimization/46076
1156         * gimple.h (struct gimple_statement_call): Add fntype field.
1157         (gimple_call_fntype): Adjust.
1158         (gimple_call_set_fntype): New function.
1159         * gimple.c (gimple_build_call_1): Set the call function type.
1160         * gimplify.c (gimplify_call_expr): Preserve the function
1161         type the frontend used for the call.
1162         (gimplify_modify_expr): Likewise.
1163         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1164         function type.
1165         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1166         function type.
1167         * tree-ssa.c (useless_type_conversion_p): Function pointer
1168         conversions are useless.
1169
1170 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1171
1172         * cgraph.h (cgraph_node): Remove function declaration.
1173         (cgraph_create_node): Declare.
1174         (cgraph_get_create_node): Likewise.
1175         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1176         Updated all callers.
1177         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1178         the decl does not already exist.  Call cgraph_get_create_node instead
1179         of cgraph_node.
1180         (cgraph_get_create_node): New function.
1181         (cgraph_same_body_alias): Update comment.
1182         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1183         assert it does not return NULL.
1184         (cgraph_update_edges_for_call_stmt): Likewise.
1185         (cgraph_clone_edge): Likewise.
1186         (cgraph_create_virtual_clone): Likewise.
1187         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1188         instead of cgraph_node.
1189         (cgraph_add_new_function): Call cgraph_create_node or
1190         cgraph_get_create_node instead of cgraph_node.
1191         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1192         instead of cgraph_node.
1193         (record_eh_tables): Likewise.
1194         (mark_address): Likewise.
1195         (mark_load): Likewise.
1196         (build_cgraph_edges): Call cgraph_get_create_node instead
1197         of cgraph_node.
1198         (rebuild_cgraph_edges): Likewise.
1199         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1200         instead of cgraph_node.
1201         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1202         cgraph_node.
1203         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1204         cgraph_create_node instead of cgraph_node.
1205         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1206         of cgraph_node.
1207         * lto-cgraph.c (input_node): Likewise.
1208         * lto-streamer-in.c (input_function): Likewise.
1209         * varasm.c (mark_decl_referenced): Likewise.
1210         (assemble_alias): Likewise.
1211
1212 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1213
1214         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1215         instead of cgraph_node and assert it does not return NULL.
1216         * lto-streamer-in.c (lto_read_body): Likewise.
1217         * omp-low.c (new_omp_context): Likewise.
1218         (create_task_copyfn): Likewise.
1219         * tree-emutls.c (lower_emutls_function_body): Likewise.
1220         * matrix-reorg.c (transform_allocation_sites): Likewise.
1221
1222 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1223
1224         PR c/48552
1225         * c-typeck.c (build_asm_expr): Error out on attempts to use
1226         void type outputs or inputs for constraints that allow reg or
1227         don't allow memory.
1228
1229 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1230             Richard Earnshaw  <rearnsha@arm.com>
1231
1232         PR target/48250
1233         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1234         to use sign-magnitude offsets. Reject unsupported unaligned
1235         cases. Add detailed description in comments.
1236         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1237         condition from TARGET_32BIT to TARGET_ARM.
1238
1239 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1240
1241         * tree.h (struct typed_tree): New.
1242         (struct tree_common): Include it instead of tree_base.
1243         (TREE_TYPE): Update for new location of type field.
1244         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1245         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1246         (union tree_node): Add typed field.
1247         * treestruct.def (TS_TYPED): New.
1248         * lto-streamer.c (check_handled_ts_structures): Handle it.
1249         * tree.c (MARK_TS_TYPED): New macro.
1250         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1251
1252 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1253
1254         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1255         (force_nonfallthru): Do not alter the loop nest if no basic block
1256         was created.
1257
1258 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1259
1260         * config/i386/sse.md (VI): New mode iterator.
1261         (SSEMODEI): Remove.
1262         (AVX256MODEI): Ditto.
1263         (AVXMODEF4P): Ditto.
1264         (avxvecpsmode): Ditto.
1265         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1266         (sse2_andnot<mode>3): New expander.
1267         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1268         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1269         (<any_logic:code><mode>3): Use VI mode iterator.
1270         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1271         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1272         (*andnottf3): Handle AVX three-operand constraints.
1273         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1274
1275 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1276             Robert Millan  <rmh@gnu.org>
1277
1278         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1279         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1280         GNU_USER_DYNAMIC_LINKER64): Define.
1281         (REG_NAME): Don't undefine.
1282         (MD_UNWIND_SUPPORT): Undefine.
1283         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1284         (REG_NAME): Don't undefine.
1285         (MD_UNWIND_SUPPORT): Undefine.
1286         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1287
1288 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1289
1290         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1291         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1292
1293 2011-04-11  Xinliang David Li  <davidxl@google.com>
1294
1295         * value-profile.c (check_ic_target): New function.
1296         (gimple_ic_transform): Sanity check indirect call target.
1297         * gimple-low.c (gimple_check_call_args): Interface change.
1298         (gimple_check_call_matching_types): New function.
1299         * tree-inline.c (tree_can_inline_p): Call new function.
1300
1301 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1302
1303         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1304         tree-pretty-print.h & realmpfr.h.
1305
1306 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1307
1308         PR middle-end/48464
1309         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1310         (setup_allocno_and_important_classes): Ditto.
1311
1312 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1313
1314         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1315         GNU_USER_DYNAMIC_LINKER.
1316         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1317         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1318         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1319         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1320         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1321         GNU_USER_TARGET_OS_CPP_BUILTINS.
1322         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1323         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1324         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1325         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1326         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1327         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1328         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1329         GNU_USER_TARGET_OS_CPP_BUILTINS.
1330         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1331         GNU_USER_DYNAMIC_LINKER.
1332         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1333         GNU_USER_TARGET_OS_CPP_BUILTINS.
1334         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1335         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1336         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1337         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1338         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1339         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1340         GNU_USER_DYNAMIC_LINKER64): Remove.
1341         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1342         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1343         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1344         GNU_USER_DYNAMIC_LINKER.
1345         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1346         GNU_USER_TARGET_OS_CPP_BUILTINS.
1347         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1348         GNU_USER_TARGET_OS_CPP_BUILTINS.
1349         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1350         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1351         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1352         GNU_USER_TARGET_OS_CPP_BUILTINS.
1353         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1354         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1355         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1356         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1357         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1358         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1359         GNU_USER_DYNAMIC_LINKER.
1360         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1361         GNU_USER_TARGET_OS_CPP_BUILTINS.
1362         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1363         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1364         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1365         GNU_USER_DYNAMIC_LINKER.
1366         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1367         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1368         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1369         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1370         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1371         GNU_USER_DYNAMIC_LINKER.
1372         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1373         GNU_USER_DYNAMIC_LINKERN32.
1374         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1375         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1376         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1377         GNU_USER_DYNAMIC_LINKER32.
1378         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1379         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1380         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1381         GNU_USER_DYNAMIC_LINKER.
1382         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1383         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1384         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1385         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1386         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1387         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1388         GNU_USER_DYNAMIC_LINKER32.
1389         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1390         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1391         GNU_USER_DYNAMIC_LINKER.
1392         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1393         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1394         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1395         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1396         GNU_USER_DYNAMIC_LINKER64.
1397         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1398         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1399         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1400         GNU_USER_DYNAMIC_LINKER.
1401         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1402         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1403         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1404         GNU_USER_DYNAMIC_LINKER.
1405         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1406         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1407         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1408         GNU_USER_DYNAMIC_LINKER32.
1409         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1410         GNU_USER_DYNAMIC_LINKER64.
1411         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1412         GNU_USER_DYNAMIC_LINKER64.
1413         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1414         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1415         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1416         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1417         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1418
1419 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1420
1421         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1422         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1423         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1424         GNU_USER_DYNAMIC_LINKER.
1425         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1426         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1427         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1428         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1429         GNU_USER_DYNAMIC_LINKER64.
1430         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1431         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1432         GNU_USER_LINK_EMULATION.
1433         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1434         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1435         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1436         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1437         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1438         CPP_SPEC, CC1_SPEC): Remove.
1439         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1440         (GNU_USER_DYNAMIC_LINKER): Define.
1441         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1442         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1443         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1444         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1445         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1446         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1447         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1448         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1449         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1450         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1451         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1452         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1453         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1454         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1455         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1456         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1457         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1458         GNU_USER_DYNAMIC_LINKER.
1459         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1460         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1461         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1462         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1463         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1464         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1465         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1466         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1467         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1468         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1469
1470 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1471
1472         PR target/9601
1473         PR target/11772
1474         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1475         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1476         comment.
1477         (ix86_is_msabi_thiscall): Removed.
1478         (ix86_is_type_thiscall): Likewise.
1479         (ix86_get_callcvt): New function.
1480         (ix86_comp_type_attributes): Simplify check.
1481         (ix86_function_regparm): Use ix86_get_callcvt for calling
1482         convention attribute checks.
1483         (ix86_return_pops_args): Likewise.
1484         (ix86_static_chain): Likewise.
1485         (x86_this_parameter): Likewise.
1486         (x86_output_mi_thunk): Likewise.
1487         (ix86_function_type_abi): Optimize check for types without attributes.
1488         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1489         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1490         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1491         by flag-values.
1492         (IX86_BASE_CALLCVT): Helper macro.
1493         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1494         Use ix86_get_callcvt for calling convention attribute checks and avoid
1495         symbol-decoration for stdcall in TARGET_RTD case.
1496         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1497         Likewise.
1498         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1499         for declaration.
1500
1501 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1502
1503         * config/i386/sse.md (VI_128): New mode iterator.
1504         (VI12_128): Rename from SSEMODE12.
1505         (VI14_128): Rename from SSEMODE14.
1506         (VI124_128): New mode iterator.
1507         (VI24_128): Rename from SSEMODE248.
1508         (VI248_128): Rename from SSEMODE248.
1509         (SSEMODE124C8): Remove.
1510         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1511         (*sse2_<plusminus_insn><mode>3): Merge with
1512         *avx_<plusminus_insn><mode>3.
1513         (*mulv8hi3): Merge with *avx_mulv8hi3.
1514         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1515         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1516         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1517         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1518         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1519         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1520         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1521         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1522         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1523         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1524         (*<smaxmin:code>v8hi3): Ditto.
1525         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1526         (*<smaxmin:code>v16qi3): Ditto.
1527         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1528         (*sse2_eq<mode>3): Ditto.
1529         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1530         (*sse2_gt<mode>3): Ditto.
1531         (vcondv2di): Split out of vcond<mode>.
1532         (vconduv2di): Split out of vcondu<mode>.
1533
1534 2011-04-11  Richard Guenther  <rguenther@suse.de>
1535
1536         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1537         before calling tree_low_cst.
1538
1539 2011-04-11  Richard Guenther  <rguenther@suse.de>
1540
1541         * stor-layout.c (layout_type): Compute all array index size operations
1542         in the original type.
1543         (initialize_sizetypes): Add comment.
1544         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1545
1546 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1547
1548         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1549
1550 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1551
1552         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1553         of cgraph_node, handle NULL return value.
1554         (cgraph_global_info): Likewise.
1555         (cgraph_rtl_info): Likewise.
1556         * tree-inline.c (estimate_num_insns): Likewise.
1557         * gimplify.c (unshare_body): Likewise.
1558         (unvisit_body): Likewise.
1559         (gimplify_body): Likewise.
1560         * predict.c (optimize_function_for_size_p): Likewise.
1561         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1562         (call_may_clobber_ref_p_1): Likewise.
1563         * varasm.c (function_section_1): Likewise.
1564         (assemble_start_function): Likewise.
1565
1566 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1567
1568         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1569         of cgraph_node.
1570         * final.c (rest_of_clean_state): Likewise.
1571         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1572         * passes.c (pass_init_dump_file): Likewise.
1573         (execute_all_ipa_transforms): Likewise.
1574         (function_called_by_processed_nodes_p): Likewise.
1575         * predict.c (maybe_hot_frequency_p): Likewise.
1576         (probably_never_executed_bb_p): Likewise.
1577         (compute_function_frequency): Likewise.
1578         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1579         (unnest_nesting_tree_1): Likewise.
1580         (lower_nested_functions): Likewise.
1581         * tree-optimize.c (execute_fixup_cfg): Likewise.
1582         (tree_rest_of_compilation): Likewise.
1583         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1584         * tree-sra.c (ipa_early_sra): Likewise.
1585         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1586         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1587         * ipa.c (record_cdtor_fn): Likewise.
1588         * ipa-inline.c (cgraph_early_inlining): Likewise.
1589         (compute_inline_parameters_for_current): Likewise.
1590         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1591         * ipa-pure-const.c (local_pure_const): Likewise.
1592         * ipa-split.c (split_function): Likewise.
1593         (execute_split_functions): Likewise.
1594         * cgraphbuild.c (build_cgraph_edges): Likewise.
1595         (rebuild_cgraph_edges): Likewise.
1596         (cgraph_rebuild_references): Likewise.
1597         (remove_cgraph_callee_edges): Likewise.
1598         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1599         (verify_cgraph_node): Likewise.
1600         (cgraph_analyze_functions): Likewise.
1601         (cgraph_preserve_function_body_p): Likewise.
1602         (save_inline_function_body): Likewise.
1603         (save_inline_function_body): Likewise.
1604         * tree-inline.c (copy_bb): Likewise.
1605         (optimize_inline_calls): Likewise.
1606
1607 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1608
1609         PR tree-optimization/48195
1610         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1611         ipa_check_create_edge_args.
1612         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1613         ipa_check_create_edge_args.
1614         * ipa-inline.c (inline_generate_summary): Do not call
1615         ipa_check_create_node_params and ipa_check_create_edge_args.
1616         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1617         ipa_check_create_edge_args.
1618
1619 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1620
1621         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1622         instead of loop.
1623         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1624         * function.c (record_hard_reg_sets): Likewise.
1625         * ira.c (compute_regs_asm_clobbered): Likewise.
1626         * sched-deps.c (sched_analyze_1): Likewise.
1627         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1628
1629 2011-04-09  Xinliang David Li  <davidxl@google.com>
1630
1631         PR tree-optimization/PR48484
1632         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1633         has_valid_pred lazily
1634
1635 2011-04-09  Duncan Sands  <baldrick@free.fr>
1636
1637         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1638
1639 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1640
1641         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1642         cost of I0 to zero at the end, if any.
1643
1644 2011-04-08  Xinliang David Li  <davidxl@google.com>
1645
1646         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1647         to insane profile data.
1648
1649 2011-04-08  Xinliang David Li  <davidxl@google.com>
1650
1651         * final.c (dump_basic_block_info): New function.
1652         (final): Dump basic block.
1653         (final_scan_insn): Remove old dump.
1654
1655 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1656
1657         PR target/47829
1658         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1659         crtbegin/crtend.
1660
1661 2011-04-08  Michael Matz  <matz@suse.de>
1662
1663         PR middle-end/48389
1664         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1665         functions.
1666         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1667         * rtl.h (rebuild_jump_labels_chain): Declare.
1668         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1669         insns inserted on edges.
1670
1671 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1672
1673         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1674         * config/arm/arm-arches.def: New.
1675         * config/arm/arm-opts.h: New.
1676         * config/arm/genopt.sh: New.
1677         * config/arm/arm-tables.opt: New (generated).
1678         * config/arm/arm.c (arm_handle_option, arm_target_help,
1679         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1680         (all_architectures): Get most table contents from arm-arches.def.
1681         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1682         arm_selected_tune here.
1683         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1684         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1685         (march=, mcpu=, mtune=): Use Enum and Var.
1686         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1687         (arm.o): Update dependencies.
1688
1689 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1690
1691         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1692         of header_file.
1693         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1694         (write_typed_alloc_defns): Likewise.
1695         (main): Calls write_typed_alloc_defns with output_header.
1696
1697 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1698
1699         PR inline-asm/48435
1700         * ira-color.c (setup_profitable_hard_regs): Add comments.
1701         Don't take prohibited hard regs into account.
1702         (setup_conflict_profitable_regs): Rename to
1703         get_conflict_profitable_regs.
1704         (check_hard_reg_p): Check prohibited hard regs.
1705
1706 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1707
1708         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1709         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1710         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1711
1712 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1713
1714         PR target/48366
1715         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1716         move from floating point to shift amount register.
1717         (emit_move_sequence): Remove secondary reload support for floating
1718         point to shift amount amount register copies.
1719         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1720         amount register copies.
1721         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1722         register, return false if mode isn't a scalar integer mode.
1723         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1724
1725 2011-04-08  Richard Guenther  <rguenther@suse.de>
1726
1727         * gimple.c (gimple_call_flags): Remove kludge.
1728
1729 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1730
1731         * sel-sched.c (sel_region_init): Move call to
1732         sel_setup_region_sched_flags after setup_current_loop_nest.
1733
1734 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1735
1736         PR rtl-optimization/48272
1737         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1738         init_insn_reg_pressure_info.  Adjust a caller.
1739         * sched-int.h (init_insn_reg_pressure_info): Declare.
1740         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1741         when sched-pressure is enabled.
1742
1743 2011-04-08  Richard Guenther  <rguenther@suse.de>
1744
1745         * gimple.c (gimple_set_modified): Do not queue calls to
1746         MODIFIED_NORETURN_CALLS here ...
1747         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1748
1749 2011-04-08  Richard Guenther  <rguenther@suse.de>
1750
1751         PR lto/48467
1752         * toplev.c (lang_dependent_init): Do not open asm_out_file
1753         in WPA mode, nor perform debug machinery initialization.
1754         (finalize): Do not unlink asm_out_file in WPA mode.
1755
1756 2011-04-08  Richard Guenther  <rguenther@suse.de>
1757
1758         * gimple.h (gimple_call_fntype): New function.
1759         (gimple_call_return_type): Use it.
1760         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1761         * gimple-low.c (gimple_check_call_args): Likewise.
1762         * gimple.c (gimple_call_flags): Likewise.
1763         (gimple_call_arg_flags): Likewise.
1764         (gimple_call_return_flags): Likewise.
1765         * tree-cfg.c (verify_gimple_call): Likewise.
1766         (do_warn_unused_result): Likewise.
1767         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1768         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1769
1770 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1771
1772         PR rtl-optimization/48235
1773         * sel-sched.c (code_motion_process_successors): Recompute the last
1774         insn in basic block if control flow changed.
1775         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1776         Update condition for ilist_remove.
1777
1778 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1779
1780         PR rtl-optimization/48302
1781         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1782         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1783         it to record added preheader blocks.
1784         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1785         on to sel_add_loop_preheaders.
1786         (sel_region_init): Move call to setup_current_loop_nest after
1787         sel_init_bbs.
1788
1789 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1790
1791         PR target/48273
1792         * cfgloop.h (loop_has_exit_edges): New helper.
1793         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1794         non-clonable.
1795         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1796         that have no exit edges.
1797
1798 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1799
1800         PR rtl-optimization/48442
1801         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1802         all callers.  Adjust assert.
1803
1804 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1805
1806         PR tree-optimization/48377
1807         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1808         is_packed to true even for types with smaller TYPE_ALIGN than
1809         TYPE_SIZE.
1810
1811 2011-04-08  Richard Guenther  <rguenther@suse.de>
1812
1813         PR bootstrap/48513
1814         * doc/tm.texi: Re-generate.
1815
1816 2011-04-08  Wei Guozhi  <carrot@google.com>
1817
1818         PR target/47855
1819         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1820         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1821         * config/arm/arm.md (*push_multi): Change the length computation to
1822         call a C function.
1823
1824 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1825
1826         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1827         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1828         * doc/tm.texi: Regenerate.
1829         * system.h (ASM_OUTPUT_BSS): Poison.
1830         * varasm.c (asm_output_bss): Remove function.
1831         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1832
1833         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1834         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1835         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1836         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1837         Likewise.
1838         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1839         Likewise.
1840         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1841         Likewise.
1842         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1843
1844 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1845
1846         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1847         EnumValue lines.
1848
1849 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1850
1851         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1852         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1853         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1854         OPT_mcpu32.
1855         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1856         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1857         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1858         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1859         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1860         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1861         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1862         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1863         options.  Don't map other m68k options manually.  Don't handle
1864         old-style options as canonical.
1865         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1866         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1867
1868 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1869
1870         * basic-block.h (force_nonfallthru): Move to...
1871         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1872         (force_nonfallthru): ...here.
1873         * cfghooks.c (force_nonfallthru): New function.
1874         * cfgrtl.c (force_nonfallthru): Rename into...
1875         (rtl_force_nonfallthru): ...this.
1876         (commit_one_edge_insertion): Do not set AUX field.
1877         (commit_edge_insertions): Do not discover new basic blocks.
1878         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1879         (cfg_layout_rtl_cfg_hooks): Likewise.
1880         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1881         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1882         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1883
1884 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1885
1886         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1887         Remove macros.
1888
1889 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1890
1891         * config/i386/sse.md: Update copyright year.
1892         (avxcvtvecmode): Remove.
1893         (sse_movhlps): Merge with *avx_movhlps.
1894         (sse_movlhps): Merge with *avx_movlhps.
1895         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1896         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1897         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1898         (sse_loadhps): Merge with *avx_loadhps.
1899         (sse_storelps): Merge with *avx_storelps.
1900         (sse_loadlps): Merge with *avx_loadlps.
1901         (sse_movss): Merge with *avx_movss.
1902         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1903         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1904         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1905         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1906         (vec_set<mode>_0): Ditto.
1907         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1908         (sse4_1_insertps): Merge with *avx_insertps.
1909         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1910         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1911         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1912         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1913         (sse2_storehpd): Merge with *avx_storehpd.
1914         (sse2_loadhpd): Merge with *avx_loadhpd.
1915         (sse2_loadlpd): Merge with *avx_loadlpd.
1916         (sse2_movsd): Merge with *avx_movsd.
1917         (*vec_concatv2df): Merge with *vec_concatv2df.
1918
1919 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1920
1921         PR debug/48343
1922         * combine.c (combine_instructions): Add last_combined_insn,
1923         update it if insn is after it, pass it to all try_combine calls.
1924         (try_combine): Add last_combined_insn parameter, pass it instead of
1925         i3 to propagate_for_debug.
1926
1927 2011-04-07  Nick Clifton  <nickc@redhat.com>
1928
1929         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1930         to handle MDR <-> data register transfers.
1931         (movhi_internal): Likewise.
1932
1933 2011-04-07  Alan Modra  <amodra@gmail.com>
1934
1935         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1936         previous stack info.
1937
1938 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1939
1940         PR target/43920
1941         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1942         flow_find_cross_jump.  Swap variables to implement backward replacement.
1943         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1944
1945 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1946
1947         PR target/43920
1948         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1949         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1950         and bb2.
1951         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1952         src1 or src2.  Redirect edges to the last basic block.  Update
1953         frequency and count on multiple basic blocks in case of fallthru.
1954
1955 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1956
1957         PR target/43920
1958         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1959         function.
1960         (old_insns_match_p): Change return type.  Replace return false/true
1961         with return dir_none/dir_both.  Use can_replace_by.
1962         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1963         direction from dir_p.  Register replacement direction in dir, last_dir
1964         and afterlast_dir.  Handle new return type of old_insns_match_p using
1965         merge_dir.  Return replacement direction in dir_p.
1966         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1967         return type of old_insns_match_p.
1968         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1969         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1970         flow_find_cross_jump.
1971         * basic-block.h (enum replace_direction): New type.
1972         (flow_find_cross_jump): Add parameter to declaration.
1973
1974 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1975
1976         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1977         (AVXMODEDCVTPS2DQ): Ditto.
1978         (VEC_FLOAT_MODE): Ditto.
1979         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1980         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1981         (<any_logic:code><mode>3): Use VF mode iterator.
1982         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1983         Use VF mode iterator.
1984         (copysign<mode>3): Use VF mode iterator.
1985         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1986         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1987         (*<any_logic:code><MODEF:mode>3): Merge with
1988         *avx_<any_logic:code><MODEF:mode>3.
1989         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1990         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1991         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1992         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1993         (sse2_cvtdq2ps): Use %v modifier.
1994         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1995         (avx_cvtps2dq<avxmodesuffix>): Remove.
1996         (sse2_cvtps2dq): Use %v modifier.
1997         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1998         (avx_cvttps2dq<avxmodesuffix>): Remove.
1999         (sse2_cvttps2dq): Use %v modifier.
2000         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2001         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2002         (sse2_cvtsd2siq): Fix insn template.
2003         (sse2_cvtsd2siq_2): Ditto.
2004         (sse2_cvttsd2siq): Ditto.
2005         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2006         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2007
2008 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2009
2010         * gcov-io.c: Use GCC Runtime Library Exception.
2011
2012 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2013
2014         PR debug/48466
2015         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2016         as base_reg whatever register reg has been eliminated to, instead
2017         of hardcoding STACK_POINTER_REGNUM.
2018
2019 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2020
2021         * doc/tm.texi.in: Document C target hooks as separate from general
2022         target hooks.
2023         * doc/tm.texi: Regenerate.
2024         * genhooks.c (struct hook_desc): Add docname field.
2025         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2026         docname field.
2027         (hook_array): Include c-target.def.
2028         (emit_documentation): Use docname field in output.
2029         (emit_init_macros): Take docname argument.  Only emit definitions
2030         for hooks matching docname.
2031         (main): Expect additional arguments in all cases.  Pass argument
2032         to emit_init_macros.
2033         * target.def: Move initial macro definitions and comments to
2034         target-hooks-macros.h.
2035         (gcc_targetcm): Move to c-family/c-target.def.
2036         * target.h (targetcm): Move declaration to c-family/c-target.h.
2037         * targhooks.c (default_handle_c_option): Move to
2038         c-family/c-opts.c.
2039         * targhooks.h (default_handle_c_option): Move declaration to
2040         c-family/c-common.h.
2041         * target-hooks-macros.h: New file.
2042         * config.gcc (target_has_targetcm): Define and use to add to
2043         c_target_objs and cxx_target_objs.
2044         * config/default-c.c: New file.
2045         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2046         of target.h and target-def.h.
2047         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2048         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2049         darwin_check_cfstring_format_arg): Make static.
2050         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2051         TARGET_STRING_OBJECT_REF_TYPE_P,
2052         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2053         * config/darwin-protos.h (darwin_objc_construct_string,
2054         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2055         declare.
2056         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2057         TARGET_STRING_OBJECT_REF_TYPE_P,
2058         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2059         * config/t-darwin (darwin-c.o): Update dependencies.
2060         * system.h (TARGET_HAS_TARGETCM): Poison.
2061         * Makefile.in (TARGET_H): Update.
2062         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2063         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2064         (default-c.o): New target.
2065         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2066         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2067         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2068         c-target.def.
2069         (build/genhooks.o): Update dependencies.
2070
2071 2011-04-06  Richard Guenther  <rguenther@suse.de>
2072
2073         * ipa-inline.c (enum inlining_mode): Remove.
2074         (cgraph_flatten): Use some other token.
2075         (cgraph_edge_early_inlinable_p): New function, split out from ...
2076         (cgraph_perform_always_inlining): New function, split out from ...
2077         (cgraph_decide_inlining_incrementally): ... here.
2078         (cgraph_mark_inline_edge): Adjust.
2079         (cgraph_early_inlining): Re-structure.
2080         (pass_early_inline): Require SSA form.
2081
2082 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2083             Julian Brown  <julian@codesourcery.com>
2084             Mark Shinwell  <shinwell@codesourcery.com>
2085
2086         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2087         LO_REGS only for Thumb-1.
2088         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2089         be used in short instructions when optimising for size on Thumb-2.
2090
2091 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2092
2093         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2094         associated with user returns to be preserved.
2095
2096 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2097
2098         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2099         symbol_queue_size, DBXOUT_DECR_NESTING,
2100         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2101         if XCOFF_DEBUGGING_INFO.
2102
2103 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2104
2105         * config/i386/i386.md (attribute isa): New.
2106         (attribute enabled): New.
2107         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2108         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2109         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2110         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2111         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2112         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2113         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2114         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2115
2116         * config/i386/sse.md (VF): New mode iterator.
2117         (VF1): Ditto.
2118         (VF2): Ditto.
2119         (VF_128): Ditto.
2120         (SSEMODEF4): Remove.
2121         (attribute sse): Handle V8SF and V4DF modes.
2122         (<absneg:code><mode>2): Use VF mode iterator.
2123         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2124         mode iterator.
2125         (<plusminus_insn><mode>3): Use VF mode iterator.
2126         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2127         Use VF mode iterator.
2128         (<sse>_vm<plusminus_insn><mode>3): Merge with
2129         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2130         (mul<mode>3): Use VF mode iterator.
2131         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2132         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2133         mode iterator.
2134         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2135         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2136         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2137         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2138         mode iterator.
2139         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2140         Use VF1 mode iterator.
2141         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2142         (sqrt<VF2:mode>2): New expander.
2143         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2144         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2145         and sqrtv2df2.  Use VF mode iterator.
2146         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2147         mode iterator.
2148         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2149         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2150         Use VF1 mode iterator.
2151         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2152         (<smaxmin:code><mode>3): Use VF mode iterator.
2153         (*<smaxmin:code><mode>3_finite): Merge with
2154         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2155         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2156         (<sse>_vm<smaxmin:code><mode>2): Merge with
2157         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2158         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2159         mode iterator.
2160         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2161         mode iterator.
2162         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2163         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2164         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2165         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2166         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2167         VF mode iterator.
2168         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2169         Use VF_128 mode iterator.
2170         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2171         mode iterator.
2172         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2173         VF_128 mode iterator.
2174         (vcond<mode>): Use VF mode iterator.
2175         * config/i386/predicates.md (sse_comparison_operator): Merge with
2176         avx_comparison_float_operator.  Do not declare as special_predicate.
2177         * config/i386/i386.c (struct builtin_description): Update for renamed
2178         compare patterns.
2179         (ix86_expand_args_builtin): Ditto.
2180         (ix86_expand_sse_compare_mask): Ditto.
2181
2182 2011-04-06  Richard Guenther  <rguenther@suse.de>
2183
2184         * tree-inline.c (estimate_num_insns): For calls simply account
2185         for all passed arguments and a used return value.
2186
2187 2011-04-06  Richard Guenther  <rguenther@suse.de>
2188
2189         PR tree-optimization/47663
2190         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2191         call_stmt_time fields.
2192         (cgraph_edge_inlinable_p): Declare.
2193         (cgraph_edge_recursive_p): New inline function.
2194         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2195         (cgraph_clone_edge): Copy it.
2196         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2197         Account for call stmt time.
2198         (cgraph_estimate_time_after_inlining): Take edge argument.
2199         (cgraph_estimate_edge_growth): Account call stmt size.
2200         (cgraph_estimate_size_after_inlining): Take edge argument.
2201         (cgraph_mark_inline_edge): Adjust.
2202         (cgraph_check_inline_limits): Likewise.
2203         (cgraph_recursive_inlining_p): Remove.
2204         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2205         (cgraph_decide_recursive_inlining): Take edge argument and
2206         adjust.
2207         (cgraph_decide_inlining_of_small_functions): Do not avoid
2208         diags for recursive inlining here.
2209         (cgraph_flatten): Adjust.
2210         (cgraph_decide_inlining_incrementally): Likewise.
2211         (estimate_function_body_sizes): Remove call cost handling.
2212         (compute_inline_parameters): Initialize caller edge call costs.
2213         (cgraph_estimate_edge_growth): New function.
2214         (cgraph_estimate_growth): Use it.
2215         (cgraph_edge_badness): Likewise.
2216         (cgraph_check_inline_limits): Take an edge argument.
2217         (cgraph_decide_inlining_of_small_functions): Adjust.
2218         (cgraph_decide_inlining): Likewise.
2219         * tree-inline.c (estimate_num_insns): Only account for call
2220         return value if it is used.
2221         (expand_call_inline): Avoid diagnostics on recursive inline
2222         functions here.
2223         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2224         (input_edge): Input edge call costs.
2225
2226 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2227
2228         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2229
2230 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2231
2232         * doc/invoke.texi (Spec Files): Fix typo.
2233
2234 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2235
2236         * profile.c (branch_prob): Move declaration of local variable.  Remove
2237         obsolete ??? comment.  Expand the location explicitly instead of using
2238         the LOCATION_FILE and LOCATION_LINE macros.
2239
2240 2011-04-06  Wei Guozhi  <carrot@google.com>
2241
2242         PR target/47855
2243         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2244         (arm_cond_branch): Likewise.
2245         (arm_cond_branch_reversed): Likewise.
2246         (arm_jump): Likewise.
2247         (push_multi): Likewise.
2248         * config/arm/constraints.md (Py): New constraint.
2249
2250 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2251
2252         PR bootstrap/48471
2253         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2254         Move these...
2255         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2256         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2257         #ifdef DBX_DEBUGGING_INFO.
2258
2259 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2260
2261         PR bootstrap/48403
2262         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2263         if old and new states differ.
2264
2265 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2266
2267         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2268         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2269         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2270         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2271         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2272         mcfv4e): Use Alias.
2273         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2274         ColdFire options to -mcpu= options.
2275
2276 2011-04-05  Jeff Law  <law@redhat.com>
2277
2278         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2279         check if BB is a successor of LOOP->header and return
2280         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2281
2282 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2283
2284         * cprop.c (struct reg_use): Remove.
2285         (reg_use_table): Make an array of RTX.
2286         (find_used_regs, constprop_register, local_cprop_pass,
2287         bypass_block): Simplify users of reg_use_table.
2288         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2289         on one of the uses found by find_used_regs.
2290
2291 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2292
2293         PR bootstrap/48469
2294         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2295         declaration.
2296
2297 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2298
2299         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2300         as an rtx.
2301         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2302
2303 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2304
2305         PR middle-end/48441
2306         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2307
2308 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2309
2310         * combine.c: Include obstack.h.
2311         (struct insn_link): Define.
2312         (uid_log_links): Adjust type.
2313         (FOR_EACH_LOG_LINK): New macro.
2314         (insn_link_obstack): Declare.
2315         (alloc_insn_link): Define.
2316         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2317         type of link variables.
2318         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2319         (try_combine, record_promoted_values, distribute_notes): Likewise.
2320         (distribute_links): Likewise.  Tweak prototype.
2321         (clear_log_links): Delete.
2322         (adjust_for_new_dest): Call alloc_insn_link.
2323         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2324
2325 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2326
2327         * gcse.c (modify_mem_list): Convert to an array of VECs.
2328         (canon_modify_mem_list, compute_transp): Tweak formatting.
2329         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2330         (load_killed_in_block_p): Likewise.
2331         (record_last_mem_set_info): Likewise.
2332         (clear_modify_mem_tables): Likewise.
2333
2334 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2335
2336         PR middle-end/48461
2337         * function.c (emit_use_return_register_into_block): Only define if
2338         HAVE_return.
2339
2340 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2341
2342         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2343
2344 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2345
2346         * config/rx/rx-opts.h: New.
2347         * config/rx/rx.c (rx_cpu_type): Remove.
2348         (rx_handle_option): Don't assert that global structures are in
2349         use.  Access variables via opts pointer.  Defer most handling of
2350         OPT_mint_register_.  Use error_at.
2351         (rx_option_override): Handle deferred OPT_mint_register_ here.
2352         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2353         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2354         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2355         (rx_cpu_types): New Enum and EnumValue entries.
2356         (mint-register=): Use Defer and use Var accordingly.
2357
2358 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2359
2360         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2361         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2362         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2363         Move these...
2364         (debug_free_queue, debug_nesting, symbol_queue_index):
2365         ...and these...
2366         * dbxout.c: ...to here.  Make static.
2367
2368 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2369
2370         * gcse.c (modify_pair): Define.  Define a VEC of it.
2371         (canon_modify_mem_list): Convert to an array of VECs.
2372         (free_insn_expr_list_list): Delete.
2373         (clear_modify_mem_tables): Call VEC_free instead.
2374         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2375         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2376         (canon_list_insert, compute_transp): Likewise.
2377
2378 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2379
2380         PR target/43920
2381         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2382         for size.
2383
2384 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2385
2386         PR target/43920
2387         * function.c (emit_use_return_register_into_block): New function.
2388         (thread_prologue_and_epilogue_insns): Use
2389         emit_use_return_register_into_block.
2390
2391 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2392
2393         PR target/43920
2394         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2395         insn.
2396
2397 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2398
2399         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2400
2401 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2402
2403         * config/arm/arm.md (define_constants for unspec): Replace with
2404         define_c_enum.
2405         (define_constants for unspecv): Replace with define_c_enum.
2406         * config/arm/neon.md (define_constants for unspec): Replace with
2407         define_c_enum.
2408
2409 2011-04-04  Richard Henderson  <rth@redhat.com>
2410
2411         PR bootstrap/48400
2412         * dwarf2out.c (output_line_info): Always emit line info from
2413         at least one section.
2414         (dwarf2out_init): Create text_section_line_info here ...
2415         (set_cur_line_info_table): ... not here.
2416
2417 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2418
2419         PR target/48380
2420         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2421         not called.
2422
2423         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2424
2425 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2426
2427         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2428         (expr_equiv_p): Remove.
2429         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2430         (hash_scan_set): Update call to insert_set_in_table.
2431         (dump_hash_table): Dump <dest, src> pair.
2432         (lookup_set): Simplify.  Lookup <dest, src> pair.
2433         (compute_transp): Remove, fold heavily simplified code into...
2434         (compute_local_properties): ...here.  Expect COMP and TRANSP
2435         unconditionally.
2436         (find_avail_set): Take set directly from struct expr.
2437         (find_bypass-set): Likewise.
2438         (bypass_block): Likewise.
2439         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2440
2441         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2442         checks on form of COND from find_implicit_sets to here.
2443         (find_implicit_sets): Cleanup control flow. Split critical edges
2444         if it exposes implicit sets.  Allocate/resize implicit_sets as
2445         necessary.
2446         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2447         changed something.  Run df_analyze after find_implicit_sets if any
2448         edges were split.  Do not allocate implicit_sets here.
2449
2450         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2451         (gcse_obstack): Renamed to cprop_obstack.
2452         (GNEW, GNEWVEC, GNEWVAR): Remove.
2453         (gmalloc): Remove.
2454         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2455         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2456         (gcse_alloc): Likewise, and rename to cprop_alloc.
2457         (alloc_gcse_men, free_gcse_mem): Remove.
2458         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2459         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2460         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2461
2462         * cprop.c (oprs_not_set_p): Remove.
2463         (mark_set, mark_clobber): Remove.
2464         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2465         (reg_not_set_p): New function.
2466         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2467         (cprop_insn): Likewise.
2468         (cprop_jump): Use FOR_EACH_EDGE.
2469
2470 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2471
2472         PR bootstrap/48403
2473         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2474         (rank_for_schedule): Use scheduled_insns vector instead of
2475         last_scheduled_insn.
2476         (ok_for_early_queue_removal): Likewise.
2477         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2478         we have a dbg_cnt.
2479         (choose_ready): Likewise.
2480         (commit_schedule): Use VEC_iterate.
2481         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2482         a dbg_cnt, use it and ensure the first insn is in the ready list.
2483         (haifa_sched_init): Allocate scheduled_insns.
2484         (sched_extend_ready_list): Don't allocate it; reserve space.
2485         (haifa_sched_finish): Free it.
2486
2487 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2488
2489         * optc-gen.awk: Always remove type from Variable entry before
2490         recording in var_seen.
2491
2492 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2493
2494         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2495         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2496         call to tidy_fallthru_edges.
2497
2498 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2499
2500         * doc/options.texi (ToLower): Document.
2501         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2502         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2503         * opts.h (cl_option): Add cl_tolower field.
2504         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2505         arguments with lowercase strings.
2506         * config/rx/rx.opt (mcpu=): Add ToLower.
2507         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2508         argument.
2509
2510 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2511
2512         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2513
2514 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2515
2516         * config/vax/vax.c: Include reload.h.
2517
2518 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2519
2520         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2521         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2522         (sparc_preferred_reload_class): New function.
2523
2524 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2525
2526         PR debug/48401
2527         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2528         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2529
2530 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2531
2532         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2533         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2534
2535 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2536
2537         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2538         (ASM_OUTPUT_ALIGNED_BSS): Define.
2539
2540 2011-04-03  Michael Matz  <matz@suse.de>
2541
2542         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2543         and next_slot members.
2544         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2545         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2546         (lto_streamer_cache_append): Declare.
2547         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2548         unsigned index, remove offset parameter, ensure that we append
2549         or update existing entries.
2550         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2551         parameter, update next_slot for append.
2552         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2553         parameter.
2554         (lto_streamer_cache_insert_at): Likewise.
2555         (lto_streamer_cache_append): New function.
2556         (lto_streamer_cache_lookup): Use unsigned index.
2557         (lto_streamer_cache_get): Likewise.
2558         (lto_record_common_node): Don't test tree_node_can_be_shared.
2559         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2560         (lto_streamer_cache_delete): Don't free offsets member.
2561         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2562         (lto_output_string_with_length): Use lto_output_data_stream.
2563         (lto_output_tree_header): Remove ix parameter, don't write it.
2564         (lto_output_builtin_tree): Likewise.
2565         (lto_write_tree): Adjust callers to above, don't track and write
2566         offset, write unsigned index.
2567         (output_unreferenced_globals): Don't emit all global vars.
2568         (write_global_references): Use unsigned indices.
2569         (lto_output_decl_state_refs): Likewise.
2570         (write_symbol): Likewise.
2571         * lto-streamer-in.c (lto_input_chain): Move earlier.
2572         (input_function): Use unsigned index.
2573         (input_alias_pairs): Don't read and then ignore all global vars.
2574         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2575         don't pass it back, use lto_streamer_cache_append.
2576         (lto_register_var_decl_in_symtab): Use unsigned index.
2577         (lto_register_function_decl_in_symtab): Likewise.
2578         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2579         index.
2580         (lto_get_builtin_tree): Don't read index, use
2581         lto_streamer_cache_append.
2582         (lto_read_tree): Adjust call to lto_materialize_tree.
2583
2584         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2585         don't use function calls in arguments to MIN.
2586
2587         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2588         twice.
2589
2590         * gimple.c (gimple_type_leader_entry): Mark deletable.
2591
2592 2011-04-03  Alan Modra  <amodra@gmail.com>
2593
2594         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2595
2596 2011-04-03  Michael Matz  <matz@suse.de>
2597
2598         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2599         an integer.
2600         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2601
2602 2011-04-03  Michael Matz  <matz@suse.de>
2603
2604         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2605         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2606         without function context.
2607         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2608         current_function_decl and cfun.
2609
2610 2011-04-03  Michael Matz  <matz@suse.de>
2611
2612         * tree.c (decl_init_priority_insert): Don't create entry for
2613         default priority.
2614         (decl_fini_priority_insert): Ditto.
2615         (fields_compatible_p, find_compatible_field): Remove.
2616         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2617         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2618
2619 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2620
2621         * combine.c (try_combine): Remove useless local variable.
2622
2623 2011-04-03  Richard Guenther  <rguenther@suse.de>
2624             Ira Rosen  <ira.rosen@linaro.org>
2625
2626         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2627         non-variable offsets and compare the remaining bases of the two
2628         accesses instead of looking for exact same data-ref.
2629
2630 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2631
2632         PR target/48416
2633         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2634
2635         * i386.c (ix86_is_msabi_thiscall): New helper function.
2636         (ix86_is_type_thiscall): New helper function.
2637         (ix86_comp_type_attributes): Handle thiscall for method-functions
2638         special.
2639         (init_cumulative_args): Likewise.
2640         (find_drap_reg): Likewise.
2641         (ix86_static_chain): Likewise.
2642         (x86_this_parameter): Likewise.
2643         (x86_output_mi_thunk): Likewise.
2644
2645 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2646             Nicolas Setton  <setton@adacore.com>
2647             Eric Botcazou  <ebotcazou@adacore.com>
2648
2649         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2650         (add_gnat_descriptive_type_attribute): New function.
2651         (gen_array_type_die): Call it.
2652         (gen_enumeration_type_die): Likewise.
2653         (gen_struct_or_union_type_die): Likewise.
2654         (modified_type_die): Likewise.
2655         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2656         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2657         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2658
2659 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2660
2661         PR bootstrap/48148
2662         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2663         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2664
2665         Revert:
2666         2011-03-17  Richard Guenther  <rguenther@suse.de>
2667
2668         PR bootstrap/48148
2669         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2670         origin for decls in other ltrans units.
2671         (input_varpool_node): Likewise.
2672
2673 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2674
2675         PR middle-end/48335
2676         * expr.c (expand_assignment): Handle all possibilities
2677         if TO_RTX is CONCAT.
2678         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2679         (store_split_bit_field): If SUBREG_REG (op0) or
2680         op0 itself has smaller mode than word, return it
2681         for offset 0 and const0_rtx for out-of-bounds stores.
2682         If word is const0_rtx, skip it.
2683
2684 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2685
2686         * config/h8300/h8300.c (print_operand_address): Rename to...
2687         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2688         Call h8300_print_operand and h8300_print_operand_address instead of
2689         print_operand and print_operand_address. Declare.
2690         (print_operand): Renake to...
2691         (h8300_print_operand): ...this. Make static. Adjust comments.
2692         Call h8300_print_operand instead of print_operand. Declare.
2693         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2694         (h8300_register_move_cost): Likewise.
2695         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2696         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2697         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2698         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2699         * config/h8300/h8300-protos.h (print_operand): Delete.
2700         (print_operand_address): Delete.
2701
2702 2011-04-01  Richard Henderson  <rth@redhat.com>
2703
2704         PR 48400
2705         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2706         in strict mode before dwarf4.  Re-order tests to early out
2707         before switching sections.
2708
2709 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2710
2711         * config/h8300/constraints.md: New file.
2712         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2713         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2714         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2715         * config/h8300/predicates.md (bit_operand): Likewise.
2716         (incdec_operand): Use satisfies_constraint_M and
2717         satisfies_constraint_O.  Don't use C code block.
2718         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2719         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2720         (compute_mov_length): Use satisfies_constraint_G.
2721         (fix_bit_operand): Use satisfies_constraint_U.
2722         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2723         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2724         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2725         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2726         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2727         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2728         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2729         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2730         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2731         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2732         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2733         (EXTRA_MEMORY_CONSTRAINT): Delete.
2734
2735 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2736             Michael Meissner  <meissner@linux.vnet.ibm.com>
2737
2738         PR target/48262
2739         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2740         operands, as per the specifications.
2741
2742         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2743         (vec_extract_evenv4sf): Ditto.
2744         (vec_extract_evenv8hi): Ditto.
2745         (vec_extract_evenv16qi): Ditto.
2746         (vec_extract_oddv4si): Ditto.
2747
2748 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2749
2750         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2751         high_pc attribute if the CU has no associated code. Only output
2752         DW_AT_entry_pc for CU if not generating strict dwarf and
2753         dwarf_version < 4.
2754
2755 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2756
2757         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2758         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2759         out of ...
2760         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2761         * final.c (final_start_function): Call the new function rather
2762         than using a NULL argument for dwarf2out_frame_debug.
2763
2764         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2765         that contains the prologue.
2766
2767         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2768         changed.  Print it in debugging output.
2769
2770         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2771
2772         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2773         Split most of the code into...
2774         (begin_move_insn): ... here.  New function.
2775         (ebb_sched_info): Add a pointer to it.
2776         * haifa-sched.c (scheduled_insns): New static variable.
2777         (sched_extend_ready_list): Allocate it.
2778         (schedule_block): Use it to record the order of scheduled insns.
2779         Perform RTL changes to move insns only after all scheduling
2780         decisions have been made.
2781         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2782         begin_move_insn field.
2783         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2784         * sched-int.h (struct haifa_sched_info): Remove second argument
2785         from begin_schedule_ready hook.  Add new member begin_move_insn.
2786         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2787         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2788
2789         * haifa-sched.c (prune_ready_list): New function, broken out of
2790         schedule_block.
2791         (schedule_block): Use it.
2792
2793 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2794
2795         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2796
2797 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2798
2799         * config.gcc (*-*-mingw*): Allow as option the
2800         posix threading model.
2801         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2802         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2803         definition.
2804         (CPP_SPEC): Add pthread/no-pthread handling.
2805         (LIB_SPEC): Likewise.
2806         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2807         (LIB_SPEC): Likewise.
2808         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2809         flag to pass -pthread option for shared libgcc build.
2810         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2811         for shared libgcc build.
2812         * config/i386/t-mingw-pthread: New file.
2813         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2814         New define to enable use of library pthread by default.
2815         * config/i386/mingw.opt (pthread): New driver option.
2816         (no-pthread): New driver option.
2817         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2818         * config/i386/mingw-w64.opt: Likewise.
2819
2820 2011-04-01  Gary Funck <gary@intrepid.com>
2821
2822         * c-decl.c (grokdeclarator): Fix formatting.
2823
2824 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2825
2826         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2827         instead of n_operands.
2828         (set_storage_via_setmem): Likewise.
2829         * optabs.c (maybe_gen_insn): Likewise.
2830         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2831         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2832         (mips_expand_builtin_direct): Likewise.
2833         * config/spu/spu.c (expand_builtin_args): Likewise.
2834
2835 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2836
2837         * recog.h (insn_data_d): Add n_generator_args.
2838         * genoutput.c (data): Likewise.
2839         (output_insn_data): Print it.
2840         (max_opno, num_dups): Delete.
2841         (scan_operands): Just fill in "d->operand[...]".
2842         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2843
2844 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2845
2846         * gensupport.h (pattern_stats): New structure.
2847         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2848         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2849         (max_operand_1, max_operand_vec): Delete.
2850         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2851
2852 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2853
2854         * emit-rtl.c (emit_pattern_after_setloc): New function.
2855         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2856         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2857         (emit_pattern_after): New function.
2858         (emit_insn_after, emit_jump_insn_after): Call it.
2859         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2860         (emit_pattern_before_setloc): New function.
2861         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2862         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2863         Likewise.
2864         (emit_pattern_before): New function.
2865         (emit_insn_before, emit_jump_insn_before): Call it.
2866         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2867
2868 2011-03-31  Richard Henderson  <rth@redhat.com>
2869
2870         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2871         (dw_separate_line_info_entry): Remove.
2872         (enum dw_line_info_opcode): New.
2873         (dw_line_info_entry): Use it.
2874         (dw_line_info_table, dw_line_info_table_p): New.
2875         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2876         (line_info_table, line_info_label_num): Remove.
2877         (line_info_table_in_use): Remove.
2878         (separate_line_info_table): Remove.
2879         (separate_line_info_table_allocated): Remove.
2880         (separate_line_info_table_in_use): Remove.
2881         (LINE_INFO_TABLE_INCREMENT): Remove.
2882         (line_info_label_num): New.
2883         (cur_line_info_table): New.
2884         (text_section_line_info, cold_text_section_line_info): New.
2885         (separate_line_info): New.
2886         (SEPARATE_LINE_CODE_LABEL): Remove.
2887         (print_dwarf_line_table): Remove.
2888         (debug_dwarf): Don't dump it.
2889         (output_one_line_info_table): New.
2890         (output_line_info): Use it.
2891         (new_line_info_table): New.
2892         (set_cur_line_info_table): New.
2893         (dwarf2out_switch_text_section): Use it.
2894         (dwarf2out_begin_function): Likewise.
2895         (push_dw_line_info_entry): New.
2896         (dwarf2out_source_line): Rewrite for new line info tables.
2897         (dwarf2out_init): Remove dead initailizations.
2898
2899 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2900
2901         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2902         various flags.
2903         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2904         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2905         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2906         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2907         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2908         * opt-functions.awk (flag_init, switch_bit_fields): New.
2909         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2910         generate CL_MISSING_OK or CL_SAVE.
2911         * optc-gen.awk: Update to generate bit-field output as well as
2912         flags field.
2913         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2914         bit-field instead of CL_REJECT_DRIVER flag.
2915         * opts-common.c (generate_canonical_option,
2916         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2917         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2918         instead of CL_REJECT_NEGATIVE flag.
2919         * toplev.c (print_switch_values): Use cl_report bit-field instead
2920         of CL_REPORT flag.
2921
2922 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2923
2924         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2925         a zero minimum index only if it is redundant.
2926
2927 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2928
2929         PR rtl-optimization/48381
2930         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2931         instead of ira_class_hard_reg_index for calculating conflicting
2932         hard registers.
2933
2934 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2935
2936         * cprop.c: Clean up hash table building.
2937         (reg_avail_info): Remove.
2938         (oprs_available_p): Remove.
2939         (record_last_reg_set_info): Remove.
2940         (record_last_set_info): Remove.
2941         (reg_available_p): New function.
2942         (gcse_constant_p): Do not treat unfolded conditions as constants.
2943         (make_set_regs_unavailable): New function.
2944         (hash_scan_set): Simplify with new reg_available_p.
2945         (compute_hash_table_work): Traverse insns stream only once.
2946         Do not compute reg_avail_info. Traverse insns in reverse order.
2947         Record implicit sets after recording explicit sets from the block.
2948
2949 2011-03-31  Michael Matz  <matz@suse.de>
2950
2951         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2952
2953 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2954
2955         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2956         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2957         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2958         (h8300_mode_dependent_address_p): New function.
2959         (h8300_get_index): Make static.
2960
2961 2011-03-31  Jeff Law  <law@redhat.com>
2962
2963         * reload1.c (elimination_effects): Fix typo in recent change.
2964
2965         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2966         typo potentially leading to null pointer dereference.
2967
2968         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2969         (setup_save_areas): Corresponding changes to avoid useless
2970         assignments.
2971
2972         * jump.c (reversed_comparison_code_parts): Avoid successive return
2973         statements when REVERSE_CONDITION is defined.
2974
2975         * expr.c (expand_assignment): Avoid useless assignments.
2976         (expand_expr_real_1): Likewise.
2977         (expand_expr_real_2): Avoid useless statements.
2978
2979         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2980
2981         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2982
2983         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2984         statements.
2985
2986         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2987
2988 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2989
2990         PR target/47109
2991         * doc/tm.texi.in (TARGET_VERSION): Remove.
2992         * doc/tm.texi: Regenerate.
2993         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2994         * collect2.c (main): Don't use TARGET_VERSION.
2995         * mips-tdump.c (main): Don't use TARGET_VERSION.
2996         * mips-tfile.c (main): Don't use TARGET_VERSION.
2997         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2998         * config/rs6000/vxworksae.h: Remove.
2999         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3000         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3001         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3002         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3003         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3004         * config/arm/arm.h (TARGET_VERSION): Remove.
3005         * config/arm/coff.h (TARGET_VERSION): Remove.
3006         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3007         * config/arm/elf.h (TARGET_VERSION): Remove.
3008         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3009         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3010         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3011         * config/arm/pe.h (TARGET_VERSION): Remove.
3012         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3013         * config/arm/semi.h (TARGET_VERSION): Remove.
3014         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3015         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3016         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3017         * config/avr/avr.h (TARGET_VERSION): Remove.
3018         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3019         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3020         * config/frv/frv.h (TARGET_VERSION): Remove.
3021         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3022         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3023         * config/i386/darwin.h (TARGET_VERSION): Remove.
3024         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3025         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3026         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3027         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3028         * config/i386/gnu.h (TARGET_VERSION): Remove.
3029         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3030         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3031         * config/i386/linux.h (TARGET_VERSION): Remove.
3032         * config/i386/linux64.h (TARGET_VERSION): Remove.
3033         * config/i386/lynx.h (TARGET_VERSION): Remove.
3034         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3035         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3036         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3037         * config/i386/netware.h (TARGET_VERSION): Remove.
3038         * config/i386/nto.h (TARGET_VERSION): Remove.
3039         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3040         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3041         * config/ia64/elf.h (TARGET_VERSION): Remove.
3042         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3043         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3044         * config/ia64/linux.h (TARGET_VERSION): Remove.
3045         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3046         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3047         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3048         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3049         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3050         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3051         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3052         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3053         * config/m68k/linux.h (TARGET_VERSION): Remove.
3054         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3055         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3056         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3057         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3058         * config/mep/mep.h (TARGET_VERSION): Remove.
3059         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3060         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3061         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3062         * config/mips/linux.h (TARGET_VERSION): Remove.
3063         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3064         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3065         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3066         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3067         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3068         * config/pa/pa.h (TARGET_VERSION): Remove.
3069         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3070         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3071         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3072         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3073         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3074         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3075         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3076         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3077         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3078         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3079         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3080         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3081         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3082         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3083         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3084         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3085         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3086         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3087         * config/s390/linux.h (TARGET_VERSION): Remove.
3088         * config/s390/s390.h (TARGET_VERSION): Remove.
3089         * config/s390/tpf.h (TARGET_VERSION): Remove.
3090         * config/score/score.h (TARGET_VERSION): Remove.
3091         * config/sh/linux.h (TARGET_VERSION): Remove.
3092         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3093         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3094         * config/sh/sh.h (TARGET_VERSION): Remove.
3095         * config/sh/sh64.h (TARGET_VERSION): Remove.
3096         * config/sh/superh.h (TARGET_VERSION): Remove.
3097         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3098         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3099         * config/sparc/linux.h (TARGET_VERSION): Remove.
3100         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3101         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3102         TARGET_NAME32, TARGET_NAME): Remove.
3103         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3104         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3105         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3106         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3107         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3108         * config/spu/spu.h (TARGET_VERSION): Remove.
3109         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3110         * config/v850/v850.h (TARGET_VERSION): Remove.
3111         * config/vax/linux.h (TARGET_VERSION): Remove.
3112         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3113         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3114         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3115
3116 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3117
3118         PR target/48142
3119         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3120         frame-related from frame-unrelated adjustments to the stack pointer.
3121
3122 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3123
3124         * common.opt (fdebug-types-section): Move earlier.
3125         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3126
3127 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3128
3129         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3130         var.
3131
3132 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3133
3134         * tree.h (CASE_CHAIN): Define.
3135         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3136         (gimple_redirect_edge_and_branch): Likewise.
3137
3138 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3139
3140         PR middle-end/48367
3141         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3142         calculation.
3143
3144 2011-03-30  Jeff Law  <law@redhat.com>
3145
3146         * PR bootstrap/48371
3147         * reload1.c (reload): Fix botch in last change.
3148
3149         * reload.h (struct reload): Fix typo introduced in last change.
3150
3151 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3152
3153         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3154         Undocumented.  Remove help text.
3155         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3156         -mhard-float.
3157
3158 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3159
3160         * doc/options.texi (NegativeAlias): Document.
3161         (Alias): Mention NegativeAlias.
3162         * opt-functions.awk: Handle NegativeAlias.
3163         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3164         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3165         * opts.h (CL_NEGATIVE_ALIAS): Define.
3166         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3167         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3168         OPT_mspe_.
3169         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3170         Alias entries.
3171         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3172         mno-spe and mno-isel instead of mspe=no and -misel=no.
3173
3174 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3175
3176         * common.opt (fdebug-types-section): New flag.
3177         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3178         * dwarf2out.c (use_debug_types): New define.
3179         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3180         (print_die): Guard output of type unit signatures using
3181         use_debug_types.
3182         (build_abbrev_table): Replace assert of dwarf_version >= 4
3183         with assert on use_debug_types.
3184         (size_of_die): Likewise.
3185         (unmark_dies): Likewise.
3186         (value_format): Decide AT_ref_external form on use_debug_types.
3187         (output_die): Replace dwarf_version version check guard with
3188         use_debug_types where appropriate.
3189         (modified_type_die): Likewise.
3190         (gen_reference_type_die): Likewise.
3191         (dwarf2out_start_source_file): Likewise.
3192         (dwarf2out_end_source_file): Likewise.
3193         (prune_unused_types_walk_attribs): Likewise.
3194         (dwarf2out_finish): Likewise.
3195
3196 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3197
3198         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3199
3200 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3201
3202         PR rtl-optimization/48332
3203         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3204         mode of input operand N and modeN to its actual mode.
3205
3206 2011-03-30  Jeff Law  <law@redhat.com>
3207
3208         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3209         define accessor macro.
3210         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3211         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3212         (reg_equiv_init): Likewise.
3213         (reg_equivs_size): New variable.
3214         (reg_equiv_init_size): Remove.
3215         (allocate_initial_values): Move prototype to here from....
3216         * integrate.h (allocate_initial_values): Remove prototype.
3217         * integrate.c: Include reload.h.
3218         (allocate_initial_values): Corresponding changes.
3219         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3220         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3221         (update_equiv_regs): Corresponding changes.
3222         (ira): Corresponding changes.
3223         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3224         (push_secondary_reload): Corresponding changes.
3225         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3226         (make_memloc, find_reloads_address): Corresponding changes.
3227         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3228         (find_reloads_address_1): Corresponding changes.
3229         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3230         (refers_to_regno_for_reload_p): Corresponding changes.
3231         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3232         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3233         * reload1.c: Include ggc.h.
3234         (grow_reg_equivs): New function.
3235         (replace_pseudos_in, reload): Corresponding changes.
3236         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3237         (eliminate_regs_1, elimination_effects): Corresponding changes.
3238         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3239         (delete_output_reload): Likewise.
3240         * caller-save.c (mark_referenced_regs): Corresponding changes.
3241         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3242         * frv/predicates.md (frv_load_operand): Corresponding changes.
3243         * microblaze/microblaze.c (double_memory_operand): Corresponding
3244         changes.
3245         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3246         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3247         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3248         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3249         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3250         changes.
3251         * pa/pa.c (emit_move_sequence): Corresponding changes.
3252         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3253
3254 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3255
3256         PR target/47551
3257         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3258         structure modes.  Don't check neon_vector_mem_operand for
3259         vector or structure modes.
3260
3261 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3262             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3263
3264         PR target/43590
3265         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3266         operand 1 and reshuffle the operands to match.
3267         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3268
3269 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3270
3271         PR driver/48208
3272         * config/c.opt (F): Added 'Driver' to -F option.
3273
3274         PR driver/48260
3275         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3276           handler function.
3277         * config/darwin.opt: Added '-arch' option.
3278
3279 2011-03-30  Nick Clifton  <nickc@redhat.com>
3280
3281         * config/rx/rx.md: Add peepholes and patterns to combine
3282         extending loads and simple arithmetic instructions.
3283         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3284         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3285         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3286         modes to use pre-decrement and post-increment addressing.
3287         (rx_is_restricted_memory_address): Add range checking of REG+INT
3288         addresses.
3289         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3290         (rx_memory_move_cost): Adjust cost of stores.
3291         (rx_adjust_insn_length): New function.
3292
3293 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3294
3295         PR c/48305
3296         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3297         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3298         matching arg00/arg01 types.
3299
3300 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3301
3302         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3303         last_location to UNKNOWN_LOCATION.
3304
3305 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3306
3307         PR target/48349
3308         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3309         FLOAT_SSE_REGS.
3310
3311 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3312             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3313
3314         PR bootstrap/48337
3315         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3316         Init(PROCESSOR_V7).
3317         (sparc_cpu): Likewise.
3318         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3319         PROCESSOR_V7.
3320
3321 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3322
3323         PR target/48336
3324         PR middle-end/48342
3325         PR rtl-optimization/48345
3326         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3327         hard regs for given mode from profitable regs when doing secondary
3328         allocation.
3329
3330 2011-03-29  Jeff Law  <law@redhat.com>
3331
3332         PR bootstrap/48327
3333         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3334         do_not_duplicate field.
3335         (lookup_redirection_data): Corresponding changes.
3336         (create_duplicates): Always create a template block.
3337         (redirect_edges): Remove code which reused the original block
3338         when it was going to become unreachable code.
3339         (thread_block): Don't set do_not_duplicate field.
3340
3341 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3342
3343         * lto-opts.c (register_user_option_p, lto_register_user_option):
3344         Make type argument unsigned.
3345         * lto-streamer.h (lto_register_user_option): Make type argument
3346         unsigned.
3347         * opth-gen.awk: Make CL_* macros unsigned.
3348         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3349         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3350         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3351         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3352         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3353         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3354         (find_opt): Make lang_mask argument unsigned.
3355
3356 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3357
3358         PR rtl-optimization/48331
3359         PR rtl-optimization/48334
3360         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3361         for any used algorithm.
3362
3363 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3364
3365         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3366         to parent_max.
3367
3368 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3369
3370         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3371         (alpha_option_override): Don't set alpha_sr_alias_set.
3372         (emit_frame_store_1): Use gen_frame_mem rather than calling
3373         set_mem_alias_set.
3374         (alpha_expand_epilogue): Ditto.
3375
3376 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3377
3378         PR tree-optimization/48290
3379         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3380         vectorization, check that relevant phis in the basic block after
3381         the inner loop are really inner loop's exit phis.
3382
3383 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3384
3385         PR debug/48190
3386         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3387         (cached_dw_loc_list_def): New structure.
3388         (cached_dw_loc_list): New typedef.
3389         (cached_dw_loc_list_table): New variable.
3390         (cached_dw_loc_list_table_hash): New function.
3391         (cached_dw_loc_list_table_eq): Likewise.
3392         (add_location_or_const_value_attribute): Take a bool cache_p.
3393         Cache the list when the parameter is true.
3394         (gen_formal_parameter_die): Update caller.
3395         (gen_variable_die): Likewise.
3396         (dwarf2out_finish): Likewise.
3397         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3398         while generating debug info for the decl.
3399         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3400         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3401         (resolve_addr): Cache the result of resolving a chain of
3402         location lists.
3403
3404 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3405
3406         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3407         conflict object hard regset nodes have intersecting hard reg sets.
3408
3409         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3410         after regstat_init_n_sets_and_refs.
3411
3412         * ira.c: Add more comments at the top.
3413         (setup_stack_reg_pressure_class, setup_pressure_classes):
3414         Add comments how we compute the register pressure classes.
3415         (setup_allocno_and_important_classes): Add more comments.
3416         (setup_class_translate_array, reorder_important_classes)
3417         (setup_reg_class_relations): Add comments.
3418
3419         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3420         start of the file.
3421
3422         * ira-color.c: Add 2011 to the Copyright line.
3423         (assign_hard_reg):  Add more comments.
3424         (improve_allocation): Ditto.
3425
3426         * ira-costs.c: Add 2011 to the Copyright line.
3427         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3428         comments.
3429         (setup_regno_cost_classes_by_mode): Ditto.
3430
3431         Initial patches from ira-improv branch:
3432
3433         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3434
3435         * ira-build.c (ira_create_object): Remove initialization of
3436         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3437         (ira_create_allocno): Remove initialization of
3438         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3439         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3440         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3441         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3442         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3443         Initialize ALLOCNO_ADD_DATA.
3444         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3445         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3446         ALLOCNO_REG.
3447         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3448         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3449
3450         * ira.c (ira_reallocate): Remove.
3451         (setup_pressure_classes): Call
3452         ira_init_register_move_cost_if_necessary.  Use
3453         ira_register_move_cost instead of ira_get_register_move_cost.
3454         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3455         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3456
3457         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3458         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3459         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3460         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3461         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3462         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3463         Fix formatting.
3464         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3465         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3466         (struct allocno_color_data): New.
3467         (allocno_color_data_t): New typedef.
3468         (allocno_color_data): New definition.
3469         (ALLOCNO_COLOR_DATA): New macro.
3470         (struct object_color_data): New.
3471         (object_color_data_t): New typedef.
3472         (object_color_data): New definition.
3473         (OBJECT_COLOR_DATA): New macro.
3474         (update_copy_costs, calculate_allocno_spill_cost): Call
3475         ira_init_register_move_cost_if_necessary.  Use
3476         ira_register_move_cost instead of ira_get_register_move_cost.
3477         (move_spill_restore, update_curr_costs): Ditto.
3478         (allocno_spill_priority): Make it inline.
3479         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3480         (struct coalesce_data, coalesce_data_t): New.
3481         (allocno_coalesce_data): New definition.
3482         (ALLOCNO_COALESCE_DATA): New macro.
3483         (merge_allocnos, coalesced_allocno_conflict_p): Use
3484         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3485         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3486         (coalesce_allocnos): Ditto.
3487         (setup_coalesced_allocno_costs_and_nums): Ditto.
3488         (collect_spilled_coalesced_allocnos): Ditto.
3489         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3490         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3491         (coalesce_spill_slots): Ditto.
3492         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3493         free allocno_coalesce_data.
3494
3495         * ira-conflicts.c: Fix formatting.
3496         (process_regs_for_copy): Call
3497         ira_init_register_move_cost_if_necessary.  Use
3498         ira_register_move_cost instead of ira_get_register_move_cost.
3499         (build_object_conflicts): Optimize.
3500
3501         * ira-costs.c (record_reg_classes): Optimize.  Call
3502         ira_init_register_move_cost_if_necessary.  Use
3503         ira_register_move_cost, ira_may_move_in_cost, and
3504         ira_may_move_out_cost instead of ira_get_register_move_cost and
3505         ira_get_may_move_cost.
3506         (record_address_regs): Ditto.
3507         (scan_one_insn): Optimize.
3508         (find_costs_and_classes): Optimize.
3509         (process_bb_node_for_hard_reg_moves): Call
3510         ira_init_register_move_cost_if_necessary.  Use
3511         ira_register_move_cost instead of ira_get_register_move_cost.
3512
3513         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3514         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3515         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3516         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3517         definitions.
3518         (ira_initiate_emit_data, ira_finish_emit_data)
3519         (create_new_allocno): New functions.
3520         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3521         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3522         Use ira_register_move_cost instead of ira_get_register_move_cost.
3523
3524         * ira-int.h: Fix some comments.
3525         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3526         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3527         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3528         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3529         add_data.
3530         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3531         bitfield after mode.  Make hard_regno a short int.  Make
3532         hard_regno short.  Remove first_coalesced_allocno and
3533         next_coalesced_allocno.  Move mem_optimized_dest_p,
3534         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3535         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3536         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3537         temp, colorable_p.  Add new member add_data.
3538         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3539         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3540         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3541         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3542         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3543         (ALLOCNO_ADD_DATA): New macro.
3544         (ira_emit_data_t): New typedef.
3545         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3546         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3547         from struct ira_allocno.
3548         (ALLOCNO_EMIT_DATA): New macro.
3549         (ira_allocno_emit_data, allocno_emit_reg): New.
3550         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3551         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3552         (OBJECT_ADD_DATA): New macro.
3553         (ira_reallocate): Remove.
3554         (ira_initiate_emit_data, ira_finish_emit_data): New.
3555         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3556         (ira_init_register_move_cost_if_necessary): New.
3557         (ira_object_conflict_iter_next): Merge into
3558         ira_object_conflict_iter_cond.
3559         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3560
3561         * ira-live.c (process_single_reg_class_operands): Call
3562         ira_init_register_move_cost_if_necessary.  Use
3563         ira_register_move_cost instead of ira_get_register_move_cost.
3564
3565         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3566
3567         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3568
3569         * ira-costs.c: Fix formatting.
3570         (cost_classes, cost_classes_num): Remove.
3571         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3572         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3573         (cost_classes_del, cost_classes_htab): New.
3574         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3575         (initiate_regno_cost_classes, setup_cost_classes): New.
3576         (setup_regno_cost_classes_by_aclass): New.
3577         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3578         (record_reg_classes): Use regno_cost_classes instead of
3579         cost_classes.  Move checking opposite operand up.
3580         (record_address_regs): Use regno_cost_classes
3581         instead of cost_classes.
3582         (scan_one_insn): Ditto.  Use always general register.
3583         (print_allocno_costs): Use regno_cost_classes instead of
3584         cost_classes.
3585         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3586         (find_costs_and_classes): Set up cost classes for each registers.
3587         Use also their mode for this.  Use regno_cost_classes instead of
3588         cost_classes.
3589         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3590         cost_classes.
3591         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3592         (ira_costs, ira_set_pseudo_classes): Call
3593         initiate_regno_cost_classes and finish_regno_cost_classes.
3594
3595         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3596
3597         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3598
3599         * target.def (ira_cover_classes): Remove.
3600
3601         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3602
3603         * doc/tm.texi.in: Ditto.
3604
3605         * ira-conflicts.c: Remove mentioning cover classes from the file.
3606         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3607         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3608
3609         * targhooks.c (default_ira_cover_classes): Remove.
3610
3611         * targhooks.h (default_ira_cover_classes): Ditto.
3612
3613         * haifa-sched.c: Remove mentioning cover classes from the file.
3614         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3615         ira_pressure_classes and ira_pressure_classes_num instead of
3616         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3617         sched_regno_pressure_class instead of sched_regno_cover_class.
3618         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3619         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3620
3621         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3622         classes from the file.
3623         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3624         (struct object_hard_regs, struct object_hard_regs_node): New.
3625         (struct ira_object): New members profitable_hard_regs,
3626         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3627         (struct ira_allocno): Rename cover_class to aclass.  Rename
3628         cover_class_cost and updated_cover_class_cost to class_cost and
3629         updated_class_cost.  Remove splay_removed_p and
3630         left_conflict_size.  Add new members colorable_p.
3631         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3632         (ALLOCNO_COLORABLE_P): New macro.
3633         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3634         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3635         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3636         (OBJECT_...): Rename parameter C to O.
3637         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3638         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3639         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3640         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3641         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3642         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3643         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3644         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3645         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3646         x_ira_reg_class_subunion.
3647         (ira_max_memory_move_cost, ira_max_register_move_cost)
3648         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3649         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3650         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3651         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3652         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3653         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3654         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3655         (ira_tune_allocno_costs_and_cover_classes): Rename to
3656         ira_tune_allocno_costs.
3657         (ira_debug_hard_regs_forest): New.
3658         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3659         (ira_object_conflict_iter_next): Fix comments.
3660         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3661         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3662         cover_class to aclass.
3663         (ira_allocate_and_accumulate_costs): Ditto.
3664         (ira_allocate_and_set_or_copy_costs): Ditto.
3665
3666         * opts.c (decode_options): Remove ira_cover_class check.
3667
3668         * ira-color.c: Remove mentioning cover classes from the file.  Use
3669         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3670         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3671         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3672         (splay-tree.h): Remove include.
3673         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3674         before copy_freq_compare_func.
3675         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3676         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3677         New definitions.
3678         (hard_regs_roots, hard_regs_node_vec): Ditto.
3679         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3680         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3681         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3682         (create_new_object_hard_regs_node): Ditto.
3683         (add_new_object_hard_regs_node_to_forest): Ditto.
3684         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3685         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3686         Ditto.
3687         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3688         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3689         (remove_unused_object_hard_regs_nodes): Ditto.
3690         (enumerate_object_hard_regs_nodes): Ditto.
3691         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3692         (object_hard_regs_subnode_t): Ditto.
3693         (struct object_hard_regs_subnode): Ditto.
3694         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3695         (setup_object_hard_regs_subnode_index): Ditto.
3696         (get_object_hard_regs_subnodes_num): Ditto.
3697         (form_object_hard_regs_nodes_forest): Ditto.
3698         (finish_object_hard_regs_nodes_tree): Ditto.
3699         (finish_object_hard_regs_nodes_forest): Ditto.
3700         (allocnos_have_intersected_live_ranges_p): Rename to
3701         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3702         (pseudos_have_intersected_live_ranges_p): Rename to
3703         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3704         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3705         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3706         (update_copy_costs): Remove assert.  Skip cost update if the hard
3707         reg does not belong the class.
3708         (assign_hard_reg): Process only profitable hard regs.
3709         (uncolorable_allocnos_num): Make it scalar.
3710         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3711         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3712         and ira_reg_class_max_nregs.
3713         (bucket_allocno_compare_func): Check frequency first.
3714         (sort_bucket): Add compare function as a parameter.
3715         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3716         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3717         (push_allocno_to_stack): Rewrite for checking new allocno
3718         colorability.
3719         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3720         (push_only_colorable): Pass new parameter to sort_bucket.
3721         (push_allocno_to_spill): Remove.
3722         (allocno_spill_priority_compare): Make it inline and rewrite.
3723         (splay_tree_allocate, splay_tree_free): Remove.
3724         (allocno_spill_sort_compare): New function.
3725         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3726         build and use splay tree.  Choose first allocno in uncolorable
3727         allocno bucket to spill.  Remove setting spill cost.
3728         (all_conflicting_hard_regs): Remove.
3729         (setup_allocno_available_regs_num): Check only profitable hard
3730         regs.  Print info about hard regs nodes.
3731         (setup_allocno_left_conflicts_size): Remove.
3732         (put_allocno_into_bucket): Don't call
3733         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3734         (improve_allocation): New.
3735         (color_allocnos): Call setup_profitable_hard_regs,
3736         form_object_hard_regs_nodes_forest, improve_allocation,
3737         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3738         (print_loop_title): Use pressure classes.
3739         (color_allocnso): Ditto.
3740         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3741         and allocnos_for_spilling.
3742         (ira_sort_regnos_for_alter_reg): Don't setup members
3743         {first,next}_coalesced_allocno.
3744         (color): Remove allocating and freeing removed_splay_allocno_vec.
3745         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3746         prohibited_class_mode_regs.
3747
3748         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3749         formatting.
3750         (update_allocno_pressure_excess_length): Use pressure classes.
3751         (inc_register_pressure, dec_register_pressure): Check for pressure
3752         class.
3753         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3754         pressure class.  Use ira_reg_class_nregs instead of
3755         ira_reg_class_max_nregs.
3756         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3757         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3758         (single_reg_class): Use ira_reg_class_nregs instead of
3759         ira_reg_class_max_nregs.
3760         (process_bb_node_lives): Use pressure classes.
3761
3762         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3763         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3764         (change_loop): Use pressure classes.
3765         (modify_move_list): Call ira_set_allocno_class instead of
3766         ira_set_allocno_cover_class.
3767
3768         * ira-build.c: Remove mentioning cover classes from the file.  Use
3769         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3770         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3771         ALLOCNO_UPDATED_CLASS_COST instead of
3772         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3773         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3774         (ira_create_allocno): Remove initialization of
3775         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3776         ALLOCNO_COLORABLE_P.
3777         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3778         Update conflict regs for the objects.
3779         (create_cap_allocno): Remove assert.  Don't propagate
3780         ALLOCNO_AVAILABLE_REGS_NUM.
3781         (ira_free_allocno_costs): New function.
3782         (finish_allocno): Change a part of code into call of
3783         ira_free_allocno_costs.
3784         (low_pressure_loop_node_p): Use pressure classes.
3785         (object_range_compare_func): Don't compare classes.
3786         (setup_min_max_conflict_allocno_ids): Ditto.
3787
3788         * loop-invariant.c: Remove mentioning cover classes from the file.
3789         Use ira_pressure_classes and ira_pressure_classes_num instead of
3790         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3791         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3792         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3793         Use reg_allocno_class instead of reg_cover_class.
3794         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3795         STACK_REG_COVER_CLASS.
3796         (get_regno_cover_class): Rename to get_regno_pressure_class.
3797         (move_loop_invariants): Initialize and finalize regstat.
3798
3799         * ira.c: Remove mentioning cover classes from the file.  Add
3800         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3801         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3802         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3803         setup_class_subset_and_memory_move_costs.
3804         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3805         (setup_cover_and_important_classes): Rename to
3806         setup_allocno_and_important_classes.
3807         (setup_class_translate_array): New.
3808         (setup_class_translate): Call it for allocno and pressure classes.
3809         (cover_class_order): Rename to allocno_class_order.
3810         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3811         of ira_class_translate.
3812         (reorder_important_classes): Set up ira_important_class_nums.
3813         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3814         (print_class_cover): Rename to print_classes.  Add parameter.
3815         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3816         Print pressure classes too.
3817         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3818         setup_reg_subclasses.
3819         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3820         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3821         (setup_prohibited_class_mode_regs): Use
3822         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3823         (clarify_prohibited_class_mode_regs): New function.
3824         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3825         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3826         (ira_init_once): Initialize them.
3827         (free_register_move_costs): Process them.
3828         (ira_init): Move calls of find_reg_classes and
3829         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3830         Call clarify_prohibited_class_mode_regs.
3831         (ira_no_alloc_reg): Remove.
3832         (too_high_register_pressure_p): Use pressure classes.
3833
3834         * sched-deps.c: Remove mentioning cover classes from the file.
3835         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3836         ira_pressure_classes and ira_pressure_classes_num instead of
3837         ira_reg_class_cover_size and ira_reg_class_cover.
3838         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3839         sched_regno_pressure_class instead of sched_regno_cover_class.
3840         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3841         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3842
3843         * ira.h: Add 2010 to Copyright.
3844         (ira_no_alloc_reg): Remove external.
3845         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3846         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3847         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3848         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3849         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3850         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3851         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3852         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3853         x_ira_no_alloc_regs.
3854         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3855         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3856         ira_allocno_classes_num and ira_allocno_classes.
3857         (ira_class_translate): Rename to ira_allocno_class_translate.
3858         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3859         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3860         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3861         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3862         (ira_no_alloc_regs): New.
3863
3864         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3865         classes from the file.  Use ALLOCNO_CLASS instead of
3866         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3867         ALLOCNO_COVER_CLASS_COST.
3868         (regno_cover_class): Rename to regno_aclass.
3869         (record_reg_classes): Use ira_reg_class_subunion instead of
3870         ira_reg_class_union.
3871         (record_address_regs): Check overflow.
3872         (scan_one_insn): Ditto.
3873         (print_allocno_costs): Print total mem cost fore regional allocation.
3874         (print_pseudo_costs): Use REG_N_REFS.
3875         (find_costs_and_classes): Use classes intersected with them on the
3876         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3877         ira_reg_class_union.  Use ira_allocno_class_translate and
3878         regno_aclass instead of ira_class_translate and regno_cover_class.
3879         Modify code for finding regno_aclass.  Setup preferred classes for
3880         the next pass.
3881         (setup_allocno_cover_class_and_costs): Rename to
3882         setup_allocno_class_and_costs.  Use regno_aclass instead of
3883         regno_cover_class.  Use ira_set_allocno_class instead of
3884         ira_set_allocno_cover_class.
3885         (init_costs, finish_costs): Use regno_aclass instead of
3886         regno_cover_class.
3887         (ira_costs): Use setup_allocno_class_and_costs instead of
3888         setup_allocno_cover_class_and_costs.
3889         (ira_tune_allocno_costs_and_cover_classes): Rename to
3890         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3891         by processing objects.  Use ira_reg_class_max_nregs instead of
3892         ira_reg_class_nregs.
3893
3894         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3895
3896         * sched-int.h: Remove mentioning cover classes from the file.
3897         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3898
3899         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3900         classes from the file.
3901         (struct reg_pref): Rename coverclass into allocnoclass.
3902         (reg_cover_class): Rename to reg_allocno_class.
3903
3904         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3905
3906         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3907
3908         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3909
3910         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3911
3912         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3913
3914         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3915
3916         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3917
3918         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3919
3920         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3921
3922         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3923
3924         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3925         (i386_ira_cover_classes): Ditto.
3926
3927         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3928
3929         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3930
3931         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3932
3933         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3934
3935         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3936
3937         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3938
3939         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3940         (mips_ira_cover_classes): Ditto.
3941
3942         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3943
3944         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3945
3946         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3947
3948         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3949
3950         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3951
3952         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3953         (IRA_COVER_CLASSES_VSX): Ditto.
3954
3955         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3956         (rs6000_ira_cover_classes): Ditto.
3957
3958         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3959
3960         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3961
3962         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3963
3964         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3965
3966         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3967
3968         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3969
3970         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3971
3972         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3973
3974         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3975
3976         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3977
3978 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3979
3980         PR debug/48253
3981         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3982         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3983         dw_fde_unlikely_section_end_label, cold_in_std_section,
3984         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3985         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3986         fields.
3987         (output_fde): Use dw_fde_second_{begin,end} if second is
3988         true, otherwise dw_fde_{begin,end}.
3989         (output_call_frame_info): Test dw_fde_second_begin != NULL
3990         instead of dw_fde_switched_sections.
3991         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3992         fields, initialize new fields.  Initialize in_std_section
3993         unconditionally from the first partition.
3994         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3995         dw_fde_second_begin is non-NULL.
3996         (dwarf2out_switch_text_section): Stop initializing removed
3997         dw_fde_struct fields, initialize new fields, initialize
3998         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3999         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4000         (struct var_loc_list_def): Add last_before_switch field.
4001         (arange_table, arange_table_allocated, arange_table_in_use,
4002         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4003         (size_of_aranges): Count !in_std_section and !second_in_std_section
4004         hunks in fdes, instead of looking at arange_table_in_use.
4005         (output_aranges): Add aranges_length argument, don't call
4006         size_of_aranges here.  Instead of using aranges_table*
4007         emit ranges for fdes when !in_std_section resp.
4008         !second_in_std_section.
4009         (dw_loc_list): Break ranges crossing section switch.
4010         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4011         use dw_fde_second_end instead of dw_fde_end as end of last range.
4012         (gen_subprogram_die): Don't call add_arange.  Use
4013         dw_fde_{begin,end} for first partition and if switched
4014         section dw_fde_second_{begin,end} for the second.
4015         (var_location_switch_text_section_1,
4016         var_location_switch_text_section): New functions.
4017         (dwarf2out_begin_function): Initialize cold_text_section even
4018         when function_section () isn't text_section.
4019         (prune_unused_types): Don't walk arange_table.
4020         (dwarf2out_finish): Don't needlessly test
4021         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4022         If info_section_emitted, call size_of_aranges and if it indicates
4023         non-empty .debug_aranges, call output_aranges with the computed
4024         size.  Stop using removed dw_fde_struct fields, use
4025         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4026         for second.
4027
4028         PR debug/48203
4029         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4030         create ENTRY_VALUE if incoming or address of incoming's MEM
4031         is a hard REG.
4032         * dwarf2out.c (mem_loc_descriptor): Don't emit
4033         DW_OP_GNU_entry_value of DW_OP_fbreg.
4034         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4035         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4036         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4037         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4038         ENTRY_VALUE_EXPs.
4039         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4040         is a REG_P or MEM_P with REG_P address, compute hash directly
4041         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4042         (preserve_only_constants): Don't clear VALUES forwaring
4043         ENTRY_VALUE to some other VALUE.
4044
4045 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4046
4047         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4048         instead of GEN_INT.
4049
4050 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4051
4052         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4053         block before expanding the statement.
4054         (expand_gimple_stmt_1): Likewise.  Set them here...
4055         (expand_gimple_stmt): ...and not here.  Tidy.
4056         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4057         unknown.
4058
4059 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4060
4061         * Makefile.in: New rule for cprop.o.
4062         * gcse.c: Move constant/copy propagation to cprop.c.
4063         (compute_local_properties): Only handle expression tables.
4064         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4065         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4066         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4067         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4068         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4069         compute_cprop_data, find_used_regs, try_replace_reg,
4070         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4071         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4072         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4073         find_bypass_set, reg_killed_on_edge, bypass_block,
4074         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4075         execute_rtl_cprop, pass_rtl_cprop): Move to...
4076         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4077         moved from gcse.c to here with minor cleanups in duplicated code.
4078
4079 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         * config/i386/i386.c (flag_opts): Fix a typo in
4082         -mavx256-split-unaligned-store.
4083
4084 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4085
4086         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4087         LIBCALL_VALUE): Remove macros.
4088         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4089         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4090         (h8300_function_value, h8300_libcall_value,
4091         h8300_function_value_regno_p): New functions.
4092
4093 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4094
4095         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4096
4097 2011-03-28  Jeff Law  <law@redhat.com>
4098
4099         * tree-ssa-threadupdate.c (redirect_edges): Call
4100         create_edge_and_update_destination_phis as needed.
4101         (create_edge_and_update_destination_phis): Accept new BB argument.
4102         All callers updated.
4103         (thread_block): Do not update the profile when threading around
4104         intermediate blocks.
4105         (thread_single_edge): Likewise.
4106         (determine_bb_domination_status): If BB is not a successor of the
4107         loop header, return NONDOMINATING.
4108         (register_jump_thread): Note when we register a jump thread around
4109         an intermediate block.
4110         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4111         (thread_across_edge): Use it.
4112
4113 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4114
4115         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4116         when for_return is 2.
4117
4118 2011-03-28  Jeff Law  <law@redhat.com>
4119
4120         * var-tracking.c (canonicalize_values_mark): Delete unused
4121         lhs assignment.
4122         (canonicalize_values_star, set_variable_part): Likewise.
4123         (clobber_variable_part, delete_variable_part): Likewise.
4124
4125 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4126
4127         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4128
4129 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4130
4131         * tree-inline.c (expand_call_inline): Do not check that destination
4132         node is analyzed.
4133         (optimize_inline_calls): Assert that destination node is analyzed.
4134         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4135         not call tree_lowering_passes.
4136         * cgraph.h (cgraph_analyze_function): Declare.
4137         * cgraphunit.c (cgraph_analyze_function): Make public.
4138
4139 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4140
4141         * config/sparc/sparc-opts.h: New.
4142         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4143         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4144         (sparc_option_override): Store processor_type enumeration rather
4145         than string in cpu_default.  Remove name and enumeration from
4146         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4147         without using sparc_select.  Use target_flags_explicit instead of
4148         fpu_option_set.
4149         * config/sparc/sparc.h (enum processor_type): Move to
4150         sparc-opts.h.
4151         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4152         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4153         HeaderInclude entry.
4154         (mcpu=, mtune=): Use Var and Enum.
4155         (sparc_processor_type): New Enum and EnumValue entries.
4156
4157 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4158             Iain Sandoe  <iains@gcc.gnu.org>
4159
4160         PR target/48245
4161         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4162
4163 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4164
4165         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4166         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4167         Insert new statements at it in lieu of STMT.
4168         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4169         * tree-vect-stmts.c (vectorizable_store): Likewise.
4170         (vectorizable_load): Likewise.
4171
4172 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4173
4174         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4175         (divtf3): Ditto.
4176         (multf3): Ditto.
4177         (subtf3): Ditto.
4178
4179 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4180
4181         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4182         unaligned 256bit load/store.
4183         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4184         (*avx_movdqu<avxmodesuffix>): Likewise.
4185
4186 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4187
4188         PR target/48288
4189         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4190         * config/pa/pa.md (iordi3): Use new predicate in expander.
4191         (iorsi3): Likewise.
4192
4193 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4194
4195         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4196         FUNCTION_VALUE_REGNO_P): Remove macros.
4197         * config/mips/mips-protos.h (mips_function_value): Remove.
4198         * config/mips/mips.c (mips_function_value): Rename to...
4199         (mips_function_value_1): ... this. Make static.  Handle receiving
4200         the function type in 'fn_decl_or_type' argument.
4201         (mips_function_value, mips_libcall_value,
4202         mips_function_value_regno_p): New function.
4203         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4204         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4205
4206 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4207
4208         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4209         and -mavx256-split-unaligned-store.
4210         (ix86_option_override_internal): Split 32-byte AVX unaligned
4211         load/store by default.
4212         (ix86_avx256_split_vector_move_misalign): New.
4213         (ix86_expand_vector_move_misalign): Use it.
4214
4215         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4216         -mavx256-split-unaligned-store.
4217
4218         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4219         256bit load/store.  Generate unaligned store on misaligned memory
4220         operand.
4221         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4222         256bit load/store.
4223         (*avx_movdqu<avxmodesuffix>): Likewise.
4224
4225         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4226         -mavx256-split-unaligned-store.
4227
4228 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4229
4230         PR target/38598
4231         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4232         Update commentary.
4233
4234 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4235
4236         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4237         opno arguments with an expand_operand.  Use create_input_operand.
4238         (mips_prepare_builtin_target): Delete.
4239         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4240         functions.
4241         (mips_expand_builtin_direct): Use create_output_operand and
4242         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4243         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4244         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4245
4246 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4247
4248         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4249         function.
4250         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4251
4252 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4253
4254         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4255         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4256         basic blocks and call commit_edge_insertions directly.
4257         (fixup_abnormal_edges): Move from here to...
4258         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4259         on the edges and return whether some have actually been inserted.
4260         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4261         compensation code.
4262
4263 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4264
4265         PR rtl-optimization/48144
4266         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4267         (merge_expr_data): ... here.
4268         (av_set_intersect): Rename to av_set_code_motion_filter.
4269         Update all callers.  Call merge_history_vect when an expression
4270         is found in both sets.
4271         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4272
4273 2011-03-26  Alan Modra  <amodra@gmail.com>
4274
4275         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4276         cmodel medium addresses.
4277         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4278         64-bit gpr loads and stores.
4279         (rs6000_secondary_reload_ppc64): New function.
4280         * config/rs6000/rs6000-protos.h: Declare it.
4281         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4282
4283 2011-03-26  Alan Modra  <amodra@gmail.com>
4284
4285         PR target/47487
4286         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4287         GNU Go in traceback table.
4288
4289 2011-03-25  Richard Henderson  <rth@redhat.com>
4290
4291         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4292         if there are exactly 6 operands.
4293         (set_storage_via_setmem): Similarly.
4294
4295 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4296
4297         * collect2.c (write_c_file_stat): Handle backslash
4298         as right-hand directory separator.
4299         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4300         checking just for slash.
4301         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4302         instead of checking for trailing slash.
4303         * gcc.c (record_temp_file): Use filename_cmp instead
4304         of strcmp.
4305         (do_spec_1): Likewise.
4306         (replace_outfile_spec_function): Likewise.
4307         (is_directory): Use filename_ncmp instead of strncmp.
4308         (print_multilib_info): Likewise.
4309         * gcov.c (find_source): Use filename_cmp instead
4310         instead of strcmp.
4311         (make_gcov_file_name): Fix order of slash/backslash
4312         checks.
4313         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4314         (add_standard_paths): Likewise.
4315         * mips-tfile.c (saber_stop): Handle backslash.
4316         * prefix.c (update_path): Use filename_ncmp instead of
4317         strncmp.
4318         * profile.c (output_location): Use filename_cmp instead
4319         of strcmp.
4320         * read-md.c (handle_toplevel_file): Handle backslash.
4321         * tlink.c (frob_extension):  Likewise.
4322         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4323         strcmp.
4324         * tree-dump.c (dequeue_and_dump): Handle backslash.
4325         * tree.c (get_file_function_name): Likewise.
4326         * gengtype.c (read_input_list): Likewise.
4327         (get_file_realbasename): Likewise.
4328         (get_output_file_with_visibility): Use filename_cmp
4329         instead of strcmp.
4330
4331 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4332
4333         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4334         case to VFPv1.
4335
4336 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4337
4338         * fold-const.c (expr_location_or): New function.
4339         (fold_truth_not_expr): Call it.
4340
4341 2011-03-25  Jeff Law  <law@redhat.com>
4342
4343         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4344         va_end.
4345         * c-family/c-common.c (def_fn_type): Likewise.
4346         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4347         * emit-rtl.c (gen_rtvec): Likewise.
4348         * lto/lto-lang.c (def_fn_type): Likewise.
4349
4350 2011-03-25  Richard Guenther  <rguenther@suse.de>
4351
4352         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4353         also generate copies.
4354         (fini_copy_prop): Handle constant values properly.
4355
4356 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4357
4358         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4359         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4360         (hash_loc_operands, compare_loc_operands): Handle
4361         DW_OP_GNU_entry_value.
4362
4363 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4364
4365         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4366         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4367         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4368         comment and use macro TARGET_64BIT_MS_ABI instead.
4369         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4370         and change default behavior for 32-bit MS_ABI.
4371         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4372         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4373         32-bit, too.
4374         (ix86_cfun_abi): Likewise.
4375         (ix86_maybe_switch_abi): Adjust comment.
4376         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4377         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4378         instead of checking for SYSV_ABI.
4379         (ix86_nsaved_sseregs): Likewise.
4380         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4381         to 16 bytes.
4382         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4383         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4384         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4385         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4386         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4387
4388 2011-03-25  Richard Guenther  <rguenther@suse.de>
4389
4390         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4391         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4392         (verify_gimple): Remove.
4393         * tree-cfg.c (verify_gimple_call): Merge verification
4394         from verify_stmts.
4395         (verify_gimple_phi): Merge verification from verify_stmts.
4396         (verify_gimple_label): New function.
4397         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4398         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4399         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4400         (verify_stmts): Rename to verify_gimple_in_cfg.
4401         (verify_gimple_in_cfg): New function.
4402         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4403         * tree-ssa.c (verify_ssa): Likewise.
4404         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4405
4406 2011-03-25  Richard Guenther  <rguenther@suse.de>
4407
4408         * passes.c (init_optimization_passes): Add FRE pass after
4409         early SRA.
4410
4411 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4412             Andrew Stubbs  <ams@codesourcery.com>
4413
4414         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4415         for Cortex-A8.
4416         (arm_movdi_vfp_cortexa8): New pattern.
4417         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4418         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4419         instructions when tuning for Cortex-A8.  Set attribute "arch".
4420         * config/arm/arm.md: Move include arm-tune.md up a bit.
4421         (define_attr "arch"): Add "onlya8" and "nota8" values.
4422         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4423
4424 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4425
4426         PR bootstrap/48282
4427         Revert:
4428         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4429
4430         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4431         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4432         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4433         * passes.c (init_optimization_passes): Move
4434         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4435
4436 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4437
4438         * c-typeck.c (comptypes_internal): Replace target
4439         hook call of comp_type_attributes by version in tree.c file.
4440         * gimple.c (gimple_types_compatible_p_1): Likewise.
4441         * tree-ssa.c (useless_type_conversion_p): Likewise.
4442         * tree.c (build_type_attribute_qual_variant): Likewise.
4443         (attribute_value_equal): New static helper function.
4444         (comp_type_attributes): New function.
4445         (merge_attributes): Use attribute_value_equal for comparison.
4446         (attribute_list_contained): Likewise.
4447         * tree.h (comp_type_attributes): New prototype.
4448
4449 2011-03-25  Richard Guenther  <rguenther@suse.de>
4450
4451         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4452         of complex types at -O0.
4453         (verify_gimple_assign_binary): Likewise.
4454         (verify_gimple_assign_ternary): Likewise.
4455
4456 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4457
4458         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4459         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4460
4461 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4462
4463         PR debug/48041
4464         * dwarf2out.c (output_abbrev_section): Only write table when
4465         abbrev_die_table_in_use > 1.
4466
4467 2011-02-24  Richard Henderson  <rth@redhat.com>
4468
4469         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4470         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4471         (alpha_expand_unaligned_load_words): Use extql.
4472         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4473         (emit_insxl): Handle all modes for consistency.
4474
4475 2011-02-24  Richard Henderson  <rth@redhat.com>
4476
4477         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4478         (alpha_expand_unaligned_load): Likewise.
4479         (alpha_expand_unaligned_store): Likewise.
4480         (alpha_expand_unaligned_load_words): Likewise.
4481         (alpha_expand_unaligned_store_words): Likewise.
4482         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4483         (alpha_split_lock_test_and_set_12): Likewise.
4484         (print_operand, alpha_fold_builtin_extxx): Likewise.
4485         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4486         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4487         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4488         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4489         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4490         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4491         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4492         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4493         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4494         (extwl, extll, extql): Similarly.
4495         (inswh, inslh, insqh): Similarly.
4496         (mskbl, mskwl, mskll, mskql): Similarly.
4497         (mskwh, msklh, mskqh): Similarly.
4498
4499 2011-02-24  Richard Henderson  <rth@redhat.com>
4500
4501         * config/alpha/alpha.md (attribute isa): Add er, ner.
4502         (attribute enabled): Handle them.
4503         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4504
4505 2011-02-24  Richard Henderson  <rth@redhat.com>
4506
4507         * config/alpha/alpha.md (attribute isa): Add vms.
4508         (attribute enabled): Handle it.
4509         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4510         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4511         (*movtf): Rename from *movtf_internal for consistency.
4512         (*movsi): Merge with *movsi_nt_vms.
4513         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4514         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4515         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4516         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4517
4518 2011-02-24  Richard Henderson  <rth@redhat.com>
4519
4520         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4521         (extendqisi2, extendhisi2): Likewise.
4522         (extendqidi2): Simplify BWX/non-BWX expansions.
4523         (extendhidi2): Similarly.
4524
4525 2011-02-24  Richard Henderson  <rth@redhat.com>
4526
4527         * config/alpha/alpha.md (attribute isa): New.
4528         (attribute enabled): New.
4529         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4530         (zero_extendqisi2, zero_extendqidi2): Similarly.
4531         (zero_extendhisi2, zero_extendhidi2): Similarly.
4532         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4533
4534 2011-02-24  Richard Henderson  <rth@redhat.com>
4535
4536         * config/alpha/predicates.md (input_operand): Revert last change;
4537         update comment to mention 32-bit VMS rather than Windows.
4538
4539 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4540
4541         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4542         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4543         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4544         * passes.c (init_optimization_passes): Move
4545         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4546
4547 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4548
4549         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4550
4551 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4552
4553         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4554         correctly.
4555
4556 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4557
4558         PR debug/48204
4559         * simplify-rtx.c (simplify_const_unary_operation): Call
4560         real_convert when changing mode class with FLOAT_EXTEND.
4561
4562 2011-03-24  Nick Clifton  <nickc@redhat.com>
4563
4564         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4565         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4566         * config/rx/rx.c (rx_option_override): Set align_jumps,
4567         align_loops and align_labels if not set by the user.
4568         (rx_align_for_label): New function.
4569         (rx_max_skip_for_label): New function.
4570         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4571         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4572         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4573         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4574         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4575
4576 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4577
4578         PR rtl-optimization/48263
4579         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4580         and original commutative_p handling.  Use maybe_gen_insn.
4581
4582 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4583
4584         * reload.c (find_reloads_subreg_address): Add address_reloaded
4585         parameter and return true there if the full address has been
4586         reloaded.
4587         (find_reloads_toplev): Pass address_reloaded flag.
4588         (find_reloads_address_1): Don't use address_reloaded parameter.
4589
4590 2011-03-24  Jeff Law  <law@redhat.com>
4591
4592         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4593         unused variable "ann".
4594         (remove_unused_locals): Likewise.
4595
4596         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4597         statement.
4598
4599         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4600         after it is freed.
4601
4602 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4603
4604         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4605         for invalid symbolic addresses.
4606         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4607         larl operands.
4608
4609 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4610
4611         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4612         the argument in calls to fold_truth_not_expr.
4613
4614 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4615
4616         * tree.c (record_node_allocation_statistics): New function.
4617         (make_node_stat, copy_node_stat, build_string): Call it.
4618         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4619         (build1_stat, build_omp_clause): Likewise.
4620
4621 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4622
4623         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4624         last commit.
4625
4626 2011-03-24  Richard Guenther  <rguenther@suse.de>
4627
4628         PR tree-optimization/48271
4629         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4630         blocks that still exist.
4631
4632 2011-03-24  Richard Guenther  <rguenther@suse.de>
4633
4634         PR tree-optimization/48270
4635         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4636         not free datarefs before ddrs.
4637
4638 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4639
4640         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4641         from the address built for a reference with variable offset.
4642
4643 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4644
4645         PR target/48237
4646         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4647         alternatives that can be handled with movq or movabsq insn.
4648         (*movdf_internal): Disable for !TARGET_64BIT.
4649         (*movdf_internal_nointeger): Ditto.
4650         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4651
4652 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4653
4654         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4655         (FUNCTION_ARG_ADVANCE): Likewise.
4656         * tm.texi.in: Change references to them to hook references.
4657         * tm.texi: Regenerate.
4658         * targhooks.c (default_function_arg): Eliminate check for target macro.
4659         (default_function_incoming_arg): Likewise.
4660         (default_function_arg_advance): Likewise.
4661         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4662         (function_arg_advance): Likewise.
4663         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4664
4665 2011-03-24  Richard Guenther  <rguenther@suse.de>
4666
4667         PR middle-end/48269
4668         * tree-object-size.c (addr_object_size): Do not double-account
4669         for MEM_REF offsets.
4670
4671 2011-03-24  Diego Novillo  <dnovillo@google.com>
4672
4673         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4674         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4675         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4676         Update all users.
4677         (lto_input_string): Rename from input_string.  Make extern.
4678         Update all users.
4679         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4680         output_string_with_length.
4681         Output 0 to indicate a non-NULL string.  Update all callers to
4682         not emit 0.
4683         (lto_output_string): Rename from output_string.  Make extern.
4684         Update all users.
4685         (lto_output_decl_state_streams): Make extern.
4686         (lto_output_decl_state_refs): Make extern.
4687         * lto-streamer.h (lto_input_string): Declare.
4688         (lto_input_data_block): Declare.
4689         (lto_output_string): Declare.
4690         (lto_output_string_with_length): Declare.
4691         (lto_output_decl_state_streams): Declare.
4692         (lto_output_decl_state_refs): Declare.
4693
4694 2011-03-24  Richard Guenther  <rguenther@suse.de>
4695
4696         PR tree-optimization/46562
4697         * tree.c (build_invariant_address): New function.
4698         * tree.h (build_invariant_address): Declare.
4699         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4700         a renamed function moved ...
4701         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4702         Take valueization callback parameter.
4703         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4704         * gimple-fold.h: New file.
4705         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4706         (ccp_fold, fold_const_aggregate_ref,
4707         fold_ctor_reference, fold_nonarray_ctor_reference,
4708         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4709         get_base_constructor): Move ...
4710         * gimple-fold.c: ... here.
4711         (gimple_fold_stmt_to_constant_1): New function
4712         split out from ccp_fold.  Take a valueization callback parameter.
4713         Valueize all operands.
4714         (gimple_fold_stmt_to_constant): New wrapper function.
4715         (fold_const_aggregate_ref_1): New function split out from
4716         fold_const_aggregate_ref.  Take a valueization callback parameter.
4717         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4718         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4719         invariant POINTER_PLUS_EXPRs to invariant form.
4720         (vn_valueize): New function.
4721         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4722         * tree-vrp.c (vrp_valueize): New function.
4723         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4724         to fold statements to constants.
4725         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4726         function declarations.
4727         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4728         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4729
4730 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4731
4732         * config/h8300/predicates.md (jump_address_operand): Fix register
4733         mode check.
4734
4735 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4736
4737         * doc/invoke.texi (max-stores-to-sink): Document.
4738         * params.h (MAX_STORES_TO_SINK): Define.
4739         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4740         if either vectorization or if-conversion is disabled.
4741         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4742         tree-vect-data-refs.c vect_equal_offsets.
4743         (dr_equal_offsets_p): New function.
4744         (find_data_references_in_bb): Remove static.
4745         * tree-data-ref.h (find_data_references_in_bb): Declare.
4746         (dr_equal_offsets_p): Likewise.
4747         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4748         (vect_drs_dependent_in_basic_block): Update calls to
4749         vect_equal_offsets.
4750         (vect_check_interleaving): Likewise.
4751         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4752         (cond_if_else_store_replacement): Rename to...
4753         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4754         documentation.
4755         (cond_if_else_store_replacement): New function.
4756         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4757         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4758
4759 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4760
4761         PR target/46934
4762         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4763         to subtract lower bound instead of GEN_INT().
4764
4765 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4766
4767         PR other/48179
4768         PR other/48221
4769         PR other/48234
4770         * doc/extend.texi (Alignment): Move section to match order in TOC.
4771         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4772         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4773
4774 2011-03-23  Jeff Law  <law@redhat.com>
4775
4776         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4777         before removing the edge.
4778
4779         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4780         it may have been freed by redirect_branch_edge or
4781         redirect_edge_succ_nodup.
4782
4783 2011-03-23  Richard Guenther  <rguenther@suse.de>
4784
4785         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4786         (check_va_list_escapes): Likewise.
4787         (check_all_va_list_escapes): Likewise.
4788
4789 2011-03-23  Richard Guenther  <rguenther@suse.de>
4790
4791         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4792         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4793         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4794         (alias.o): Likewise.
4795         (ipa-type-escape.o): Remove.
4796         (ipa-struct-reorg.o): Likewise.
4797         (GTFILES): Remove ipa-struct-reorg.c.
4798         * alias.c: Do not include ipa-type-escape.h.
4799         * tree-ssa-alias.c: Likewise.
4800         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4801         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4802         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4803         and ipa-type-escape passes.
4804         * tree-pass.h (pass_ipa_type_escape): Remove.
4805         (pass_ipa_struct_reorg): Likewise.
4806         * ipa-struct-reorg.h: Remove.
4807         * ipa-struct-reorg.c: Likewise.
4808         * ipa-type-escape.h: Likewise.
4809         * ipa-type-escape.c: Likewise.
4810         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4811         (--param struct-reorg-cold-struct-ratio): Likewise.
4812         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4813         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4814         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4815
4816 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4817
4818         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4819         cpu attribute value.
4820         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4821         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4822         * config/s390/s390.c (processor_flags_table): New constant array.
4823         (s390_handle_arch_option): Remove.
4824         (s390_handle_option): Remove s390_handle_arch_option invocations
4825         and OPT_mwarn_framesize_ handling.
4826         (s390_option_override): Remove s390_handle_arch_option invocation.
4827         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4828         warnings.
4829         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4830         * config/s390/s390.opt (s390_tune, s390_arch)
4831         (march=): Replace s390_arch_option enum and values with
4832         processor_type.  Set variable name to s390_arch.  Set
4833         initialization value.
4834         (mtune=): Replace s390_arch_option with processor_type.  Set
4835         variable name to s390_tune.  Set initialization value.
4836
4837 2011-03-23  Julian Brown  <julian@codesourcery.com>
4838
4839         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4840         accesses which are not naturally aligned.
4841
4842 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4843
4844         PR target/47553
4845         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4846
4847 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4848
4849         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4850         parameter from "int" to "enum insn_code".
4851         (expand_operand_type): New enum.
4852         (expand_operand): New structure.
4853         (create_expand_operand): New function.
4854         (create_fixed_operand, create_output_operand): Likewise
4855         (create_input_operand, create_convert_operand_to): Likewise.
4856         (create_convert_operand_from, create_address_operand): Likewise.
4857         (create_integer_operand): Likewise.
4858         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4859         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4860         (expand_insn, expand_jump_insn): Likewise.
4861         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4862         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4863         (expand_movstr, expand_builtin___clear_cache): Likewise.
4864         (expand_builtin_lock_release): Likewise.
4865         * explow.c (allocate_dynamic_stack_space): Likewise.
4866         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4867         and use the default handling in that case.
4868         * expmed.c (check_predicate_volatile_ok): Delete.
4869         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4870         (emit_cstore): Likewise.
4871         * expr.c (emit_block_move_via_movmem): Likewise.
4872         (set_storage_via_setmem, expand_assignment): Likewise.
4873         (emit_storent_insn, try_casesi): Likewise.
4874         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4875         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4876         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4877         (expand_twoval_unop, expand_twoval_binop): Likewise.
4878         (expand_unop_direct, emit_indirect_jump): Likewise.
4879         (emit_conditional_move, vector_compare_rtx): Likewise.
4880         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4881         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4882         (expand_sync_lock_test_and_set): Likewise.
4883         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4884         (emit_unop_insn): Likewise.
4885         (expand_copysign_absneg): Change icode to an insn_code.
4886         (create_convert_operand_from_type): New function.
4887         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4888         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4889         (expand_insn, expand_jump_insn): Likewise.
4890         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4891         than const_int_operand for operand 2.
4892
4893 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4894
4895         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4896         if possible.
4897
4898 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4899
4900         * emit-rtl.c (emit_pattern_before_noloc): New function.
4901         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4902         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4903         (emit_pattern_after_noloc): New function.
4904         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4905         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4906
4907 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4908
4909         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4910         (__ffsDI2): Likewise.
4911
4912 2011-03-22  Richard Henderson  <rth@redhat.com>
4913
4914         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4915         of !TARGET_ABI_OPEN_VMS.
4916         (alpha_trampoline_init, alpha_start_function): Likewise.
4917         (alpha_expand_epilogue, alpha_file_start): Likewise.
4918         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4919         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4920         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4921         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4922         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4923
4924 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4925
4926         * config/s390/s390-opts.h: New.
4927         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4928         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4929         s390_stack_guard): Remove.
4930         (s390_handle_arch_option): Return void.  Take enum
4931         s390_arch_option value instead of string and searching array.
4932         (s390_handle_option): Don't assert that global structures are in
4933         use.  Access variables via opts pointer.  Use error_at.  Don't use
4934         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4935         s390_handle_arch_option.
4936         (s390_option_override): Update call to s390_handle_arch_option.
4937         (s390_emit_prologue): Use %d format for s390_stack_size in
4938         diagnostic.  Use %wd for HOST_WIDE_INT.
4939         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4940         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4941         * config/s390/s390.opt (config/s390/s390-opts.h): New
4942         HeaderInclude entry.
4943         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4944         s390_arch_flags, s390_warn_framesize): New Variable entries.
4945         (s390_arch_option): New Enum and EnumValue entries.
4946         (march=): Use Enum instead of Var.
4947         (mstack-guard=, mstack-size=): Use UInteger and Var.
4948         (mtune=): Use Enum.
4949
4950 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4951
4952         * config/score/score.c (score_handle_option): Don't assert that
4953         global structures are in use.  Access target_flags via opts
4954         pointer.  Use value of -march= option to determine target_flags
4955         settings.
4956         * config/score/score.opt (march=): Use Enum.
4957         (score_arch): New Enum and EnumValue entries.
4958
4959 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4960
4961         * config/mep/mep.c (option_mtiny_specified): Remove.
4962         (mep_option_override): Move register handling for -mivc2 from
4963         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4964         instead of option_mtiny_specified.
4965         (mep_handle_option): Access target_flags via opts pointer.  Don't
4966         assert that global structures are in use.  Defer part of -mivc2
4967         handling and move it to mep_option_override.
4968         * config/mep/mep.opt (IVC2): New Mask entry.
4969         (mivc2): Use Var and Defer instead of Mask.
4970
4971 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4972
4973         * config/v850/v850-opts.h: New.
4974         * config/v850/v850.c (small_memory): Replace with
4975         small_memory_physical_max array.  Make that array static const.
4976         (v850_handle_memory_option): Take integer value of argument.  Take
4977         gcc_options pointer, option text and location.  Return void.
4978         Update for changes to small memory structures.
4979         (v850_handle_option): Access target_flags via opts pointer.  Don't
4980         assert that global structures are in use.  Update calls to
4981         v850_handle_memory_option.
4982         (v850_encode_data_area): Update references to small memory settings.
4983         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4984         (enum small_memory_type): Move to v850-opts.h.
4985         * config/v850/v850.opt (config/v850/v850-opts.h): New
4986         HeaderInclude entry.
4987         (small_memory_max): New Variable entry.
4988         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4989         (mtda, mzda): Likewise.
4990
4991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4992
4993         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4994         pointer.  Don't assert that global structures are in use.
4995
4996 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4997
4998         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4999         via opts pointer.  Don't assert that global structures are in use.
5000
5001 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5004         (munix=93): Use Var.
5005         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5006         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5007         * config/pa/pa-opts.h: New.
5008         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5009         (pa_handle_option): Don't assert that global structures are in
5010         use.  Access target_flags via opts pointer.  Don't handle
5011         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5012         OPT_munix_98 here.
5013         (pa_option_override): Handle deferred OPT_mfixed_range_.
5014
5015 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5016
5017         * config/mn10300/mn10300-opts.h: New.
5018         * config/mn10300/mn10300.c (mn10300_processor,
5019         mn10300_tune_string): Remove.
5020         (mn10300_handle_option): Don't assert that global structures are
5021         in use.  Access mn10300_processor via opts pointer.  Don't handle
5022         OPT_mtune_ here.
5023         * config/mn10300/mn10300.h (enum processor_type): Move to
5024         mn10300-opts.h.
5025         (mn10300_processor): Remove.
5026         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5027         HeaderInclude entry.
5028         (mn10300_processor): New Variable entry.
5029         (mtune=): Use Var.
5030
5031 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5032
5033         * config/microblaze/microblaze.c: Don't include opts.h.
5034         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5035         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5036         (mno-clearbss): Use Var and Warn.
5037
5038 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5039
5040         * config/m32r/m32r-opts.h: New.
5041         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5042         (m32r_handle_option): Don't assert that global structures are in
5043         use.  Access target_flags and m32r_cache_flush_func via opts
5044         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5045         OPT_mno_flush_trap here.
5046         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5047         include of m32r-opts.h.
5048         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5049         HeaderInclude entry.
5050         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5051         (mmodel=): Use Enum and Var.
5052         (m32r_model): New Enum and EnumValue entries.
5053         (mno-flush-trap): Use Var.
5054         (msdata=): Use Enum and Var.
5055         (m32r_sdata): New Enum and EnumValue entries.
5056
5057 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5058
5059         * config/m32c/m32c.c: Don't include opts.h.
5060         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5061         m32c_handle_option): Remove.
5062         (m32c_option_override): Check global_options_set.x_target_memregs
5063         instead of target_memregs_set.
5064         * config/m32c/m32c.h (target_memregs): Remove.
5065         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5066         variable.
5067
5068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5069
5070         * config/iq2000/iq2000-opts.h: New.
5071         * config/iq2000/iq2000.c: Don't include opts.h.
5072         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5073         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5074         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5075         HeaderInclude entry.
5076         (iq2000_tune): New Variable entry.
5077         (march=): Add comment.  Use Enum.
5078         (iq2000_arch): New Enum and EnumValue entries.
5079         (mcpu=): Use Enum and Var.
5080         (iq2000_tune): New Enum and EnumValue entries.
5081
5082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5083
5084         * config/ia64/ia64-opts.h: New.
5085         * config/ia64/ia64.c (ia64_tune): Remove.
5086         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5087         here.  Use error_at.
5088         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5089         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5090         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5091         HeaderInclude entry.
5092         (ia64_tune): New Variable entry.
5093         (mfixed-range=): Use Defer and Var.
5094         (mtune=): Use Enum and Var.
5095         (ia64_tune): New Enum and EnumValue entries.
5096
5097 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5098
5099         * config/frv/frv-opts.h: New.
5100         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5101         frv-opts.h.
5102         (frv_cpu_type): Remove.
5103         * config/frv/frv.c: Don't include opts.h.
5104         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5105         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5106         (frv_cpu_type): New Variable entry.
5107         (frv_cpu): New Enum and EnumValue entries.
5108
5109 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5110
5111         * config/cris/cris.c (cris_handle_option): Access target_flags via
5112         opts pointer.  Don't assert that global structures are in use.
5113         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5114         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5115
5116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5117
5118         * config/bfin/bfin-opts.h: New.
5119         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5120         bfin_si_revision, bfin_workarounds): Remove.
5121         (bfin_cpus): Make static const.
5122         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5123         not bfin_lib_id_given.
5124         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5125         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5126         pointer. Use error_at.  Don't assert that global structures are in use.
5127         * config/bfin/bfin.h: Include bfin-opts.h.
5128         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5129         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5130         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5131         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5132         entries.
5133
5134 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5135
5136         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5137         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5138         or -msoft-float here.
5139         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5140         -msoft-float and -mhard-float.
5141         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5142         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5143         msoft-float.
5144         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5145         -msoft-float.
5146         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5147         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5148         not mhard-float.
5149         (LIBGCC_SPEC): Don't handle -msoft-float.
5150         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5151         -mhard-float.
5152         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5153         msoft-float.
5154         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5155         -mfloat-abi=*, not -msoft-float and -mhard-float.
5156         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5157         -msoft-float.
5158         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5159         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5160         mhard-float and msoft-float.
5161         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5162         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5163         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5164         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5165         mhard-float.
5166         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5167         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5168         msoft-float.
5169         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5170         not mhard-float.
5171         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5172         not msoft-float.
5173
5174 2011-03-22  Richard Henderson  <rth@redhat.com>
5175
5176         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5177         TARGET_ABI_WINDOWS_NT.
5178         (alpha_output_function_end_prologue): Likewise.
5179         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5180         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5181         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5182         (trap, *movsi_nt_vms): Likewise.
5183         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5184         (*tablejump_osf_nt_internal): Remove.
5185         * config/alpha/predicates.md (input_operand): Only test Pmode.
5186
5187 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5188
5189         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5190         via opts pointer.  Use error_at.  Don't assert that global
5191         structures are in use.
5192
5193 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5194
5195         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5196         (ix86_handle_option): Access ix86_isa_flags and
5197         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5198         global structures are in use.
5199         (ix86_function_specific_save, ix86_function_specific_restore):
5200         Update ix86_isa_flags_explicit field name.
5201         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5202         (ix86_isa_flags_explicit): Rename TargetSave entry to
5203         x_ix86_isa_flags_explicit.
5204
5205 2011-03-22  Richard Henderson  <rth@redhat.com>
5206
5207         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5208         (alpha_option_override, direct_return): Likewise.
5209         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5210         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5211         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5212         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5213         (alpha_expand_epilogue, alpha_end_function): Likewise.
5214         (alpha_init_libfuncs): Likewise.
5215         (struct machine_function): Remove unicosmk members.
5216         (print_operand) ['t']: Remove.
5217         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5218         unicosmk_output_module_name, unicosmk_output_common,
5219         current_section_align, unicosmk_output_text_section_asm_op,
5220         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5221         unicosmk_section_type_flags, unicosmk_unique_section,
5222         unicosmk_asm_named_section, unicosmk_insert_attributes,
5223         unicosmk_output_align, unicosmk_defer_case_vector,
5224         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5225         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5226         unicosmk_output_ssib, unicosmk_add_call_info_word,
5227         unicosmk_extern_head, unicosmk_output_default_externs,
5228         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5229         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5230         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5231         * config/alpha/alpha-protos.h: Update.
5232         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5233         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5234         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5235         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5236         (*mulsi_se, mulvsi3): Likewise.
5237         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5238         (*divmodsi_internal, call, call_value, realign): Likewise.
5239         (moddi3, umoddi3): Likewise; remove duplicate expander.
5240         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5241         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5242         (*movdi_nofix): Remove r/U alternative.
5243         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5244         * config/alpha/constraints.md ("U"): Remove.
5245         * config/alpha/predicates.md (call_operand"): Don't test
5246         TARGET_ABI_UNICOSMK.
5247
5248 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5249
5250         * target.def (handle_option): Take gcc_options and
5251         cl_decoded_option pointers and location_t.
5252         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5253         * doc/tm.texi: Regenerate.
5254         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5255         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5256         * lto-opts.c (lto_reissue_options): Generate option structure for
5257         targetm.handle_option call.
5258         * opts.c (target_handle_option): Update call to
5259         targetm.handle_option.  Remove assertions about values now passed
5260         down to hook.
5261         * targhooks.c (default_target_handle_option): New.
5262         * targhooks.h (default_target_handle_option): Declare.
5263         * config/alpha/alpha.c: Include opts.h.
5264         (alpha_handle_option): Update to new hook interface.
5265         * config/arm/arm.c: Include opts.h.
5266         (arm_handle_option): Update to new hook interface.
5267         * config/arm/t-arm (arm.o): Update dependencies.
5268         * config/bfin/bfin.c: Include opts.h.
5269         (bfin_handle_option): Update to new hook interface.
5270         * config/cris/cris.c: Include opts.h.
5271         (cris_handle_option): Update to new hook interface.
5272         * config/frv/frv.c: Include opts.h.
5273         (frv_handle_option): Update to new hook interface.
5274         * config/i386/i386.c: Include opts.h.
5275         (ix86_handle_option): Update to new hook interface.
5276         (ix86_valid_target_attribute_inner_p): Generate option structure
5277         for call to ix86_handle_option.
5278         * config/i386/t-i386 (i386.o): Update dependencies.
5279         * config/ia64/ia64.c: Include opts.h.
5280         (ia64_handle_option): Update to new hook interface.
5281         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5282         * config/iq2000/iq2000.c: Include opts.h.
5283         (iq2000_handle_option): Update to new hook interface.
5284         * config/m32c/m32c.c: Include opts.h.
5285         (m32c_handle_option): Update to new hook interface.
5286         * config/m32r/m32r.c: Include opts.h.
5287         (m32r_handle_option): Update to new hook interface.
5288         * config/m68k/m68k.c: Include opts.h.
5289         (m68k_handle_option): Update to new hook interface.
5290         * config/mep/mep.c: Include opts.h.
5291         (mep_handle_option): Update to new hook interface.
5292         * config/microblaze/microblaze.c: Include opts.h.
5293         (microblaze_handle_option): Update to new hook interface.
5294         * config/mips/mips.c: Include opts.h.
5295         (mips_handle_option): Update to new hook interface.
5296         * config/mn10300/mn10300.c: Include opts.h.
5297         (mn10300_handle_option): Update to new hook interface.
5298         * config/pa/pa.c: Include opts.h.
5299         (pa_handle_option): Update to new hook interface.
5300         * config/pdp11/pdp11.c: Include opts.h.
5301         (pdp11_handle_option): Update to new hook interface.
5302         * config/rs6000/rs6000.c: Include opts.h.
5303         (rs6000_handle_option): Update to new hook interface.
5304         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5305         * config/rx/rx.c: Include opts.h.
5306         (rx_handle_option): Update to new hook interface.
5307         * config/s390/s390.c: Include opts.h.
5308         (s390_handle_option): Update to new hook interface.
5309         * config/score/score.c: Include opts.h.
5310         (score_handle_option): Update to new hook interface.
5311         * config/sh/sh.c: Include opts.h.
5312         (sh_handle_option): Update to new hook interface.
5313         * config/sparc/sparc.c: Include opts.h.
5314         (sparc_handle_option): Update to new hook interface.
5315         * config/v850/v850.c: Include opts.h.
5316         (v850_handle_option): Update to new hook interface.
5317
5318 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * gcc.c (driver_unknown_option_callback): Only permit and save
5321         unknown -Wno- options.
5322         (driver_wrong_lang_callback): Save options directly instead of via
5323         driver_unknown_option_callback.
5324
5325 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5326
5327         * combine.c (simplify_set): Try harder to find the best CC mode when
5328         simplifying a nested COMPARE on the RHS.
5329
5330 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5331
5332         * config/alpha/gnu.h: Remove.
5333         * config/arc: Remove directory.
5334         * config/arm/netbsd.h: Remove.
5335         * config/arm/t-pe: Remove.
5336         * config/crx: Remove directory.
5337         * config/i386/netbsd.h: Remove.
5338         * config/m68hc11: Remove directory.
5339         * config/m68k/uclinux-oldabi.h: Remove.
5340         * config/mcore/mcore-pe.h: Remove.
5341         * config/mcore/t-mcore-pe: Remove.
5342         * config/netbsd-aout.h: Remove.
5343         * config/rs6000/gnu.h: Remove.
5344         * config/sh/sh-symbian.h: Remove.
5345         * config/sh/symbian-base.c: Remove.
5346         * config/sh/symbian-c.c: Remove.
5347         * config/sh/symbian-cxx.c: Remove.
5348         * config/sh/symbian-post.h: Remove.
5349         * config/sh/symbian-pre.h: Remove.
5350         * config/sh/t-symbian: Remove.
5351         * config/svr3.h: Remove.
5352         * config/vax/netbsd.h: Remove.
5353         * config.build: Don't handle i[34567]86-*-pe.
5354         * config.gcc: Remove handling of deprecations for most deprecated
5355         targets.
5356         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5357         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5358         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5359         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5360         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5361         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5362         Remove cases.
5363         * config.host: Don't handle i[34567]86-*-pe.
5364         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5365         (ASM_SPEC32): Don't handle -mcall-gnu.
5366         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5367         -mcall-gnu.
5368         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5369         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5370         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5371         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5372         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5373         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5374         conditional on SYMBIAN.
5375         * configure.ac: Don't handle powerpc*-*-gnu*.
5376         * configure: Regenerate.
5377         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5378         * doc/install-old.texi (m6811, m6812): Don't mention.
5379         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5380         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5381         (m68k-uclinuxoldabi): Don't mention.
5382         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5383         Remove.
5384         (-mcall-gnu): Remove.
5385         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5386         families): Remove constraint documentation.
5387
5388 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5389
5390         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5391         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5392         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5393
5394 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5395
5396         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5397         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5398         * config/avr/avr.c (init_cumulative_args)
5399         (avr_function_arg_advance): Use it.
5400         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5401         sibcall epilogues.
5402         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5403         (avr_function_ok_for_sibcall): ...this new function.
5404         (avr_lookup_function_attribute1): New static Function.
5405         (avr_naked_function_p, interrupt_function_p)
5406         (signal_function_p, avr_OS_task_function_p)
5407         (avr_OS_main_function_p): Use it.
5408         * config/avr/avr.md ("sibcall", "sibcall_value")
5409         ("sibcall_epilogue"): New expander.
5410         ("*call_insn", "*call_value_insn"): New insn.
5411         ("call_insn", "call_value_insn"): Remove
5412         ("call", "call_value", "epilogue"): Change expander to handle
5413         sibling calls.
5414
5415 2011-03-21  Nick Clifton  <nickc@redhat.com>
5416
5417         * doc/invoke.texi (Overall Options): Move closing brace to end of
5418         options list.
5419         (Optimization Options): Add missing @gol.
5420         (Directory Options): Likewise.
5421         (i386 and x86-64 Options): Likewise.
5422         (RS6000 and PowerPC Options): Likewise.
5423         (i386 and x86-64 Windows Options): Likewise.
5424         (V850 Options): Add text missing from descriptions.
5425
5426 2011-03-22  Richard Henderson  <rth@redhat.com>
5427
5428         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5429         (avr_incoming_return_addr_rtx): New.
5430         (emit_push_byte): New.
5431         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5432         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5433         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5434         (emit_pop_byte): New.
5435         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5436         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5437         (INCOMING_RETURN_ADDR_RTX): New.
5438         (INCOMING_FRAME_SP_OFFSET): New.
5439         (ARG_POINTER_CFA_OFFSET): New.
5440         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5441         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5442         (pophi): Remove.
5443
5444         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5445
5446 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5447
5448         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5449         (FUNCTION_ARG_ADVANCE): Likewise.
5450         * tm.texi.in: Change references to them to hook references.
5451         * tm.texi: Regenerate.
5452         * targhooks.c (default_function_arg): Eliminate check for target
5453         macro.
5454         (default_function_incoming_arg): Likewise.
5455         (default_function_arg_advance): Likewise.
5456         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5457         (function_arg_advance): Likewise.
5458         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5459
5460 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5461
5462         * tree.c (build_call_1): New function.
5463         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5464
5465 2011-03-22  Richard Guenther  <rguenther@suse.de>
5466
5467         PR tree-optimization/48228
5468         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5469         for single-arg PHIs.
5470
5471 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5472
5473         PR rtl-optimization/48143
5474         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5475         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5476         sse2_cvtps2pd): Likewise.
5477
5478 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5479
5480         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5481
5482 2011-03-22  Richard Guenther  <rguenther@suse.de>
5483
5484         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5485         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5486         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5487         and REALIGN_LOAD_EXPR.
5488         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5489         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5490         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5491         DOT_PROD_EXPR case ...
5492         (expand_expr_real_2): ... here.
5493         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5494         and REALIGN_LOAD_EXPR.
5495         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5496         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5497         (vect_create_epilog_for_reduction): Likewise.
5498         (vectorizable_reduction): Likewise.
5499         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5500         * tree-vect-stmts.c (vectorizable_load): Likewise.
5501
5502 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5503
5504         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5505
5506 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5507
5508         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5509         handling for PLTOFF/GOTOFF.
5510
5511 2011-03-22  Nick Clifton  <nickc@redhat.com>
5512
5513         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5514         trailing backslash from the end of the macro definition.
5515
5516 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5517
5518         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5519         and PLT unspecs.
5520
5521 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5522
5523         * expr.h (prepare_operand): Move to...
5524         * optabs.h (prepare_operand): ...here and change the insn code
5525         parameter from "int" to "enum insn_code".
5526         (insn_operand_matches): Declare.
5527         * expr.c (init_expr_target): Use insn_operand_matches.
5528         (compress_float_constant): Likewise.
5529         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5530         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5531         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5532         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5533         Likewise.
5534         (gen_cond_trap): Likewise.
5535         (prepare_operand): Likewise.  Change icode to an insn_code.
5536         (insn_operand_matches): New function.
5537         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5538         * reload1.c (gen_reload): Likewise.
5539         * targhooks.c (default_secondary_reload): Likewise.
5540
5541 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5542
5543         * config/alpha/alpha.md (unspec): New define_c_enum.
5544         (unspecv): Ditto.
5545
5546 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5547
5548         PR debug/48214
5549         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5550         between a call and its CALL_ARG_LOCATION note.
5551
5552 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5553
5554         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5555
5556 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5557
5558         PR c/42544
5559         PR c/48197
5560         * c-common.c (shorten_compare): If primopN is first sign-extended
5561         to opN and then zero-extended to result type, set primopN to opN.
5562
5563 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5564
5565         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5566         for barrier handlers.
5567
5568 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5569
5570         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5571         UNSPEC constants to be in the unspec enumeration, and redefine
5572         all UNSPECV constants to be in the unspecv enumeration, so that
5573         dumps print which unspec/unspec_volatile this is.
5574         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5575         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5576         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5577         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5578         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5579
5580         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5581         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5582         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5583         * config/rs6000/sync.md (isync, lwsync): Ditto.
5584
5585 2011-03-21  Richard Guenther  <rguenther@suse.de>
5586
5587         * params.def (lto-min-partition): Fix typo.
5588
5589 2011-03-21  Richard Guenther  <rguenther@suse.de>
5590
5591         PR c/47939
5592         * c-decl.c (grokdeclarator): Drop to the main variant only
5593         for array types.  Drop flag_gen_aux_info check.
5594
5595 2011-03-21  Richard Guenther  <rguenther@suse.de>
5596
5597         PR translation/47911
5598         * params.def (lto-partitions): Fix typo.
5599         (lto-min-partition): Fix wording.
5600
5601 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5602
5603         * config/rs6000/t-freebsd: Remove duplication from file.
5604
5605 2011-03-21  Richard Guenther  <rguenther@suse.de>
5606
5607         PR middle-end/47661
5608         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5609
5610 2011-03-21  Richard Guenther  <rguenther@suse.de>
5611
5612         PR lto/48210
5613         * params.def (lto-partitions): Require at least 1 partition.
5614
5615 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5616
5617         * gthr-solaris.h: Remove.
5618         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5619         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5620         (LIB_SPEC): Likewise.
5621         * config/sol2.opt (threads): Remove.
5622         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5623         (sparc*-*-solaris2*): Likewise.
5624         * configure.ac (enable_threads): Enable solaris support.
5625         * configure: Regenerate.
5626         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5627         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5628         solaris.
5629
5630 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5631
5632         * config.gcc: Obsolete *-*-solaris2.8*.
5633         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5634
5635 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5636
5637         PR bootstrap/48135
5638         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5639         reference.  Solaris 8 perl works.
5640
5641 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5642
5643         PR bootstrap/48135
5644         * doc/install.texi (Prerequisites): Move jar etc. up.
5645         Explain support library version requirements.
5646
5647 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5648
5649         PR bootstrap/48135
5650         * doc/install.texi (Prerequisites): Move Perl to build
5651         requirements.  Always necessary on Solaris 2 with Sun ld.
5652
5653 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5654
5655         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5656         binutils 2.21.
5657         (Specific, i?86-*-solaris2.[89]): Likewise.
5658         (Specific, i?86-*-solaris2.10): Likewise.
5659         (Specific, mips-sgi-irix6): Likewise.
5660         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5661         Update for binutils 2.21.
5662
5663 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5664
5665         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5666         Allow -fuse-linker-plugin for non-default plugin linker.
5667         * configure: Regenerate.
5668
5669 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5670
5671         PR bootstrap/48167
5672         * gengtype.c (files_rules): Added rule for cp/parser.h.
5673
5674 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5675
5676         PR target/48213
5677         * config/s390/s390.c (s390_delegitimize_address): Don't call
5678         lowpart_subreg if orig_x has BLKmode.
5679
5680 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5681
5682         PR target/12171
5683         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5684         * tree.h (attribute_spec): Add new member affects_type_identity.
5685         * attribs.c (empty_attribute_table): Adjust attribute_spec
5686         initializers.
5687         * config/alpha/alpha.c: Likewise.
5688         * config/arc/arc.c: Likewise.
5689         * config/arm/arm.c: Likewise.
5690         * config/avr/avr.c: Likewise.
5691         * config/bfin/bfin.c: Likewise.
5692         * config/crx/crx.c: Likewise.
5693         * config/darwin.h: Likewise.
5694         * config/h8300/h8300.c: Likewise.
5695         * config/i386/cygming.h: Likewise.
5696         * config/i386/i386.c: Likewise.
5697         * config/ia64/ia64.c: Likewise.
5698         * config/m32c/m32c.c: Likewise.
5699         * config/m32r/m32r.c: Likewise.
5700         * config/m68hc11/m68hc11.c: Likewise.
5701         * config/m68k/m68k.c: Likewise.
5702         * config/mcore/mcore.c: Likewise.
5703         * config/mep/mep.c: Likewise.
5704         * config/microblaze/microblaze.c: Likewise.
5705         * config/mips/mips.c: Likewise.
5706         * config/rs6000/rs6000.c: Likewise.
5707         * config/rx/rx.c: Likewise.
5708         * config/sh/sh.c: Likewise.
5709         * config/sol2.h: Likewise.
5710         * config/sparc/sparc.c: Likewise.
5711         * config/spu/spu.c: Likewise.
5712         * config/stormy16/stormy16.c: Likewise.
5713         * config/v850/v850.c: Likewise.
5714
5715 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5716
5717         * simplify-rtx.c (simplify_binary_operation_1): Handle
5718         (xor (and A B) C) case when B and C are both constants.
5719
5720 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5721
5722         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5723
5724 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5725
5726         PR bootstrap/48168
5727         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5728
5729 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5730
5731         PR rtl-optimization/48156
5732         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5733         assume df and df_lr are not NULL.
5734
5735 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5736
5737         PR debug/48023
5738         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5739         between a call and its CALL_ARG_LOCATION note.
5740
5741 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5742
5743         PR debug/48178
5744         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5745         between a call and its corresponding CALL_ARG_LOCATION note.
5746
5747 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5748
5749         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5750         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5751         * haifa-sched.c (setup_ref_regs): Ditto.
5752         * caller-save.c (add_used_regs_1): Ditto.
5753         * dse.c (look_for_hardregs): Ditto.
5754         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5755         * sched-rgn.c (check_live_1): Ditto.
5756
5757 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5758
5759         * c-decl.c (diagnose_mismatched_decls): Give an error for
5760         redefining a typedef with variably modified type.
5761
5762 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5763
5764         * c-decl.c (grokfield): Don't allow typedefs for structures or
5765         unions with no tag by default.
5766         * doc/extend.texi (Unnamed Fields): Update.
5767
5768 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5769
5770         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5771         Rewrite using indirect functions.
5772         (lwp_slwpcb): Ditto.
5773         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5774         (avx_vinsertf128<mode>): Ditto.
5775
5776 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5777
5778         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5779         unspecs.
5780
5781 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5782
5783         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5784         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5785
5786 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5787
5788         PR rtl-optimization/48170
5789         * gcse.c (hoist_code): Remove bogus asserts.
5790
5791 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5792
5793         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5794         computation for prologue/epilogue.
5795
5796 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5797
5798         * Makefile.in (check-consistency): Remove.
5799
5800 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5801
5802         PR debug/48176
5803         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5804         arange_table_in_use is 0, but either text_section_used or
5805         cold_text_section_used is true.  Don't call it if
5806         !info_section_emitted.
5807
5808 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5809
5810         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5811         FUNCTION_VALUE_REGNO_P): Remove.
5812         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5813         Remove.
5814         * config/avr/avr.c (avr_ret_register): Make static inline.
5815         (avr_function_value_regno_p): New function.
5816         (avr_libcall_value): Make static. Add 'func' argument.
5817         (avr_function_value): Make static. Rename 'func' argument to
5818         'fn_decl_or_type', forward it to avr_libcall_value. Call
5819         avr_ret_register function instead of RET_REGISTER macro.
5820         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5821
5822 2011-03-18  Jason Merrill  <jason@redhat.com>
5823
5824         PR c++/23372
5825         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5826
5827 2011-03-18  Richard Guenther  <rguenther@suse.de>
5828
5829         * doc/install.texi (--enable-gold): Remove.
5830         (--with-plugin-ld): Document.
5831         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5832
5833 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5834
5835         PR middle-end/47790
5836         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5837         again after expansion changes.
5838
5839 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5840
5841         * combine.c (try_combine): Do simplification only call of
5842         subst() on i2 even when i1 is present. Update comments.
5843
5844 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5845
5846         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5847         and UNSPEC_PCREL_SYMOFF.
5848
5849 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5850
5851         * config/s390/s390.md: Use define_c_enum for the unspec constant
5852         definitions.
5853
5854 2011-03-18  Richard Henderson  <rth@redhat.com>
5855             Jakub Jelinek  <jakub@redhat.com>
5856
5857         PR bootstrap/48161
5858         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5859         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5860
5861 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5862
5863         PR middle-end/47725
5864         * combine.c (cant_combine_insn_p): Don't check zero/sign
5865         extended hard registers.
5866
5867 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5868
5869         PR middle-end/47725
5870         * combine.c (cant_combine_insn_p): Check zero/sign extended
5871         hard registers.
5872
5873 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5874
5875         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5876         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5877         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5878         Change return type to bool.
5879         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5880
5881 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5882
5883         PR debug/48163
5884         * var-tracking.c (prepare_call_arguments): If CALL target
5885         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5886         pc instead of looking it up using cselib_lookup and use
5887         Pmode for it if x has VOIDmode.
5888         * dwarf2out.c (gen_subprogram_die): If also both first and
5889         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5890
5891         PR debug/48163
5892         * function.c (assign_parms): For data.passed_pointer parms
5893         use MEM of data.entry_parm instead of data.entry_parm itself
5894         as DECL_INCOMING_RTL.
5895         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5896         also when passed and declared mode is the same, DECL_RTL
5897         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5898         a MEM too.
5899
5900 2011-03-16  Jeff Law  <law@redhat.com>
5901
5902         PR rtl-optimization/37273
5903         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5904         handle them like argument loads from stack slots.  Do not double
5905         count memory for memory constants and argument loads from stack slots.
5906
5907 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5908
5909         PR debug/48160
5910         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5911
5912 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5913
5914         PR target/48171
5915         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5916
5917 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5918
5919         PR bootstrap/48153
5920         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5921         if dwarf_strict.
5922         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5923         Clear call_arg_locations and call_arg_loc_last always.
5924
5925         PR middle-end/48152
5926         * var-tracking.c (prepare_call_arguments): If argument needs to be
5927         passed by reference, adjust argtype and mode.
5928
5929 2011-03-17  Richard Guenther  <rguenther@suse.de>
5930
5931         PR middle-end/48134
5932         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5933         a value make sure to fold the statement.
5934
5935 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5936
5937         PR target/43872
5938         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5939         return condition with !cfun->calls_alloca.
5940
5941 2011-03-17  Richard Guenther  <rguenther@suse.de>
5942
5943         PR bootstrap/48148
5944         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5945         origin for decls in other ltrans units.
5946         (input_varpool_node): Likewise.
5947
5948 2011-03-17  Richard Guenther  <rguenther@suse.de>
5949
5950         PR middle-end/48165
5951         * tree-object-size.c (compute_object_offset): Properly return
5952         the offset operand of MEM_REFs as sizetype.
5953
5954 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5955
5956         PR rtl-optimization/48141
5957         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5958         * dse.c: Include params.h.
5959         (active_local_stores_len): New variable.
5960         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5961         to NULL.
5962         (record_store, check_mem_read_rtx): Decrease it when removing
5963         from the chain.
5964         (scan_insn): Likewise.  Increase it when adding to chain, if it
5965         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5966         set active_local_stores to NULL before the addition.
5967         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5968
5969         PR rtl-optimization/48141
5970         * dse.c (record_store): If no positions are needed in an insn
5971         that cannot be deleted, at least unchain it from active_local_stores.
5972
5973 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5974
5975         PR debug/47510
5976         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5977         (lookup_type_die_strip_naming_typedef): ... here.
5978         (get_context_die): Use it.
5979         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5980         the anonymous struct named by the naming typedef.
5981
5982 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         PR target/48154
5985         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5986         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5987
5988 2011-03-16  Jeff Law  <law@redhat.com>
5989
5990         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5991         check for operands of conditional.  Allow type to be a pointer.
5992
5993 2011-03-16  Richard Guenther  <rguenther@suse.de>
5994
5995         PR tree-optimization/48149
5996         * fold-const.c (fold_binary_loc): Fold
5997         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5998
5999 2011-03-16  Richard Guenther  <rguenther@suse.de>
6000
6001         PR tree-optimization/26134
6002         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6003         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6004         (non_rewritable_mem_ref_base): Handle complex type component
6005         accesses, constrain offsets for vector and complex extracts
6006         more properly.
6007
6008 2011-03-16  Richard Guenther  <rguenther@suse.de>
6009
6010         PR tree-optimization/48146
6011         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6012         operands avoiding the need for renaming.
6013
6014 2011-03-16  Richard Guenther  <rguenther@suse.de>
6015
6016         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6017         constant folding.  Move MEM_REF canonicalization first.
6018         Rely on fold_const_aggregate_ref for initializer folding.
6019         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6020
6021 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6022
6023         PR middle-end/48136
6024         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6025         arg0/arg1 or their arguments are always fold converted to matching
6026         types.
6027
6028         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6029         to nargs.
6030
6031 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6032
6033         PR lto/46944
6034         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6035         Handle in-tree gold.
6036         (ld_vers): Extract binutils version for gold.
6037         (gcc_cv_ld_hidden): Handle gold here.
6038         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6039         * configure: Regenerate.
6040         * config.in: Regenerate.
6041         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6042         -fuse-linker-plugin otherwise.
6043         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6044         (LINK_COMMAND_SPEC): Use it.
6045         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6046
6047 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6048
6049         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6050         * calls.c: Remove debug.h include.
6051         (emit_call_1): Don't call virtual_call_token debug hook.
6052         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6053         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6054         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6055         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6056         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6057         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6058         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6059         dwarf2out_virtual_call): Remove.
6060         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6061         copy_call_info and virtual_call hooks.
6062         (dwarf2out_init): Don't initialize vcall_insn_table,
6063         debug_dcall_section and debug_vcall_section.
6064         (prune_unused_types): Don't mark nodes from dcall_table.
6065         (dwarf2out_finish): Don't output dcall or vcall tables.
6066         * final.c (final_scan_insn): Don't call direct_call or
6067         virtual_call debug hooks.
6068         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6069         virtual_call_token, copy_call_info and virtual_call hooks.
6070         (debug_nothing_uid): Remove prototype.
6071         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6072         copy_call_info and virtual_call hooks.
6073         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6074         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6075         * debug.c (do_nothing_debug_hooks): Likewise.
6076         (debug_nothing_uid): Remove.
6077         * doc/invoke.texi (-fenable-icf-debug): Remove.
6078         * common.opt (-fenable-icf-debug): Likewise.
6079
6080         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6081         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6082         call's MEM.  Handle functions returning aggregate through a hidden
6083         first pointer.  For virtual calls add clobbered pc to call arguments
6084         chain.
6085         * dwarf2out.c (gen_subprogram_die): Emit
6086         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6087         can't be emitted.
6088
6089         PR debug/45882
6090         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6091         * rtl.h (ENTRY_VALUE_EXP): Define.
6092         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6093         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6094         * print-rtl.c (print_rtx): Likewise.
6095         * gengtype.c (adjust_field_rtx_def): Likewise.
6096         * var-tracking.c (vt_add_function_parameter): Adjust
6097         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6098         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6099         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6100         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6101         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6102
6103         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6104         Call var_location debug hook even on CALL_INSNs.
6105         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6106         * rtl.def (ENTRY_VALUE): New.
6107         * dwarf2out.c: Include cfglayout.h.
6108         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6109         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6110         (struct call_arg_loc_node): New type.
6111         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6112         tail_call_site_count): New variables.
6113         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6114         DW_TAG_GNU_call_site_parameter.
6115         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6116         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6117         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6118         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6119         and DW_AT_GNU_all_source_call_sites.
6120         (mem_loc_descriptor): Handle ENTRY_VALUE.
6121         (add_src_coords_attributes): Don't add enything if
6122         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6123         (dwarf2out_abstract_function): Save and clear call_arg_location,
6124         call_site_count and tail_call_site_count around dwarf2out_decl call.
6125         (gen_call_site_die): New function.
6126         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6127         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6128         (dwarf2out_function_decl): Clear call_arg_locations,
6129         call_arg_loc_last, set call_site_count and tail_call_site_count
6130         to -1 and free block_map.
6131         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6132         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6133         followed by any real instructions.
6134         (dwarf2out_begin_function): Set call_site_count and
6135         tail_call_site_count to 0.
6136         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6137         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6138         attempt to force a DIE for it and worst case remove the attribute.
6139         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6140         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6141         the decl itself.
6142         * var-tracking.c: Include tm_p.h.
6143         (vt_stack_adjustments): For calls call note_register_arguments.
6144         (argument_reg_set): New variable.
6145         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6146         ensure the VALUE is resolved.
6147         (call_arguments): New variable.
6148         (prepare_call_arguments): New function.
6149         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6150         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6151         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6152         always use the best expression.
6153         (vt_expand_loc): Add ignore_cur_loc argument.
6154         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6155         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6156         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6157         note for all calls.
6158         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6159         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6160         argument.  Don't call cselib_preserve_only_values and
6161         cselib_reset_table.
6162         (note_register_arguments): New function.
6163         (vt_initialize): Compute argument_reg_set.  Call
6164         vt_add_function_parameters before processing basic blocks instead of
6165         afterwards.  For calls call prepare_call_arguments before calling
6166         cselib_process_insn.
6167         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6168         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6169         (var-tracking.o): Depend on $(TM_P_H).
6170         * cfglayout.h (insn_scope): New prototype.
6171         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6172         * cfglayout.c (insn_scope): No longer static.
6173         * insn-notes.def (CALL_ARG_LOCATION): New.
6174         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6175         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6176         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6177         nothing for DECL_EXTERNAL BLOCK_VARS.
6178
6179 2011-03-16  Alan Modra  <amodra@gmail.com>
6180
6181         PR target/45844
6182         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6183         create invalid offset address for vsx splat insn.
6184         * config/rs6000/predicates.md (splat_input_operand): New.
6185         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6186
6187 2011-03-15  Xinliang David Li  <davidxl@google.com>
6188
6189         PR c/47837
6190         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6191         (normalize_preds): New function.
6192         (is_use_properly_guarded): Normalize def predicates.
6193
6194 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6195
6196         PR target/46788
6197         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6198         in the output template.
6199
6200 2011-03-15  Richard Guenther  <rguenther@suse.de>
6201
6202         PR middle-end/47650
6203         * tree-pretty-print.c (dump_function_declaration): Properly
6204         dump unprototyped and varargs function types.
6205
6206 2011-03-15  Richard Guenther  <rguenther@suse.de>
6207
6208         PR tree-optimization/13954
6209         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6210         and friends.
6211
6212 2011-03-15  Richard Guenther  <rguenther@suse.de>
6213
6214         PR tree-optimization/48037
6215         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6216         selects into BIT_FIELD_REFs.
6217         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6218         vector select.
6219
6220 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6221
6222         PR tree-optimization/48129
6223         * builtins.c (fold_builtin_snprintf): Convert to type of
6224         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6225         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6226
6227 2011-03-15  Richard Guenther  <rguenther@suse.de>
6228
6229         PR tree-optimization/41490
6230         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6231         value but with VUSE.
6232         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6233         return statements.
6234         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6235         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6236         * tree-tailcall.c (find_tail_calls): Ignore returns.
6237
6238 2011-03-15  Richard Guenther  <rguenther@suse.de>
6239
6240         PR middle-end/48031
6241         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6242         or variable-indexed array accesses when in gimple form.
6243
6244 2011-03-15  Richard Guenther  <rguenther@suse.de>
6245
6246         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6247
6248 2011-03-15  Alan Modra  <amodra@gmail.com>
6249
6250         PR target/48032
6251         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6252         presume symbol_refs without a symbol_ref_decl are suitably
6253         aligned, nor other trees we may see here.  Handle anchor symbols.
6254         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6255         Check cmodel=medium addresses.  Adjust all calls.
6256         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6257         creating cmodel=medium optimized access to locals.
6258         * config/rs6000/constraints.md (R): Pass QImode to
6259         legitimate_constant_pool_address_p.
6260         * config/rs6000/predicates.md (input_operand): Pass mode to
6261         legitimate_constant_pool_address_p.
6262         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6263         Update prototype.
6264
6265 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6266
6267         PR target/48053
6268         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6269         64-bit constants being loaded into registers other than GPRs such
6270         as loading 0 into a VSX register.
6271
6272 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6273
6274         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6275
6276 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6277
6278         PR middle-end/47917
6279         * builtins.c (fold_builtin_snprintf): New function.
6280         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6281         (fold_builtin_4): Likewise.
6282
6283         PR middle-end/38878
6284         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6285         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6286         and C - X == X also strip nops from +/-/p+ operand.
6287         When optimizing -X == C, fold C to arg0's type.
6288
6289         PR debug/47946
6290         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6291         emit it as add_AT_int instead of add_AT_unsigned.
6292
6293 2011-03-14  Tom Tromey  <tromey@redhat.com>
6294
6295         * unwind-dw2.c: Include sys/sdt.h if it exists.
6296         (_Unwind_DebugHook): Use STAP_PROBE2.
6297         * config.in, configure: Rebuild.
6298         * configure.ac: Check for sys/sdt.h.
6299
6300 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6301
6302         * config/i386/i386.md (ROUND_FLOOR): New constant.
6303         (ROUND_CEIL): Ditto.
6304         (ROUND_TRUNC): Ditto.
6305         (ROUND_MXCSR): Ditto.
6306         (ROUND_NO_EXC): Ditto.
6307         (rint<mode>2): Use new defines instead of numerical constants.
6308         (floor<mode>2): Ditto.
6309         (ceil<mode>2): Ditto.
6310         (btrunc<mode>2): Ditto.
6311         * config/i386/i386-builtin-types.def: Define ROUND function type
6312         aliases.
6313         * config/i386/i386.c (enum ix86_builtins): Add
6314         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6315         (struct builtin_description): Add
6316         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6317         (ix86_expand_sse_round): New static function.
6318         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6319         function types.
6320         (ix86_builtin_vectorized_function): Handle
6321         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6322
6323 2011-03-14  Tom Tromey  <tromey@redhat.com>
6324
6325         * c-parser.c (c_parser_asm_string_literal): Clear
6326         warn_overlength_strings.
6327
6328 2011-03-14  Tom Tromey  <tromey@redhat.com>
6329
6330         * c-parser.c (disable_extension_diagnostics): Save
6331         warn_overlength_strings.
6332         (restore_extension_diagnostics): Restore warn_overlength_strings.
6333
6334 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6335
6336         * BASE-VER: Change to 4.7.0.
6337
6338 2011-03-14  Richard Guenther  <rguenther@suse.de>
6339
6340         PR middle-end/48098
6341         * tree.c (build_vector_from_val): Adjust assert to requirements
6342         and reality.
6343
6344 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6345
6346         PR bootstrap/48102
6347         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6348
6349 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6350
6351         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6352         terms of target_flags_explicit. Adjust copyright year.
6353
6354         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6355         * config/rs6000/t-freebsd: New file. Add override for
6356         LIB2FUNCS_EXTRA.
6357
6358 2011-03-13  Chris Demetriou  <cgd@google.com>
6359
6360         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6361         (-fno-diagnostics-show-option): this, to reflect current default.
6362         (-Werror=): Update text about -fno-diagnostics-show-option.
6363
6364 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6365
6366         PR target/48053
6367         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6368         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6369         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6370         mode is not V2DImode or V2DFmode.
6371         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6372         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6373         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6374         registers to 0.
6375         (movdi_internal64): Likewise.
6376
6377 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6378
6379         PR tree-optimization/47127
6380         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6381         parameter.
6382         (set_cloog_options): Same.
6383         (scop_to_clast): Same.
6384         (print_clast_stmt): Do not call cloog_state_malloc and
6385         cloog_state_free.
6386         (print_generated_program): Same.
6387         (gloog): Same.
6388         * graphite-clast-to-gimple.h (cloog_state): Declared.
6389         (scop_to_clast): Adjust declaration.
6390         * graphite.c (cloog_state): Defined here.
6391         (graphite_initialize): Call cloog_state_malloc.
6392         (graphite_finalize): Call cloog_state_free.
6393
6394 2011-03-11  Jason Merrill  <jason@redhat.com>
6395
6396         * attribs.c (lookup_attribute_spec): Take const_tree.
6397         * tree.h: Adjust.
6398
6399 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6400
6401         * config/sparc/sparc.c (sparc_option_override): Use
6402         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6403
6404 2011-03-11  Richard Guenther  <rguenther@suse.de>
6405
6406         PR tree-optimization/48067
6407         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6408         multiplication result will be only used once on the target
6409         stmt.
6410
6411 2011-03-11  Richard Guenther  <rguenther@suse.de>
6412
6413         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6414
6415 2011-03-11  Richard Guenther  <rguenther@suse.de>
6416
6417         PR lto/48073
6418         * tree.c (find_decls_types_r): Do not walk types only reachable
6419         from IDENTIFIER_NODEs.
6420
6421 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6422
6423         PR middle-end/48044
6424         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6425         all vnode->force_output nodes as needed.
6426
6427 2011-03-11  Jason Merrill  <jason@redhat.com>
6428
6429         PR c++/48069
6430         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6431         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6432
6433 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6434
6435         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6436         cgraph_node.
6437
6438 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR tree-optimization/48063
6441         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6442         inline functions called once if !tree_can_inline_p (node->callers).
6443
6444 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6445
6446         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6447         extra_objs.
6448         * config/score/score3.c: Delete.
6449         * config/score/score3.h: Delete.
6450         * config/score/mul-div.S: Delete.
6451         * config/score/sfp-machine.h: Add new file.
6452         * config/score/constraints.md: Add new file.
6453         * config/score/t-score-softfp: Add new file.
6454         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6455         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6456         (score7_extra_constraint): Delete.
6457         (score7_option_override): Remove unused code.
6458         * config/score/score.c: Remove score3 and score5 define and code.
6459         * config/score/score.h: Remove score3 and score5 define and code.
6460         * config/score/score.md: Remove score3 template and unusual insn.
6461         * config/score/score.opt: Remove score3 and score5 options.
6462
6463 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6464
6465         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6466         when _HPUX_SOURCE is defined.
6467         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6468
6469 2011-03-10  Jason Merrill  <jason@redhat.com>
6470
6471         PR c++/48029
6472         * stor-layout.c (layout_type): Don't set structural equality
6473         on arrays of incomplete type.
6474         * tree.c (type_hash_eq): Handle comparing them properly.
6475
6476 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6477
6478         PR debug/48043
6479         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6480         result mode matches original rtl mode.
6481
6482 2011-03-10  Nick Clifton  <nickc@redhat.com>
6483
6484         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6485         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6486
6487 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6488
6489         PR rtl-optimization/47866
6490         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6491         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6492         if target wasn't scalar.
6493         * function.c (assign_stack_temp_for_type): Assert that neither
6494         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6495         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6496         macro.
6497         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6498
6499 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6500
6501         * config/s390/s390-protos.h (s390_label_align): New prototype.
6502         * config/s390/s390.c (s390_label_align): New function.
6503         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6504
6505 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6506
6507         PR target/47755
6508         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6509         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6510         (output_vec_const_move): Ditto.
6511
6512 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6513
6514         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6515         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6516         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6517         Change 'rclass' argument and result type to reg_class_t.
6518         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6519
6520 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6521
6522         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6523         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6524         (TARGET_MEMORY_MOVE_COST): Define.
6525         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6526
6527 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6528
6529         PR debug/47881
6530         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6531         removed anything.
6532
6533         PR tree-optimization/48022
6534         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6535         for EQ/NE_EXPR.
6536
6537 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6538
6539         PR debug/47991
6540         * var-tracking.c (find_use_val): Return NULL for
6541         cui->sets && cui->store_p BLKmode MEMs.
6542
6543 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6544
6545         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6546         Remove.
6547         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6548         xstormy16_print_operand_address): Remove.
6549         * config/stormy16/stormy16.c (xstormy16_print_operand,
6550         xstormy16_print_operand_address): Make static.
6551         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6552
6553 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6554
6555         PR target/47862
6556         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6557         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6558         before definition.
6559
6560 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6561
6562         PR bootstrap/48000
6563         * cfgloopmanip.c (fix_bb_placements): Return immediately
6564         if FROM is BASE_LOOP's header.
6565
6566 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6567
6568         * gimplify.c (gimplify_function_tree): Fix building calls
6569         to __builtin_return_address.
6570
6571 2011-03-07  Alan Modra  <amodra@gmail.com>
6572
6573         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6574         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6575         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6576         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6577         return_mode args.
6578         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6579         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6580         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6581         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6582         * config/rs6000/rs6000.c
6583         (rs6000_elf_end_indicate_exec_stack): Rename to..
6584         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6585         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6586         (rs6000_file_start): ..here.
6587         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6588         file scope variables.
6589         (call_ABI_of_interest): New function.
6590         (init_cumulative_args): Set above vars when function return value
6591         is a float, vector, or small struct.
6592         (rs6000_function_arg_advance_1): Likewise for function args.
6593         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6594         references float args.
6595
6596 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6597
6598         * doc/cfg.texi: Remove "See" before @ref.
6599         * doc/invoke.texi: Likewise.
6600
6601 2011-03-05  Jason Merrill  <jason@redhat.com>
6602
6603         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6604
6605 2011-03-05  Anthony Green  <green@moxielogic.com>
6606
6607         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6608
6609 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6610
6611         PR rtl-optimization/47899
6612         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6613         to flow_loop_nested_p when moving the loop upward.
6614
6615 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6616
6617         PR target/47719
6618         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6619
6620 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6621
6622         PR tree-optimization/47967
6623         * ipa-cp.c (build_const_val): Return NULL instead of creating
6624         VIEW_CONVERT_EXPR for mismatching sizes.
6625         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6626         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6627         give up on versioning.
6628
6629 2011-03-05  Alan Modra  <amodra@gmail.com>
6630
6631         PR target/47986
6632         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6633         full cmodel medium/large lo_sum + high addresses.
6634
6635 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6636
6637         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6638         pool references in UNSPEC_LTREL_OFFSET.
6639
6640 2011-03-04  Jan Hubicka  <jh@suse.cz>
6641
6642         PR lto/47497
6643         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6644         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6645         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6646         Add node pointers.
6647         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6648         cgraph_add_thunk): Add node pointers.
6649         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6650         associated to right node.
6651         (input_node): Update use of cgraph_same_body_alias
6652         and cgraph_add_thunk.
6653
6654 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6655
6656         * config/i386/i386.opt (mprefer-avx128): New flag.
6657         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6658         modes when the flag -mprefer-avx128 is on.
6659
6660 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6661
6662         * dwarf2out.c (compare_loc_operands): Fix address handling.
6663
6664 2011-03-04  Alan Modra  <amodra@gmail.com>
6665
6666         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6667
6668 2011-03-04  Richard Guenther  <rguenther@suse.de>
6669
6670         PR middle-end/47968
6671         * expmed.c (extract_bit_field_1): Prefer vector modes that
6672         vec_extract patterns can handle.
6673
6674 2011-03-04  Richard Guenther  <rguenther@suse.de>
6675
6676         PR middle-end/47975
6677         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6678
6679 2011-03-04  Richard Henderson  <rth@redhat.com>
6680
6681         * explow.c (emit_stack_save): Remove 'after' parameter.
6682         (emit_stack_restore): Likewise.
6683         * expr.h: Update to match.
6684         * builtins.c, calls.c, stmt.c: Likewise.
6685         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6686         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6687         * function.c (expand_function_end): Insert the emit_stack_save
6688         sequence before parm_birth_insn instead of after.
6689
6690 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6691
6692         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6693         (ssse3_pmaddubsw128): Ditto.
6694         (ssse3_pmaddubsw): Ditto.
6695
6696 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6697
6698         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6699
6700 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6701
6702         PR c/47963
6703         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6704         on TYPE_SIZE_UNIT if it is a DECL.
6705
6706         PR debug/47283
6707         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6708         first operand is not is_gimple_mem_ref_addr, try to fold it.
6709         If the operand still isn't is_gimple_mem_ref_addr, clear
6710         MEM_EXPR on op0.
6711
6712 2011-03-03  Richard Guenther  <rguenther@suse.de>
6713
6714         PR middle-end/47283
6715         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6716         match comment.
6717         (refs_may_alias_p_1): For release branches return true if
6718         we are confused by our input.
6719
6720 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6721
6722         * config/s390/s390.c (s390_function_value): Rename to ...
6723         (s390_function_and_libcall_value): ... this.
6724         (s390_function_value): New function.
6725         (s390_libcall_value): New function.
6726         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6727         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6728         target macro definitions.
6729         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6730
6731 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6732
6733         * config/i386/freebsd64.h (CC1_SPEC): Define.
6734         * config/i386/linux64.h (CC1_SPEC): Define.
6735         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6736
6737 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6738
6739         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6740         Remove.
6741         * config/stormy16/stormy16.c: Include reload.h.
6742         (xstormy16_memory_move_cost): New function.
6743         (TARGET_MEMORY_MOVE_COST): Define.
6744
6745 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6746
6747         PR rtl-optimization/47925
6748         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6749         with side effects.  Remove the more-specific check for volatile asms.
6750
6751 2011-03-02  Alan Modra  <amodra@gmail.com>
6752
6753         PR target/47935
6754         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6755         toc relative addresses for valid offsets.
6756
6757 2011-03-01  Richard Guenther  <rguenther@suse.de>
6758
6759         PR tree-optimization/47890
6760         * tree-vect-loop.c (get_initial_def_for_induction): Set
6761         related stmt properly.
6762
6763 2011-03-01  Richard Guenther  <rguenther@suse.de>
6764
6765         PR lto/47924
6766         * lto-streamer.c (lto_record_common_node): Also register
6767         the canonical type.
6768
6769 2011-03-01  Richard Guenther  <rguenther@suse.de>
6770
6771         PR lto/46911
6772         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6773         Do not stream DECL_ABSTRACT_ORIGIN.
6774         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6775         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6776         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6777         Do not stream DECL_ABSTRACT_ORIGIN.
6778         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6779         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6780
6781 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6782
6783         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6784         FUNCTION_VALUE_REGNO_P): Remove.
6785         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6786         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6787         Add 'outgoing' argument.
6788         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6789         function.
6790         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6791         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6792
6793 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6794
6795         PR debug/28047
6796         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6797         (lookup_filename): Likewise.
6798         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6799
6800 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6801             Jakub Jelinek  <jakub@redhat.com>
6802
6803         PR middle-end/47893
6804         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6805         (assign_stack_local_1): Change last argument type to int.
6806         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6807         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6808         don't record padding space into frame_space_list nor use those areas.
6809         (assign_stack_local): Adjust caller.
6810         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6811         of assign_stack_local, pass 0 as last argument.
6812         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6813         callers.
6814
6815 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6816
6817         PR debug/47283
6818         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6819         Use target address_mode and pointer_mode hooks instead of hardcoded
6820         Pmode and ptr_mode.  Handle some simple cases of extending if
6821         POINTERS_EXTEND_UNSIGNED < 0.
6822         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6823         Call convert_debug_memory_address.
6824         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6825         convert_debug_memory_address.
6826
6827         PR middle-end/46790
6828         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6829         * configure: Regenerated.
6830         * config.in: Regenerated.
6831         * varasm.c (default_function_section): Return NULL
6832         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6833
6834 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6835
6836         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6837         the description to match the printed values.
6838
6839 2011-02-28  Richard Guenther  <rguenther@suse.de>
6840
6841         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6842         of the copied scope tree.
6843
6844 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6845
6846         * doc/extend.texi (Function Attributes): Avoid deeply (and
6847         wrongly) nested tables.
6848
6849 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6850
6851         PR middle-end/47903
6852         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6853         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6854         r isn't op0 nor op1.
6855
6856 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6857
6858         * config/avr/avr.md: Remove magic comment for emacs.
6859
6860 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6861
6862         PR target/45261
6863         * config/avr/avr.c (avr_option_override): Use error on bad options.
6864         (avr_help): New function.
6865         (TARGET_HELP): Define.
6866
6867 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6868
6869         PR target/42240
6870         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6871         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6872
6873 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6874
6875         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6876         (ARM Options): Ditto.
6877         (i386 and x86-64 Options): Ditto.
6878         (RX Options): Ditto.
6879         (SPARC Options): Ditto.
6880
6881 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6882
6883         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6884         FreeBSD 6 and later.  Generally use cpu generic.
6885
6886 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6887
6888         * doc/cpp.texi: Update copyright years.
6889
6890 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6891
6892         PR target/46898
6893         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6894
6895 2011-02-25  Jon Beniston  <jon@beniston.com>
6896
6897         PR target/46898
6898         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6899         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6900         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6901         (lm32_block_move_inline): Add type cast to remove warning.
6902         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6903         (gen_int_relational): Move declarations to start of function.
6904
6905 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6906
6907         PR tree-optimization/45470
6908         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6909         can throw internally only.
6910         * tree-vect-stmts.c (vectorizable_call): Likewise.
6911
6912 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6913
6914         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6915         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6916         * config/stormy16/stormy16-protos.h
6917         (xstormy16_preferred_reload_class): Remove.
6918         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6919         static. Change 'rclass' argument and return type to reg_class_t.
6920         (TARGET_PREFERRED_RELOAD_CLASS,
6921         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6922
6923 2011-02-24  Richard Guenther  <rguenther@suse.de>
6924
6925         * lto-streamer-in.c (input_bb): Do not find referenced vars
6926         in debug statements.
6927
6928 2011-02-23  Jason Merrill  <jason@redhat.com>
6929
6930         * common.opt (fabi-version): Document v5 and v6.
6931
6932 2011-02-23  Richard Guenther  <rguenther@suse.de>
6933
6934         PR tree-optimization/47849
6935         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6936
6937 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6938
6939         * opts-common.c (decode_cmdline_option): Print empty string
6940         argument as "" in decoded->orig_option_with_args_text.
6941         * gcc.c (execute): Print empty string argument as ""
6942         in the verbose output.
6943         (do_spec_1): Keep empty string argument.
6944
6945 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6946
6947         * config.gcc: Declare score-* and crx-* obsolete.
6948
6949 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6950
6951         PR rtl-optimization/47763
6952         * web.c (web_main): Ignore naked clobber when replacing register.
6953
6954 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6955
6956         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6957         Remove.
6958
6959 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6960
6961         PR doc/47848
6962         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6963
6964 2011-02-22  Mike Stump  <mikestump@comcast.net>
6965
6966         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6967         assembler.
6968         * configure: Regenerate.
6969
6970 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6971
6972         PR rtl-optimization/46002
6973         * ira-color.c (update_copy_costs): Change class intersection
6974         test to reg_class_contents[] test of 'hard_regno'.
6975
6976 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6977
6978         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6979         than Driver option.
6980         * config/hpux11.opt (mt): Likewise.
6981         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6982         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6983         * config/vax/elf.opt (mno-asm-pic): Likewise.
6984         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6985
6986 2011-02-21  Mike Stump  <mikestump@comcast.net>
6987
6988         PR target/47822
6989         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6990         tree so we can get save the type.
6991         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6992         for CFString instead of trying to use past the end of the builtins.
6993         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6994         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6995         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6996         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6997         Rename to darwin_builtin_cfstring.
6998         (darwin_init_cfstring_builtins): Return the built type.
6999
7000 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7001
7002         PR target/47840
7003         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7004         (_mm256_insert_epi64): Use _mm_insert_epi64.
7005
7006 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7007
7008         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7009         * config/stormy16/stormy16-protos.h
7010         (xstormy16_mode_dependent_address_p): Remove.
7011         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7012         Make static. Change return type to bool. Change argument type to
7013         const_rtx. Remove dead code.
7014         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7015
7016 2011-02-21  Richard Guenther  <rguenther@suse.de>
7017
7018         PR lto/47820
7019         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7020         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7021         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7022         TUs context.
7023         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7024         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7025
7026 2011-02-20  Richard Guenther  <rguenther@suse.de>
7027
7028         PR lto/47822
7029         * tree.c (free_lang_data_in_decl): Clean builtins from
7030         the TU decl BLOCK_VARS.
7031
7032 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7033
7034         PR debug/47620
7035         PR debug/47630
7036         * haifa-sched.c (fix_tick_ready): Skip tick computation
7037         for debug insns.
7038
7039 2011-02-19  Richard Guenther  <rguenther@suse.de>
7040
7041         PR lto/47647
7042         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7043         Remove lazy BLOCK_VARS streaming.
7044         (lto_input_ts_block_tree_pointers): Likewise.
7045         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7046
7047 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7048
7049         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7050
7051 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7052
7053         * config/i386/biarch32.h, config/i386/mach.h,
7054         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7055
7056 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7057
7058         PR target/47800
7059         * config/i386/i386.md (peephole2 for shift and plus): Use
7060         operands[1] original mode in the first insn.
7061
7062 2011-02-18  Mike Stump  <mikestump@comcast.net>
7063
7064         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7065
7066 2011-02-18  Jan Hubicka  <jh@suse.cz>
7067
7068         PR middle-end/47788
7069         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7070         to zero when the function is not inlinable at all.
7071
7072 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7073
7074         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7075         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7076         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7077         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7078         * config/pa/t-pa64: Likewise.
7079         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7080
7081 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7082
7083         PR driver/47787
7084         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7085
7086 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7087
7088         PR target/47792
7089         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7090
7091 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7092
7093         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7094         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7095         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7096         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7097         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7098         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7099         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7100         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7101         m32r_legitimate_address_p): New functions.
7102         * config/m32r/constraints.md (constraint "S"): Don't use
7103         STORE_PREINC_PREDEC_P.
7104         (constraint "U"): Don't use LOAD_POSTINC_P.
7105
7106 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7107
7108         PR rtl-optimization/46178
7109         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7110         compute ira_hard_regno_cover_class[].
7111
7112 2011-02-18  Richard Guenther  <rguenther@suse.de>
7113
7114         PR lto/47798
7115         * lto-streamer.h (lto_global_var_decls): Declare.
7116         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7117         statics for global var processing.
7118
7119 2011-02-18  Richard Guenther  <rguenther@suse.de>
7120
7121         PR tree-optimization/47737
7122         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7123         edge dominance check.
7124
7125 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR debug/47780
7128         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7129         avoid invalid rtx sharing.
7130
7131 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7132
7133         * doc/cpp.texi (Obsolete Features): Add background on the
7134         origin of assertions.
7135
7136 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7137
7138         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7139         objc_abi == 2.
7140         * config/darwin.c (output_objc_section_asm_op): Added support for
7141         ABI v1 and v2.
7142         (is_objc_metadata): New.
7143         (darwin_objc2_section): New.
7144         (darwin_objc1_section): New.
7145         (machopic_select_section): Added support for ABI v1 and v2.
7146         (darwin_emit_objc_zeroed): New.
7147         (darwin_output_aligned_bss): Detect objc metadata and treat it
7148         appropriately.
7149         (darwin_asm_output_aligned_decl_common): Same.
7150         (darwin_asm_output_aligned_decl_local): Same.
7151         * config/darwin-sections.def: Updated for ABI v1 and v2.
7152         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7153         compiling Objective-C code for the NeXT runtime, default to using
7154         ABI version 0 for 32-bit, and version 2 for 64-bit.
7155
7156 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7157
7158         * common.opt (optimize_fast): New Variable.
7159         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7160         instead of local variable ofast.
7161
7162 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7163
7164         * doc/invoke.texi (fobjc-abi-version): Documented.
7165         (fobjc-nilcheck): Documented.
7166         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7167         version.
7168
7169 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7170
7171         PR driver/47390
7172         * common.opt (export-dynamic): New Driver option.
7173         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7174
7175 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7176
7177         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7178
7179 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7180             Jan Hubicka  <jh@suse.cz>
7181
7182         PR debug/47106
7183         PR debug/47402
7184         * cfgexpand.c (account_used_vars_for_block): Remove.
7185         (estimated_stack_frame_size): Use referenced vars.
7186         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7187         that were referenced in the original function.  Test src_fn
7188         rather than cfun.  Drop redundant get_var_ann.
7189         (setup_one_parameter): Drop redundant get_var_ann.
7190         (declare_return_variable): Likewise.
7191         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7192         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7193         * ipa-inline.c (compute_inline_parameters): Do not compute
7194         disregard_inline_limits here.
7195         (compute_inlinable_for_current, pass_inlinable): New.
7196         (pass_inline_parameters): Require PROP_referenced_vars.
7197         * cgraphunit.c (cgraph_process_new_functions): Don't run
7198         compute_inline_parameters explicitly unless function is in SSA form.
7199         (cgraph_analyze_function): Set .disregard_inline_limits.
7200         * tree-sra.c (convert_callers): Compute inliner parameters
7201         only for functions already in SSA form.
7202
7203 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7204
7205         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7206         -mlittle-endian-data.
7207
7208 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7209
7210         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7211         -mno-fpu, not -fpu and -no-fpu.
7212         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7213         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7214
7215 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7216
7217         PR target/43653
7218         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7219         input reload with PLUS RTX.
7220
7221 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7222
7223         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7224         of InverseVar(MDMX).
7225
7226 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7227
7228         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7229         --m4-340.
7230
7231 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7232
7233         * config/mn10300/mn10300.opt (mno-crt0): New.
7234
7235 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7236
7237         * config/m68k/uclinux.opt (static-libc): New Driver option.
7238
7239 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7240
7241         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7242
7243 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7244
7245         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7246         %{muser-extend-enabled}.
7247
7248 2011-02-16  Richard Guenther  <rguenther@suse.de>
7249
7250         PR tree-optimization/47738
7251         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7252         the TODO from tree_predictive_commoning.
7253
7254 2011-02-15  Jeff Law  <law@redhat.com>
7255
7256         Revert
7257         2011-01-25  Jeff Law  <law@redhat.com>
7258
7259         PR rtl-optimization/37273
7260         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7261         handle them like argument loads from stack slots.  Do not double
7262         count memory for memory constants and argument loads from stack slots.
7263
7264 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7265
7266         PR middle-end/47725
7267         * combine.c (cant_combine_insn_p): Revert the last change.
7268
7269 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7270
7271         PR target/47755
7272         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7273         mode for vector constants.  Remove code that checks for TImode.
7274
7275 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7276
7277         PR debug/47106
7278         PR debug/47402
7279         * cgraph.h (compute_inline_parameters): Return void.
7280         * ipa-inline.c (compute_inline_parameters): Adjust.
7281
7282 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7283
7284         PR debug/47106
7285         PR debug/47402
7286         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7287         rather than decl.
7288         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7289         * ipa-inline.c (compute_inline_parameters): Adjust.
7290
7291 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7292
7293         PR debug/47106
7294         PR debug/47402
7295         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7296         Adjust all users.  Pass FN to...
7297         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7298         fn argument.
7299         * ipa-struct-reorg.c: Adjust.
7300         * tree-dfa.c: Adjust.
7301         * tree-into-ssa.c: Adjust.
7302         * tree-sra.c: Adjust.
7303         * tree-ssa-alias.c: Adjust.
7304         * tree-ssa-live.c: Adjust.
7305         * tree-ssa.c: Adjust.
7306         * tree-ssanames.c: Adjust.
7307         * tree-tailcall.c: Adjust.
7308
7309 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7310
7311         PR debug/47106
7312         PR debug/47402
7313         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7314         Adjust all callers.
7315         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7316         * tree-flow-inline.h: Adjust.
7317         * gimple-pretty-print.c: Adjust.
7318         * tree-into-ssa.c: Adjust.
7319         * tree-ssa.c: Adjust.
7320         * cfgexpand.c: Adjust.
7321
7322 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7323
7324         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7325         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7326         (EXTRA_CONSTRAINT): Delete.
7327         * config/iq2000/constraints.md: New file.
7328         * config/iq2000/iq2000.md: Include it.
7329         (define_insn ""): Delete.
7330         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7331         unsupported constraint letters from patterns.
7332         (call_value, call_value_internal1): Likewise.
7333         (call_value_multiple_internal1): Likewise.
7334
7335 2011-02-15  Nick Clifton  <nickc@redhat.com>
7336
7337         * config/mn10300/mn10300.c: Include tm-constrs.h.
7338         (struct liw_data): New data structure describing an LIW candidate
7339         instruction.
7340         (extract_bundle): Use struct liw_data.  Allow small integer
7341         operands for some instructions.
7342         (check_liw_constraints): Use struct liw_data.  Remove swapped
7343         parameter.  Add comments describing the checks.  Fix bug when
7344         assigning the source of liw1 to the source of liw2.
7345         (liw_candidate): Delete.  Code moved into extract_bundle.
7346         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7347         before swapping.
7348         * config/mn10300/predicates.md (liw_operand): New predicate.
7349         Allows registers and small integer constants.
7350         * config/mn10300/constraints.md (O): New constraint.  Accetps
7351         integers in the range -8 to +7 inclusive.
7352         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7353         for moving a small integer into a register.  Give this alternative
7354         LIW attributes.
7355         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7356         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7357         using the J,K,L and M constraints,
7358         (liw): Remove SI mode on second operands to allow for HI and QI
7359         mode values.
7360         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7361         instruction.
7362
7363 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7364
7365         PR middle-end/47725
7366         * combine.c (cant_combine_insn_p): Check zero/sign extended
7367         hard registers.
7368
7369 2011-02-15  Richard Guenther  <rguenther@suse.de>
7370
7371         PR tree-optimization/47743
7372         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7373         for a non-type-compatible VN lookup bail out.
7374
7375 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7376
7377         * config/fr30/constraints.md: New file.
7378         * config/fr30/fr30.md: Include it.
7379         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7380         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7381         (EXTRA_CONSTRAINT): Delete.
7382
7383 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7384
7385         * config/frv/constraints.md: New file.
7386         * config/frv/predicates.md: Include it.
7387         * config/frv/frv.c (reg_class_from_letter): Delete.
7388         (frv_option_override): Don't initialize it.
7389         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7390         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7391         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7392         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7393         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7394         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7395         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7396         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7397         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7398         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7399         (REG_CLASS_FROM_CONSTRAINT): Delete.
7400
7401 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7402
7403         PR middle-end/47581
7404         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7405         if frame size is 0 in a leaf function.
7406
7407 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7408
7409         PR pch/14940
7410         * config/alpha/host-osf.c: New file.
7411         * config/alpha/x-osf: New file.
7412         * config.host (alpha*-dec-osf*): Use it.
7413
7414 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7415
7416         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7417         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7418         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7419         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7420         type to const_rtx.
7421         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7422
7423 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7424
7425         * config/stormy16/constraints.md: New file.
7426         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7427         Use satisfies_constraint_Q and satisfies_constraint_R.
7428         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7429         Delete.
7430         (xstormy16_legitiamte_address_p): Declare.
7431         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7432         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7433         (EXTRA_CONSTRAINT): Delete.
7434         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7435         Un-staticize.
7436         (xstormy16_extra_constraint_p): Delete.
7437
7438 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7439
7440         PR tree-optimization/46494
7441         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7442         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7443         (pass_rtl_loop_done): Add TODO_verify_flow.
7444         * fwprop.c (pass_rtl_fwprop): Likewise.
7445         * modulo-sched.c (pass_sms): Likewise.
7446         * tree-ssa-dom.c (pass_dominator): Likewise.
7447         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7448         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7449         (pass_tree_loop_done): Likewise.
7450         * tree-ssa-pre.c (execute_pre): Likewise.
7451         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7452         * tree-ssa-sink.c (pass_sink_code): Likewise.
7453         * tree-vrp.c (pass_vrp): Likewise.
7454
7455 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7456
7457         * config/v850/constraints.md: New file.
7458         * config/v850/v850.md: Include it.
7459         * config/v850/predicates.md (reg_or_0_operand): Use
7460         satisfies_constraint_G.
7461         (special_symbolref_operand): Use satisfies_constraint_K.
7462         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7463         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7464         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7465         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7466         (EXTRA_CONSTRAINT): Delete.
7467         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7468         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7469         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7470
7471 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7472
7473         PR target/47696
7474         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7475         description.
7476
7477 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7478
7479         * config/mcore/constraints.md: New file.
7480         * config/mcore/mcore.md: Include it.
7481         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7482         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7483         (REG_CLASS_FROM_LETTER): Delete.
7484         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7485         insn_const_int_ok_for_constraint.
7486         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7487         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7488         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7489         (EXTRA_CONSTRAINT): Delete.
7490
7491 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7492
7493         PR ada/41929
7494         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7495         (IS_SIGHANDLER): Define.
7496         (sparc64_is_sighandler): New function, split off from
7497         sparc64_fallback_frame_state.
7498         (sparc_is_sighandler): New function, split off from
7499         sparc_fallback_frame_state.
7500         (sparc64_fallback_frame_state): Merge with ...
7501         (sparc_fallback_frame_state): ... this into ...
7502         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7503         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7504         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7505         stack instead of hardcoded offsets.
7506
7507 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7508
7509         PR target/45808
7510         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7511
7512 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7513
7514         * configure: Regenerate.
7515
7516 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7517
7518         PR driver/45731
7519         * gcc.c (asm_options): Correct spec matching --target-help.
7520
7521 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7522
7523         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7524         to gimple call error.
7525
7526 2011-02-12  Mike Stump  <mikestump@comcast.net>
7527
7528         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7529         comments in backslash regions.
7530
7531 2011-02-12  Mike Stump  <mikestump@comcast.net>
7532             Jakub Jelinek  <jakub@redhat.com>
7533             Iain Sandoe  <iains@gcc.gnu.org>
7534
7535         PR target/47324
7536         * dwarf2out.c (output_cfa_loc): When required, apply the
7537         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7538         (output_loc_sequence): Likewise.
7539         (output_loc_operands_raw): Likewise.
7540         (output_loc_sequence_raw): Likewise.
7541         (output_cfa_loc): Likewise.
7542         (output_loc_list): Suppress register number adjustment when
7543         calling output_loc_sequence()
7544         (output_die): Likewise.
7545
7546 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7547
7548         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7549         Remove macros.
7550         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7551         xtensa_memory_move_cost): New functions.
7552         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7553
7554 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7555
7556         PR lto/47225
7557         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7558         in the current directory.
7559         * configure: Rebuilt.
7560
7561 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7562
7563         * config/darwin.c (darwin_override_options): Add a hunk missed
7564         from the commit of r168571.  Trim comment line lengths and
7565         correct indents of the preceding block.
7566
7567 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7568
7569         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7570         the switch.
7571
7572 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7573
7574         * common.opt (nostartfiles): New Driver option.
7575
7576 2011-02-11  Xinliang David Li  <davidxl@google.com>
7577
7578         PR tree-optimization/47707
7579         * tree-chrec.c (convert_affine_scev): Keep type precision.
7580
7581 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7582
7583         PR tree-optimization/47420
7584         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7585
7586 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7587
7588         PR rtl-optimization/47614
7589         * rtl.h (check_for_inc_dec): Declare.
7590         * dse.c (check_for_inc_dec): Externalize...
7591         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7592         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7593
7594 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7595
7596         PR driver/47678
7597         * gcc.c (main): Do not compile inputs if there were errors in
7598         option handling.
7599         * opts-common.c (read_cmdline_option): Check for wrong language
7600         after other error checks.
7601
7602 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7603
7604         * cgraph.c: Fix comment typos.
7605         * cgraph.h: Likewise.
7606         * cgraphunit.c: Likewise.
7607         * ipa-cp.c: Likewise.
7608         * ipa-inline.c: Likewise.
7609         * ipa-prop.c: Likewise.
7610         * ipa-pure-const.c: Likewise.
7611         * ipa-ref.c: Likewise.
7612         * ipa-reference.c: Likewise.
7613
7614 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7615
7616         PR debug/47684
7617         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7618
7619 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7620
7621         PR testsuite/47400
7622         * doc/sourcebuild.texi (Require Support): Document
7623         dg-require-ascii-locale.
7624
7625 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7626
7627         * doc/lto.texi (Write summary): Fix missing parentheses.
7628
7629 2011-02-10  DJ Delorie  <dj@redhat.com>
7630
7631         * config/m32c/m32c.c (m32c_option_override): Disable
7632         -fcombine-stack-adjustments until flag value tracking and compare
7633         optimization can be rewritten.
7634
7635 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7636
7637         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7638         PROCESSOR_POWER7.
7639         (PROCESSOR_DEFAULT64): Likewise.
7640
7641 2011-02-10  Richard Henderson  <rth@redhat.com>
7642
7643         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7644         change from 2011-02-03.
7645         * config/rx/rx.c (flags_from_code): Likewise.
7646         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7647         is valid, n/pz otherwise.
7648         (rx_select_cc_mode): Return CCmode if Y is not zero.
7649
7650 2011-02-10  Richard Guenther  <rguenther@suse.de>
7651
7652         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7653
7654 2011-02-10  Richard Guenther  <rguenther@suse.de>
7655
7656         PR tree-optimization/47677
7657         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7658
7659 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7660
7661         PR target/47665
7662         * combine.c (make_compound_operation): Only change shifts into
7663         multiplication for SCALAR_INT_MODE_P.
7664
7665 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7666
7667         PR testsuite/47622
7668         Revert
7669         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7670         PR debug/42631
7671         * web.c (entry_register): Don't clobber the number of the
7672         first uninitialized reference in used[].
7673
7674 2011-02-09  Richard Guenther  <rguenther@suse.de>
7675
7676         PR tree-optimization/47664
7677         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7678         all edges again.
7679
7680 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7681
7682         PR target/46481
7683         PR target/47032
7684         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7685         PROCESSOR_POWER7.
7686         (PROCESSOR_DEFAULT64): Same.
7687         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7688
7689 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7690
7691         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7692
7693 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7694
7695         PR middle-end/45505
7696         * tree-sra.c (struct access): New flags grp_scalar_read and
7697         grp_scalar_write.  Changed description of assignment read and write
7698         flags.
7699         (dump_access): Dump new flags, reorder all of them.
7700         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7701         to detect multiple scalar reads.
7702         (analyze_access_subtree): Use the new scalar read write flags instead
7703         of the old flags.  Adjusted comments.
7704
7705 2011-02-08  DJ Delorie  <dj@redhat.com>
7706
7707         PR target/47548
7708         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7709         patterns.
7710
7711 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7712
7713         * config/m68k/uclinux.opt: New.
7714         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7715
7716 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7717
7718         * config/cris/elf.opt (sim): New Driver option.
7719
7720 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7721
7722         * config/xtensa/elf.opt: New.
7723         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7724
7725 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7726
7727         * config/vax/elf.opt: New.
7728         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7729
7730 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7731
7732         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7733
7734 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7735
7736         * config/gnu-user.opt: New.
7737         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7738         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7739         *-*-uclinux*): Use gnu-user.opt.
7740
7741 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7742
7743         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7744         * config/i386/gnu.h (CPP_SPEC): Likewise.
7745
7746 2011-02-08  Ian Lance Taylor  <iant@google.com>
7747
7748         * common.opt (fcx-limited-range): Add SetByCombined flag.
7749         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7750         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7751         (fassociative-math, freciprocal-math): Likewise.
7752         (funsafe-math-optimizations): Likewise.
7753         * opth-gen.awk: Handle SetByCombined.
7754         * optc-gen.awk: Likewise.
7755         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7756         (set_unsafe_math_optimizations_flags): Likewise.
7757         * doc/options.texi (Option properties): Document SetByCombined.
7758
7759 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7760
7761         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7762         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7763         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7764         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7765         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7766
7767 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7768
7769         PR tree-optimization/46834
7770         PR tree-optimization/46994
7771         PR tree-optimization/46995
7772         * graphite-sese-to-poly.c (used_outside_reduction): New.
7773         (detect_commutative_reduction): Call used_outside_reduction.
7774         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7775         translate_scalar_reduction_to_array only when at least one
7776         loop-phi/close-phi tuple has been detected.
7777
7778 2011-02-08  Richard Guenther  <rguenther@suse.de>
7779
7780         PR middle-end/47639
7781         * tree-vect-generic.c (expand_vector_operations_1): Update
7782         stmts here ...
7783         (expand_vector_operations): ... not here.  Cleanup EH info
7784         and the CFG if required.
7785
7786 2011-02-08  Richard Guenther  <rguenther@suse.de>
7787
7788         PR tree-optimization/47641
7789         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7790         require type compatibility.
7791
7792 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7793
7794         * gimple-low.c (lower_function_body): Don't remove the location of
7795         the return statement here.
7796         (lower_gimple_return): Do it here instead but only if the return
7797         statement is actually used twice.
7798
7799 2011-02-08  Richard Guenther  <rguenther@suse.de>
7800
7801         PR tree-optimization/47632
7802         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7803         unused up_to_stmt parameter, return whether cfg-cleanup is
7804         necessary, remove EH info properly.
7805         (forward_propagate_into_gimple_cond): Adjust caller.
7806         (forward_propagate_into_cond): Likewise.
7807         (forward_propagate_comparison): Likewise.
7808         (tree_ssa_forward_propagate_single_use_vars): Make
7809         forward_propagate_comparison case similar to the two others.
7810
7811 2011-02-08  Nick Clifton  <nickc@redhat.com>
7812
7813         * config/mn10300/mn10300.opt (mliw): New command line option.
7814         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7815         (liw_bundling): New automaton.
7816         (liw): New attribute.
7817         (liw_op): New attribute.
7818         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7819         (movsi_internal): Add LIW attributes.
7820         (andsi3): Likewise.
7821         (iorsi3): Likewise.
7822         (xorsi3): Likewise.
7823         (addsi3): Separate register and immediate alternatives.
7824         Add LIW attributes.
7825         (subsi3): Likewise.
7826         (cmpsi): Likewise.
7827         (aslsi3): Likewise.
7828         (lshrsi3): Likewise.
7829         (ashrsi3): Likewise.
7830         (liw): New pattern.
7831         * config/mn10300/mn10300.c (liw_op_names): New
7832         (mn10300_print_operand): Handle 'W' operand descriptor.
7833         (extract_bundle): New function.
7834         (check_liw_constraints): New function.
7835         (liw_candidate): New function.
7836         (mn10300_bundle_liw): New function.
7837         (mn10300_reorg): New function.
7838         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7839         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7840         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7841         __LIW__ or __NO_LIW__.
7842         * doc/invoke.texi: Describe the -mliw command line option.
7843
7844 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7845
7846         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7847         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7848         pthread_mutex_unlock): Remove.
7849         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7850         * config/pa/t-pa64: Likewise.
7851         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7852         shared libc if not linking against libpthread.
7853         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7854
7855 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7856
7857         PR target/47558
7858         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7859         on 10.6 and later to ensure that we always use the unwinder from
7860         the system.  Only add -no_compact_unwind when tarteting darwin
7861         10.6 or later.
7862
7863 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7864
7865         PR target/46997
7866         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7867         (vec_interleave_lowv2sf): Ditto.
7868         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7869         (vec_extract_oddv2sf): Ditto.
7870
7871 2011-02-07  Mike Stump  <mikestump@comcast.net>
7872
7873         PR target/42333
7874         Add __ieee_divdc3 entry point.
7875         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7876         entry point.
7877         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7878         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7879         * config/darwin.c (darwin_rename_builtins): Add.
7880         * config/darwin-protos.h (darwin_rename_builtins): Add.
7881
7882 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7883
7884         PR target/47636
7885         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7886         for the condition.
7887
7888 2011-02-07  Mike Stump  <mikestump@comcast.net>
7889
7890         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7891
7892 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7893
7894         PR target/47534
7895         * config/avr/libgcc.S (exit): Move .endfunc
7896
7897 2011-02-07  Richard Guenther  <rguenther@suse.de>
7898
7899         PR tree-optimization/47615
7900         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7901         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7902         (run_scc_vn): Initialize it.
7903         (visit_reference_op_load): Use it.
7904         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7905
7906 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7907
7908         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7909         DImode trapping arithmetic libfuncs.
7910
7911 2011-02-07  Richard Guenther  <rguenther@suse.de>
7912
7913         PR tree-optimization/47621
7914         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7915         two duplicates ...
7916         (execute_update_addresses_taken): ... here.  Make it more
7917         conservative in what we accept.
7918
7919 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7920
7921         * config/sparc/freebsd.h (ASM_SPEC): Define.
7922         * config/sparc/vxworks.h (ASM_SPEC): Define.
7923
7924 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7925
7926         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7927
7928 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7929
7930         * doc/invoke.texi: Remove reference to compiler internals from
7931         user documentation.
7932
7933         * reg-notes.def: Remove REG_VALUE_PROFILE.
7934         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7935
7936 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7937
7938         PR middle-end/47610
7939         * varasm.c (default_section_type_flags): If decl is NULL,
7940         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7941
7942 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7943
7944         PR debug/42631
7945         * web.c (entry_register): Don't clobber the number of the
7946         first uninitialized reference in used[].
7947
7948 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7949
7950         PR tree-optimization/46194
7951         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7952         (build_classic_dist_vector_1): Do not represent classic distance
7953         vectors when the access functions are variating in different loops.
7954
7955 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * config/mips/iris6.opt: New.
7958         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7959
7960 2011-02-04  Richard Henderson  <rth@redhat.com>
7961             Steve Ellcey  <sje@cup.hp.com>
7962
7963         PR target/46997
7964         * config/ia64/predicates.md (mux1_brcst_element): New.
7965         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7966         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7967         (ia64_unpack_sign): New.
7968         (ia64_expand_unpack): Rewrite using new routines.
7969         (ia64_expand_widen_sum): Ditto.
7970         (ia64_expand_dot_prod_v8qi): Ditto.
7971         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7972         routines, add endian check.
7973         (pmpy2_even): Rename from pmpy2_r, add endian check.
7974         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7975         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7976         (vec_widen_smult_hi_v4hi): Ditto.
7977         (vec_widen_umult_lo_v4hi): Ditto.
7978         (vec_widen_umult_hi_v4hi): Ditto.
7979         (mulv2si3): Change endian checks.
7980         (sdot_prodv4hi): Rewrite with new calls.
7981         (udot_prodv4hi): New.
7982         (vec_pack_ssat_v4hi): Add endian check.
7983         (vec_pack_usat_v4hi): Ditto.
7984         (vec_pack_ssat_v2si): Ditto.
7985         (max1_even): Rename from max1_r, add endian check.
7986         (max1_odd): Rename from max1_l, add endian check.
7987         (*mux1_rev): Format change.
7988         (*mux1_mix): Ditto.
7989         (*mux1_shuf): Ditto.
7990         (*mux1_alt): Ditto.
7991         (*mux1_brcst_v8qi): Use new predicate.
7992         (vec_extract_evenv8qi): Remove endian check.
7993         (vec_extract_oddv8qi): Ditto.
7994         (vec_interleave_lowv4hi): Format change.
7995         (vec_interleave_highv4hi): Ditto.
7996         (mix2_even): Rename from mix2_r, add endian check.
7997         (mix2_odd): Rename from mux2_l, add endian check.
7998         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7999         (vec_extract_evenodd_helper): Format change.
8000         (vec_extract_evenv4hi): Remove endian check.
8001         (vec_extract_oddv4hi): Remove endian check.
8002         (vec_interleave_lowv2si): Format change.
8003         (vec_interleave_highv2si): Format change.
8004         (vec_initv2si): Remove endian check.
8005         (vecinit_v2si): Add endian check.
8006         (reduc_splus_v2sf): Add endian check.
8007         (reduc_smax_v2sf): Ditto.
8008         (reduc_smin_v2sf): Ditto.
8009         (vec_initv2sf): Remove endian check.
8010         (fpack): Add endian check.
8011         (fswap): Add endian check.
8012         (vec_interleave_highv2sf): Add endian check.
8013         (vec_interleave_lowv2sf): Add endian check.
8014         (fmix_lr): Add endian check.
8015         (vec_setv2sf): Format change.
8016         (*vec_extractv2sf_0_be): Use shift to extract operand.
8017         (*vec_extractv2sf_1_be): New.
8018         (vec_pack_trunc_v4hi): Add endian check.
8019         (vec_pack_trunc_v2si): Format change.
8020
8021 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8022
8023         PR inline-asm/23200
8024         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8025         do bb, locus and block comparison and disallow loads if it is not set.
8026         (stmt_is_replaceable_p): New function.
8027         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8028         callers.
8029         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8030         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8031         SSA_NAME_DEF_STMT.
8032         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8033
8034 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8035
8036         * config/rs6000/xilinx.opt: New.
8037         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8038
8039 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8040
8041         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8042
8043 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8044
8045         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8046         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8047         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8048         secondary_reload_info, xtensa_secondary_reload): Remove.
8049         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8050         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8051         (xtensa_preferred_reload_class): Make static. Change return and
8052         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8053         Use CONST_DOUBLE_P predicate.
8054         (xtensa_preferred_output_reload_class): New function.
8055         (xtensa_secondary_reload): Make static.
8056
8057 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8058
8059         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8060         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8061         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8062
8063 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8064
8065         PR middle-end/31490
8066         * output.h (SECTION_RELRO): Define.
8067         (SECTION_MACH_DEP): Adjust.
8068         (get_variable_section): New prototype.
8069         * varpool.c (varpool_finalize_named_section_flags): New function.
8070         (varpool_assemble_pending_decls): Call it.
8071         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8072         * cgraphunit.c (cgraph_output_in_order): Call
8073         varpool_finalize_named_section_flags.
8074         * varasm.c (get_section): Allow section flags conflicts between
8075         relro and read-only sections if the section hasn't been declared yet.
8076         Set SECTION_OVERRIDE after diagnosing section type conflict.
8077         (get_variable_section): No longer static.
8078         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8079         readonly sections that need relocations.
8080         (decl_readonly_section_1): New function.
8081         (decl_readonly_section): Use it.
8082
8083         Revert:
8084         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8085                     Steve Ellcey  <sje@cup.hp.com>
8086
8087         PR middle-end/31490
8088         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8089         if section attribute used.
8090
8091 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8092
8093         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8094         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8095         (darwin_init_sections): Remove assertion.
8096
8097 2011-02-03  Nick Clifton  <nickc@redhat.com>
8098
8099         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8100         lt and ge.
8101         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8102         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8103         instead of "n" and "pz".
8104         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8105         CC_FLAG_S.
8106
8107 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8108
8109         PR target/47312
8110         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8111         fma, expand FMA_EXPR as fma{,f,l} call.
8112
8113         PR lto/47274
8114         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8115         copy them into a unsigned char variable and pass address of it to
8116         lto_output_data_stream.
8117
8118         PR target/47564
8119         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8120         around backend_init_target and lang_dependent_init_target calls.
8121         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8122         (verify_cgraph_node): Don't call set_cfun here.  Use
8123         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8124         Set error_found for incorrectly represented calls to thunks.
8125
8126 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8127
8128         PR debug/43092
8129         PR rtl-optimization/43494
8130         * rtl.h (for_each_inc_dec_fn): New type.
8131         (for_each_inc_dec): Declare.
8132         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8133         (for_each_inc_dec_find_inc_dec): New fn.
8134         (for_each_inc_dec_find_mem): New fn.
8135         (for_each_inc_dec): New fn.
8136         * dse.c (struct insn_size): Remove.
8137         (replace_inc_dec, replace_inc_dec_mem): Remove.
8138         (emit_inc_dec_insn_before): New fn.
8139         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8140         (canon_address): Pass mem modes to cselib_lookup.
8141         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8142         (cselib_lookup_from_insn): Likewise.
8143         (cselib_subst_to_values): Likewise.
8144         * cselib.c (find_slot_memmode): New var.
8145         (cselib_find_slot): New fn.  Use it instead of
8146         htab_find_slot_with_hash everywhere.
8147         (entry_and_rtx_equal_p): Use find_slot_memmode.
8148         (autoinc_split): New fn.
8149         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8150         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8151         Deal with autoinc.  Special-case recursion into MEMs.
8152         (cselib_hash_rtx): Likewise.
8153         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8154         address and MEM modes.
8155         (cselib_subst_to_values): Add memmode, pass it on.
8156         Deal with autoinc.
8157         (cselib_lookup): Add memmode argument, pass it on.
8158         (cselib_lookup_from_insn): Add memmode.
8159         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8160         (struct cselib_record_autoinc_data): New.
8161         (cselib_record_autoinc_cb): New fn.
8162         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8163         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8164         (cselib_process_insn): ... here.
8165         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8166         to cselib_lookup.
8167         (add_uses): Likewise, also to cselib_subst_to_values.
8168         (add_stores): Likewise.
8169         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8170         cselib_subst_to_values.
8171         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8172         * gcse.c (do_local_cprop): Adjusted.
8173         * postreload.c (reload_cse_simplify_set): Adjusted.
8174         (reload_cse_simplify_operands): Adjusted.
8175         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8176
8177 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8178
8179         PR tree-optimization/45122
8180         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8181         unsafe assumptions when there's more than one loop exit.
8182
8183 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8184
8185         PR target/47272
8186         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8187         Document using vector double with the load/store builtins, and
8188         that the load/store builtins always use Altivec instructions.
8189
8190         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8191         to use altivec memory instructions, even on VSX.
8192         (vector_altivec_store_<mode>): Ditto.
8193
8194         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8195         function.
8196
8197         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8198         V2DF, V2DI support to load/store overloaded builtins.
8199
8200         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8201         altivec load/store builtins for V2DF/V2DI types.
8202
8203         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8204         set avoid indexed addresses on power6 if -maltivec.
8205         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8206         vector_altivec_load/vector_altivec_store builtins.
8207         (altivec_expand_st_builtin): Ditto.
8208         (altivec_expand_builtin): Add VSX memory builtins.
8209         (rs6000_init_builtins): Add V2DI types to internal types.
8210         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8211         load/store builtins.
8212         (rs6000_address_for_altivec): Insure memory address is appropriate
8213         for Altivec.
8214
8215         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8216         vec_vsx_ld and vec_vsx_st.
8217         (vsx_store_<mode>): Ditto.
8218
8219         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8220         variables to hold long long types for VSX vector memory builtins.
8221         (RS6000_BTI_unsigned_long_long): Ditto.
8222         (long_long_integer_type_internal_node): Ditti.
8223         (long_long_unsigned_type_internal_node): Ditti.
8224
8225         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8226         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8227         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8228
8229         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8230         short cuts.
8231         (vec_vsx_st): Ditto.
8232
8233 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8234
8235         * config/pa/pa-hpux10.opt: New.
8236         * config/hpux11.opt (pthread): New Driver option.
8237         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8238         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8239
8240 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8241
8242         * config/ia64/vms.opt: New.
8243         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8244
8245 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8246
8247         PR target/47580
8248         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8249         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8250         generator functions.
8251         (vsx_floatuns<VSi><mode>2): Ditto.
8252         (vsx_fix_trunc<mode><VSi>2): Ditto.
8253         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8254
8255 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8256
8257         * config/i386/djgpp.opt (posix): New Driver option.
8258
8259 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8260
8261         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8262         Move to the unsupported targets list.
8263
8264 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8265
8266         PR rtl-optimization/47525
8267         * df-scan.c: Update copyright years.
8268         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8269         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8270
8271 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8272
8273         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8274         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8275         (ASM_OUTPUT_ASCII): Remove.
8276         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8277
8278 2011-02-02  Jeff Law  <law@redhat.com>
8279
8280         PR middle-end/47543
8281         * reload.c (find_reloads_address): Handle reg+d address where both
8282         components are invalid by reloading the entire address.
8283
8284 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8285             Richard Guenther  <rguenther@suse.de>
8286
8287         PR tree-optimization/40979
8288         PR bootstrap/47044
8289         * passes.c (init_optimization_passes): After LIM call copy_prop
8290         and DCE to clean up.
8291         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8292
8293 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8294
8295         PR tree-optimization/47576
8296         PR tree-optimization/47555
8297         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8298         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8299         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8300         * tree-scalar-evolution.c (follow_ssa_edge): Use
8301         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8302
8303 2011-02-02  Richard Guenther  <rguenther@suse.de>
8304
8305         PR tree-optimization/47566
8306         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8307
8308 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8309
8310         PR debug/47106
8311         PR debug/47402
8312         * tree-inline.c (declare_return_variable): Remove unused caller
8313         variable.
8314
8315         PR debug/47106
8316         PR debug/47402
8317         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8318         * cfgexpand.c (account_used_vars_for_block): Use them.
8319         * tree-nrv.c (tree_nrv): Likewise.
8320         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8321         (dump_scope_block): Likewise.
8322         (remove_unused_locals): Likewise.
8323
8324         PR debug/47106
8325         PR debug/47402
8326         * tree-inline.c (declare_return_variable): Add result decl to
8327         local decls only once.
8328         * gimple-low.c (record_vars_into): Mark newly-created variables
8329         as referenced.
8330
8331 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8332
8333         PR debug/47498
8334         PR debug/47501
8335         PR debug/45136
8336         PR debug/45130
8337         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8338         debug insns.
8339         (no_real_insns_p, schedule_block, set_priorities): Drop special
8340         treatment of boundary debug insns.
8341         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8342         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8343         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8344         (BOUNDARY_DEBUG_INSN_P): Likewise.
8345         (SCHEDULE_DEBUG_INSN_P): Likewise.
8346         * sched-rgn.c (init_ready_list): Drop special treatment of
8347         boundary debug insns.
8348         * final.c (rest_of_clean_state): Clear notes' BB.
8349
8350 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8351
8352         * config/openbsd.opt (assert=): New Driver option.
8353
8354 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8355
8356         * config/i386/nto.opt: New.
8357         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8358
8359 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8360
8361         * config/i386/netware.opt: New.
8362         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8363
8364 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8365
8366         * config/interix.opt (posix): New Driver option.
8367
8368 2011-02-01  DJ Delorie  <dj@redhat.com>
8369
8370         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8371
8372         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8373         class for A0/A1.
8374
8375 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8376
8377         PR tree-optimization/47561
8378         * toplev.c (process_options): Print the Graphite flags.  Add
8379         flag_loop_flatten to the list of options requiring Graphite.
8380
8381 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8382
8383         * config/i386/cygming.opt (posix): New Driver option.
8384
8385 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8386
8387         * config/arm/vxworks.opt: New.
8388         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8389
8390 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8391
8392         * config/alpha/elf.opt: New.
8393         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8394         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8395
8396 2011-02-01  Richard Guenther  <rguenther@suse.de>
8397
8398         PR tree-optimization/47559
8399         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8400         store-motion on references that can throw.
8401
8402 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8403
8404         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8405         * tree-pass.h (TDF_CSELIB): New macro.
8406         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8407         cselib_lookup): Check for it rather than for TDF_DETAILS.
8408
8409 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8410
8411         PR driver/47547
8412         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8413         is HOST_BIT_BUCKET.
8414
8415         * opts.c (finish_options): Don't add x_aux_base_name if it is
8416         HOST_BIT_BUCKET.
8417
8418 2011-02-01  Richard Guenther  <rguenther@suse.de>
8419
8420         PR tree-optimization/47555
8421         Revert
8422         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8423
8424         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8425
8426 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8427
8428         PR gcc/46692
8429         * config/lm32/t-lm32: Add multilib for all CPU options.
8430
8431 2011-02-01  Richard Guenther  <rguenther@suse.de>
8432
8433         PR tree-optimization/47541
8434         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8435         sure to have a field at offset zero.
8436
8437 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8438
8439         * config/arc/arc.opt (EB, EL): New Driver options.
8440
8441 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8442
8443         * config/alpha/osf5.opt: New.
8444         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8445
8446 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8449
8450 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8451
8452         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8453         -floop-interchange.
8454         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8455         is an alias of -floop-interchange and that it requires the
8456         Graphite infrastructure.
8457         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8458         flag_loop_interchange based on the value of flag_tree_loop_linear.
8459
8460 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8461             Richard Guenther  <rguenther@suse.de>
8462
8463         PR tree-optimization/47538
8464         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8465         type instead of r1type, except for comparisons.  For right
8466         shifts and comparisons punt if there are mismatches in
8467         sizetype vs. non-sizetype types.
8468
8469 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8470
8471         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8472         avx_runtime.
8473
8474 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8475
8476         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8477         version number.
8478         * configure: Regenerate.
8479
8480 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8481
8482         * configure.ac (gcc_cv_ld_static_option): Define.
8483         (gcc_cv_ld_dynamic_option): Define.
8484         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8485         instead.
8486         (HAVE_LD_STATIC_DYNAMIC): Update message.
8487         (LD_STATIC_OPTION): Define.
8488         (LD_DYNAMIC_OPTION): Define.
8489         * configure: Regenerate.
8490         * config.in: Regenerate.
8491         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8492         HAVE_LD_STATIC_DYNAMIC]: Use them.
8493
8494 2011-01-31  Nick Clifton  <nickc@redhat.com>
8495
8496         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8497         registers inside interrupt handlers if the handler is not a leaf
8498         function.
8499
8500 2011-01-31  Nick Clifton  <nickc@redhat.com>
8501
8502         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8503         reg_renumber returning an INVALID_REGNUM.
8504
8505 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8506
8507         PR libgcj/44341
8508         * doc/install.texi: Document host options discarded when cross
8509         configuring target libraries.
8510
8511 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8512
8513         Reverted:
8514         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8515         PR debug/45136
8516         PR debug/45130
8517         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8518         debug insns.
8519         (no_real_insns_p, schedule_block, set_priorities): Drop special
8520         treatment of boundary debug insns.
8521         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8522         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8523         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8524         (BOUNDARY_DEBUG_INSN_P): Likewise.
8525         (SCHEDULE_DEBUG_INSN_P): Likewise.
8526         * sched-rgn.c (init_ready_list): Drop special treatment of
8527         boundary debug insns.
8528         * final.c (rest_of_clean-state): Clear notes' BB.
8529
8530 2011-01-31  Alan Modra  <amodra@gmail.com>
8531
8532         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8533         toc relative expressions as we do in print_operand_address.
8534
8535 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8536
8537         * doc/extend.texi: Follow spelling conventions.
8538         * doc/invoke.texi: Fix a typo.
8539
8540 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8541
8542         * config/hpux11.opt: New.
8543         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8544         ia64*-*-hpux*): Use hpux11.opt.
8545
8546 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8547
8548         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8549         to tmake_file.
8550
8551 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8552
8553         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8554         support sites.
8555
8556 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8557
8558         * doc/install.texi (Binaries): Remove outdated reference for
8559         Motorola 68HC11/68HC12 downloads.
8560
8561 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8562
8563         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8564         Drepper's paper.
8565
8566 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8567
8568         PR bootstrap/47147
8569         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8570         used by NetBSD.
8571
8572 2011-01-28  Ahmad Sharif  <asharif@google.com>
8573
8574         * value-prof.c (check_counter): Corrected error message.
8575
8576 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8577
8578         * config/arm/arm.c (arm_legitimize_reload_address): New.
8579         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8580         arm_legitimize_reload_address.
8581         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8582
8583 2011-01-28  Ian Lance Taylor  <iant@google.com>
8584
8585         * godump.c (go_define): Ignore macros whose definitions include
8586         two adjacent operands.
8587
8588 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8589
8590         PR target/42894
8591         * varasm.c (force_const_mem): Store copy of x in desc->constant
8592         instead of x itself.
8593         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8594         itself into REG_EQUAL note.
8595
8596 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8597
8598         * config/freebsd.opt (posix, rdynamic): New Driver options.
8599
8600 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8601
8602         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8603         -Bstatic/-Bdynamic.
8604         * configure: Regenerate.
8605
8606 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8607
8608         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8609         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8610
8611 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8612
8613         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8614         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8615         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8616         (s390_preferred_reload_class): Make static. Change return and
8617         'rclass' argument type to reg_class_t.
8618
8619 2011-01-27  Jan Hubicka  <jh@suse.cz>
8620
8621         PR middle-end/46949
8622         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8623         (process_function_and_variable_attributes): Check defined weakrefs.
8624
8625 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8626
8627         PR tree-optimization/47228
8628         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8629         build_ref_for_offset.
8630
8631 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8632
8633         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8634
8635 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8636
8637         PR rtl-optimization/46856
8638         * postreload.c (reload_combine_recognize_const_pattern): Do not
8639         separate cc0 setter and user on cc0 targets.
8640
8641 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8642
8643         PR c/43082
8644         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8645         passed a VOID_TYPE expression, immediately emit an error and
8646         return error_mark_node.
8647
8648 2011-01-26  Jeff Law  <law@redhat.com>
8649
8650         PR rtl-optimization/47464
8651         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8652         rather than may_trap_p as needed.
8653
8654 2011-01-26  DJ Delorie  <dj@redhat.com>
8655
8656         PR rtl-optimization/46878
8657         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8658         setter/user dependency as well.
8659
8660 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8661
8662         PR rtl-optimization/44469
8663         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8664         after removing trivially dead basic blocks.
8665
8666 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8667
8668         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8669         * config/frv/frv.h (LINK_SPEC): Likewise.
8670         * config/i386/netware.h (LINK_SPEC): Likewise.
8671         * config/m68k/linux.h (ASM_SPEC): Likewise.
8672         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8673         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8674         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8675         * config/sparc/linux.h (ASM_SPEC): Likewise.
8676         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8677         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8678
8679 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8680
8681         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8682         * config/frv/frv.h (ASM_SPEC): Likewise.
8683         * config/m68k/linux.h (ASM_SPEC): Likewise.
8684         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8685         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8686         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8687         * config/sparc/linux.h (ASM_SPEC): Likewise.
8688         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8689         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8690
8691 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8692
8693         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8694         * config/frv/frv.h (LINK_SPEC): Likewise.
8695         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8696
8697 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8698
8699         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8700         * config/frv/frv.h (ASM_SPEC): Likewise.
8701         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8702         * config/m68k/linux.h (ASM_SPEC): Likewise.
8703         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8704         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8705         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8706         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8707         * config/sparc/linux.h (ASM_SPEC): Likewise.
8708         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8709         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8710         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8711
8712 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8713
8714         PR target/46997
8715         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8716         (*mux2): Ditto.
8717         (vec_extract_evenodd_help): Ditto.
8718         (vec_extract_evenv4hi): Ditto.
8719         (vec_extract_oddv4hi): Ditto.
8720         (vec_interleave_lowv2si): Ditto.
8721         (vec_interleave_highv2si): Ditto.
8722         (vec_extract_evenv2si): Ditto.
8723         (vec_extract_oddv2si: Ditto.
8724         (vec_pack_trunc_v2si): Ditto.
8725
8726 2011-01-22  Jan Hubicka  <jh@suse.cz>
8727
8728         PR target/47237
8729         * cgraph.h (cgraph_local_info): New field can_change_signature.
8730         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8731         signature can change.
8732         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8733         can change.
8734         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8735         (cgraph_function_versioning): We can not change signature of functions
8736         that don't allow that.
8737         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8738         (lto_input_node): Likewise.
8739         * ipa-inline.c (compute_inline_parameters): Compute
8740         local.can_change_signature.
8741         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8742         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8743         functions that can not change signature.
8744         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8745         init_cumulative_args): Do not use local calling conventions
8746         for functions that can not change signature.
8747
8748 2011-01-22  Jan Hubicka  <jh@suse.cz>
8749
8750         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8751
8752 2011-01-26  Richard Guenther  <rguenther@suse.de>
8753
8754         PR tree-optimization/47190
8755         * cgraphunit.c (process_common_attributes): New function.
8756         (process_function_and_variable_attributes): Use it.
8757
8758 2011-01-26  Richard Guenther  <rguenther@suse.de>
8759
8760         PR lto/47423
8761         * cgraphbuild.c (record_eh_tables): Record reference to personality
8762         function.
8763
8764 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8765
8766         PR debug/45454
8767         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8768         non-debug insns from moving up.
8769
8770 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8771
8772         PR target/40125
8773         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8774         t-dlldir{,-x} fragment for build and add it to tmake_file.
8775         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8776         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8777         * config/i386/t-dlldir: New file.
8778         (SHLIB_DLLDIR): Define.
8779         * config/i386/t-dlldir-x: New file.
8780         (SHLIB_DLLDIR): Define.
8781         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8782         (SHLIB_INSTALL): Use it.
8783
8784 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8785
8786         PR target/47246
8787         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8788         lower bound of the allowed Thumb-2 coprocessor load/store
8789         index range to -256. Add explaining comment.
8790
8791 2011-01-25  Ian Lance Taylor  <iant@google.com>
8792
8793         * godump.c (go_define): Improve lexing of macro expansion to only
8794         accept expressions which match Go spec.
8795
8796 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8797
8798         PR c++/43601
8799         * tree.c (handle_dll_attribute): Handle it.
8800         * doc/extend.texi (@item dllexport): Mention it.
8801         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8802
8803 2011-01-25  Ian Lance Taylor  <iant@google.com>
8804
8805         PR tree-optimization/26854
8806         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8807         (decl_jump_unsafe): Move higher in file, with no other change.
8808         (bind): Set has_jump_unsafe_decl if appropriate.
8809         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8810         (check_earlier_gotos): Likewise.
8811         (c_check_switch_jump_warnings): Likewise.
8812
8813 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8814
8815         * doc/invoke.texi (Warning Options): Add missing hyphen.
8816         (-fprofile-dir): Minor grammatical fixes.
8817         (-fbranch-probabilities): Likewise.
8818
8819 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8820
8821         PR debug/45136
8822         PR debug/45130
8823         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8824         debug insns.
8825         (no_real_insns_p, schedule_block, set_priorities): Drop special
8826         treatment of boundary debug insns.
8827         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8828         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8829         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8830         (BOUNDARY_DEBUG_INSN_P): Likewise.
8831         (SCHEDULE_DEBUG_INSN_P): Likewise.
8832         * sched-rgn.c (init_ready_list): Drop special treatment of
8833         boundary debug insns.
8834         * final.c (rest_of_clean-state): Clear notes' BB.
8835
8836 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8837
8838         * Makefile.in (LAMBDA_H): Removed.
8839         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8840         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8841         lambda-trans.o, and tree-loop-linear.o.
8842         (lto-symtab.o): Remove dependence on LAMBDA_H.
8843         (tree-loop-linear.o): Remove rule.
8844         (lambda-mat.o): Same.
8845         (lambda-trans.o): Same.
8846         (lambda-code.o): Same.
8847         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8848         (tree-vect-slp.o): Same.
8849         * hwint.h (gcd): Moved here.
8850         (least_common_multiple): Same.
8851         * lambda-code.c: Removed.
8852         * lambda-mat.c: Removed.
8853         * lambda-trans.c: Removed.
8854         * lambda.h: Removed.
8855         * tree-loop-linear.c: Removed.
8856         * lto-symtab.c: Do not include lambda.h.
8857         * omega.c (gcd): Removed.
8858         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8859         * tree-data-ref.c (print_lambda_vector): Moved here.
8860         (lambda_vector_copy): Same.
8861         (lambda_matrix_copy): Same.
8862         (lambda_matrix_id): Same.
8863         (lambda_vector_first_nz): Same.
8864         (lambda_matrix_row_add): Same.
8865         (lambda_matrix_row_exchange): Same.
8866         (lambda_vector_mult_const): Same.
8867         (lambda_vector_negate): Same.
8868         (lambda_matrix_row_negate): Same.
8869         (lambda_vector_equal): Same.
8870         (lambda_matrix_right_hermite): Same.
8871         * tree-data-ref.h: Do not include lambda.h.
8872         (lambda_vector): Moved here.
8873         (lambda_matrix): Same.
8874         (dependence_level): Same.
8875         (lambda_transform_legal_p): Removed declaration.
8876         (lambda_collect_parameters): Same.
8877         (lambda_compute_access_matrices): Same.
8878         (lambda_vector_gcd): Same.
8879         (lambda_vector_new): Same.
8880         (lambda_vector_clear): Same.
8881         (lambda_vector_lexico_pos): Same.
8882         (lambda_vector_zerop): Same.
8883         (lambda_matrix_new): Same.
8884         * tree-flow.h (least_common_multiple): Removed declaration.
8885         * tree-parloops.c (lambda_trans_matrix): Moved here.
8886         (LTM_MATRIX): Same.
8887         (LTM_ROWSIZE): Same.
8888         (LTM_COLSIZE): Same.
8889         (LTM_DENOMINATOR): Same.
8890         (lambda_trans_matrix_new): Same.
8891         (lambda_matrix_vector_mult): Same.
8892         (lambda_transform_legal_p): Same.
8893         * tree-pass.h (pass_linear_transform): Removed declaration.
8894         * tree-ssa-loop.c (tree_linear_transform): Removed.
8895         (gate_tree_linear_transform): Removed.
8896         (pass_linear_transform): Removed.
8897         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8898         flag_loop_interchange.
8899
8900 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8901
8902         PR tree-optimization/47265
8903         PR tree-optimization/47443
8904         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8905         if name still has some uses.
8906
8907 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8908
8909         PR tree-optimization/47382
8910         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8911         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8912
8913 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8914
8915         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8916         sjlj_except_unwind_info.
8917
8918 2011-01-25  Richard Guenther  <rguenther@suse.de>
8919
8920         PR tree-optimization/47426
8921         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8922         visible functions results escape.
8923
8924 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8925
8926         PR target/45701
8927         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8928         (arm_get_frame_offsets): Use it.
8929
8930 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8931             Jakub Jelinek  <jakub@redhat.com>
8932
8933         PR tree-optimization/47271
8934         * tree-if-conv.c (bb_postdominates_preds): New.
8935         (if_convertible_bb_p): Call bb_postdominates_preds.
8936         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8937         (predicate_scalar_phi): Call bb_postdominates_preds.
8938
8939 2011-01-25  Nick Clifton  <nickc@redhat.com>
8940
8941         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8942         * config/rx/rx.c (rx_function_value): Likewise.
8943         (rx_promote_function_mode): Likewise.
8944         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8945         in order to make it legitimate.
8946         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8947         make sure that the first operand is the same as the result register.
8948         (addsi3_unspec): Delete.
8949         (subdi3): Do not accept immediate operands.
8950         (subdi3_internal): Likewise.
8951
8952 2011-01-25  Jeff Law  <law@redhat.com>
8953
8954         PR rtl-optimization/37273
8955         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8956         handle them like argument loads from stack slots.  Do not double
8957         count memory for memory constants and argument loads from stack slots.
8958
8959 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8960
8961         PR tree-optimization/47427
8962         PR tree-optimization/47428
8963         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8964         coalesce if the new root var would be TREE_READONLY.
8965
8966 2011-01-25  Richard Guenther  <rguenther@suse.de>
8967
8968         PR middle-end/47414
8969         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8970         correct type for TBAA.
8971
8972 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8973
8974         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8975         (close_phi_written_to_memory): Call for_each_index with
8976         dr_indices_valid_in_loop.
8977
8978 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8979
8980         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8981         when it is initialized.
8982
8983 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8984
8985         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8986         call to graphite_find_data_references_in_stmt.
8987         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8988         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8989         call to graphite_find_data_references_in_stmt.
8990         (analyze_drs_in_stmts): Same.
8991         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8992         in which the scalar analysis of indices is performed.
8993         (create_data_ref): Same.  Update call to dr_analyze_indices.
8994         (find_data_references_in_stmt): Update call to create_data_ref.
8995         (graphite_find_data_references_in_stmt): Same.
8996         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8997         declaration.
8998         (create_data_ref): Same.
8999         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9000         call to create_data_ref.
9001
9002 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9003
9004         * graphite-sese-to-poly.c (build_poly_scop): Move
9005         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9006
9007 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9008
9009         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9010         VAR_DECL, PARM_DECL, and RESULT_DECL.
9011
9012 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9013
9014         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9015         in a reduction PBB.
9016         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9017         that have already been marked as PBB_IS_REDUCTION.
9018
9019 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9020
9021         * graphite-scop-detection.c (same_close_phi_node): New.
9022         (remove_duplicate_close_phi): New.
9023         (make_close_phi_nodes_unique): New.
9024         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9025
9026 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9027
9028         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9029         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9030         of both data references to be the same.
9031
9032 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9033
9034         * graphite-dependences.c (build_lexicographical_constraint): Remove
9035         the gdim parameter.
9036         (build_lexicographical_constraint): Adjust call to
9037         ppl_powerset_is_empty.
9038         (dependence_polyhedron): Same.
9039         (graphite_legal_transform_dr): Same.
9040         (graphite_carried_dependence_level_k): Same.
9041         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9042         parameter.
9043         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9044
9045 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9046
9047         * graphite-sese-to-poly.c
9048         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9049         (close_phi_written_to_memory): New.
9050         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9051         and unshare_expr.
9052
9053 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9054
9055         * doc/install.texi: Update the expected version number of PPL to 0.11.
9056         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9057         #if PPL_VERSION_MINOR < 11.
9058
9059 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9060
9061         * graphite-dependences.c: Include graphite-cloog-util.h.
9062         (new_poly_ddr): Inlined into dependence_polyhedron.
9063         (free_poly_ddr): Moved close by new_poly_ddr.
9064         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9065         Early return NULL when ppl_powerset_is_empty returns true.
9066         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9067         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9068         (graphite_legal_transform_dr): Call new_poly_ddr.
9069         (graphite_carried_dependence_level_k): Same.
9070         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9071         (dot_transformed_deps_stmt_1): Removed.
9072         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9073         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9074         (dot_deps_1): Call dot_deps_2.
9075         * Makefile.in (graphite-dependences.o): Add missing dependence on
9076         graphite-cloog-util.h.
9077
9078 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9079
9080         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9081         (build_lexicographical_constraint): Same.
9082         (dependence_polyhedron_1): Same.
9083         (graphite_legal_transform_dr): Same.
9084         (graphite_carried_dependence_level_k): Same.
9085         * graphite-ppl.c (ppl_powerset_is_empty): New.
9086         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9087         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9088
9089 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9090
9091         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9092         the "a followed by b" relation and document it.
9093
9094 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9095
9096         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9097         iteration when the bag of constraints is empty.
9098
9099 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9100
9101         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9102
9103 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9104
9105         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9106         nest and two loop depths as parameters.
9107         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9108         lst_perfect_nestify.
9109
9110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9111
9112         * graphite-dependences.c (print_pddr): Call
9113         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9114
9115 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9116
9117         * graphite-ppl.c (debug_gmp_value): New.
9118         * graphite-ppl.h (debug_gmp_value): Declared.
9119
9120 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9121
9122         * doc/install.texi: Document availability of cloog-0.16.
9123
9124 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9125
9126         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9127         invalid postdominance info.
9128
9129 2011-01-24  Jan Hubicka  <jh@suse.cz>
9130
9131         PR c/21659
9132         * doc/extend.texi (weak pragma): Drop claim that it must
9133         appear before definition.
9134         * varasm.c (merge_weak, declare_weak): Only sanity check
9135         that DECL is not output at a time it is declared weak.
9136
9137 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9138
9139         * machmode.def: Fixed comments.
9140
9141 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9142
9143         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9144
9145 2011-01-24  Paul Koning  <ni1d@arrl.net>
9146
9147         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9148         WORDS_BIG_ENDIAN.
9149
9150 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9151
9152         PR target/46519
9153         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9154         (block_info): Add scanned and prev.
9155         (move_or_delete_vzeroupper_2): Return if the basic block
9156         has been scanned and the upper 128bit state is unchanged
9157         from the last scan.
9158         (move_or_delete_vzeroupper_1): Return true if the exit
9159         state is changed.
9160         (move_or_delete_vzeroupper): Visit basic blocks using the
9161         work-list based algorithm based on vt_find_locations in
9162         var-tracking.c.
9163
9164         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9165
9166 2011-01-24  Nick Clifton  <nickc@redhat.com>
9167
9168         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9169         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9170         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9171         then define __v850e1__.
9172         * doc/invoke.texi: Document -mv850es.
9173
9174 2011-01-24  Richard Henderson  <rth@redhat.com>
9175
9176         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9177         compound unordered comparisons.
9178         * config/rx/rx.c (rx_split_fp_compare): Remove.
9179         * config/rx/rx-protos.h: Update.
9180         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9181         (cbranchsf4): Don't call rx_split_fp_compare.
9182         (*cbranchsf4): Use rx_split_cbranch.
9183         (*cmpsf): Don't accept "i" constraint.
9184         (*conditional_branch): Only valid after reload.
9185         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9186
9187 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9188
9189         PR target/47385
9190         * config/rs6000/altivec.md (vector constant splitters): Add
9191         support for creating vector single precision constants if -mvsx is
9192         used and we would create the constant using Altivec primitives.
9193
9194 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9195             Richard Sandiford  <rdsandiford@googlemail.com>
9196
9197         PR rtl-optimization/47166
9198         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9199         mechanism for PRE_MODIFY and POST_MODIFY.
9200         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9201         reloadreg.
9202
9203 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9204
9205         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9206
9207 2011-01-22  Jan Hubicka  <jh@suse.cz>
9208
9209         PR lto/47333
9210         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9211
9212 2011-01-22  Jan Hubicka  <jh@suse.cz>
9213
9214         PR tree-optimization/43884
9215         PR lto/44334
9216         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9217         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9218
9219 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9220
9221         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9222         * config/s390/s390.c (s390_register_move_cost,
9223         s390_memory_move_cost): New.
9224         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9225
9226 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9227
9228         PR middle-end/47401
9229         * except.c (sjlj_assign_call_site_values): Move setting the
9230         crtl->uses_eh_lsda flag to ...
9231         (sjlj_mark_call_sites): ... here.
9232         (sjlj_emit_function_enter): Support NULL dispatch label.
9233         (sjlj_build_landing_pads): In a function with no landing pads
9234         that still has must-not-throw regions, generate code to register
9235         a personality function with empty LSDA.
9236
9237 2011-01-21  Richard Henderson  <rth@redhat.com>
9238
9239         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9240
9241         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9242
9243         * compare-elim.c: New file.
9244         * Makefile.in (OBJS-common): Add it.
9245         (compare-elim.o): New.
9246         * common.opt (fcompare-elim): New.
9247         * opts.c (default_options_table): Add OPT_fcompare_elim.
9248         * tree-pass.h (pass_compare_elim_after_reload): New.
9249         * passes.c (init_optimization_passes): Add it.
9250         * recog.h: Protect against re-inclusion.
9251         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9252         * doc/invoke.texi (-fcompare-elim): Document it.
9253         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9254         * doc/tm.texi: Rebuild.
9255
9256 2011-01-22  Nick Clifton  <nickc@redhat.com>
9257
9258         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9259         rx_split_fp_compare.
9260
9261 2011-01-22  Nick Clifton  <nickc@redhat.com>
9262
9263         * config/rx/rx.md (UNSPEC_CONST): New.
9264         (deallocate_and_return): Wrap the amount popped off the stack in
9265         an UNSPEC_CONST in order to stop it being rejected by
9266         -mmax-constant-size.
9267         (pop_and_return): Add a "(return)" rtx.
9268         (call): Drop the immediate operand.
9269         (call_internal): Likewise.
9270         (call_value): Likewise.
9271         (call_value_internal): Likewise.
9272         (sibcall_internal): Likewise.
9273         (sibcall_value_internal): Likewise.
9274         (sibcall): Likewise.  Generate an explicit call using
9275         sibcall_internal.
9276         (sibcall_value): Likewise.
9277         (mov<>): FAIL if a constant operand is not legitimate.
9278         (addsi3_unpsec): New pattern.
9279
9280         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9281         (ok_for_max_constant): New function.
9282         (gen_safe_add): New function.
9283         (rx_expand_prologue): Use gen_safe_add.
9284         (rx_expand_epilogue): Likewise.
9285         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9286         UNSPEC CONSTs.
9287
9288 2011-01-21  Jeff Law  <law@redhat.com>
9289
9290         PR tree-optimization/47053
9291         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9292         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9293         statements are deleted.
9294         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9295         is nonempty, then purge dead edges and cleanup the CFG.
9296
9297 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9298
9299         PR debug/47402
9300         Temporarily revert:
9301         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9302         PR debug/47106
9303         * tree-dfa.c (create_var_ann): Mark variable as used.
9304
9305 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9306
9307         PR middle-end/45566
9308         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9309         notes from other section in hot/cold partitioning even if
9310         last_action is -3.  Increment call_site_base.
9311
9312         PR rtl-optimization/47366
9313         * fwprop.c (forward_propagate_into): Return bool.  If
9314         any changes are made, -fnon-call-exceptions is used and
9315         REG_EH_REGION note is present, call purge_dead_edges
9316         and return true if it purged anything.
9317         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9318         any EH edges were purged.
9319
9320 2011-01-21  Jeff Law  <law@redhat.com>
9321
9322         PR rtl-optimization/41619
9323         * caller-save.c (setup_save_areas): Break out code to determine
9324         which hard regs are live across calls by examining the reload chains
9325         so that it is always used.
9326         Eliminate code which checked REG_N_CALLS_CROSSED.
9327
9328 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9329
9330         PR tree-optimization/47355
9331         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9332         NOP has non-debug uses beyond PHIs in new_bb.
9333
9334 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9335
9336         PR debug/47106
9337         * cfgexpand.c (account_used_vars_for_block): Only account vars
9338         that are annotated as used.
9339         (estimated_stack_frame_size): Don't set TREE_USED.
9340         * tree-dfa.c (create_var_ann): Mark variable as used.
9341
9342 2011-01-21  Richard Guenther  <rguenther@suse.de>
9343
9344         PR middle-end/47395
9345         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9346
9347 2011-01-21  Richard Guenther  <rguenther@suse.de>
9348
9349         PR tree-optimization/47365
9350         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9351         (vn_reference_lookup_pieces): Adjust.
9352         (vn_reference_lookup): Likewise.
9353         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9354         (vn_reference_lookup_3): Only look through kills if in
9355         VN_WALKREWRITE mode.
9356         (vn_reference_lookup_pieces): Adjust.
9357         (vn_reference_lookup): Likewise.
9358         (visit_reference_op_load): Likewise.
9359         (visit_reference_op_store): Likewise.
9360         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9361         (compute_avail): Likewise.
9362         (eliminate): Likewise.
9363
9364 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9365
9366         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9367         DECL_IGNORED_P non-reg vars if they are used.
9368
9369         PR tree-optimization/47391
9370         * varpool.c (const_value_known_p): Return false if
9371         decl is volatile.
9372
9373 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9374
9375         PR bootstrap/47215
9376         * config/i386/i386.c (ix86_local_alignment): Handle
9377         case for va_list_type_node is nil.
9378         (ix86_canonical_va_list_type): Likewise.
9379
9380 2011-01-21  Alan Modra  <amodra@gmail.com>
9381
9382         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9383         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9384
9385 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9386
9387         * config/arm/arm.md (define_attr type): Rename f_load
9388         and f_store to f_fpa_load and f_fpa_store. Update.
9389         (write_conflict): Deal with rename fallout.
9390         (*push_fp_multi): Likewise.
9391         * config/arm/fpa.md (f_load): Use f_fpa_load.
9392         (f_store): Use f_fpa_store.
9393         (*movsf_fpa): Likewise.
9394         (*movdf_fpa): Likewise.
9395         (*movxf_fpa): Likewise.
9396         (*thumb2_movsf_fpa): Likewise.
9397         (*thumb2_movdf_fpa): Likewise.
9398         (*thumb2_movxf_fpa): Likewise.
9399         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9400         f_loadd and f_stored.
9401         (*thumb2_movdi_vfp): Likewise.
9402         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9403         (*thumb2_movsi_vfp): Likewise.
9404         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9405         Use f_loads instead of f_load.
9406         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9407
9408 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9409
9410         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9411         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9412         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9413         (xtensa_mode_dependent_address_p): New function.
9414         (constantpool_address_p): Make static. Change return type to bool.
9415         Change argument type to const_rtx. Use CONST_INT_P predicate.
9416
9417 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9418
9419         PR debug/46583
9420         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9421
9422 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9423
9424         PR debug/47283
9425         * cfgexpand.c (expand_debug_expr): Instead of generating
9426         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9427         etc. handling.
9428
9429 2011-01-20  Richard Guenther  <rguenther@suse.de>
9430
9431         PR middle-end/47370
9432         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9433         the pointer operand of MEM_REFs.
9434
9435 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9436
9437         PR tree-optimization/46130
9438         * ipa-split.c (consider_split): If return_bb contains non-virtual
9439         PHIs other than for retval or if split_function would not adjust it,
9440         refuse to split.
9441
9442 2011-01-20  Richard Guenther  <rguenther@suse.de>
9443
9444         PR tree-optimization/47167
9445         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9446         Revert previous change, only avoid enumeral type changes.
9447
9448 2011-01-19  Mike Stump  <mikestump@comcast.net>
9449
9450         * doc/tm.texi.in (BRANCH_COST): Englishify.
9451         * doc/tm.texi (BRANCH_COST): Likewise.
9452
9453 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9454
9455         PR c++/47291
9456         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9457         (gen_scheduled_generic_parms_dies): New functions.
9458         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9459         generation for the end of CU compilation.
9460         (dwarf2out_finish): Generate template parameters DIEs here.
9461
9462 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9463
9464         PR debug/46240
9465         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9466         debug bind stmt on merge edges.
9467
9468 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9469
9470         PR debug/47079
9471         PR debug/46724
9472         * function.c (instantiate_expr): Instantiate incoming rtl of
9473         implicit arguments, and recurse on VALUE_EXPRs.
9474         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9475         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9476
9477 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9478
9479         * c-parser.c (c_parser_for_statement): Initialize
9480         collection_expression.
9481
9482 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9483
9484         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9485
9486 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9487
9488         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9489         (LINK_SHLIB_SPEC): Don't use %(link_path).
9490         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9491
9492 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9493
9494         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9495         (NO_SHARED_LIB_SUPPORT): Remove.
9496         (LINK_SHLIB_SPEC): Remove one conditional definition.
9497
9498 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9499
9500         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9501         %{call_shared}.
9502         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9503         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9504         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9505         %{call_shared} and conditionals on these options not being passed.
9506         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9507         %{call_shared}.
9508
9509 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9510
9511         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9512         simplify.
9513
9514         * ipa-split.c: Spelling fixes.
9515
9516 2011-01-19  Richard Henderson  <rth@redhat.com>
9517
9518         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9519         (*mulsi3): Likewise.
9520
9521         * longlong.h [__mn10300__] (count_leading_zeros): New.
9522         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9523         [__mn10300__] (add_ssaaaa, subddmmss): New.
9524         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9525         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9526
9527 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9528
9529         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9530
9531 2011-01-19  Richard Henderson  <rth@redhat.com>
9532
9533         * config/mn10300/mn10300.md (addsi3_flags): New.
9534         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9535         (subsi3_flags, subc_internal, subdi3): New.
9536         (subdi3_internal, *subdi3_degenerate): New.
9537         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9538
9539         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9540         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9541         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9542         * config/mn10300/mn10300-protos.h: Update.
9543         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9544         (return_ret): Likewise.  Rename from return_internal_regs.
9545         (return_internal): Remove.
9546
9547         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9548         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9549         (mn10300_legitimate_constant_p): Likewise.
9550         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9551         (mn10300_frame_size): New.
9552         (mn10300_expand_prologue): Use it.
9553         (mn10300_expand_epilogue): Likewise.
9554         (mn10300_initial_offset): Likewise.
9555         * config/mn10300/mn10300-protos.h: Update.
9556         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9557         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9558         (prologue, epilogue, return_internal): Tidy output code.
9559         (mn10300_store_multiple_operation, return): Likewise.
9560         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9561         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9562         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9563         (load_pic, am33_load_pic): New.
9564         (mn10300_load_pic0, mn10300_load_pic1): New.
9565
9566         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9567         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9568         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9569         (cc_flags_for_mode, cc_flags_for_code): New.
9570         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9571         overflow flag is not valid.  Validate that the flags we need
9572         for the comparison are valid.
9573         (mn10300_output_cmp): Remove.
9574         (mn10300_output_add): New.
9575         (mn10300_select_cc_mode): Use cc_flags_for_code.
9576         (mn10300_split_cbranch): New.
9577         (mn10300_match_ccmode): New.
9578         (mn10300_split_and_operand_count): New.
9579         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9580         to the function.
9581         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9582         (addsi3): ... here.  Use mn10300_output_add.
9583         (*addsi3_flags): New.
9584         (*am33_subsi3, *mn10300_subsi3): Merge...
9585         (subsi3): ... here.  Use attribute isa.
9586         (*subsi3_flags): New.
9587         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9588         when possible.
9589         (*am33_andsi3, *mn10300_andsi3): Merge...
9590         (andsi3): ... here.
9591         (*andsi3_flags): New.
9592         (andsi3 splitters): New.
9593         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9594         (iorsi3): ... here.
9595         (*iorsi3_flags): New.
9596         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9597         (xorsi3): ... here.
9598         (*xorsi3_flags): New.
9599         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9600         (one_cmplsi2): ... here.
9601         (*one_cmplsi2_flags): New.
9602         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9603         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9604         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9605         use matching constraints to eliminate a self-comparison.
9606         (*integer_conditional_branch): Rename from integer_conditional_branch.
9607         Use int_mode_flags to match CC_REG.
9608         (*cbranchsi4_btst, *btstsi): New.
9609         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9610         mn10300_split_cbranch.
9611         (*am33_cmpsf): Rename from am33_cmpsf.
9612         (*float_conditional_branch): Rename from float_conditional_branch.
9613         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9614         (zero_extendqisi2): ... here.
9615         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9616         (zero_extendhisi2): ... here.
9617         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9618         (extendqisi2): ... here.
9619         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9620         (extendhisi2): ... here.
9621         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9622         (ashlsi3): ... here.
9623         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9624         (lshrsi3): ... here.
9625         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9626         (ashrsi3): ... here.
9627         (consecutive add peephole): Remove.
9628         * config/mn10300/predicates.md (label_ref_operand): New.
9629         (int_mode_flags): New.
9630         (CCZN_comparison_operator): New.
9631
9632         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9633         (throughput_42_latency_43): New reservation.
9634         (mulsidi3, umulsidi3): New expanders.
9635         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9636         the MDR register to allocation; separately allocate the low and
9637         high parts of the DImode result.
9638         (umulsidi3_internal): Similarly.
9639         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9640         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9641         (udivsi3, umodsi3): Remove.
9642         (udivmodsi4, divmodsi4): New expanders.
9643         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9644         (*divmodsi4): Simiarly.
9645         (ext_internal): New.
9646
9647         * config/mn10300/constraints.md ("z"): New constraint.
9648         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9649         (FIXED_REGISTERS): Don't fix MDR.
9650         (CALL_USED_REGSITERS): Reformat nicely.
9651         (REG_ALLOC_ORDER): Add MDR.
9652         (enum regclass): Add MDR_REGS.
9653         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9654         (IRA_COVER_CLASSES): Add MDR_REGS.
9655         (REGNO_REG_CLASS): Handle MDR_REG.
9656         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9657         (mn10300_register_move_cost): Likewise.
9658         * config/mn10300/mn10300.md (MDR_REG): New.
9659         (*movsi_internal): Handle moves to/from MDR_REGS.
9660
9661         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9662         POST_MODIFY.
9663         (mn10300_secondary_reload): Tidy combination reload classes.
9664         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9665         addresses for AM33.  Allow symbolic offsets for reg+imm.
9666         (mn10300_regno_in_class_p): New.
9667         (mn10300_legitimize_reload_address): New.
9668         * config/mn10300/mn10300.h (enum reg_class): Remove
9669         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9670         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9671         SP_OR_GENERAL_REGS.
9672         (REG_CLASS_NAMES): Update to match.
9673         (REG_CLASS_CONTENTS): Likewise.
9674         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9675         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9676         (REGNO_IN_RANGE_P): Remove.
9677         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9678         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9679         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9680         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9681         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9682         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9683         (REGNO_GENERAL_P): New.
9684         (HAVE_POST_MODIFY_DISP): New.
9685         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9686         (LEGITIMIZE_RELOAD_ADDRESS): New.
9687         * config/mn10300/mn10300-protos.h: Update.
9688
9689         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9690         DATA_REGS for AM33 stack-pointer destination.
9691         (mn10300_preferred_output_reload_class): Likewise.
9692         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9693         into a form appropriate for ...
9694         (TARGET_SECONDARY_RELOAD): New.
9695         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9696         * config/mn10300/mn10300-protos.h: Update.
9697         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9698         reload_insi; use the "A" constraint for the scratch; handle AM33
9699         moves of sp to non-address registers.
9700
9701         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9702         (*movqi_internal): ... here.
9703         (*am33_movhi, *mn10300_movhi): Merge into...
9704         (*movhi_internal): ... here.
9705         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9706         as the source/destination of moves from/to SP.
9707         (movsf): Only allow for AM33-2.
9708         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9709         any integer constant constraint.  Only allow for AM33-2.  Tidy
9710         all of the alternative outputs.
9711         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9712         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9713         for MN103.
9714         (udivsi3, umodsi3): New patterns for MN103 only.
9715
9716 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9717
9718         * doc/tm.texi.in: Spell out that a lack of register class unions
9719         can lead to ICEs.
9720         * doc/tm.texi: Regenerate.
9721
9722 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9723
9724         PR rtl-optimization/47337
9725         * dce.c (check_argument_store): New function.
9726         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9727
9728         PR tree-optimization/47290
9729         * tree-eh.c (infinite_empty_loop_p): New function.
9730         (cleanup_empty_eh): Use it.
9731
9732 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9733
9734         PR target/46997
9735         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9736         (a64_expand_widen_sum): Ditto.
9737         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9738         (vec_extract_evenodd_help): Ditto.
9739         (vec_extract_evenv4hi): Ditto.
9740         (vec_extract_oddv4hi): Ditto.
9741         (vec_extract_evenv2si): Ditto.
9742         (vec_extract_oddv2si): Ditto.
9743         (vec_extract_evenv2sf): Ditto.
9744         (vec_extract_oddv2sf): Ditto.
9745         (vec_pack_trunc_v4hi: Ditto.
9746         (vec_pack_trunc_v2si): Ditto.
9747         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9748         (vec_interleave_highv8qi): Ditto.
9749         (mix1_r): Ditto.
9750         (vec_extract_oddv8qi): Ditto.
9751         (vec_interleave_lowv4hi): Ditto.
9752         (vec_interleave_highv4hi): Ditto.
9753         (vec_interleave_lowv2si): Ditto.
9754         (vec_interleave_highv2si): Ditto.
9755
9756 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9757
9758         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9759         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9760         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9761         (pa_c_mode_for_suffix): New.
9762         (TARGET_EXPAND_BUILTIN): Define.
9763         (TARGET_C_MODE_FOR_SUFFIX): Define.
9764         (pa_builtins): Define.
9765         (pa_init_builtins): Register __float128 type and init new support
9766         builtins.
9767         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9768         * config/pa/quadlib.c (_U_Qfcopysign): New.
9769
9770 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9771
9772         PR middle-end/46894
9773         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9774         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9775         are defined.
9776
9777 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9778
9779         PR tree-optimization/47179
9780         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9781         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9782
9783 2011-01-18  Richard Guenther  <rguenther@suse.de>
9784
9785         PR rtl-optimization/47216
9786         * emit-rtl.c: Include tree-flow.h.
9787         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9788         of replicating it with different semantics.
9789         * Makefile.in (emit-rtl.o): Adjust.
9790
9791 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9792
9793         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9794         (cortex_a9_dp): Handle neon types correctly.
9795
9796 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9797
9798         PR rtl-optimization/47299
9799         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9800         subtarget.  Use normal multiplication if both operands are constants.
9801         * expmed.c (expand_widening_mult): Don't try to optimize constant
9802         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9803         before using it.
9804
9805 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9806
9807         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9808         spacing after 'e.g.', typos, comma, hyphenation.
9809
9810 2011-01-17  Richard Henderson  <rth@redhat.com>
9811
9812         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9813         (rx_restricted_mem_operand): New.
9814         (rx_shift_operand): Use register_operand.
9815         (rx_source_operand, rx_compare_operand): Likewise.
9816         * config/rx/rx.md (addsi3_flags): New expander.
9817         (adddi3): Rewrite as expander.
9818         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9819         (subsi3_flags): New expander.
9820         (subdi3): Rewrite as expander.
9821         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9822
9823         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9824         (rx_init_builtins): Remove sat builtin.
9825         (rx_expand_builtin): Likewise.
9826         * config/rx/rx.md (ssaddsi3): New.
9827         (*sat): Rename from sat.  Represent the CC_REG input.
9828
9829         * config/rx/predicates.md (rshift_operator): New.
9830         * config/rx/rx.c (rx_expand_insv): Remove.
9831         * config/rx/rx-protos.h: Update.
9832         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9833         operand to the canonical position.
9834         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9835         (*bitclr, *bitclr_in_memory): Similarly.
9836         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9837         (insv): Retain the zero_extract in the expansion.
9838
9839         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9840         (bswaphi2, bitinvert, revw): Likewise.
9841
9842         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9843         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9844         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9845         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9846         (bitset, bitset_in_memory): Likewise.
9847         (bitinvert, bitinvert_in_memory): Likewise.
9848         (bitclr, bitclr_in_memory): Likewise.
9849         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9850         (rx_strend, rx_cmpstrn): Likewise.
9851         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9852         (bitop peep2 patterns): Remove.
9853
9854         * config/rx/rx.c (rx_match_ccmode): New.
9855         * config/rx/rx-protos.h: Update.
9856         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9857         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9858         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9859         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9860         (fix_truncsfsi2, floatsisf2): Likewise.
9861         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9862         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9863         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9864         (*subsi3_flags, *xorsi3_flags): New.
9865
9866         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9867
9868         * config/rx/rx.c (rx_print_operand): Remove workaround for
9869         unsplit comparison operations.
9870
9871         * config/rx/rx.md (movsicc): Split after reload.
9872         (*movsicc): Merge *movsieq and *movsine via match_operator.
9873         (*stcc): New pattern.
9874
9875         * config/rx/rx.c (rx_float_compare_mode): Remove.
9876         * config/rx/rx.h (rx_float_compare_mode): Remove.
9877         * config/rx/rx.md (cstoresi4): Split after reload.
9878         (*sccc): New pattern.
9879
9880         * config/rx/predicates.md (label_ref_operand): New.
9881         (rx_z_comparison_operator): New.
9882         (rx_zs_comparison_operator): New.
9883         (rx_fp_comparison_operator): New.
9884         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9885         Validate that the flags are set properly for the comparison.
9886         (rx_gen_cond_branch_template): Remove.
9887         (rx_cc_modes_compatible): Remove.
9888         (mode_from_flags): New.
9889         (flags_from_code): Rename from flags_needed_for_conditional.
9890         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9891         (rx_select_cc_mode): Likewise.
9892         (rx_split_fp_compare): New.
9893         (rx_split_cbranch): New.
9894         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9895         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9896         (*cbranchsf4): Similarly.
9897         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9898         match_operator and rx_split_cbranch.
9899         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9900         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9901         (*cmpsi): Rename from cmpsi.
9902         (*tstsi): Rename from tstsi.
9903         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9904         (*conditional_branch): Rename from conditional_branch.
9905         (*reveresed_conditional_branch): Remove.
9906         (b<code>): Remove expander.
9907         * config/rx/rx-protos.h: Update.
9908
9909         * config/rx/rx.c (rx_compare_redundant): Remove.
9910         * config/rx/rx.md (cmpsi): Don't use it.
9911         * config/rx/rx-protos.h: Update.
9912
9913         * config/rx/rx-modes.def (CC_F): New mode.
9914         * config/rx/rx.c (rx_select_cc_mode): New.
9915         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9916         * config/rx/rx-protos.h: Update.
9917
9918 2011-01-17  Richard Henderson  <rth@redhat.com>
9919
9920         * except.c (dump_eh_tree): Fix stray ; after for statement.
9921
9922 2011-01-17  Richard Guenther  <rguenther@suse.de>
9923
9924         PR tree-optimization/47313
9925         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9926         handling before copying the body.  Properly deal with
9927         by-reference result in SSA form.
9928
9929 2011-01-17  Ian Lance Taylor  <iant@google.com>
9930
9931         PR target/47219
9932         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9933         (struct_value_alias_set): Don't define.
9934         (sparc_option_override): Don't set sparc_sr_alias_set and
9935         struct_value_alias_set.
9936         (save_or_restore_regs): Use gen_frame_mem rather than calling
9937         set_mem_alias_set.
9938         (sparc_struct_value_rtx): Likewise.
9939
9940 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9941
9942         PR target/47318
9943         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9944         (_mm_maskstore_pd): Likewise.
9945         (_mm_maskload_ps): Likewise.
9946         (_mm_maskstore_ps): Likewise.
9947         (_mm256_maskload_pd): Change mask to __m256i.
9948         (_mm256_maskstore_pd): Likewise.
9949         (_mm256_maskload_ps): Likewise.
9950         (_mm256_maskstore_ps): Likewise.
9951
9952         * config/i386/i386-builtin-types.def: Updated.
9953         (ix86_expand_special_args_builtin): Likewise.
9954
9955         * config/i386/i386.c (bdesc_special_args): Update
9956         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9957         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9958         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9959         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9960
9961         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9962         Use <avxpermvecmode> on mask register.
9963         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9964
9965 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9966             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9967             Eric Botcazou  <ebotcazou@adacore.com>
9968
9969         PR target/46655
9970         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9971         if <= USHRT_MAX in 32-bit mode.
9972
9973 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9974
9975         * doc/install.texi (Configuration, Specific): Wrap long
9976         lines in examples.  Allow line wrapping in long options
9977         and URLs where beneficial for PDF output.
9978
9979 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9980
9981         * config/mips/mips.c (mips_classify_symbol): Don't return
9982         SYMBOL_PC_RELATIVE for nonlocal labels.
9983
9984 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9985
9986         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9987
9988 2011-01-15  Jan Hubicka  <jh@suse.cz>
9989
9990         PR tree-optimization/47276
9991         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9992         declarations as needed.
9993
9994 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9995
9996         * common.opt (fdevirtualize): New flag.
9997         * doc/invoke.texi (Option Summary): Document it.
9998         * opts.c (default_options_table): Add devirtualize flag.
9999         * ipa-prop.c (detect_type_change): Return immediately if
10000         devirtualize flag is not set.
10001         (detect_type_change_ssa): Likewise.
10002         (compute_known_type_jump_func): Likewise.
10003         (ipa_analyze_virtual_call_uses): Likewise.
10004
10005 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10006
10007         PR tree-optimization/45934
10008         PR tree-optimization/46302
10009         * ipa-prop.c (type_change_info): New type.
10010         (stmt_may_be_vtbl_ptr_store): New function.
10011         (check_stmt_for_type_change): Likewise.
10012         (detect_type_change): Likewise.
10013         (detect_type_change_ssa): Likewise.
10014         (compute_complex_assign_jump_func): Check for dynamic type change.
10015         (compute_complex_ancestor_jump_func): Likewise.
10016         (compute_known_type_jump_func): Likewise.
10017         (compute_scalar_jump_functions): Likewise.
10018         (ipa_analyze_virtual_call_uses): Likewise.
10019         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10020
10021 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10022
10023         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10024         * config/i386/i386.opt (msse5): New Alias.
10025
10026 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10029         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10030         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10031         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10032
10033 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10034
10035         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10036         -mcpu options.
10037         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10038         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10039         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10040         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10041         Likewise.
10042         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10043
10044 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10045
10046         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10047
10048 2011-01-14  Mike Stump  <mikestump@comcast.net>
10049
10050         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10051         * config/fr30/fr30.md: Likweise
10052         (movsi_push): Likewise.
10053         (movsi_pop): Likewise.
10054         (enter_func): Likewise.
10055         * config/moxie/moxie.md (movsi_push): Likewise.
10056         (movsi_pop): Likewise.
10057
10058 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10059
10060         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10061         %{no_archive} %{exact_version}.
10062         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10063         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10064         %{no_archive} %{exact_version}.
10065         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10066         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10067         * config/mips/vxworks.h: Likewise.
10068
10069 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10070
10071         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10072
10073 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10074
10075         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10076         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10077
10078 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10079
10080         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10081         -nodefaultlib.
10082
10083 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10084
10085         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10086         for mcpu not cpu.
10087         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10088         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10089         not cpu.
10090         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10091         Don't handle -shlib.
10092
10093 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10094
10095         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10096         (CC1_SPEC): Don't handle -profile.
10097
10098 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10099
10100         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10101         * config/mips/mips.h (CC1_SPEC): Likewise.
10102
10103 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10104
10105         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10106         * config/mips/mips.h (CC1_SPEC): Likewise.
10107
10108 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10109
10110         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10111         * config/m32r/linux.h (LINK_SPEC): Likewise.
10112         * config/mips/linux.h (LINK_SPEC): Likewise.
10113         * config/mips/linux64.h (LINK_SPEC): Likewise.
10114         * config/sparc/linux.h (LINK_SPEC): Likewise.
10115         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10116         LINK_SPEC): Likewise.
10117         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10118
10119 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10120
10121         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10122         %{version:-v}.
10123         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10124
10125 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10126
10127         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10128         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10129
10130 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10131
10132         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10133
10134 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10135
10136         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10137         supports -Bstatic/-Bdynamic.
10138         * configure: Regenerate.
10139
10140 2011-01-14  Jan Hubicka  <jh@suse.cz>
10141             Jack Howarth  <howarth@bromo.med.uc.edu>
10142
10143         PR target/46037
10144         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10145         when checking debug_info_level. Test write_symbols instead of
10146         debug_hooks->var_location when setting flag_var_tracking_uninit.
10147
10148 2011-01-14  Richard Guenther  <rguenther@suse.de>
10149
10150         PR tree-optimization/47179
10151         * target.def (ref_may_alias_errno): New target hook.
10152         * targhooks.h (default_ref_may_alias_errno): Declare.
10153         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10154         (default_ref_may_alias_errno): New function.
10155         * target.h (struct ao_ref_s): Declare.
10156         * tree-ssa-alias.c: Include target.h.
10157         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10158         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10159         (targhooks.o): Likewise.
10160         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10161         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10162
10163 2011-01-14  Richard Guenther  <rguenther@suse.de>
10164
10165         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10166
10167 2011-01-14  Richard Guenther  <rguenther@suse.de>
10168
10169         PR tree-optimization/47280
10170         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10171         return CFG changes.
10172         (tree_ssa_forward_propagate_single_use_vars): Deal with
10173         CFG changes from associate_plusminus.
10174
10175 2011-01-14  Richard Guenther  <rguenther@suse.de>
10176
10177         PR middle-end/47281
10178         Revert
10179         2011-01-11  Richard Guenther  <rguenther@suse.de>
10180
10181         PR tree-optimization/46076
10182         * tree-ssa.c (useless_type_conversion_p): Conversions from
10183         unprototyped to empty argument list function types are useless.
10184
10185 2011-01-14  Richard Guenther  <rguenther@suse.de>
10186
10187         PR tree-optimization/47286
10188         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10189
10190 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10191
10192         PR middle-end/46823
10193         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10194
10195 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10196
10197         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10198         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10199         * config/xtensa/xtensa.c (xtensa_libcall_value,
10200         xtensa_function_value_regno_p): New functions.
10201         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10202
10203 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10204
10205         PR c++/47213
10206         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10207         PE specific hook.
10208         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10209         New function prototype.
10210         * config/i386/winnt.c (i386_pe_assemble_visibility):
10211         Warn only if attribute was specified by user.
10212
10213 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10214
10215         PR target/47251
10216         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10217         floating point.
10218         (floatunsdidf2_fcfidu): Ditto.
10219
10220 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10221
10222         * config/s390/s390.c (print_operand_address): Replace 'error' with
10223         'output_operand_lossage'.
10224         (print_operand): Likewise.
10225
10226 2011-01-13  Jeff Law  <law@redhat.com>
10227
10228         PR rtl-optimization/39077
10229         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10230         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10231         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10232         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10233         * gcse.c (prune_insertions_deletions): New function.
10234         (compute_pre_data): Use it.
10235
10236 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10237
10238         PR debug/PR46973
10239         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10240         static function.
10241         (prune_unused_types_mark): Use it.
10242
10243 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10244
10245         PR rtl-optimization/45352
10246         * sel-sched.c: Update copyright years.
10247         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10248         in the advancing loop when we have issued issue_rate insns.
10249
10250 2011-01-12  Richard Henderson  <rth@redhat.com>
10251
10252         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10253         (TARGET_MD_ASM_CLOBBERS): New.
10254
10255         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10256         (TARGET_DELEGITIMIZE_ADDRESS): New.
10257
10258         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10259         (clzsi2, *bsch): New patterns.
10260
10261         * config/mn10300/mn10300.md (INT): New mode iterator.
10262         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10263
10264         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10265         flag_split_wide_types.
10266
10267         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10268         (mn10300_trampoline_init): Rewrite without a template, an immediate
10269         load and a direct branch.
10270         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10271
10272 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10273
10274         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10275         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10276         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10277         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10278
10279 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10280
10281         PR debug/47209
10282         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10283         of type.
10284
10285 2011-01-12  Jan Hubicka  <jh@suse.cz>
10286
10287         PR driver/47244
10288         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10289         (PLUGIN_COND_CLOSE): New macro.
10290         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10291
10292 2011-01-12  Richard Guenther  <rguenther@suse.de>
10293
10294         PR lto/47259
10295         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10296         register variables in a MEM_REF.
10297
10298 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10299
10300         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10301         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10302         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10303         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10304         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10305         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10306         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10307         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10308         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10309         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10310         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10311         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10312         * config/gnu-user.h: New.  Copied from linux.h.
10313         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10314         GNU_USER_TARGET_STARTFILE_SPEC.
10315         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10316         GNU_USER_TARGET_ENDFILE_SPEC.
10317         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10318         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10319         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10320         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10321         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10322         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10323         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10324         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10325         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10326         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10327         * config/arm/linux-eabi.h (CC1_SPEC): Use
10328         GNU_USER_TARGET_CC1_SPEC.
10329         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10330         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10331         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10332         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10333         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10334         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10335         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10336         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10337
10338 2011-01-12  Richard Guenther  <rguenther@suse.de>
10339
10340         PR other/46946
10341         * doc/invoke.texi (ffast-math): Document it is turned on
10342         with -Ofast.
10343
10344 2011-01-12  Jan Hubicka  <jh@suse.cz>
10345
10346         PR tree-optimization/47233
10347         * opts.c (common_handle_option): Disable ipa-reference with profile
10348         feedback.
10349
10350 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10351
10352         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10353         error message.
10354
10355 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10356
10357         * c-parser.c (c_lex_one_token): Updated and reindented some
10358         comments.  No changes in code.
10359
10360 2011-01-11  Ian Lance Taylor  <iant@google.com>
10361
10362         * godump.c (go_output_var): Don't output the variable if there is
10363         already a type with the same name.
10364
10365 2011-01-11  Ian Lance Taylor  <iant@google.com>
10366
10367         * godump.c (go_format_type): Don't generate float80.
10368
10369 2011-01-11  Richard Henderson  <rth@redhat.com>
10370
10371         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10372         declaration.  Rewrite for both speed and size.
10373         (mn10300_address_cost_1): Remove.
10374         (mn10300_register_move_cost): New.
10375         (mn10300_memory_move_cost): New.
10376         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10377         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10378         extensions, shifts, BSWAP, CLZ.
10379         (mn10300_wide_const_load_uses_clr): Remove.
10380         (TARGET_REGISTER_MOVE_COST): New.
10381         (TARGET_MEMORY_MOVE_COST): New.
10382         * config/mn10300/mn10300-protos.h: Update.
10383         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10384
10385         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10386         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10387         * config/mn10300/mn10300-protos.h: Update.
10388         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10389         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10390         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10391         (*test_int_bitfield, *test_byte_bitfield): Remove.
10392         (*bit_test, *subreg_bit_test): Remove.
10393         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10394
10395         * config/mn10300/constraints.md ("c"): Rename from "A".
10396         ("A", "D"): New constraint letters.
10397         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10398         (fmssf4, fnmasf4, fnmssf4): Likewise.
10399
10400         * config/mn10300/mn10300.md (isa): New attribute.
10401         (enabled): New attribute.
10402
10403         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10404         (abssf2, negsf2): Define only for hardware fp.
10405         (sqrtsf2): Reformat.
10406         (addsf3, subsf3, mulsf3): Merge expander and insn.
10407
10408         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10409         (DEBUGGER_AUTO_OFFSET): Remove.
10410         (DEBUGGER_ARG_OFFSET): Remove.
10411
10412         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10413         Emit register stores with the same offsets as the hardware.
10414         (mn10300_store_multiple_operation): Don't check that the register
10415         save offsets are monotonic.
10416         * config/mn10300/mn10300-protos.h: Update.
10417
10418         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10419
10420         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10421         in terms of the value on the stack, not the MDR register.
10422
10423 2011-01-11  Jan Hubicka  <jh@suse.cz>
10424
10425         PR lto/45721
10426         PR lto/45375
10427         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10428         (symbol_alias_set_destroy, symbol_alias_set_contains,
10429         propagate_aliases_backward): Declare.
10430         * lto-streamer-out.c (struct sets): New sturcture.
10431         (trivally_defined_alias): New function.
10432         (output_alias_pair_p): Rewrite.
10433         (output_unreferenced_globals): Fix output of alias pairs.
10434         (produce_symtab): Likewise.
10435         * ipa.c (function_and_variable_visibility): Set weak alias destination
10436         as needed in lto.
10437         * varasm.c (symbol_alias_set_t): Remove.
10438         (symbol_alias_set_destroy): Export.
10439         (propagate_aliases_forward, propagate_aliases_backward): New functions
10440         based on ...
10441         (compute_visible_aliases): ... this one; remove.
10442         (trivially_visible_alias): New
10443         (trivially_defined_alias): New.
10444         (remove_unreachable_alias_pairs): Rewrite.
10445         (finish_aliases_1): Reorganize code checking if alias is defined.
10446         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10447         in LTO mode.
10448
10449 2011-01-11  Richard Guenther  <rguenther@suse.de>
10450
10451         PR tree-optimization/46076
10452         * tree-ssa.c (useless_type_conversion_p): Conversions from
10453         unprototyped to empty argument list function types are useless.
10454
10455 2011-01-11  Richard Guenther  <rguenther@suse.de>
10456
10457         PR middle-end/45235
10458         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10459         volatile MEMs as MEM_READONLY_P.
10460
10461 2011-01-11  Richard Guenther  <rguenther@suse.de>
10462
10463         PR tree-optimization/47239
10464         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10465
10466 2011-01-11  Jeff Law  <law@redhat.com>
10467
10468         PR tree-optimization/47086
10469         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10470         IVs from statements that might throw.
10471
10472 2011-01-10  Jan Hubicka  <jh@suse.cz>
10473
10474         PR lto/45375
10475         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10476
10477 2011-01-10  Jan Hubicka  <jh@suse.cz>
10478
10479         PR lto/45375
10480         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10481         when correcting profile.
10482
10483 2011-01-10  Jan Hubicka  <jh@suse.cz>
10484
10485         PR lto/46083
10486         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10487         DECL_FINI_PRIORITY.
10488         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10489         Restore DECL_FINI_PRIORITY.
10490
10491 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10492
10493         * doc/gimple.texi: Fix quoting of multi-word return values in
10494         @deftypefn statements.  Ensure presence of return value.  Wrap
10495         overlong @deftypefn lines.
10496         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10497         descriptions of removed functions.
10498         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10499         of multi-word return value in @deftypefn statement.
10500
10501 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10502
10503         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10504         (Conditional Expressions, Logical Operators)
10505         (Statement and operand traversals): Do not indent smallexample
10506         code.  Fix duplicate function argument in example.
10507
10508 2011-01-10  Jeff Law  <law@redhat.com>
10509
10510         PR tree-optimization/47141
10511         * ipa-split.c (split_function): Handle case where we are
10512         returning a value and the return block has a virtual operand phi.
10513
10514 2011-01-10  Jan Hubicka  <jh@suse.cz>
10515
10516         PR tree-optimization/47234
10517         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10518         (pass_feedback_split_functions): Declare.
10519         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10520         tree-profile.
10521         * ipa-split.c (gate_split_functions): Update comments; disable
10522         split-functions for profile_arc_flag and branch_probabilities.
10523         (gate_feedback_split_functions): New function.
10524         (execute_feedback_split_functions): New function.
10525         (pass_feedback_split_functions): New global var.
10526
10527 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10528
10529         PR lto/46760
10530         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10531         calling gimple_call_set_cannot_inline.
10532
10533 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10534
10535         * config/darwin-sections.def: Remove unused section.
10536
10537 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10538
10539         PR c++/47218
10540         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10541
10542 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10543
10544         PR objc/47232
10545         * c-parser.c (c_parser_declaration_or_fndef): Improved
10546         error message.
10547
10548 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10549
10550         * config/i386/winnt.c (i386_pe_start_function): Make sure
10551         to switch back to function's section.
10552
10553 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10554
10555         PR gcc/46902
10556         PR testsuite/46912
10557         * plugin.c: Move include of dlfcn.h from here...
10558         * system.h: ... to here.
10559
10560 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10561
10562         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10563         file name.
10564         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10565         two extra empty pages in PDF output.
10566
10567 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10568
10569         PR objc/47078
10570         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10571         for error recovery purposes behave as if it was not specified so
10572         that the default type is usd.
10573
10574 2011-01-07  Jan Hubicka  <jh@suse.cz>
10575
10576         PR tree-optmization/46469
10577         * ipa.c (function_and_variable_visibility): Clear needed flags on
10578         nodes with external decls; handle weakrefs merging correctly.
10579
10580 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10581
10582         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10583         not false.
10584
10585 2011-01-07  Jan Hubicka  <jh@suse.cz>
10586
10587         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10588         and no longer claim that gold is required for linker plugin.
10589         * configure: Regenerate.
10590         * gcc.c (PLUGIN_COND): New macro.
10591         (LINK_COMMAND_SPEC): Use it.
10592         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10593         * config.in (HAVE_LTO_PLUGIN): New.
10594         * configure.ac (--with-lto-plugin): New parameter; autodetect
10595         HAVE_LTO_PLUGIN.
10596
10597 2011-01-07  Jan Hubicka  <jh@suse.cz>
10598
10599         PR tree-optimization/46367
10600         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10601         when we can update original.
10602         (cgraph_mark_inline_edge): Sanity check.
10603         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10604
10605 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10606
10607         * config/spu/spu.h (ASM_COMMENT_START): Define.
10608
10609 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10610
10611         PR driver/42445
10612         * gcc.c (%>S): New.
10613         (SWITCH_KEEP_FOR_GCC): Likewise.
10614         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10615         (do_spec_1): Handle "%>".
10616
10617         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10618
10619 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10620
10621         PR target/47201
10622         * config/i386/i386.c (ix86_delegitimize_address): If
10623         simplify_gen_subreg fails, return orig_x.
10624
10625         PR bootstrap/47187
10626         * value-prof.c (gimple_stringop_fixed_value): Handle
10627         lhs of the call properly.
10628
10629 2011-01-07  Jan Hubicka  <jh@suse.cz>
10630
10631         PR lto/45375
10632         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10633
10634 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10635
10636         * target.def (function_switched_text_sections): New hook.
10637         * doc/tm.texi: Regenerated.
10638         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10639         * final.c (default_function_switched_text_sections): New.
10640         (final_scan_insn): Call function_switched_text_sections when a
10641         mid-function section change occurs.
10642         * output.h (default_function_switched_text_sections): Declare.
10643         * config/darwin-protos.h (darwin_function_switched_text_sections):
10644         Likewise.
10645         * config/darwin.c (darwin_function_switched_text_sections): New.
10646         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10647
10648 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10649
10650         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10651         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10652         the secondary code fragment when outputting for DWARF == 2.
10653
10654 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10655
10656         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10657         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10658         Remove.
10659         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10660         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10661
10662 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10663
10664         PR debug/46704
10665         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10666         when it is not empty.
10667
10668 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10669
10670         Bobcat Enablement
10671         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10672         (case ${target}): Add btver1.
10673         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10674         -march=native recognize btver1 processors.
10675         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10676         btver1 def_and_undef
10677         * config/i386/i386.c (struct processor_costs btver1_cost): New
10678         btver1 cost table.
10679         (m_BTVER1): New definition.
10680         (m_AMD_MULTIPLE): Includes m_BTVER1.
10681         (initial_ix86_tune_features): Add btver1 tune.
10682         (processor_target_table): Add btver1 entry.
10683         (static const char *const cpu_names): Add btver1 entry.
10684         (software_prefetching_beneficial_p): Add btver1.
10685         (ix86_option_override_internal): Add btver1 instruction sets.
10686         (ix86_issue_rate): Add btver1.
10687         (ix86_adjust_cost): Add btver1.
10688         * config/i386/i386.h (TARGET_BTVER1): New definition.
10689         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10690         (enum processor_type): Add PROCESSOR_BTVER1.
10691         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10692
10693 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10694
10695         PR target/43309
10696         * config/i386/i386.c (legitimize_tls_address)
10697         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10698         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10699         (tls_initial_exec_64_sun): New pattern.
10700
10701 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10702
10703         * doc/invoke.texi (Overall Options): Improve wording and markup
10704         of the description of -wrapper.
10705
10706 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10707
10708         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10709         rdynamic, threads): New Driver options.
10710
10711 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10712
10713         PR target/38118
10714         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10715         if coming from .tdata.
10716         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10717
10718 2011-01-06  Jan Hubicka  <jh@suse.cz>
10719
10720         PR lto/47188
10721         * collect2.c (main): Do not enable LTOmode when plugin is active.
10722
10723 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10724
10725         PR other/45915
10726         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10727         --version output if supported.
10728         * configure: Regenerate.
10729
10730 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10731
10732         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10733         Driver options.
10734
10735 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10736
10737         PR c/47150
10738         * c-convert.c (convert): When converting a complex expression
10739         other than COMPLEX_EXPR to a different complex type, ensure
10740         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10741         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10742         when converting COMPLEX_TYPE.
10743
10744 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10745
10746         PR tree-optimization/47139
10747         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10748         only the last reduction value is used outside the loop.  Update
10749         documentation.
10750
10751 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10752
10753         * config/rtems.opt: New.
10754         * config.gcc (*-*-rtems*): Use rtems.opt.
10755
10756 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10757
10758         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10759         processors do not support 3DNow instructions.
10760
10761 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10762
10763         * config/spu/spu.c (spu_option_override): Set parameter
10764         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10765
10766 2011-01-05  Jan Hubicka  <jh@suse.cz>
10767
10768         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10769         at the command line.
10770
10771 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10772
10773         PR lto/47162
10774         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10775         deltas on streamed outgoing edges.
10776         (output_node_opt_summary): Output info for outgoing edges only when
10777         the node is in new parameter set.
10778         (output_cgraph_opt_summary): New parameter set, passed to the two
10779         aforementioned functions.  Update its forward declaration and its
10780         callee too.
10781
10782 2011-01-05  Tom Tromey  <tromey@redhat.com>
10783
10784         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10785         operator to c_finish_omp_atomic.
10786         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10787         (build_unary_op): Update.
10788         (build_modify_expr): Update.
10789         (build_asm_expr): Update.
10790
10791 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10792
10793         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10794         newly inserted insns.
10795         (pad_bb): Likewise.
10796         (spu_emit_branch_hint): Likewise.
10797         (insert_hbrp_for_ilb_runout): Likewise.
10798         (spu_machine_dependent_reorg): Call df_finish_pass after
10799         schedule_insns returns.
10800
10801 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10802
10803         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10804
10805 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10806
10807         PR tree-optimization/47005
10808         * tree-sra.c (struct access): Add 'non_addressable' bit.
10809         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10810         (decide_one_param_reduction): Return 0 if the parameter is passed by
10811         reference and one of the accesses in the group is non_addressable.
10812
10813 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10814
10815         PR tree-optimization/47056
10816         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10817         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10818         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10819
10820 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10821
10822         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10823         initializer.  Skip view conversions from aggregate types.
10824
10825 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10826
10827         PR bootstrap/47055
10828         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10829
10830 2011-01-04  Philipp Thomas  <pth@suse.de>
10831
10832         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10833         obvious typo.
10834
10835 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10836
10837         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10838         on empty epilogue sequences.
10839
10840 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10841
10842         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10843         non-static): New Driver options.
10844
10845 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10846
10847         PR driver/47137
10848         * gcc.c (default_compilers[]): Set combinable field to 0
10849         for all assembly languages.
10850
10851 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10852
10853         * config/mips/loongson3a.md: New file.
10854         * config/mips/mips.md: Include loongson3a.md.
10855         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10856         TUNE_LOONGSON_3A.
10857
10858 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10859
10860         PR middle-end/47017
10861         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10862         instead of convert_memory_address_addr_space on the base expression.
10863
10864 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10865
10866         * config/spu/spu.c (spu_option_override): Update error text
10867         for bad -march= / -mtune= values.
10868
10869 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10870
10871         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10872         if branch-hint optimization will be performed.
10873
10874 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10875
10876         PR tree-optimization/47148
10877         * ipa-split.c (split_function): Convert arguments to
10878         DECL_ARG_TYPE if possible.
10879
10880         PR tree-optimization/47155
10881         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10882         when computing uns.
10883
10884         PR rtl-optimization/47157
10885         * combine.c (try_combine): If undobuf.other_insn becomes
10886         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10887         and set *new_direct_jump_p too.
10888
10889 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10890
10891         PR tree-optimization/47021
10892         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10893
10894 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10895
10896         * gcc.c (process_command): Update copyright notice dates.
10897         * gcov.c (print_version): Likewise.
10898         * gcov-dump.c (print_version): Likewise.
10899         * mips-tfile.c (main): Likewise.
10900         * mips-tdump.c (main): Likewise.
10901
10902 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10903
10904         PR tree-optimization/46801
10905         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10906         aggregate fields start at byte boundary instead of the bit-field flag.
10907
10908 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10909
10910         PR driver/47137
10911         * gcc.c (main): Revert revision 168407.
10912
10913 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10914
10915         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10916
10917 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10918
10919         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10920         vector optab to expand vector/scalar shift, update gimple to vector.
10921
10922 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10923
10924         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10925         a thunk.
10926
10927 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10928
10929         PR tree-optimization/46984
10930         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10931         HOST_WIDE_INT.
10932         (cgraph_create_indirect_edge): Fixed line length.
10933         (cgraph_indirect_call_info): Declare.
10934         (cgraph_make_edge_direct) Update declaration.
10935         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10936         (cgraph_create_indirect_edge): Use it.
10937         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10938         callees.
10939         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10940         the new thunk_delta representation.
10941         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10942         HOST_WIDE_INT.
10943         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10944         (ipa_read_indirect_edge_info): Likewise.
10945         * lto-cgraph.c (output_edge_opt_summary): New function.
10946         (output_node_opt_summary): Call it on all outgoing edges.
10947         (input_edge_opt_summary): New function.
10948         (input_node_opt_summary): Call it on all outgoing edges.
10949
10950 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10951
10952         PR driver/47137
10953         * gcc.c (main): Don't check have_o when settting combine_inputs.
10954
10955 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10956
10957         * regrename.c: Add general comment describing the pass.
10958         (struct du_head): Remove 'length' field.
10959         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10960         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10961         Force renaming to the preferred class (if any) in the first pass and do
10962         not consider registers that belong to it in the second pass.
10963         (create_new_chain): Do not set 'length' field.
10964         (scan_rtx_reg): Likewise.
10965
10966 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10967
10968         PR tree-optimization/47140
10969         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10970         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10971         to bit_value_binop.
10972
10973         PR rtl-optimization/47028
10974         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10975         parm_birth_insn instead of at the beginning of first bb.
10976
10977 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10978
10979         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10980         Remove the word "see" before "@pxref".
10981         * doc/rtl.texi: Remove the word "see" before "@pxref".
10982
10983 2011-01-01  Jan Hubicka  <jh@suse.cz>
10984
10985         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10986         memory.
10987
10988 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10989
10990         PR target/38662
10991         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10992
10993 \f
10994 Copyright (C) 2011 Free Software Foundation, Inc.
10995
10996 Copying and distribution of this file, with or without modification,
10997 are permitted in any medium without royalty provided the copyright
10998 notice and this notice are preserved.