OSDN Git Service

2011-04-18 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-18  Richard Guenther  <rguenther@suse.de>
2
3         * tree.c (upper_bound_in_type): Build properly canonicalized
4         INTEGER_CSTs.
5         (lower_bound_in_type): Likewise.
6
7 2011-04-18  Richard Guenther  <rguenther@suse.de>
8
9         * gimple.h (gimple_call_addr_fndecl): New function.
10         (gimple_call_fndecl): Use it.
11         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12         for direct calls.
13         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
14         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15
16 2011-04-18  Richard Guenther  <rguenther@suse.de>
17
18         PR middle-end/48650
19         * tree.c (build_string): STRING_CST is now derived from tree_typed.
20
21 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
22
23         PR lto/48492
24         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
25         DECL_IN_CONSTANT_POOL without RTL.
26
27 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
28             Ira Rosen  <ira.rosen@linaro.org>
29
30         PR target/48252
31         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
32         to match neon_vzip/vuzp/vtrn_internal.
33         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
34         outputs explicitly dependent on both inputs.
35         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
36
37 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
38
39         PR tree-optimization/48616
40         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
41         whether the shift is by scalar or vector based on whether all SLP
42         scalar stmts have the same rhs.
43
44 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
45
46         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
47         memory operands.
48
49 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
50
51         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
52         registers.
53
54 2011-04-17  Jan Hubicka  <jh@suse.cz>
55
56         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
57         * cgrpahunit.c (cgraph_finalize_function): Do not set
58         finalized_by_frontend.
59         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
60         finalized_by_frontend.
61
62 2011-04-17  Jan Hubicka  <jh@suse.cz>
63
64         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
65         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
66         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
67         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
68         method.
69         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
70         gimple-fold.c
71         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
72
73 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
74
75         PR lto/48538
76         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
77         is non-null before accessing it.
78         (input_cgraph): Remove trailing spaces.
79
80 2011-04-17  Revital Eres  <revital.eres@linaro.org>
81
82         * params.def (sms-min-sc): New param flag.
83         * modulo-sched.c (sms_schedule): Use it.
84         * doc/invoke.texi (sms-min-sc): Document it.
85
86 2011-04-17  Jan Hubicka  <jh@suse.cz>
87
88         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
89         present, also set gimple_call_set_cannot_inline.
90         * ipa-inline.c: Update toplevel comment.
91         (MAX_TIME): Remove.
92         (cgraph_clone_inlined_nodes): Fix linebreaks.
93         (cgraph_check_inline_limits): Restructure to ...
94         (caller_growth_limits): ... this one; be more tolerant
95         on growth in nested inline chains; add explanatory comment;
96         fix stack accounting thinko introduced by previous patch.
97         (cgraph_default_inline_p): Remove.
98         (report_inline_failed_reason): New function.
99         (can_inline_edge_p): New function.
100         (can_early_inline_edge_p): New function.
101         (leaf_node_p): Move upwards in file.
102         (want_early_inline_function_p): New function.
103         (want_inline_small_function_p): New function.
104         (want_inline_self_recursive_call_p): New function.
105         (cgraph_edge_badness): Rename to ...
106         (edge_badness) ... this one; fix linebreaks.
107         (update_edge_key): Update call of edge_baddness; add
108         detailed dump about queue updates.
109         (update_caller_keys): Use can_inline_edge_p and
110         want_inline_small_function_p.
111         (cgraph_decide_recursive_inlining): Rename to...
112         (recursive_inlining): Use can_inline_edge_p and
113         want_inline_self_recursive_call_p; simplify and
114         remove no longer valid FIXME.
115         (cgraph_set_inline_failed): Remove.
116         (add_new_edges_to_heap): Use can_inline_edge_p and
117         want_inline_small_function_p.
118         (cgraph_decide_inlining_of_small_functions): Rename to ...
119         (inline_small_functions): ... this one; cleanup; use
120         can/want predicates; cleanup debug ouput; work edges
121         till fibheap is exhausted and do not stop once unit
122         growth is reached; remove later loop processing remaining
123         edges.
124         (cgraph_flatten): Rename to ...
125         (flatten_function): ... this one; use can_inline_edge_p
126         and can_early_inline_edge_p predicates.
127         (cgraph_decide_inlining): Rename to ...
128         (ipa_inline): ... this one; remove unreachable nodes before
129         inlining functions called once; simplify the pass.
130         (cgraph_perform_always_inlining): Rename to ...
131         (inline_always_inline_functions): ... this one; use
132         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p
133         predicate
134         (cgraph_decide_inlining_incrementally): Rename to ...
135         (early_inline_small_functions): ... this one; simplify
136         using new predicates; cleanup; make dumps prettier.
137         (cgraph_early_inlining): Rename to ...
138         (early_inliner): newer inline regular functions into always-inlines;
139         fix updating of call stmt summaries.
140         (pass_early_inline): Update for new names.
141         (inline_transform): Fix formating.
142         (gate_cgraph_decide_inlining): Rename to ...
143         (pass_ipa_inline): ... this one.
144         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
145         * ipa-inline-analysis.c (dump_inline_summary): Update.
146         (compute_inline_parameters): Do not compute disregard_inline_limits;
147         look for mismatching arguments.
148         (estimate_growth): Fix handlig of non-trivial self recursion.
149         (inline_read_summary): Do not read info->disregard_inline_limits.
150         (inline_write_summary): Do not write info->disregard_inline_limits.
151         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
152         and move all checks into can_inline_edge_p predicate; re-enable code
153         comparing optimization levels.
154         (expand_call_inline): Do not test inline_forbidden_into_p.
155         * Makefile.in (ipa-inline.o): Update arguments.
156
157 2011-04-17  Revital Eres  <revital.eres@linaro.org>
158
159         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
160
161 2011-04-17  Revital Eres  <revital.eres@linaro.org>
162
163         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
164
165 2011-04-17  Michael Matz  <matz@suse.de>
166
167         PR tree-optimization/48622
168         PR lto/48645
169         * ipa-inline-analysis.c (inline_read_summary): Read size/time
170         in same order as they're written.
171
172 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
173
174         * config/i386/sse.md (sseunpackmode): New mode attribute.
175         (ssepackmode): Ditto.
176         (vec_pack_trunc_<mode>): Macroize expander from
177         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
178         (vec_unpacks_lo_<mode>): Macroize expander from
179         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
180         (vec_unpacks_hi_<mode>): Macroize expander from
181         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
182         (vec_unpacku_lo_<mode>): Macroize expander from
183         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
184         (vec_unpacku_hi_<mode>): Macroize expander from
185         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
186         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
187         ix86_expand_sse4_unpack.
188         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
189
190 2011-04-16  Jan Hubicka  <jh@suse.cz>
191
192         * cgraphbuild.c: Include ipa-inline.h.
193         (reset_inline_failed): Use initialize_inline_failed.
194         * cgraph.c: Include ipa-inline.h.
195         (cgraph_create_node_1): Do not initialize estimated_growth.
196         (initialize_inline_failed): More to ipa-inline-analysis.c
197         (dump_cgraph_node): Do not dump inline flags.
198         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
199         and disregard_inline_limits flags.
200         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
201         time, size, estimated_growth.
202         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
203         Update.
204         * cgraphunit.c (cgraph_decide_is_function_needed): Use
205         DECL_DISREGARD_INLINE_LIMITS.
206         (cgraph_analyze_function): Do not initialize
207         node->local.disregard_inline_limits.
208         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
209         inlinable, versionable and disregard_inline_limits.
210         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
211         cgraph_check_inline_limits, cgraph_default_inline_p,
212         cgraph_edge_badness, update_caller_keys, update_callee_keys,
213         add_new_edges_to_heap): Update.
214         (cgraph_decide_inlining_of_small_function): Update; set
215         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
216         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
217         cgraph_decide_inlining_incrementally): Update.
218         * ipa-inline.h (inline_summary): Add inlinable, versionable,
219         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
220         time, size and estimated_growth parameters.
221         (estimate_edge_growth): Update.
222         (initialize_inline_failed): Declare.
223         * ipa-split.c: Include ipa-inline.h
224         (execute_split_functions): Update.
225         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
226         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
227         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
228         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
229         estimated_growth to INT_MIN.
230         (inline_node_duplication_hook): Likewise.
231         (dump_inline_summary): Dump new fields.
232         (compute_inline_parameters): Update.
233         (estimate_edge_time, estimate_time_after_inlining,
234         estimate_size_after_inlining, estimate_growth, inline_read_summary,
235         inline_write_summary):
236         (initialize_inline_failed): Move here from cgraph.c.
237         * tree-sra.c: Include ipa-inline.h.
238         (ipa_sra_preliminary_function_checks): Update.
239         * Makefile.in: (cgraph.o, cgraphbuild.o): Add dependency on
240         ipa-inline.h
241
242 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
243
244         * config/i386/sse.md (V16): New mode iterator.
245         (VI1, VI8): Ditto.
246         (AVXMODEQI, AVXMODEDI): Remove.
247         (sse2, sse3): New mode attribute.
248         (mov<mode>): Use V16 mode iterator.
249         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
250         (push<mode>1): Use V16 mode iterator.
251         (movmisalign<mode>): Ditto.
252         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
253         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
254         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
255         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
256         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
257         avx_movdqu<avxmodesuffix>.
258         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
259         *avx_movdqu<avxmodesuffix>.
260         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
261         avx_lddqu<avxmodesuffix>.
262         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
263         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
264         avx_movnt<AVXMODEDI:mode>.
265         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
266         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
267
268 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
269
270         PR target/48629
271         * haifa-sched.c (prune_ready_list, schedule_block): Use
272         sched_pressure_p rather than flag_sched_pressure.
273
274 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
275
276         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
277         cgraph_get_node instead of cgraph_get_create_node.
278
279 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
280
281         * cfgexpand.c (expand_debug_expr): Use
282         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
283
284 2011-04-15  Michael Matz  <matz@suse.de>
285
286         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
287         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
288         * function.c (gimplify_parameters): Ditto.
289         * gimplify.c (gimplify_vla_decl): Ditto.
290
291         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
292         (gimple_call_set_alloca_for_var): New inline function.
293         (gimple_call_alloca_for_var_p): Ditto.
294         * gimple.c (gimple_build_call_from_tree): Remember
295         CALL_ALLOCA_FOR_VAR_P state.
296         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
297
298         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
299         calls if they were for VLA objects.
300
301 2011-04-15  Martin Jambor  <mjambor@suse.cz>
302
303         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
304         of ADR_EXPRs.
305
306 2011-04-15  Martin Jambor  <mjambor@suse.cz>
307
308         PR middle-end/48601
309         * tree-emutls.c (lower_emutls_function_body): Call
310         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
311         result is non-NULL.
312
313 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
314
315         * c-decl.c (detect_field_duplicates): Call
316         objc_detect_field_duplicates instead of objc_get_interface_ivars.
317
318 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
319
320         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
321         * gimple.c (gimple_asm_clobbers_memory_p): Define.
322         * ipa-pure-const.c (check_stmt): Call it.
323         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
324
325 2011-04-15  Richard Guenther  <rguenther@suse.de>
326
327         PR tree-optimization/48290
328         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
329         Properly decide inhibiting propagation based on the valueized
330         operand.  Do loop-closed SSA form preserving here ...
331         (init_copy_prop): ... not here.
332
333 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
334
335         PR target/48612
336         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
337         (*ieee_smax<mode>3): Likewise.
338
339 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
340
341         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
342         Replace match_operand with match_dup for the third operand in
343         these expanders.
344
345 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
346
347         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
348         to track processing of conditionals.  Update all callers.
349         (try_combine, simplify_if_then_else): Update.
350
351 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
352
353         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
354         -fsched-pressure.
355
356 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
357
358         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
359         instead of match_operand for operand 3.
360
361 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
362
363         * recog.h (insn_operand_data): Add an "allows_mem" field.
364         * genoutput.c (output_operand_data): Initialize it.
365         * optabs.c (maybe_legitimize_operand_same_code): New function.
366         (maybe_legitimize_operand): Use it when matching the original
367         op->value.
368
369 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
370
371         * gimplify.c: Fix issues in comments throughout.
372         (voidify_wrapper_expr): Fix long line.
373         (build_stack_save_restore): Likewise.
374         (gimplify_loop_expr): Likewise.
375         (gimplify_compound_lval): Likewise.
376         (gimplify_init_ctor_eval): Likewise.
377         (gimplify_modify_expr_rhs): Likewise.
378         (omp_notice_threadprivate_variable): Likewise.
379
380 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
381
382         * cfgexpand.c (expand_call_stmt): Convert the function type to the
383         original one if this is not a builtin function.
384
385 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
386
387         PR target/48605
388         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
389         offset it as needed based on top 2 bits in operands[3], change
390         MEM mode to SFmode and mask those 2 bits away from operands[3].
391
392 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
393
394         * c-parser.c (c_parser_objc_protocol_definition): Updated for
395         change from objc_declare_protocols() to objc_declare_protocol().
396
397 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
398
399         * config/i386/sse.md (sse4_1): New mode attribute.
400         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
401         avx_blend<ssemodesuffix><avxmodesuffix> and
402         sse4_1_blend<ssemodesuffix> using VF mode iterator.
403         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
404         avx_blendv<ssemodesuffix><avxmodesuffix> and
405         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
406         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
407         avx_dp<ssemodesuffix><avxmodesuffix> and
408         sse4_1_dp<ssemodesuffix> using VF mode iterator.
409         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
410         (sse4_1_packusdw): Merge with *avx_packusdw.
411         (sse4_1_pblendvb): Merge with *avx_pblendvb.
412         (sse4_1_pblendw): Merge with *avx_pblendw.
413         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
414         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
415         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
416         VF mode iterator.
417         (sse4_1_round<ssescalarmodesuffix>): Merge with
418         *avx_round<ssescalarmodesuffix>.
419         (aesenc): Merge with *avx_aesenc.
420         (aesenclast): Merge with *avx_aesenclast.
421         (aesdec): Merge with *avx_aesdec.
422         (aesdeclast): Merge with *avx_aesdeclast.
423         (pclmulqdq): Merge with *pclmulqdq.
424         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
425         New predicate.
426         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
427
428 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
429
430         PR middle-end/48608
431         * cfgexpand.c (get_decl_align_unit): Renamed to ...
432         (align_local_variable): This.  Update DECL_ALIGN.
433         (add_stack_var): Updated.
434         (expand_one_stack_var): Likewise.
435
436 2011-04-14  Richard Guenther  <rguenther@suse.de>
437
438         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
439         Remove.
440         (dse_initialize_block_local_data, dse_leave_block,
441         record_voperand_set, get_stmt_uid): Likewise.
442         (dse_possible_dead_store_p): Allow any kind of killing stmt.
443         (dse_optimize_stmt): Remove voperand set handling code.
444         Simplify and improve to handle any kind of killing stmt.
445         (dse_record_phi): Remove.
446         (dse_enter_block): Simplify.
447         (tree_ssa_dse): Likewise.
448         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
449
450 2011-04-14  Jan Hubicka  <jh@suse.cz>
451
452         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
453         * cgraph.h (struct inline_summary): Move to ipa-inline.h
454         (cgraph_local_info): Remove inline_summary.
455         * ipa-cp.c: Include ipa-inline.h.
456         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
457         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
458         accesor.
459         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
460         (input_overwrite_node): Do not set inline summary.
461         (input_node): Do not stream inline summary.
462         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
463         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
464         growth; we do not have inline parameters computed for that anyway.
465         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
466         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
467         (inline_summary_t): New type and VECtor.
468         (debug_inline_summary, dump_inline_summaries): Declare.
469         (inline_summary): Use VOCtor.
470         (estimate_edge_growth): Kill hack computing call stmt size directly.
471         * lto-section-in.c (lto_section_name): Add inline section.
472         * ipa-inline-analysis.c: Include lto-streamer.h
473         (node_removal_hook_holder, node_duplication_hook_holder): New holders
474         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
475         (inline_summary_vec): Define.
476         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
477         dump_inline_summaries): New functions.
478         (estimate_function_body_sizes): Properly compute size/time of outgoing
479         calls.
480         (compute_inline_parameters): Alloc inline_summary; do not compute
481         size/time of incomming calls.
482         (estimate_edge_time): Avoid missing time summary hack.
483         (inline_read_summary): Read inline summary info.
484         (inline_write_summary): Write inline summary info.
485         (inline_free_summary): Free all hooks and inline summary vector.
486         * lto-streamer.h: Add LTO_section_inline_summary section.
487         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
488         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
489
490 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
491
492         * tree-vectorizer.h (vect_strided_store_supported): Add a
493         HOST_WIDE_INT argument.
494         (vect_strided_load_supported): Likewise.
495         (vect_permute_store_chain): Return void.
496         (vect_transform_strided_load): Likewise.
497         (vect_permute_load_chain): Delete.
498         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
499         count argument.  Check that the count is a power of two.
500         (vect_strided_load_supported): Likewise.
501         (vect_permute_store_chain): Return void.  Update after above changes.
502         Assert that the access is supported.
503         (vect_permute_load_chain): Likewise.
504         (vect_transform_strided_load): Return void.
505         * tree-vect-stmts.c (vectorizable_store): Update calls after
506         above interface changes.
507         (vectorizable_load): Likewise.
508         (vect_analyze_stmt): Don't check for strided powers of two here.
509
510 2011-04-14  Richard Guenther  <rguenther@suse.de>
511
512         PR tree-optimization/48590
513         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
514         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
515         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
516         BUILT_IN_STACK_SAVE.
517         * tree-ssa-dce.c (propagate_necessity): Handle
518         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
519
520 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
521
522         * c-parser.c (c_parser_objc_class_declaration): Updated call to
523         objc_declare_class.
524
525 2011-04-14  Richard Guenther  <rguenther@suse.de>
526
527         * tree.h (get_object_alignment_1): Declare.
528         * builtins.c (get_object_alignment_1): Split out worker from ...
529         (get_object_alignment): ... here.
530         * fold-const.c (get_pointer_modulus_and_residue): Use
531         get_object_alignment_1.
532
533 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
534
535         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
536         type parameter.
537         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
538         parameter.  Generalise code to handle arrays as well as vectors.
539         (vect_setup_realignment): Update accordingly.
540         * tree-vect-stmts.c (vectorizable_store): Likewise.
541         (vectorizable_load): Likewise.
542
543 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
544
545         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
546         within the per-copy loop.
547
548 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
549
550         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
551         in the dump file.
552
553 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
554
555         * doc/options.texi (Negative): Explicitly mention that the
556         Negative chain must be circular.
557
558 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
559
560         * function.h (block_chainon): Declare.
561         * function.c (block_chainon): Define.
562
563 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
564             Eric Weddington  <eric.weddington@atmel.com>
565             Georg-Johann Lay <avr@gjlay.de>
566
567         * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
568         New Includes
569         (avr_init_builtins, avr_expand_builtin,
570         avr_expand_delay_cycles, avr_expand_unop_builtin,
571         avr_expand_binop_builtin ): New functions.
572         (avr_builtin_id): New enum
573         (struct avr_builtin_description): New struct
574         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
575         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
576
577         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
578         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
579         UNSPECV_DELAY_CYCLES): new enumeration values
580         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
581         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
582         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
583         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
584         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
585         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
586         "fmulsu"): New insns
587
588         * config/avr/avr-c.c: fix line endings
589         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
590         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
591         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
592         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
593         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
594
595         * doc/extend.texi (AVR Built-in Functions): New node
596         (Target Builtins): Add documentation of AVR
597         built-in functions.
598
599 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
600
601         PR target/44643
602         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
603         alone. Error if non-const data has attribute progmem.
604
605 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
606
607         * tree.h (struct tree_constructor): Include tree_typed instead of
608         tree_common.
609         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
610         TS_TYPED instead of TS_COMMON.
611
612 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
613
614         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
615         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
616         (sse2_psadbw): Merge with *avx_psadbw.
617         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
618         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
619         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
620         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
621         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
622         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
623         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
624         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
625         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
626         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
627         (ssse3_palignrti): Merge with *avx_palignrti.
628
629 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
630
631         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
632         * tree-ssanames.c (fini_ssanames): VEC_free it.
633         (make_ssa_name_fn): Update for VECness of free_ssanames.
634         (release_ssa_name, release_dead_ssa_names): Likewise.
635         * tree.h (struct tree_ssa_name): Include tree_typed instead of
636         tree_common.
637         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
638         TS_TYPED instead of TS_COMMON.
639
640 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
641
642         * postreload-gcse.c (gcse_after_reload_main): Add calls to
643         statistics_counter_event.
644         * tree-ssa-copyrename.c (stats): Define.
645         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
646         statistics_counter_event.
647         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
648         (bswap_stats, widen_mul_stats): Define.
649         (insert_reciprocals): Increment rdivs_inserted.
650         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
651         rfuncs_inserted.  Add calls to statistics_counter_event.
652         (execute_cse_sincos_1): Increment inserted.
653         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
654         statistics_counter_event.
655         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
656         of bswap_stats.  Add calls to statistics_counter_event.
657         (convert_mult_to_widen): Increment widen_mults_inserted.
658         (convert_plusminus_to_widen): Increment maccs_inserted.
659         (convert_mult_to_fma): Increment fmas_inserted.
660         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
661         calls to statistics_counter_event.
662
663 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
664
665         PR rtl-optimization/48455
666         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
667         `temp_costs->mem_cost'.
668
669 2011-04-13  Jan Hubicka  <jh@suse.cz>
670
671         * ipa-inline.h: New file.
672         * ipa-inline-analysis.c: New file. Broken out of ...
673         * ipa-inline.c: ... this file; update toplevel comment;
674         include ipa-inline.h
675         (inline_summary): Move to ipa-inline.h
676         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
677         ipa-inline-analysis.c.
678         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
679         move to ipa-inline-analysis.c
680         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
681         to estimate_edge_growth.
682         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
683         rename to estimate_size_after_inlining.
684         (cgraph_mark_inline_edge): Update for new naming convention.
685         (cgraph_check_inline_limits): Likewise.
686         (cgraph_edge_badness): Likewise.
687         (cgraph_decide_recursive_inlining): Likewise.
688         (cgraph_decide_inlining_of_small_functions): Likewise.
689         (cgraph_decide_inlining_incrementally): Likewise.
690         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
691         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
692         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
693         (compute_inline_parameters): Likewise.
694         (compute_inline_parameters_for_current): Likewise.
695         (pass_inline_parameters): Likewise.
696         (inline_indirect_intraprocedural_analysis): Likewise.
697         (analyze_function): Rename to inline_analyze_function; likewise.
698         (add_new_function): Move to ipa-inline-analysis.c.
699         (inline_generate_summary): Likewise.
700         (inline_read_summary): Likewise.
701         (inline_write_summary): Likewise.
702         * Makefile.in (ipa-inline-analysis.c): New file.
703
704 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
705
706         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
707         * configure: Regenerate.
708
709 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
710
711         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
712         instead of tree_common.
713         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
714         Likewise.
715         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
716         TS_TYPED rather than TS_COMMON.
717         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
718
719 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
720
721         PR target/45263
722         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
723         r20 around calls of __tablejump_elpm__
724
725 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
726
727         PR middle-end/48591
728         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
729         NULL.
730         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
731
732 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
733
734         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
735         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
736         (cfi_vec): New typedef.
737         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
738         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
739         (cie_cfi_vec): New static variable.
740         (cie_cfi_head): Delete.
741         (add_cfi): Accept a cfi_vec * as first argument. All callers and
742         declaration changed. Use vector rather than list operations.
743         (new_cfi): Don't initialize the dw_cfi_next field.
744         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
745         rather than list operations.
746         (lookup_cfa): Use vector rather than list operations.
747         (output_cfis): New argument upto. Accept a cfi_vec rather than
748         a dw_cfi_ref list head as argument. All callers changed.
749         Iterate over the vector using upto as a maximum index.
750         (output_all_cfis): New static function.
751         (output_fde): Use vector rather than list operations. Use the
752         new upto argument for output_cfis rather than manipulating a
753         list.
754         (dwarf2out_begin_prologue): Change initializations to match
755         new struct members.
756         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
757         from the vector length rather than searching for the end of a list.
758         Use output_all_cfis.
759         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
760
761 2011-04-13  Nick Clifton  <nickc@redhat.com>
762
763         * config/rx/rx.md (movmemsi): Do not use this pattern when
764         volatile pointers are involved.
765
766 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
767
768         * config/i386/sse.md (pinsrbits): Remove.
769         (sse2_packsswb): Merge with *avx_packsswb.
770         (sse2_packssdw): Merge with *avx_packssdw.
771         (sse2_packuswb): Merge with *avx_packuswb.
772         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
773         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
774         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
775         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
776         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
777         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
778         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
779         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
780         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
781         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
782         (sse2_loadld): Merge with *avx_loadld.
783         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
784         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
785         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
786         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
787         (vec_concatv2di): Merge with *vec_concatv2di_avx.
788
789 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
790
791         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
792         calling TREE_CHAIN.
793         * print-tree.c (print_node): Likewise.
794         * tree-inline.c (copy_tree_r): Likewise.
795         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
796         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
797         instead of TS_COMMON.
798         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
799         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
800         (copy_node_stat): Zero TREE_CHAIN only if necessary.
801         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
802         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
803         ...and these...
804         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
805         * tree.h: ...here.
806         (TREE_CHAIN): Check for a TS_COMMON structure.
807         (TREE_TYPE): Check for a TS_TYPED structure.
808
809 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
810
811         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
812         cgraph_get_create_node instead of cgraph_node.
813
814 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
815
816         * c-parser.c (c_parser_initelt): Updated call to
817         objc_build_message_expr.
818         (c_parser_postfix_expression): Likewise.
819
820 2011-04-12  Kai Tietz  <ktietz@redhat.com>
821
822         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
823         MASK_MS_BITFIELD_LAYOUT bit.
824
825 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
826
827         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
828         assert it is always true.
829         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
830         moves.
831
832 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
833
834         * c-parser.c (c_lex_one_token): Rewritten conditional used when
835         compiling Objective-C to be more efficient.
836
837 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
838
839         * opts-common.c (decode_cmdline_options_to_array): Remove variable
840         argv_copied.
841
842 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
843
844         * recog.h, genoutput.c, optabs.c: Revert last patch.
845
846 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
847
848         PR target/48090
849         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
850
851 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
852
853         * recog.h (insn_operand_data): Add an "allows_mem" field.
854         * genoutput.c (output_operand_data): Initialize it.
855         * optabs.c (maybe_legitimize_operand_same_code): New function.
856         (maybe_legitimize_operand): Use it when matching the original
857         op->value.
858
859 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
860
861         * genpreds.c (process_define_predicate): Move most processing
862         to gensupport.c.  Continue to validate the expression.
863         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
864         (process_define_predicate): Move processing to gensupport.c.
865         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
866         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
867         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
868         argument.
869         (valid_predicate_name_p): New function, split out from old
870         genpreds.c:process_define_predicate.
871         (process_define_predicate): New function, combining code from
872         old genpreds.c and genrecog.c functions.
873         (process_rtx): Call it for DEFINE_PREDICATE and
874         DEFINE_SPECIAL_PREDICATE.
875
876 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
877
878         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
879         size of a '%A' memory reference.
880         (T_DREG, T_QREG): New neon_builtin_type_bits.
881         (arm_init_neon_builtins): Assert that the load and store operands
882         are neon_struct_operands.
883         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
884         (NEON_ARG_MEMORY): New builtin_arg.
885         (neon_dereference_pointer): New function.
886         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
887         Handle NEON_ARG_MEMORY.
888         (arm_expand_neon_builtin): Update after above interface changes.
889         Use NEON_ARG_MEMORY for loads and stores.
890         * config/arm/predicates.md (neon_struct_operand): New predicate.
891         * config/arm/iterators.md (V_two_elem): Tweak formatting.
892         (V_three_elem): Use BLKmode for accesses that have no associated mode.
893         (V_four_elem): Tweak formatting.
894         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
895         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
896         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
897         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
898         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
899         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
900         (neon_vst4<mode>): Replace pointer operand with a memory operand.
901         Use %A in the output template.
902         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
903         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
904         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
905         the width of the memory access.  Remove post-increment.
906         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
907
908 2011-04-12  Nick Clifton  <nickc@redhat.com>
909
910         * config/v850/v850.c (expand_prologue): Do not use the CALLT
911         instruction for interrupt handlers if the target is the basic V850
912         architecture.
913         (expand_epilogue): Likewise.
914
915 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
916
917         PR rtl-optimization/48549
918         * combine.c (propagate_for_debug): Also stop after BB_END of
919         this_basic_block.  Process LAST and just stop processing after it.
920         (combine_instructions): If last_combined_insn has been deleted,
921         set last_combined_insn to its PREV_INSN.
922
923 2011-04-12  Richard Guenther  <rguenther@suse.de>
924
925         PR tree-optimization/46076
926         * gimple.h (struct gimple_statement_call): Add fntype field.
927         (gimple_call_fntype): Adjust.
928         (gimple_call_set_fntype): New function.
929         * gimple.c (gimple_build_call_1): Set the call function type.
930         * gimplify.c (gimplify_call_expr): Preserve the function
931         type the frontend used for the call.
932         (gimplify_modify_expr): Likewise.
933         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
934         function type.
935         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
936         function type.
937         * tree-ssa.c (useless_type_conversion_p): Function pointer
938         conversions are useless.
939
940 2011-04-12  Martin Jambor  <mjambor@suse.cz>
941
942         * cgraph.h (cgraph_node): Remove function declaration.
943         (cgraph_create_node): Declare.
944         (cgraph_get_create_node): Likewise.
945         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
946         Updated all callers.
947         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
948         the decl does not already exist.  Call cgraph_get_create_node instead
949         of cgraph_node.
950         (cgraph_get_create_node): New function.
951         (cgraph_same_body_alias): Update comment.
952         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
953         assert it does not return NULL.
954         (cgraph_update_edges_for_call_stmt): Likewise.
955         (cgraph_clone_edge): Likewise.
956         (cgraph_create_virtual_clone): Likewise.
957         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
958         instead of cgraph_node.
959         (cgraph_add_new_function): Call cgraph_create_node or
960         cgraph_get_create_node instead of cgraph_node.
961         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
962         instead of cgraph_node.
963         (record_eh_tables): Likewise.
964         (mark_address): Likewise.
965         (mark_load): Likewise.
966         (build_cgraph_edges): Call cgraph_get_create_node instead
967         of cgraph_node.
968         (rebuild_cgraph_edges): Likewise.
969         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
970         instead of cgraph_node.
971         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
972         cgraph_node.
973         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
974         cgraph_create_node instead of cgraph_node.
975         * c-decl.c (finish_function): Call cgraph_get_create_node instead
976         of cgraph_node.
977         * lto-cgraph.c (input_node): Likewise.
978         * lto-streamer-in.c (input_function): Likewise.
979         * varasm.c (mark_decl_referenced): Likewise.
980         (assemble_alias): Likewise.
981
982 2011-04-12  Martin Jambor  <mjambor@suse.cz>
983
984         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
985         instead of cgraph_node and assert it does not return NULL.
986         * lto-streamer-in.c (lto_read_body): Likewise.
987         * omp-low.c (new_omp_context): Likewise.
988         (create_task_copyfn): Likewise.
989         * tree-emutls.c (lower_emutls_function_body): Likewise.
990         * matrix-reorg.c (transform_allocation_sites): Likewise.
991
992 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
993
994         PR c/48552
995         * c-typeck.c (build_asm_expr): Error out on attempts to use
996         void type outputs or inputs for constraints that allow reg or
997         don't allow memory.
998
999 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1000             Richard Earnshaw  <rearnsha@arm.com>
1001
1002         PR target/48250
1003         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1004         to use sign-magnitude offsets. Reject unsupported unaligned
1005         cases. Add detailed description in comments.
1006         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1007         condition from TARGET_32BIT to TARGET_ARM.
1008
1009 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1010
1011         * tree.h (struct typed_tree): New.
1012         (struct tree_common): Include it instead of tree_base.
1013         (TREE_TYPE): Update for new location of type field.
1014         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1015         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1016         (union tree_node): Add typed field.
1017         * treestruct.def (TS_TYPED): New.
1018         * lto-streamer.c (check_handled_ts_structures): Handle it.
1019         * tree.c (MARK_TS_TYPED): New macro.
1020         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1021
1022 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1023
1024         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1025         (force_nonfallthru): Do not alter the loop nest if no basic block
1026         was created.
1027
1028 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1029
1030         * config/i386/sse.md (VI): New mode iterator.
1031         (SSEMODEI): Remove.
1032         (AVX256MODEI): Ditto.
1033         (AVXMODEF4P): Ditto.
1034         (avxvecpsmode): Ditto.
1035         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1036         (sse2_andnot<mode>3): New expander.
1037         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1038         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1039         (<any_logic:code><mode>3): Use VI mode iterator.
1040         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1041         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1042         (*andnottf3): Handle AVX three-operand constraints.
1043         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1044
1045 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1046             Robert Millan  <rmh@gnu.org>
1047
1048         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1049         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1050         GNU_USER_DYNAMIC_LINKER64): Define.
1051         (REG_NAME): Don't undefine.
1052         (MD_UNWIND_SUPPORT): Undefine.
1053         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1054         (REG_NAME): Don't undefine.
1055         (MD_UNWIND_SUPPORT): Undefine.
1056         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1057
1058 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1059
1060         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1061         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1062
1063 2011-04-11  Xinliang David Li  <davidxl@google.com>
1064
1065         * value-profile.c (check_ic_target): New function.
1066         (gimple_ic_transform): Sanity check indirect call target.
1067         * gimple-low.c (gimple_check_call_args): Interface change.
1068         (gimple_check_call_matching_types): New function.
1069         * tree-inline.c (tree_can_inline_p): Call new function.
1070
1071 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1072
1073         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1074         tree-pretty-print.h & realmpfr.h.
1075
1076 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1077
1078         PR middle-end/48464
1079         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1080         (setup_allocno_and_important_classes): Ditto.
1081
1082 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1083
1084         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1085         GNU_USER_DYNAMIC_LINKER.
1086         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1087         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1088         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1089         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1090         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1091         GNU_USER_TARGET_OS_CPP_BUILTINS.
1092         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1093         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1094         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1095         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1096         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1097         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1098         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1099         GNU_USER_TARGET_OS_CPP_BUILTINS.
1100         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1101         GNU_USER_DYNAMIC_LINKER.
1102         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1103         GNU_USER_TARGET_OS_CPP_BUILTINS.
1104         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1105         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1106         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1107         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1108         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1109         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1110         GNU_USER_DYNAMIC_LINKER64): Remove.
1111         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1112         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1113         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1114         GNU_USER_DYNAMIC_LINKER.
1115         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1116         GNU_USER_TARGET_OS_CPP_BUILTINS.
1117         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1118         GNU_USER_TARGET_OS_CPP_BUILTINS.
1119         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1120         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1121         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1122         GNU_USER_TARGET_OS_CPP_BUILTINS.
1123         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1124         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1125         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1126         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1127         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1128         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1129         GNU_USER_DYNAMIC_LINKER.
1130         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1131         GNU_USER_TARGET_OS_CPP_BUILTINS.
1132         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1133         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1134         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1135         GNU_USER_DYNAMIC_LINKER.
1136         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1137         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1138         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1139         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1140         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1141         GNU_USER_DYNAMIC_LINKER.
1142         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1143         GNU_USER_DYNAMIC_LINKERN32.
1144         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1145         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1146         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1147         GNU_USER_DYNAMIC_LINKER32.
1148         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1149         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1150         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1151         GNU_USER_DYNAMIC_LINKER.
1152         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1153         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1154         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1155         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1156         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1157         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1158         GNU_USER_DYNAMIC_LINKER32.
1159         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1160         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1161         GNU_USER_DYNAMIC_LINKER.
1162         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1163         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1164         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1165         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1166         GNU_USER_DYNAMIC_LINKER64.
1167         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1168         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1169         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1170         GNU_USER_DYNAMIC_LINKER.
1171         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1172         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1173         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1174         GNU_USER_DYNAMIC_LINKER.
1175         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1177         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1178         GNU_USER_DYNAMIC_LINKER32.
1179         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1180         GNU_USER_DYNAMIC_LINKER64.
1181         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1182         GNU_USER_DYNAMIC_LINKER64.
1183         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1184         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1185         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1186         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1187         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1188
1189 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1190
1191         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1192         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1193         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1194         GNU_USER_DYNAMIC_LINKER.
1195         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1196         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1197         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1198         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1199         GNU_USER_DYNAMIC_LINKER64.
1200         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1201         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1202         GNU_USER_LINK_EMULATION.
1203         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1204         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1205         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1206         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1207         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1208         CPP_SPEC, CC1_SPEC): Remove.
1209         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1210         (GNU_USER_DYNAMIC_LINKER): Define.
1211         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1212         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1213         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1214         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1215         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1216         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1217         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1218         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1219         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1220         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1221         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1222         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1223         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1224         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1225         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1226         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1227         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1228         GNU_USER_DYNAMIC_LINKER.
1229         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1230         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1231         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1232         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1233         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1234         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1235         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1236         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1237         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1238         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1239
1240 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1241
1242         PR target/9601
1243         PR target/11772
1244         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1245         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1246         comment.
1247         (ix86_is_msabi_thiscall): Removed.
1248         (ix86_is_type_thiscall): Likewise.
1249         (ix86_get_callcvt): New function.
1250         (ix86_comp_type_attributes): Simplify check.
1251         (ix86_function_regparm): Use ix86_get_callcvt for calling
1252         convention attribute checks.
1253         (ix86_return_pops_args): Likewise.
1254         (ix86_static_chain): Likewise.
1255         (x86_this_parameter): Likewise.
1256         (x86_output_mi_thunk): Likewise.
1257         (ix86_function_type_abi): Optimize check for types without attributes.
1258         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1259         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1260         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1261         by flag-values.
1262         (IX86_BASE_CALLCVT): Helper macro.
1263         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1264         Use ix86_get_callcvt for calling convention attribute checks and avoid
1265         symbol-decoration for stdcall in TARGET_RTD case.
1266         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1267         Likewise.
1268         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1269         for declaration.
1270
1271 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1272
1273         * config/i386/sse.md (VI_128): New mode iterator.
1274         (VI12_128): Rename from SSEMODE12.
1275         (VI14_128): Rename from SSEMODE14.
1276         (VI124_128): New mode iterator.
1277         (VI24_128): Rename from SSEMODE248.
1278         (VI248_128): Rename from SSEMODE248.
1279         (SSEMODE124C8): Remove.
1280         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1281         (*sse2_<plusminus_insn><mode>3): Merge with
1282         *avx_<plusminus_insn><mode>3.
1283         (*mulv8hi3): Merge with *avx_mulv8hi3.
1284         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1285         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1286         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1287         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1288         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1289         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1290         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1291         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1292         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1293         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1294         (*<smaxmin:code>v8hi3): Ditto.
1295         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1296         (*<smaxmin:code>v16qi3): Ditto.
1297         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1298         (*sse2_eq<mode>3): Ditto.
1299         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1300         (*sse2_gt<mode>3): Ditto.
1301         (vcondv2di): Split out of vcond<mode>.
1302         (vconduv2di): Split out of vcondu<mode>.
1303
1304 2011-04-11  Richard Guenther  <rguenther@suse.de>
1305
1306         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1307         before calling tree_low_cst.
1308
1309 2011-04-11  Richard Guenther  <rguenther@suse.de>
1310
1311         * stor-layout.c (layout_type): Compute all array index size operations
1312         in the original type.
1313         (initialize_sizetypes): Add comment.
1314         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1315
1316 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1317
1318         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1319
1320 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1321
1322         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1323         of cgraph_node, handle NULL return value.
1324         (cgraph_global_info): Likewise.
1325         (cgraph_rtl_info): Likewise.
1326         * tree-inline.c (estimate_num_insns): Likewise.
1327         * gimplify.c (unshare_body): Likewise.
1328         (unvisit_body): Likewise.
1329         (gimplify_body): Likewise.
1330         * predict.c (optimize_function_for_size_p): Likewise.
1331         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1332         (call_may_clobber_ref_p_1): Likewise.
1333         * varasm.c (function_section_1): Likewise.
1334         (assemble_start_function): Likewise.
1335
1336 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1337
1338         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1339         of cgraph_node.
1340         * final.c (rest_of_clean_state): Likewise.
1341         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1342         * passes.c (pass_init_dump_file): Likewise.
1343         (execute_all_ipa_transforms): Likewise.
1344         (function_called_by_processed_nodes_p): Likewise.
1345         * predict.c (maybe_hot_frequency_p): Likewise.
1346         (probably_never_executed_bb_p): Likewise.
1347         (compute_function_frequency): Likewise.
1348         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1349         (unnest_nesting_tree_1): Likewise.
1350         (lower_nested_functions): Likewise.
1351         * tree-optimize.c (execute_fixup_cfg): Likewise.
1352         (tree_rest_of_compilation): Likewise.
1353         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1354         * tree-sra.c (ipa_early_sra): Likewise.
1355         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1356         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1357         * ipa.c (record_cdtor_fn): Likewise.
1358         * ipa-inline.c (cgraph_early_inlining): Likewise.
1359         (compute_inline_parameters_for_current): Likewise.
1360         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1361         * ipa-pure-const.c (local_pure_const): Likewise.
1362         * ipa-split.c (split_function): Likewise.
1363         (execute_split_functions): Likewise.
1364         * cgraphbuild.c (build_cgraph_edges): Likewise.
1365         (rebuild_cgraph_edges): Likewise.
1366         (cgraph_rebuild_references): Likewise.
1367         (remove_cgraph_callee_edges): Likewise.
1368         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1369         (verify_cgraph_node): Likewise.
1370         (cgraph_analyze_functions): Likewise.
1371         (cgraph_preserve_function_body_p): Likewise.
1372         (save_inline_function_body): Likewise.
1373         (save_inline_function_body): Likewise.
1374         * tree-inline.c (copy_bb): Likewise.
1375         (optimize_inline_calls): Likewise.
1376
1377 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1378
1379         PR tree-optimization/48195
1380         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1381         ipa_check_create_edge_args.
1382         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1383         ipa_check_create_edge_args.
1384         * ipa-inline.c (inline_generate_summary): Do not call
1385         ipa_check_create_node_params and ipa_check_create_edge_args.
1386         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1387         ipa_check_create_edge_args.
1388
1389 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1390
1391         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1392         instead of loop.
1393         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1394         * function.c (record_hard_reg_sets): Likewise.
1395         * ira.c (compute_regs_asm_clobbered): Likewise.
1396         * sched-deps.c (sched_analyze_1): Likewise.
1397         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1398
1399 2011-04-09  Xinliang David Li  <davidxl@google.com>
1400
1401         PR tree-optimization/PR48484
1402         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1403         has_valid_pred lazily
1404
1405 2011-04-09  Duncan Sands  <baldrick@free.fr>
1406
1407         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1408
1409 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1410
1411         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1412         cost of I0 to zero at the end, if any.
1413
1414 2011-04-08  Xinliang David Li  <davidxl@google.com>
1415
1416         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1417         to insane profile data.
1418
1419 2011-04-08  Xinliang David Li  <davidxl@google.com>
1420
1421         * final.c (dump_basic_block_info): New function.
1422         (final): Dump basic block.
1423         (final_scan_insn): Remove old dump.
1424
1425 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1426
1427         PR target/47829
1428         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1429         crtbegin/crtend.
1430
1431 2011-04-08  Michael Matz  <matz@suse.de>
1432
1433         PR middle-end/48389
1434         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1435         functions.
1436         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1437         * rtl.h (rebuild_jump_labels_chain): Declare.
1438         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1439         insns inserted on edges.
1440
1441 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1442
1443         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1444         * config/arm/arm-arches.def: New.
1445         * config/arm/arm-opts.h: New.
1446         * config/arm/genopt.sh: New.
1447         * config/arm/arm-tables.opt: New (generated).
1448         * config/arm/arm.c (arm_handle_option, arm_target_help,
1449         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1450         (all_architectures): Get most table contents from arm-arches.def.
1451         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1452         arm_selected_tune here.
1453         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1454         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1455         (march=, mcpu=, mtune=): Use Enum and Var.
1456         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1457         (arm.o): Update dependencies.
1458
1459 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1460
1461         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1462         of header_file.
1463         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1464         (write_typed_alloc_defns): Likewise.
1465         (main): Calls write_typed_alloc_defns with output_header.
1466
1467 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1468
1469         PR inline-asm/48435
1470         * ira-color.c (setup_profitable_hard_regs): Add comments.
1471         Don't take prohibited hard regs into account.
1472         (setup_conflict_profitable_regs): Rename to
1473         get_conflict_profitable_regs.
1474         (check_hard_reg_p): Check prohibited hard regs.
1475
1476 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1477
1478         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1479         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1480         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1481
1482 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1483
1484         PR target/48366
1485         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1486         move from floating point to shift amount register .
1487         (emit_move_sequence): Remove secondary reload support for floating
1488         point to shift amount amount register copies.
1489         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1490         amount register copies.
1491         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1492         register, return false if mode isn't a scalar integer mode.
1493         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1494
1495 2011-04-08  Richard Guenther  <rguenther@suse.de>
1496
1497         * gimple.c (gimple_call_flags): Remove kludge.
1498
1499 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1500
1501         * sel-sched.c (sel_region_init): Move call to
1502         sel_setup_region_sched_flags after setup_current_loop_nest.
1503
1504 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1505
1506         PR rtl-optimization/48272
1507         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1508         init_insn_reg_pressure_info.  Adjust a caller.
1509         * sched-int.h (init_insn_reg_pressure_info): Declare.
1510         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1511         when sched-pressure is enabled.
1512
1513 2011-04-08  Richard Guenther  <rguenther@suse.de>
1514
1515         * gimple.c (gimple_set_modified): Do not queue calls to
1516         MODIFIED_NORETURN_CALLS here ...
1517         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1518
1519 2011-04-08  Richard Guenther  <rguenther@suse.de>
1520
1521         PR lto/48467
1522         * toplev.c (lang_dependent_init): Do not open asm_out_file
1523         in WPA mode, nor perform debug machinery initialization.
1524         (finalize): Do not unlink asm_out_file in WPA mode.
1525
1526 2011-04-08  Richard Guenther  <rguenther@suse.de>
1527
1528         * gimple.h (gimple_call_fntype): New function.
1529         (gimple_call_return_type): Use it.
1530         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1531         * gimple-low.c (gimple_check_call_args): Likewise.
1532         * gimple.c (gimple_call_flags): Likewise.
1533         (gimple_call_arg_flags): Likewise.
1534         (gimple_call_return_flags): Likewise.
1535         * tree-cfg.c (verify_gimple_call): Likewise.
1536         (do_warn_unused_result): Likewise.
1537         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1538         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1539
1540 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1541
1542         PR rtl-optimization/48235
1543         * sel-sched.c (code_motion_process_successors): Recompute the last
1544         insn in basic block if control flow changed.
1545         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1546         Update condition for ilist_remove.
1547
1548 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1549
1550         PR rtl-optimization/48302
1551         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1552         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1553         it to record added preheader blocks.
1554         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1555         on to sel_add_loop_preheaders.
1556         (sel_region_init): Move call to setup_current_loop_nest after
1557         sel_init_bbs.
1558
1559 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1560
1561         PR target/48273
1562         * cfgloop.h (loop_has_exit_edges): New helper.
1563         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1564         non-clonable.
1565         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1566         that have no exit edges.
1567
1568 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1569
1570         PR rtl-optimization/48442
1571         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1572         all callers.  Adjust assert.
1573
1574 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1575
1576         PR tree-optimization/48377
1577         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1578         is_packed to true even for types with smaller TYPE_ALIGN than
1579         TYPE_SIZE.
1580
1581 2011-04-08  Richard Guenther  <rguenther@suse.de>
1582
1583         PR bootstrap/48513
1584         * doc/tm.texi: Re-generate.
1585
1586 2011-04-08  Wei Guozhi  <carrot@google.com>
1587
1588         PR target/47855
1589         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1590         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1591         * config/arm/arm.md (*push_multi): Change the length computation to
1592         call a C function.
1593
1594 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1595
1596         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1597         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1598         * doc/tm.texi: Regenerate.
1599         * system.h (ASM_OUTPUT_BSS): Poison.
1600         * varasm.c (asm_output_bss): Remove function.
1601         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1602
1603         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1604         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1605         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1606         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1607         Likewise.
1608         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1609         Likewise.
1610         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1611         Likewise.
1612         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1613
1614 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1615
1616         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1617         EnumValue lines.
1618
1619 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1620
1621         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1622         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1623         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1624         OPT_mcpu32.
1625         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1626         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1627         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1628         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1629         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1630         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1631         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1632         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1633         options.  Don't map other m68k options manually.  Don't handle
1634         old-style options as canonical.
1635         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1636         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1637
1638 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1639
1640         * basic-block.h (force_nonfallthru): Move to...
1641         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1642         (force_nonfallthru): ...here.
1643         * cfghooks.c (force_nonfallthru): New function.
1644         * cfgrtl.c (force_nonfallthru): Rename into...
1645         (rtl_force_nonfallthru): ...this.
1646         (commit_one_edge_insertion): Do not set AUX field.
1647         (commit_edge_insertions): Do not discover new basic blocks.
1648         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1649         (cfg_layout_rtl_cfg_hooks): Likewise.
1650         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1651         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1652         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1653
1654 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1655
1656         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1657         Remove macros.
1658
1659 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1660
1661         * config/i386/sse.md: Update copyright year.
1662         (avxcvtvecmode): Remove.
1663         (sse_movhlps): Merge with *avx_movhlps.
1664         (sse_movlhps): Merge with *avx_movlhps.
1665         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1666         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1667         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1668         (sse_loadhps): Merge with *avx_loadhps.
1669         (sse_storelps): Merge with *avx_storelps.
1670         (sse_loadlps): Merge with *avx_loadlps.
1671         (sse_movss): Merge with *avx_movss.
1672         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1673         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1674         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1675         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1676         (vec_set<mode>_0): Ditto.
1677         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1678         (sse4_1_insertps): Merge with *avx_insertps.
1679         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1680         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1681         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1682         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1683         (sse2_storehpd): Merge with *avx_storehpd.
1684         (sse2_loadhpd): Merge with *avx_loadhpd.
1685         (sse2_loadlpd): Merge with *avx_loadlpd.
1686         (sse2_movsd): Merge with *avx_movsd.
1687         (*vec_concatv2df): Merge with *vec_concatv2df.
1688
1689 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1690
1691         PR debug/48343
1692         * combine.c (combine_instructions): Add last_combined_insn,
1693         update it if insn is after it, pass it to all try_combine calls.
1694         (try_combine): Add last_combined_insn parameter, pass it instead of
1695         i3 to propagate_for_debug.
1696
1697 2011-04-07  Nick Clifton  <nickc@redhat.com>
1698
1699         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1700         to handle MDR <-> data register transfers.
1701         (movhi_internal): Likewise.
1702
1703 2011-04-07  Alan Modra  <amodra@gmail.com>
1704
1705         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1706         previous stack info.
1707
1708 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1709
1710         PR target/43920
1711         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1712         flow_find_cross_jump.  Swap variables to implement backward replacement.
1713         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1714
1715 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1716
1717         PR target/43920
1718         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1719         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1720         and bb2.
1721         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1722         src1 or src2.  Redirect edges to the last basic block.  Update
1723         frequency and count on multiple basic blocks in case of fallthru.
1724
1725 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1726
1727         PR target/43920
1728         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1729         function.
1730         (old_insns_match_p): Change return type.  Replace return false/true
1731         with return dir_none/dir_both.  Use can_replace_by.
1732         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1733         direction from dir_p.  Register replacement direction in dir, last_dir
1734         and afterlast_dir.  Handle new return type of old_insns_match_p using
1735         merge_dir.  Return replacement direction in dir_p.
1736         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1737         return type of old_insns_match_p.
1738         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1739         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1740         flow_find_cross_jump.
1741         * basic-block.h (enum replace_direction): New type.
1742         (flow_find_cross_jump): Add parameter to declaration.
1743
1744 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1747         (AVXMODEDCVTPS2DQ): Ditto.
1748         (VEC_FLOAT_MODE): Ditto.
1749         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1750         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1751         (<any_logic:code><mode>3): Use VF mode iterator.
1752         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1753         Use VF mode iterator.
1754         (copysign<mode>3): Use VF mode iterator.
1755         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1756         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1757         (*<any_logic:code><MODEF:mode>3): Merge with
1758         *avx_<any_logic:code><MODEF:mode>3.
1759         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1760         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1761         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1762         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1763         (sse2_cvtdq2ps): Use %v modifier.
1764         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1765         (avx_cvtps2dq<avxmodesuffix>): Remove.
1766         (sse2_cvtps2dq): Use %v modifier.
1767         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1768         (avx_cvttps2dq<avxmodesuffix>): Remove.
1769         (sse2_cvttps2dq): Use %v modifier.
1770         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1771         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1772         (sse2_cvtsd2siq): Fix insn template.
1773         (sse2_cvtsd2siq_2): Ditto.
1774         (sse2_cvttsd2siq): Ditto.
1775         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1776         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1777
1778 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1779
1780         * gcov-io.c: Use GCC Runtime Library Exception.
1781
1782 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1783
1784         PR debug/48466
1785         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1786         as base_reg whatever register reg has been eliminated to, instead
1787         of hardcoding STACK_POINTER_REGNUM.
1788
1789 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1790
1791         * doc/tm.texi.in: Document C target hooks as separate from general
1792         target hooks.
1793         * doc/tm.texi: Regenerate.
1794         * genhooks.c (struct hook_desc): Add docname field.
1795         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1796         docname field.
1797         (hook_array): Include c-target.def.
1798         (emit_documentation): Use docname field in output.
1799         (emit_init_macros): Take docname argument.  Only emit definitions
1800         for hooks matching docname.
1801         (main): Expect additional arguments in all cases.  Pass argument
1802         to emit_init_macros.
1803         * target.def: Move initial macro definitions and comments to
1804         target-hooks-macros.h.
1805         (gcc_targetcm): Move to c-family/c-target.def.
1806         * target.h (targetcm): Move declaration to c-family/c-target.h.
1807         * targhooks.c (default_handle_c_option): Move to
1808         c-family/c-opts.c.
1809         * targhooks.h (default_handle_c_option): Move declaration to
1810         c-family/c-common.h.
1811         * target-hooks-macros.h: New file.
1812         * config.gcc (target_has_targetcm): Define and use to add to
1813         c_target_objs and cxx_target_objs.
1814         * config/default-c.c: New file.
1815         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1816         of target.h and target-def.h.
1817         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1818         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1819         darwin_check_cfstring_format_arg): Make static.
1820         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1821         TARGET_STRING_OBJECT_REF_TYPE_P,
1822         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1823         * config/darwin-protos.h (darwin_objc_construct_string,
1824         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1825         declare.
1826         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1827         TARGET_STRING_OBJECT_REF_TYPE_P,
1828         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1829         * config/t-darwin (darwin-c.o): Update dependencies.
1830         * system.h (TARGET_HAS_TARGETCM): Poison.
1831         * Makefile.in (TARGET_H): Update.
1832         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1833         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1834         (default-c.o): New target.
1835         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1836         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1837         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1838         c-target.def.
1839         (build/genhooks.o): Update dependencies.
1840
1841 2011-04-06  Richard Guenther  <rguenther@suse.de>
1842
1843         * ipa-inline.c (enum inlining_mode): Remove.
1844         (cgraph_flatten): Use some other token.
1845         (cgraph_edge_early_inlinable_p): New function, split out from ...
1846         (cgraph_perform_always_inlining): New function, split out from ...
1847         (cgraph_decide_inlining_incrementally): ... here.
1848         (cgraph_mark_inline_edge): Adjust.
1849         (cgraph_early_inlining): Re-structure.
1850         (pass_early_inline): Require SSA form.
1851
1852 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1853             Julian Brown  <julian@codesourcery.com>
1854             Mark Shinwell  <shinwell@codesourcery.com>
1855
1856         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1857         LO_REGS only for Thumb-1.
1858         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1859         be used in short instructions when optimising for size on Thumb-2.
1860
1861 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1862
1863         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1864         associated with user returns to be preserved.
1865
1866 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1867
1868         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1869         symbol_queue_size, DBXOUT_DECR_NESTING,
1870         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1871         if XCOFF_DEBUGGING_INFO.
1872
1873 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1874
1875         * config/i386/i386.md (attribute isa): New.
1876         (attribute enabled): New.
1877         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1878         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1879         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1880         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1881         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1882         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1883         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1884         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1885
1886         * config/i386/sse.md (VF): New mode iterator.
1887         (VF1): Ditto.
1888         (VF2): Ditto.
1889         (VF_128): Ditto.
1890         (SSEMODEF4): Remove.
1891         (attribute sse): Handle V8SF and V4DF modes.
1892         (<absneg:code><mode>2): Use VF mode iterator.
1893         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1894         mode iterator.
1895         (<plusminus_insn><mode>3): Use VF mode iterator.
1896         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1897         Use VF mode iterator.
1898         (<sse>_vm<plusminus_insn><mode>3): Merge with
1899         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
1900         (mul<mode>3): Use VF mode iterator.
1901         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
1902         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
1903         mode iterator.
1904         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1905         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1906         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
1907         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
1908         mode iterator.
1909         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1910         Use VF1 mode iterator.
1911         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1912         (sqrt<VF2:mode>2): New expander.
1913         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1914         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1915         and sqrtv2df2.  Use VF mode iterator.
1916         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
1917         mode iterator.
1918         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1919         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1920         Use VF1 mode iterator.
1921         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1922         (<smaxmin:code><mode>3): Use VF mode iterator.
1923         (*<smaxmin:code><mode>3_finite): Merge with
1924         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
1925         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1926         (<sse>_vm<smaxmin:code><mode>2): Merge with
1927         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
1928         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
1929         mode iterator.
1930         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
1931         mode iterator.
1932         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1933         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1934         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1935         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1936         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
1937         VF mode iterator.
1938         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1939         Use VF_128 mode iterator.
1940         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
1941         mode iterator.
1942         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
1943         VF_128 mode iterator.
1944         (vcond<mode>): Use VF mode iterator.
1945         * config/i386/predicates.md (sse_comparison_operator): Merge with
1946         avx_comparison_float_operator.  Do not declare as special_predicate.
1947         * config/i386/i386.c (struct builtin_description): Update for renamed
1948         compare patterns.
1949         (ix86_expand_args_builtin): Ditto.
1950         (ix86_expand_sse_compare_mask): Ditto.
1951
1952 2011-04-06  Richard Guenther  <rguenther@suse.de>
1953
1954         * tree-inline.c (estimate_num_insns): For calls simply account
1955         for all passed arguments and a used return value.
1956
1957 2011-04-06  Richard Guenther  <rguenther@suse.de>
1958
1959         PR tree-optimization/47663
1960         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1961         call_stmt_time fields.
1962         (cgraph_edge_inlinable_p): Declare.
1963         (cgraph_edge_recursive_p): New inline function.
1964         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1965         (cgraph_clone_edge): Copy it.
1966         * ipa-inline.c (cgraph_estimate_edge_time): New function.
1967         Account for call stmt time.
1968         (cgraph_estimate_time_after_inlining): Take edge argument.
1969         (cgraph_estimate_edge_growth): Account call stmt size.
1970         (cgraph_estimate_size_after_inlining): Take edge argument.
1971         (cgraph_mark_inline_edge): Adjust.
1972         (cgraph_check_inline_limits): Likewise.
1973         (cgraph_recursive_inlining_p): Remove.
1974         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1975         (cgraph_decide_recursive_inlining): Take edge argument and
1976         adjust.
1977         (cgraph_decide_inlining_of_small_functions): Do not avoid
1978         diags for recursive inlining here.
1979         (cgraph_flatten): Adjust.
1980         (cgraph_decide_inlining_incrementally): Likewise.
1981         (estimate_function_body_sizes): Remove call cost handling.
1982         (compute_inline_parameters): Initialize caller edge call costs.
1983         (cgraph_estimate_edge_growth): New function.
1984         (cgraph_estimate_growth): Use it.
1985         (cgraph_edge_badness): Likewise.
1986         (cgraph_check_inline_limits): Take an edge argument.
1987         (cgraph_decide_inlining_of_small_functions): Adjust.
1988         (cgraph_decide_inlining): Likewise.
1989         * tree-inline.c (estimate_num_insns): Only account for call
1990         return value if it is used.
1991         (expand_call_inline): Avoid diagnostics on recursive inline
1992         functions here.
1993         * lto-cgraph.c (lto_output_edge): Output edge call costs.
1994         (input_edge): Input edge call costs.
1995
1996 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1997
1998         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1999
2000 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2001
2002         * doc/invoke.texi (Spec Files): Fix typo.
2003
2004 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2005
2006         * profile.c (branch_prob): Move declaration of local variable.  Remove
2007         obsolete ??? comment.  Expand the location explicitly instead of using
2008         the LOCATION_FILE and LOCATION_LINE macros.
2009
2010 2011-04-06  Wei Guozhi  <carrot@google.com>
2011
2012         PR target/47855
2013         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2014         (arm_cond_branch): Likewise.
2015         (arm_cond_branch_reversed): Likewise.
2016         (arm_jump): Likewise.
2017         (push_multi): Likewise.
2018         * config/arm/constraints.md (Py): New constraint.
2019
2020 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2021
2022         PR bootstrap/48471
2023         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2024         Move these...
2025         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2026         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2027         #ifdef DBX_DEBUGGING_INFO.
2028
2029 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2030
2031         PR bootstrap/48403
2032         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2033         if old and new states differ.
2034
2035 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2036
2037         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2038         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2039         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2040         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2041         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2042         mcfv4e): Use Alias.
2043         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2044         ColdFire options to -mcpu= options.
2045
2046 2011-04-05  Jeff Law  <law@redhat.com>
2047
2048         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2049         check if BB is a successor of LOOP->header and return
2050         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2051
2052 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2053
2054         * cprop.c (struct reg_use): Remove.
2055         (reg_use_table): Make an array of RTX.
2056         (find_used_regs, constprop_register, local_cprop_pass,
2057         bypass_block): Simplify users of reg_use_table.
2058         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2059         on one of the uses found by find_used_regs.
2060
2061 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2062
2063         PR bootstrap/48469
2064         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2065         declaration.
2066
2067 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2068
2069         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2070         as an rtx.
2071         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2072
2073 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2074
2075         PR middle-end/48441
2076         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2077
2078 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2079
2080         * combine.c: Include obstack.h.
2081         (struct insn_link): Define.
2082         (uid_log_links): Adjust type.
2083         (FOR_EACH_LOG_LINK): New macro.
2084         (insn_link_obstack): Declare.
2085         (alloc_insn_link): Define.
2086         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2087         type of link variables.
2088         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2089         (try_combine, record_promoted_values, distribute_notes): Likewise.
2090         (distribute_links): Likewise.  Tweak prototype.
2091         (clear_log_links): Delete.
2092         (adjust_for_new_dest): Call alloc_insn_link.
2093         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2094
2095 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2096
2097         * gcse.c (modify_mem_list): Convert to an array of VECs.
2098         (canon_modify_mem_list, compute_transp): Tweak formatting.
2099         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2100         (load_killed_in_block_p): Likewise.
2101         (record_last_mem_set_info): Likewise.
2102         (clear_modify_mem_tables): Likewise.
2103
2104 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2105
2106         PR middle-end/48461
2107         * function.c (emit_use_return_register_into_block): Only define if
2108         HAVE_return.
2109
2110 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2111
2112         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2113
2114 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2115
2116         * config/rx/rx-opts.h: New.
2117         * config/rx/rx.c (rx_cpu_type): Remove.
2118         (rx_handle_option): Don't assert that global structures are in
2119         use.  Access variables via opts pointer.  Defer most handling of
2120         OPT_mint_register_.  Use error_at.
2121         (rx_option_override): Handle deferred OPT_mint_register_ here.
2122         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2123         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2124         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2125         (rx_cpu_types): New Enum and EnumValue entries.
2126         (mint-register=): Use Defer and use Var accordingly.
2127
2128 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2129
2130         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2131         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2132         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2133         Move these...
2134         (debug_free_queue, debug_nesting, symbol_queue_index):
2135         ...and these...
2136         * dbxout.c: ...to here.  Make static.
2137
2138 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2139
2140         * gcse.c (modify_pair): Define.  Define a VEC of it.
2141         (canon_modify_mem_list): Convert to an array of VECs.
2142         (free_insn_expr_list_list): Delete.
2143         (clear_modify_mem_tables): Call VEC_free instead.
2144         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2145         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2146         (canon_list_insert, compute_transp): Likewise.
2147
2148 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2149
2150         PR target/43920
2151         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2152         for size.
2153
2154 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2155
2156         PR target/43920
2157         * function.c (emit_use_return_register_into_block): New function.
2158         (thread_prologue_and_epilogue_insns): Use
2159         emit_use_return_register_into_block.
2160
2161 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2162
2163         PR target/43920
2164         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2165         insn.
2166
2167 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2168
2169         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2170
2171 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2172
2173         * config/arm/arm.md (define_constants for unspec): Replace with
2174         define_c_enum.
2175         (define_constants for unspecv): Replace with define_c_enum.
2176         * config/arm/neon.md (define_constants for unspec): Replace with
2177         define_c_enum.
2178
2179 2011-04-04  Richard Henderson  <rth@redhat.com>
2180
2181         PR bootstrap/48400
2182         * dwarf2out.c (output_line_info): Always emit line info from
2183         at least one section.
2184         (dwarf2out_init): Create text_section_line_info here ...
2185         (set_cur_line_info_table): ... not here.
2186
2187 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2188
2189         PR target/48380
2190         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2191         not called.
2192
2193         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2194
2195 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2196
2197         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2198         (expr_equiv_p): Remove.
2199         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2200         (hash_scan_set): Update call to insert_set_in_table.
2201         (dump_hash_table): Dump <dest, src> pair.
2202         (lookup_set): Simplify.  Lookup <dest, src> pair.
2203         (compute_transp): Remove, fold heavily simplified code into...
2204         (compute_local_properties): ...here.  Expect COMP and TRANSP
2205         unconditionally.
2206         (find_avail_set): Take set directly from struct expr.
2207         (find_bypass-set): Likewise.
2208         (bypass_block): Likewise.
2209         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2210
2211         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2212         checks on form of COND from find_implicit_sets to here.
2213         (find_implicit_sets): Cleanup control flow. Split critical edges
2214         if it exposes implicit sets.  Allocate/resize implicit_sets as
2215         necessary.
2216         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2217         changed something.  Run df_analyze after find_implicit_sets if any
2218         edges were split.  Do not allocate implicit_sets here.
2219
2220         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2221         (gcse_obstack): Renamed to cprop_obstack.
2222         (GNEW, GNEWVEC, GNEWVAR): Remove.
2223         (gmalloc): Remove.
2224         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2225         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2226         (gcse_alloc): Likewise, and rename to cprop_alloc.
2227         (alloc_gcse_men, free_gcse_mem): Remove.
2228         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2229         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2230         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2231
2232         * cprop.c (oprs_not_set_p): Remove.
2233         (mark_set, mark_clobber): Remove.
2234         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2235         (reg_not_set_p): New function.
2236         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2237         (cprop_insn): Likewise.
2238         (cprop_jump): Use FOR_EACH_EDGE.
2239
2240 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2241
2242         PR bootstrap/48403
2243         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2244         (rank_for_schedule): Use scheduled_insns vector instead of
2245         last_scheduled_insn.
2246         (ok_for_early_queue_removal): Likewise.
2247         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2248         we have a dbg_cnt.
2249         (choose_ready): Likewise.
2250         (commit_schedule): Use VEC_iterate.
2251         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2252         a dbg_cnt, use it and ensure the first insn is in the ready list.
2253         (haifa_sched_init): Allocate scheduled_insns.
2254         (sched_extend_ready_list): Don't allocate it; reserve space.
2255         (haifa_sched_finish): Free it.
2256
2257 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2258
2259         * optc-gen.awk: Always remove type from Variable entry before
2260         recording in var_seen.
2261
2262 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2263
2264         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2265         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2266         call to tidy_fallthru_edges.
2267
2268 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2269
2270         * doc/options.texi (ToLower): Document.
2271         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2272         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2273         * opts.h (cl_option): Add cl_tolower field.
2274         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2275         arguments with lowercase strings.
2276         * config/rx/rx.opt (mcpu=): Add ToLower.
2277         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2278         argument.
2279
2280 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2281
2282         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2283
2284 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2285
2286         * config/vax/vax.c: Include reload.h.
2287
2288 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2289
2290         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2291         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2292         (sparc_preferred_reload_class): New function.
2293
2294 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2295
2296         PR debug/48401
2297         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2298         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2299
2300 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2301
2302         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2303         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2304
2305 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2306
2307         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2308         (ASM_OUTPUT_ALIGNED_BSS): Define.
2309
2310 2011-04-03  Michael Matz  <matz@suse.de>
2311
2312         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2313         and next_slot members.
2314         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2315         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2316         (lto_streamer_cache_append): Declare.
2317         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2318         unsigned index, remove offset parameter, ensure that we append
2319         or update existing entries.
2320         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2321         parameter, update next_slot for append.
2322         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2323         parameter.
2324         (lto_streamer_cache_insert_at): Likewise.
2325         (lto_streamer_cache_append): New function.
2326         (lto_streamer_cache_lookup): Use unsigned index.
2327         (lto_streamer_cache_get): Likewise.
2328         (lto_record_common_node): Don't test tree_node_can_be_shared.
2329         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2330         (lto_streamer_cache_delete): Don't free offsets member.
2331         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2332         (lto_output_string_with_length): Use lto_output_data_stream.
2333         (lto_output_tree_header): Remove ix parameter, don't write it.
2334         (lto_output_builtin_tree): Likewise.
2335         (lto_write_tree): Adjust callers to above, don't track and write
2336         offset, write unsigned index.
2337         (output_unreferenced_globals): Don't emit all global vars.
2338         (write_global_references): Use unsigned indices.
2339         (lto_output_decl_state_refs): Likewise.
2340         (write_symbol): Likewise.
2341         * lto-streamer-in.c (lto_input_chain): Move earlier.
2342         (input_function): Use unsigned index.
2343         (input_alias_pairs): Don't read and then ignore all global vars.
2344         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2345         don't pass it back, use lto_streamer_cache_append.
2346         (lto_register_var_decl_in_symtab): Use unsigned index.
2347         (lto_register_function_decl_in_symtab): Likewise.
2348         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2349         index.
2350         (lto_get_builtin_tree): Don't read index, use
2351         lto_streamer_cache_append.
2352         (lto_read_tree): Adjust call to lto_materialize_tree.
2353
2354         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2355         don't use function calls in arguments to MIN.
2356
2357         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2358         twice.
2359
2360         * gimple.c (gimple_type_leader_entry): Mark deletable.
2361
2362 2011-04-03  Alan Modra  <amodra@gmail.com>
2363
2364         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2365
2366 2011-04-03  Michael Matz  <matz@suse.de>
2367
2368         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2369         an integer.
2370         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2371
2372 2011-04-03  Michael Matz  <matz@suse.de>
2373
2374         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2375         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2376         without function context.
2377         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2378         current_function_decl and cfun.
2379
2380 2011-04-03  Michael Matz  <matz@suse.de>
2381
2382         * tree.c (decl_init_priority_insert): Don't create entry for
2383         default priority.
2384         (decl_fini_priority_insert): Ditto.
2385         (fields_compatible_p, find_compatible_field): Remove.
2386         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2387         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2388
2389 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2390
2391         * combine.c (try_combine): Remove useless local variable.
2392
2393 2011-04-03  Richard Guenther  <rguenther@suse.de>
2394             Ira Rosen  <ira.rosen@linaro.org>
2395
2396         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2397         non-variable offsets and compare the remaining bases of the two
2398         accesses instead of looking for exact same data-ref.
2399
2400 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2401
2402         PR target/48416
2403         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2404
2405         * i386.c (ix86_is_msabi_thiscall): New helper function.
2406         (ix86_is_type_thiscall): New helper function.
2407         (ix86_comp_type_attributes): Handle thiscall for method-functions
2408         special.
2409         (init_cumulative_args): Likewise.
2410         (find_drap_reg): Likewise.
2411         (ix86_static_chain): Likewise.
2412         (x86_this_parameter): Likewise.
2413         (x86_output_mi_thunk): Likewise.
2414
2415 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2416             Nicolas Setton  <setton@adacore.com>
2417             Eric Botcazou  <ebotcazou@adacore.com>
2418
2419         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2420         (add_gnat_descriptive_type_attribute): New function.
2421         (gen_array_type_die): Call it.
2422         (gen_enumeration_type_die): Likewise.
2423         (gen_struct_or_union_type_die): Likewise.
2424         (modified_type_die): Likewise.
2425         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2426         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2427         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2428
2429 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2430
2431         PR bootstrap/48148
2432         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2433         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2434
2435         Revert:
2436         2011-03-17  Richard Guenther  <rguenther@suse.de>
2437
2438         PR bootstrap/48148
2439         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2440         origin for decls in other ltrans units.
2441         (input_varpool_node): Likewise.
2442
2443 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2444
2445         PR middle-end/48335
2446         * expr.c (expand_assignment): Handle all possibilities
2447         if TO_RTX is CONCAT.
2448         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2449         (store_split_bit_field): If SUBREG_REG (op0) or
2450         op0 itself has smaller mode than word, return it
2451         for offset 0 and const0_rtx for out-of-bounds stores.
2452         If word is const0_rtx, skip it.
2453
2454 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2455
2456         * config/h8300/h8300.c (print_operand_address): Rename to...
2457         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2458         Call h8300_print_operand and h8300_print_operand_address instead of
2459         print_operand and print_operand_address. Declare.
2460         (print_operand): Renake to...
2461         (h8300_print_operand): ...this. Make static. Adjust comments.
2462         Call h8300_print_operand instead of print_operand. Declare.
2463         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2464         (h8300_register_move_cost): Likewise.
2465         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2466         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2467         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2468         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2469         * config/h8300/h8300-protos.h (print_operand): Delete.
2470         (print_operand_address): Delete.
2471
2472 2011-04-01  Richard Henderson  <rth@redhat.com>
2473
2474         PR 48400
2475         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2476         in strict mode before dwarf4.  Re-order tests to early out
2477         before switching sections.
2478
2479 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2480
2481         * config/h8300/constraints.md: New file.
2482         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2483         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2484         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2485         * config/h8300/predicates.md (bit_operand): Likewise.
2486         (incdec_operand): Use satisfies_constraint_M and
2487         satisfies_constraint_O.  Don't use C code block.
2488         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2489         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2490         (compute_mov_length): Use satisfies_constraint_G.
2491         (fix_bit_operand): Use satisfies_constraint_U.
2492         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2493         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2494         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2495         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2496         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2497         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2498         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2499         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2500         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2501         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2502         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2503         (EXTRA_MEMORY_CONSTRAINT): Delete.
2504
2505 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2506             Michael Meissner  <meissner@linux.vnet.ibm.com>
2507
2508         PR target/48262
2509         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2510         operands, as per the specifications.
2511
2512         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2513         (vec_extract_evenv4sf): Ditto.
2514         (vec_extract_evenv8hi): Ditto.
2515         (vec_extract_evenv16qi): Ditto.
2516         (vec_extract_oddv4si): Ditto.
2517
2518 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2519
2520         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2521         high_pc attribute if the CU has no associated code. Only output
2522         DW_AT_entry_pc for CU if not generating strict dwarf and
2523         dwarf_version < 4.
2524
2525 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2526
2527         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2528         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2529         out of ...
2530         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2531         * final.c (final_start_function): Call the new function rather
2532         than using a NULL argument for dwarf2out_frame_debug.
2533
2534         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2535         that contains the prologue.
2536
2537         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2538         changed.  Print it in debugging output.
2539
2540         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2541
2542         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2543         Split most of the code into...
2544         (begin_move_insn): ... here.  New function.
2545         (ebb_sched_info): Add a pointer to it.
2546         * haifa-sched.c (scheduled_insns): New static variable.
2547         (sched_extend_ready_list): Allocate it.
2548         (schedule_block): Use it to record the order of scheduled insns.
2549         Perform RTL changes to move insns only after all scheduling
2550         decisions have been made.
2551         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2552         begin_move_insn field.
2553         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2554         * sched-int.h (struct haifa_sched_info): Remove second argument
2555         from begin_schedule_ready hook.  Add new member begin_move_insn.
2556         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2557         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2558
2559         * haifa-sched.c (prune_ready_list): New function, broken out of
2560         schedule_block.
2561         (schedule_block): Use it.
2562
2563 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2564
2565         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2566
2567 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2568
2569         * config.gcc (*-*-mingw*): Allow as option the
2570         posix threading model.
2571         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2572         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2573         definition.
2574         (CPP_SPEC): Add pthread/no-pthread handling.
2575         (LIB_SPEC): Likewise.
2576         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2577         (LIB_SPEC): Likewise.
2578         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2579         flag to pass -pthread option for shared libgcc build.
2580         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2581         for shared libgcc build.
2582         * config/i386/t-mingw-pthread: New file.
2583         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2584         New define to enable use of library pthread by default.
2585         * config/i386/mingw.opt (pthread): New driver option.
2586         (no-pthread): New driver option.
2587         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2588         * config/i386/mingw-w64.opt: Likewise.
2589
2590 2011-04-01  Gary Funck <gary@intrepid.com>
2591
2592         * c-decl.c (grokdeclarator): Fix formatting.
2593
2594 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2595
2596         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2597         instead of n_operands.
2598         (set_storage_via_setmem): Likewise.
2599         * optabs.c (maybe_gen_insn): Likewise.
2600         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2601         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2602         (mips_expand_builtin_direct): Likewise.
2603         * config/spu/spu.c (expand_builtin_args): Likewise.
2604
2605 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2606
2607         * recog.h (insn_data_d): Add n_generator_args.
2608         * genoutput.c (data): Likewise.
2609         (output_insn_data): Print it.
2610         (max_opno, num_dups): Delete.
2611         (scan_operands): Just fill in "d->operand[...]".
2612         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2613
2614 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2615
2616         * gensupport.h (pattern_stats): New structure.
2617         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2618         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2619         (max_operand_1, max_operand_vec): Delete.
2620         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2621
2622 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2623
2624         * emit-rtl.c (emit_pattern_after_setloc): New function.
2625         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2626         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2627         (emit_pattern_after): New function.
2628         (emit_insn_after, emit_jump_insn_after): Call it.
2629         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2630         (emit_pattern_before_setloc): New function.
2631         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2632         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2633         Likewise.
2634         (emit_pattern_before): New function.
2635         (emit_insn_before, emit_jump_insn_before): Call it.
2636         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2637
2638 2011-03-31  Richard Henderson  <rth@redhat.com>
2639
2640         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2641         (dw_separate_line_info_entry): Remove.
2642         (enum dw_line_info_opcode): New.
2643         (dw_line_info_entry): Use it.
2644         (dw_line_info_table, dw_line_info_table_p): New.
2645         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2646         (line_info_table, line_info_label_num): Remove.
2647         (line_info_table_in_use): Remove.
2648         (separate_line_info_table): Remove.
2649         (separate_line_info_table_allocated): Remove.
2650         (separate_line_info_table_in_use): Remove.
2651         (LINE_INFO_TABLE_INCREMENT): Remove.
2652         (line_info_label_num): New.
2653         (cur_line_info_table): New.
2654         (text_section_line_info, cold_text_section_line_info): New.
2655         (separate_line_info): New.
2656         (SEPARATE_LINE_CODE_LABEL): Remove.
2657         (print_dwarf_line_table): Remove.
2658         (debug_dwarf): Don't dump it.
2659         (output_one_line_info_table): New.
2660         (output_line_info): Use it.
2661         (new_line_info_table): New.
2662         (set_cur_line_info_table): New.
2663         (dwarf2out_switch_text_section): Use it.
2664         (dwarf2out_begin_function): Likewise.
2665         (push_dw_line_info_entry): New.
2666         (dwarf2out_source_line): Rewrite for new line info tables.
2667         (dwarf2out_init): Remove dead initailizations.
2668
2669 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2670
2671         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2672         various flags.
2673         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2674         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2675         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2676         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2677         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2678         * opt-functions.awk (flag_init, switch_bit_fields): New.
2679         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2680         generate CL_MISSING_OK or CL_SAVE.
2681         * optc-gen.awk: Update to generate bit-field output as well as
2682         flags field.
2683         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2684         bit-field instead of CL_REJECT_DRIVER flag.
2685         * opts-common.c (generate_canonical_option,
2686         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2687         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2688         instead of CL_REJECT_NEGATIVE flag.
2689         * toplev.c (print_switch_values): Use cl_report bit-field instead
2690         of CL_REPORT flag.
2691
2692 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2693
2694         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2695         a zero minimum index only if it is redundant.
2696
2697 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2698
2699         PR rtl-optimization/48381
2700         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2701         instead of ira_class_hard_reg_index for calculating conflicting
2702         hard registers.
2703
2704 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2705
2706         * cprop.c: Clean up hash table building.
2707         (reg_avail_info): Remove.
2708         (oprs_available_p): Remove.
2709         (record_last_reg_set_info): Remove.
2710         (record_last_set_info): Remove.
2711         (reg_available_p): New function.
2712         (gcse_constant_p): Do not treat unfolded conditions as constants.
2713         (make_set_regs_unavailable): New function.
2714         (hash_scan_set): Simplify with new reg_available_p.
2715         (compute_hash_table_work): Traverse insns stream only once.
2716         Do not compute reg_avail_info. Traverse insns in reverse order.
2717         Record implicit sets after recording explicit sets from the block.
2718
2719 2011-03-31  Michael Matz  <matz@suse.de>
2720
2721         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2722
2723 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2724
2725         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2726         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2727         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2728         (h8300_mode_dependent_address_p): New function.
2729         (h8300_get_index): Make static.
2730
2731 2011-03-31  Jeff Law  <law@redhat.com>
2732
2733         * reload1.c (elimination_effects): Fix typo in recent change.
2734
2735         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2736         typo potentially leading to null pointer dereference.
2737
2738         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2739         (setup_save_areas): Corresponding changes to avoid useless
2740         assignments.
2741
2742         * jump.c (reversed_comparison_code_parts): Avoid successive return
2743         statements when REVERSE_CONDITION is defined.
2744
2745         * expr.c (expand_assignment): Avoid useless assignments.
2746         (expand_expr_real_1): Likewise.
2747         (expand_expr_real_2): Avoid useless statements.
2748
2749         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2750
2751         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2752
2753         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2754         statements.
2755
2756         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2757
2758 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2759
2760         PR target/47109
2761         * doc/tm.texi.in (TARGET_VERSION): Remove.
2762         * doc/tm.texi: Regenerate.
2763         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2764         * collect2.c (main): Don't use TARGET_VERSION.
2765         * mips-tdump.c (main): Don't use TARGET_VERSION.
2766         * mips-tfile.c (main): Don't use TARGET_VERSION.
2767         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2768         * config/rs6000/vxworksae.h: Remove.
2769         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2770         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2771         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2772         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2773         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2774         * config/arm/arm.h (TARGET_VERSION): Remove.
2775         * config/arm/coff.h (TARGET_VERSION): Remove.
2776         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2777         * config/arm/elf.h (TARGET_VERSION): Remove.
2778         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2779         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2780         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2781         * config/arm/pe.h (TARGET_VERSION): Remove.
2782         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2783         * config/arm/semi.h (TARGET_VERSION): Remove.
2784         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2785         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2786         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2787         * config/avr/avr.h (TARGET_VERSION): Remove.
2788         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2789         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2790         * config/frv/frv.h (TARGET_VERSION): Remove.
2791         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2792         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2793         * config/i386/darwin.h (TARGET_VERSION): Remove.
2794         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2795         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2796         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2797         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2798         * config/i386/gnu.h (TARGET_VERSION): Remove.
2799         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2800         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2801         * config/i386/linux.h (TARGET_VERSION): Remove.
2802         * config/i386/linux64.h (TARGET_VERSION): Remove.
2803         * config/i386/lynx.h (TARGET_VERSION): Remove.
2804         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2805         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2806         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2807         * config/i386/netware.h (TARGET_VERSION): Remove.
2808         * config/i386/nto.h (TARGET_VERSION): Remove.
2809         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2810         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2811         * config/ia64/elf.h (TARGET_VERSION): Remove.
2812         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2813         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2814         * config/ia64/linux.h (TARGET_VERSION): Remove.
2815         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2816         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2817         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2818         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2819         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2820         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2821         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2822         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2823         * config/m68k/linux.h (TARGET_VERSION): Remove.
2824         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2825         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2826         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2827         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2828         * config/mep/mep.h (TARGET_VERSION): Remove.
2829         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2830         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2831         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2832         * config/mips/linux.h (TARGET_VERSION): Remove.
2833         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2834         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2835         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2836         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2837         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2838         * config/pa/pa.h (TARGET_VERSION): Remove.
2839         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2840         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2841         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2842         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2843         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2844         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2845         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2846         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2847         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2848         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2849         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2850         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2851         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2852         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2853         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2854         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2855         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2856         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2857         * config/s390/linux.h (TARGET_VERSION): Remove.
2858         * config/s390/s390.h (TARGET_VERSION): Remove.
2859         * config/s390/tpf.h (TARGET_VERSION): Remove.
2860         * config/score/score.h (TARGET_VERSION): Remove.
2861         * config/sh/linux.h (TARGET_VERSION): Remove.
2862         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2863         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2864         * config/sh/sh.h (TARGET_VERSION): Remove.
2865         * config/sh/sh64.h (TARGET_VERSION): Remove.
2866         * config/sh/superh.h (TARGET_VERSION): Remove.
2867         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2868         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2869         * config/sparc/linux.h (TARGET_VERSION): Remove.
2870         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2871         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2872         TARGET_NAME32, TARGET_NAME): Remove.
2873         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2874         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2875         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2876         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2877         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2878         * config/spu/spu.h (TARGET_VERSION): Remove.
2879         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2880         * config/v850/v850.h (TARGET_VERSION): Remove.
2881         * config/vax/linux.h (TARGET_VERSION): Remove.
2882         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2883         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2884         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2885
2886 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2887
2888         PR target/48142
2889         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2890         frame-related from frame-unrelated adjustments to the stack pointer.
2891
2892 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2893
2894         * common.opt (fdebug-types-section): Move earlier.
2895         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2896
2897 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
2898
2899         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2900         var.
2901
2902 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
2903
2904         * tree.h (CASE_CHAIN): Define.
2905         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2906         (gimple_redirect_edge_and_branch): Likewise.
2907
2908 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2909
2910         PR middle-end/48367
2911         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2912         calculation.
2913
2914 2011-03-30  Jeff Law  <law@redhat.com>
2915
2916         * PR bootstrap/48371
2917         * reload1.c (reload): Fix botch in last change.
2918
2919         * reload.h (struct reload): Fix typo introduced in last change.
2920
2921 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2922
2923         * config/arm/arm.opt (mhard-float, msoft-float): Mark
2924         Undocumented.  Remove help text.
2925         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2926         -mhard-float.
2927
2928 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2929
2930         * doc/options.texi (NegativeAlias): Document.
2931         (Alias): Mention NegativeAlias.
2932         * opt-functions.awk: Handle NegativeAlias.
2933         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2934         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2935         * opts.h (CL_NEGATIVE_ALIAS): Define.
2936         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2937         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2938         OPT_mspe_.
2939         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2940         Alias entries.
2941         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2942         mno-spe and mno-isel instead of mspe=no and -misel=no.
2943
2944 2011-03-29  Mark Wielaard  <mjw@redhat.com>
2945
2946         * common.opt (fdebug-types-section): New flag.
2947         * doc/invoke.texi: Document new -fno-debug-types-section flag.
2948         * dwarf2out.c (use_debug_types): New define.
2949         (struct die_struct): Mark die_id with GTY desc use_debug_types.
2950         (print_die): Guard output of type unit signatures using
2951         use_debug_types.
2952         (build_abbrev_table): Replace assert of dwarf_version >= 4
2953         with assert on use_debug_types.
2954         (size_of_die): Likewise.
2955         (unmark_dies): Likewise.
2956         (value_format): Decide AT_ref_external form on use_debug_types.
2957         (output_die): Replace dwarf_version version check guard with
2958         use_debug_types where appropriate.
2959         (modified_type_die): Likewise.
2960         (gen_reference_type_die): Likewise.
2961         (dwarf2out_start_source_file): Likewise.
2962         (dwarf2out_end_source_file): Likewise.
2963         (prune_unused_types_walk_attribs): Likewise.
2964         (dwarf2out_finish): Likewise.
2965
2966 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2967
2968         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2969
2970 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2971
2972         PR rtl-optimization/48332
2973         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2974         mode of input operand N and modeN to its actual mode.
2975
2976 2011-03-30  Jeff Law  <law@redhat.com>
2977
2978         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2979         define accessor macro.
2980         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2981         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2982         (reg_equiv_init): Likewise.
2983         (reg_equivs_size): New variable.
2984         (reg_equiv_init_size): Remove.
2985         (allocate_initial_values): Move prototype to here from....
2986         * integrate.h (allocate_initial_values): Remove prototype.
2987         * integrate.c: Include reload.h.
2988         (allocate_initial_values): Corresponding changes.
2989         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2990         (fix_reg_equiv_init, no_equiv): Corresponding changes.
2991         (update_equiv_regs): Corresponding changes.
2992         (ira): Corresponding changes.
2993         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2994         (push_secondary_reload): Corresponding changes.
2995         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2996         (make_memloc, find_reloads_address): Corresponding changes.
2997         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2998         (find_reloads_address_1): Corresponding changes.
2999         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3000         (refers_to_regno_for_reload_p): Corresponding changes.
3001         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3002         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3003         * reload1.c: Include ggc.h.
3004         (grow_reg_equivs): New function.
3005         (replace_pseudos_in, reload): Corresponding changes.
3006         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3007         (eliminate_regs_1, elimination_effects): Corresponding changes.
3008         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3009         (delete_output_reload): Likewise.
3010         * caller-save.c (mark_referenced_regs): Corresponding changes.
3011         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3012         * frv/predicates.md (frv_load_operand): Corresponding changes.
3013         * microblaze/microblaze.c (double_memory_operand): Corresponding
3014         changes.
3015         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3016         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3017         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3018         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3019         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3020         changes.
3021         * pa/pa.c (emit_move_sequence): Corresponding changes.
3022         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3023
3024 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3025
3026         PR target/47551
3027         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3028         structure modes.  Don't check neon_vector_mem_operand for
3029         vector or structure modes.
3030
3031 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3032             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3033
3034         PR target/43590
3035         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3036         operand 1 and reshuffle the operands to match.
3037         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3038
3039 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3040
3041         PR driver/48208
3042         * config/c.opt (F): Added 'Driver' to -F option.
3043
3044         PR driver/48260
3045         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3046           handler function.
3047         * config/darwin.opt: Added '-arch' option.
3048
3049 2011-03-30  Nick Clifton  <nickc@redhat.com>
3050
3051         * config/rx/rx.md: Add peepholes and patterns to combine
3052         extending loads and simple arithmetic instructions.
3053         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3054         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3055         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3056         modes to use pre-decrement and post-increment addressing.
3057         (rx_is_restricted_memory_address): Add range checking of REG+INT
3058         addresses.
3059         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3060         (rx_memory_move_cost): Adjust cost of stores.
3061         (rx_adjust_insn_length): New function.
3062
3063 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3064
3065         PR c/48305
3066         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3067         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3068         matching arg00/arg01 types.
3069
3070 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3071
3072         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3073         last_location to UNKNOWN_LOCATION.
3074
3075 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3076
3077         PR target/48349
3078         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3079         FLOAT_SSE_REGS.
3080
3081 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3082             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3083
3084         PR bootstrap/48337
3085         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3086         Init(PROCESSOR_V7).
3087         (sparc_cpu): Likewise.
3088         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3089         PROCESSOR_V7.
3090
3091 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3092
3093         PR target/48336
3094         PR middle-end/48342
3095         PR rtl-optimization/48345
3096         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3097         hard regs for given mode from profitable regs when doing secondary
3098         allocation.
3099
3100 2011-03-29  Jeff Law  <law@redhat.com>
3101
3102         PR bootstrap/48327
3103         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3104         do_not_duplicate field.
3105         (lookup_redirection_data): Corresponding changes.
3106         (create_duplicates): Always create a template block.
3107         (redirect_edges): Remove code which reused the original block
3108         when it was going to become unreachable code.
3109         (thread_block): Don't set do_not_duplicate field.
3110
3111 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3112
3113         * lto-opts.c (register_user_option_p, lto_register_user_option):
3114         Make type argument unsigned.
3115         * lto-streamer.h (lto_register_user_option): Make type argument
3116         unsigned.
3117         * opth-gen.awk: Make CL_* macros unsigned.
3118         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3119         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3120         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3121         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3122         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3123         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3124         (find_opt): Make lang_mask argument unsigned.
3125
3126 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3127
3128         PR rtl-optimization/48331
3129         PR rtl-optimization/48334
3130         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3131         for any used algorithm.
3132
3133 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3134
3135         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3136         to parent_max.
3137
3138 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3139
3140         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3141         (alpha_option_override): Don't set alpha_sr_alias_set.
3142         (emit_frame_store_1): Use gen_frame_mem rather than calling
3143         set_mem_alias_set.
3144         (alpha_expand_epilogue): Ditto.
3145
3146 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3147
3148         PR tree-optimization/48290
3149         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3150         vectorization, check that relevant phis in the basic block after
3151         the inner loop are really inner loop's exit phis.
3152
3153 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3154
3155         PR debug/48190
3156         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3157         (cached_dw_loc_list_def): New structure.
3158         (cached_dw_loc_list): New typedef.
3159         (cached_dw_loc_list_table): New variable.
3160         (cached_dw_loc_list_table_hash): New function.
3161         (cached_dw_loc_list_table_eq): Likewise.
3162         (add_location_or_const_value_attribute): Take a bool cache_p.
3163         Cache the list when the parameter is true.
3164         (gen_formal_parameter_die): Update caller.
3165         (gen_variable_die): Likewise.
3166         (dwarf2out_finish): Likewise.
3167         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3168         while generating debug info for the decl.
3169         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3170         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3171         (resolve_addr): Cache the result of resolving a chain of
3172         location lists.
3173
3174 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3175
3176         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3177         conflict object hard regset nodes have intersecting hard reg sets.
3178
3179         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3180         after regstat_init_n_sets_and_refs.
3181
3182         * ira.c: Add more comments at the top.
3183         (setup_stack_reg_pressure_class, setup_pressure_classes):
3184         Add comments how we compute the register pressure classes.
3185         (setup_allocno_and_important_classes): Add more comments.
3186         (setup_class_translate_array, reorder_important_classes)
3187         (setup_reg_class_relations): Add comments.
3188
3189         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3190         start of the file.
3191
3192         * ira-color.c: Add 2011 to the Copyright line.
3193         (assign_hard_reg):  Add more comments.
3194         (improve_allocation): Ditto.
3195
3196         * ira-costs.c: Add 2011 to the Copyright line.
3197         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3198         comments.
3199         (setup_regno_cost_classes_by_mode): Ditto.
3200
3201         Initial patches from ira-improv branch:
3202
3203         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3204
3205         * ira-build.c: (ira_create_object): Remove initialization of
3206         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3207         (ira_create_allocno): Remove initialization of
3208         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3209         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3210         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3211         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3212         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3213         Initialize ALLOCNO_ADD_DATA.
3214         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3215         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3216         ALLOCNO_REG.
3217         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3218         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3219
3220         * ira.c (ira_reallocate): Remove.
3221         (setup_pressure_classes): Call
3222         ira_init_register_move_cost_if_necessary.  Use
3223         ira_register_move_cost instead of ira_get_register_move_cost.
3224         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3225         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3226
3227         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3228         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3229         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3230         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3231         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3232         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3233         Fix formatting.
3234         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3235         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3236         (struct allocno_color_data): New.
3237         (allocno_color_data_t): New typedef.
3238         (allocno_color_data): New definition.
3239         (ALLOCNO_COLOR_DATA): New macro.
3240         (struct object_color_data): New.
3241         (object_color_data_t): New typedef.
3242         (object_color_data): New definition.
3243         (OBJECT_COLOR_DATA): New macro.
3244         (update_copy_costs, calculate_allocno_spill_cost): Call
3245         ira_init_register_move_cost_if_necessary.  Use
3246         ira_register_move_cost instead of ira_get_register_move_cost.
3247         (move_spill_restore, update_curr_costs): Ditto.
3248         (allocno_spill_priority): Make it inline.
3249         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3250         (struct coalesce_data, coalesce_data_t): New.
3251         (allocno_coalesce_data): New definition.
3252         (ALLOCNO_COALESCE_DATA): New macro.
3253         (merge_allocnos, coalesced_allocno_conflict_p): Use
3254         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3255         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3256         (coalesce_allocnos): Ditto.
3257         (setup_coalesced_allocno_costs_and_nums): Ditto.
3258         (collect_spilled_coalesced_allocnos): Ditto.
3259         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3260         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3261         (coalesce_spill_slots): Ditto.
3262         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3263         free allocno_coalesce_data.
3264
3265         * ira-conflicts.c: Fix formatting.
3266         (process_regs_for_copy): Call
3267         ira_init_register_move_cost_if_necessary.  Use
3268         ira_register_move_cost instead of ira_get_register_move_cost.
3269         (build_object_conflicts): Optimize.
3270
3271         * ira-costs.c (record_reg_classes): Optimize.  Call
3272         ira_init_register_move_cost_if_necessary.  Use
3273         ira_register_move_cost, ira_may_move_in_cost, and
3274         ira_may_move_out_cost instead of ira_get_register_move_cost and
3275         ira_get_may_move_cost.
3276         (record_address_regs): Ditto.
3277         (scan_one_insn): Optimize.
3278         (find_costs_and_classes): Optimize.
3279         (process_bb_node_for_hard_reg_moves): Call
3280         ira_init_register_move_cost_if_necessary.  Use
3281         ira_register_move_cost instead of ira_get_register_move_cost.
3282
3283         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3284         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3285         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3286         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3287         definitions.
3288         (ira_initiate_emit_data, ira_finish_emit_data)
3289         (create_new_allocno): New functions.
3290         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3291         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3292         Use ira_register_move_cost instead of ira_get_register_move_cost.
3293
3294         * ira-int.h: Fix some comments.
3295         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3296         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3297         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3298         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3299         add_data.
3300         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3301         bitfield after mode.  Make hard_regno a short int.  Make
3302         hard_regno short.  Remove first_coalesced_allocno and
3303         next_coalesced_allocno.  Move mem_optimized_dest_p,
3304         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3305         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3306         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3307         temp, colorable_p.  Add new member add_data.
3308         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3309         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3310         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3311         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3312         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3313         (ALLOCNO_ADD_DATA): New macro.
3314         (ira_emit_data_t): New typedef.
3315         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3316         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3317         from struct ira_allocno.
3318         (ALLOCNO_EMIT_DATA): New macro.
3319         (ira_allocno_emit_data, allocno_emit_reg): New.
3320         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3321         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3322         (OBJECT_ADD_DATA): New macro.
3323         (ira_reallocate): Remove.
3324         (ira_initiate_emit_data, ira_finish_emit_data): New.
3325         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3326         (ira_init_register_move_cost_if_necessary): New.
3327         (ira_object_conflict_iter_next): Merge into
3328         ira_object_conflict_iter_cond.
3329         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3330
3331         * ira-live.c: (process_single_reg_class_operands): Call
3332         ira_init_register_move_cost_if_necessary.  Use
3333         ira_register_move_cost instead of ira_get_register_move_cost.
3334
3335         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3336
3337         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3338
3339         * ira-costs.c: Fix formatting.
3340         (cost_classes, cost_classes_num): Remove.
3341         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3342         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3343         (cost_classes_del, cost_classes_htab): New.
3344         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3345         (initiate_regno_cost_classes, setup_cost_classes): New.
3346         (setup_regno_cost_classes_by_aclass): New.
3347         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3348         (record_reg_classes): Use regno_cost_classes instead of
3349         cost_classes.  Move checking opposite operand up.
3350         (record_address_regs): Use regno_cost_classes
3351         instead of cost_classes.
3352         (scan_one_insn): Ditto.  Use always general register.
3353         (print_allocno_costs): Use regno_cost_classes instead of
3354         cost_classes.
3355         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3356         (find_costs_and_classes): Set up cost classes for each registers.
3357         Use also their mode for this.  Use regno_cost_classes instead of
3358         cost_classes.
3359         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3360         cost_classes.
3361         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3362         (ira_costs, ira_set_pseudo_classes): Call
3363         initiate_regno_cost_classes and finish_regno_cost_classes.
3364
3365         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3366
3367         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3368
3369         * target.def (ira_cover_classes): Remove.
3370
3371         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3372
3373         * doc/tm.texi.in: Ditto.
3374
3375         * ira-conflicts.c: Remove mentioning cover classes from the file.
3376         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3377         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3378
3379         * targhooks.c (default_ira_cover_classes): Remove.
3380
3381         * targhooks.h (default_ira_cover_classes): Ditto.
3382
3383         * haifa-sched.c: Remove mentioning cover classes from the file.
3384         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3385         ira_pressure_classes and ira_pressure_classes_num instead of
3386         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3387         sched_regno_pressure_class instead of sched_regno_cover_class.
3388         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3389         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3390
3391         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3392         classes from the file.
3393         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3394         (struct object_hard_regs, struct object_hard_regs_node): New.
3395         (struct ira_object): New members profitable_hard_regs,
3396         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3397         (struct ira_allocno): Rename cover_class to aclass.  Rename
3398         cover_class_cost and updated_cover_class_cost to class_cost and
3399         updated_class_cost.  Remove splay_removed_p and
3400         left_conflict_size.  Add new members colorable_p.
3401         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3402         (ALLOCNO_COLORABLE_P): New macro.
3403         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3404         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3405         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3406         (OBJECT_...): Rename parameter C to O.
3407         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3408         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3409         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3410         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3411         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3412         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3413         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3414         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3415         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3416         x_ira_reg_class_subunion.
3417         (ira_max_memory_move_cost, ira_max_register_move_cost)
3418         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3419         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3420         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3421         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3422         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3423         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3424         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3425         (ira_tune_allocno_costs_and_cover_classes): Rename to
3426         ira_tune_allocno_costs.
3427         (ira_debug_hard_regs_forest): New.
3428         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3429         (ira_object_conflict_iter_next): Fix comments.
3430         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3431         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3432         cover_class to aclass.
3433         (ira_allocate_and_accumulate_costs): Ditto.
3434         (ira_allocate_and_set_or_copy_costs): Ditto.
3435
3436         * opts.c (decode_options): Remove ira_cover_class check.
3437
3438         * ira-color.c: Remove mentioning cover classes from the file.  Use
3439         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3440         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3441         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3442         (splay-tree.h): Remove include.
3443         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3444         before copy_freq_compare_func.
3445         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3446         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3447         New definitions.
3448         (hard_regs_roots, hard_regs_node_vec): Ditto.
3449         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3450         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3451         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3452         (create_new_object_hard_regs_node): Ditto.
3453         (add_new_object_hard_regs_node_to_forest): Ditto.
3454         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3455         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3456         Ditto.
3457         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3458         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3459         (remove_unused_object_hard_regs_nodes): Ditto.
3460         (enumerate_object_hard_regs_nodes): Ditto.
3461         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3462         (object_hard_regs_subnode_t): Ditto.
3463         (struct object_hard_regs_subnode): Ditto.
3464         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3465         (setup_object_hard_regs_subnode_index): Ditto.
3466         (get_object_hard_regs_subnodes_num): Ditto.
3467         (form_object_hard_regs_nodes_forest): Ditto.
3468         (finish_object_hard_regs_nodes_tree): Ditto.
3469         (finish_object_hard_regs_nodes_forest): Ditto.
3470         (allocnos_have_intersected_live_ranges_p): Rename to
3471         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3472         (pseudos_have_intersected_live_ranges_p): Rename to
3473         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3474         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3475         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3476         (update_copy_costs): Remove assert.  Skip cost update if the hard
3477         reg does not belong the class.
3478         (assign_hard_reg): Process only profitable hard regs.
3479         (uncolorable_allocnos_num): Make it scalar.
3480         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3481         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3482         and ira_reg_class_max_nregs.
3483         (bucket_allocno_compare_func): Check frequency first.
3484         (sort_bucket): Add compare function as a parameter.
3485         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3486         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3487         (push_allocno_to_stack): Rewrite for checking new allocno
3488         colorability.
3489         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3490         (push_only_colorable): Pass new parameter to sort_bucket.
3491         (push_allocno_to_spill): Remove.
3492         (allocno_spill_priority_compare): Make it inline and rewrite.
3493         (splay_tree_allocate, splay_tree_free): Remove.
3494         (allocno_spill_sort_compare): New function.
3495         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3496         build and use splay tree.  Choose first allocno in uncolorable
3497         allocno bucket to spill.  Remove setting spill cost.
3498         (all_conflicting_hard_regs): Remove.
3499         (setup_allocno_available_regs_num): Check only profitable hard
3500         regs.  Print info about hard regs nodes.
3501         (setup_allocno_left_conflicts_size): Remove.
3502         (put_allocno_into_bucket): Don't call
3503         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3504         (improve_allocation): New.
3505         (color_allocnos): Call setup_profitable_hard_regs,
3506         form_object_hard_regs_nodes_forest, improve_allocation,
3507         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3508         (print_loop_title): Use pressure classes.
3509         (color_allocnso): Ditto.
3510         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3511         and allocnos_for_spilling.
3512         (ira_sort_regnos_for_alter_reg): Don't setup members
3513         {first,next}_coalesced_allocno.
3514         (color): Remove allocating and freeing removed_splay_allocno_vec.
3515         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3516         prohibited_class_mode_regs.
3517
3518         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3519         formatting.
3520         (update_allocno_pressure_excess_length): Use pressure classes.
3521         (inc_register_pressure, dec_register_pressure): Check for pressure
3522         class.
3523         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3524         pressure class.  Use ira_reg_class_nregs instead of
3525         ira_reg_class_max_nregs.
3526         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3527         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3528         (single_reg_class): Use ira_reg_class_nregs instead of
3529         ira_reg_class_max_nregs.
3530         (process_bb_node_lives): Use pressure classes.
3531
3532         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3533         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3534         (change_loop): Use pressure classes.
3535         (modify_move_list): Call ira_set_allocno_class instead of
3536         ira_set_allocno_cover_class.
3537
3538         * ira-build.c: Remove mentioning cover classes from the file.  Use
3539         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3540         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3541         ALLOCNO_UPDATED_CLASS_COST instead of
3542         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3543         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3544         (ira_create_allocno): Remove initialization of
3545         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3546         ALLOCNO_COLORABLE_P.
3547         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3548         Update conflict regs for the objects.
3549         (create_cap_allocno): Remove assert.  Don't propagate
3550         ALLOCNO_AVAILABLE_REGS_NUM.
3551         (ira_free_allocno_costs): New function.
3552         (finish_allocno): Change a part of code into call of
3553         ira_free_allocno_costs.
3554         (low_pressure_loop_node_p): Use pressure classes.
3555         (object_range_compare_func): Don't compare classes.
3556         (setup_min_max_conflict_allocno_ids): Ditto.
3557
3558         * loop-invariant.c: Remove mentioning cover classes from the file.
3559         Use ira_pressure_classes and ira_pressure_classes_num instead of
3560         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3561         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3562         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3563         Use reg_allocno_class instead of reg_cover_class.
3564         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3565         STACK_REG_COVER_CLASS.
3566         (get_regno_cover_class): Rename to get_regno_pressure_class.
3567         (move_loop_invariants): Initialize and finalize regstat.
3568
3569         * ira.c: Remove mentioning cover classes from the file.  Add
3570         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3571         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3572         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3573         setup_class_subset_and_memory_move_costs.
3574         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3575         (setup_cover_and_important_classes): Rename to
3576         setup_allocno_and_important_classes.
3577         (setup_class_translate_array): New.
3578         (setup_class_translate): Call it for allocno and pressure classes.
3579         (cover_class_order): Rename to allocno_class_order.
3580         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3581         of ira_class_translate.
3582         (reorder_important_classes): Set up ira_important_class_nums.
3583         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3584         (print_class_cover): Rename to print_classes.  Add parameter.
3585         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3586         Print pressure classes too.
3587         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3588         setup_reg_subclasses.
3589         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3590         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3591         (setup_prohibited_class_mode_regs): Use
3592         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3593         (clarify_prohibited_class_mode_regs): New function.
3594         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3595         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3596         (ira_init_once): Initialize them.
3597         (free_register_move_costs): Process them.
3598         (ira_init): Move calls of find_reg_classes and
3599         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3600         Call clarify_prohibited_class_mode_regs.
3601         (ira_no_alloc_reg): Remove.
3602         (too_high_register_pressure_p): Use pressure classes.
3603
3604         * sched-deps.c: Remove mentioning cover classes from the file.
3605         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3606         ira_pressure_classes and ira_pressure_classes_num instead of
3607         ira_reg_class_cover_size and ira_reg_class_cover.
3608         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3609         sched_regno_pressure_class instead of sched_regno_cover_class.
3610         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3611         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3612
3613         * ira.h: Add 2010 to Copyright.
3614         (ira_no_alloc_reg): Remove external.
3615         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3616         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3617         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3618         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3619         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3620         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3621         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3622         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3623         x_ira_no_alloc_regs.
3624         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3625         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3626         ira_allocno_classes_num and ira_allocno_classes.
3627         (ira_class_translate): Rename to ira_allocno_class_translate.
3628         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3629         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3630         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3631         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3632         (ira_no_alloc_regs): New.
3633
3634         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3635         classes from the file.  Use ALLOCNO_CLASS instead of
3636         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3637         ALLOCNO_COVER_CLASS_COST.
3638         (regno_cover_class): Rename to regno_aclass.
3639         (record_reg_classes): Use ira_reg_class_subunion instead of
3640         ira_reg_class_union.
3641         (record_address_regs): Check overflow.
3642         (scan_one_insn): Ditto.
3643         (print_allocno_costs): Print total mem cost fore regional allocation.
3644         (print_pseudo_costs): Use REG_N_REFS.
3645         (find_costs_and_classes): Use classes intersected with them on the
3646         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3647         ira_reg_class_union.  Use ira_allocno_class_translate and
3648         regno_aclass instead of ira_class_translate and regno_cover_class.
3649         Modify code for finding regno_aclass.  Setup preferred classes for
3650         the next pass.
3651         (setup_allocno_cover_class_and_costs): Rename to
3652         setup_allocno_class_and_costs.  Use regno_aclass instead of
3653         regno_cover_class.  Use ira_set_allocno_class instead of
3654         ira_set_allocno_cover_class.
3655         (init_costs, finish_costs): Use regno_aclass instead of
3656         regno_cover_class.
3657         (ira_costs): Use setup_allocno_class_and_costs instead of
3658         setup_allocno_cover_class_and_costs.
3659         (ira_tune_allocno_costs_and_cover_classes): Rename to
3660         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3661         by processing objects.  Use ira_reg_class_max_nregs instead of
3662         ira_reg_class_nregs.
3663
3664         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3665
3666         * sched-int.h: Remove mentioning cover classes from the file.
3667         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3668
3669         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3670         classes from the file.
3671         (struct reg_pref): Rename coverclass into allocnoclass.
3672         (reg_cover_class): Rename to reg_allocno_class.
3673
3674         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3675
3676         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3677
3678         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3679
3680         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3681
3682         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3683
3684         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3685
3686         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3687
3688         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3689
3690         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3691
3692         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3693
3694         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3695         (i386_ira_cover_classes): Ditto.
3696
3697         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3698
3699         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3700
3701         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3702
3703         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3704
3705         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3706
3707         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3708
3709         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3710         (mips_ira_cover_classes): Ditto.
3711
3712         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3713
3714         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3715
3716         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3717
3718         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3719
3720         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3721
3722         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3723         (IRA_COVER_CLASSES_VSX): Ditto.
3724
3725         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3726         (rs6000_ira_cover_classes): Ditto.
3727
3728         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3729
3730         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3731
3732         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3733
3734         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3735
3736         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3737
3738         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3739
3740         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3741
3742         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3743
3744         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3745
3746         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3747
3748 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3749
3750         PR debug/48253
3751         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3752         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3753         dw_fde_unlikely_section_end_label, cold_in_std_section,
3754         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3755         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3756         fields.
3757         (output_fde): Use dw_fde_second_{begin,end} if second is
3758         true, otherwise dw_fde_{begin,end}.
3759         (output_call_frame_info): Test dw_fde_second_begin != NULL
3760         instead of dw_fde_switched_sections.
3761         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3762         fields, initialize new fields.  Initialize in_std_section
3763         unconditionally from the first partition.
3764         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3765         dw_fde_second_begin is non-NULL.
3766         (dwarf2out_switch_text_section): Stop initializing removed
3767         dw_fde_struct fields, initialize new fields, initialize
3768         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3769         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3770         (struct var_loc_list_def): Add last_before_switch field.
3771         (arange_table, arange_table_allocated, arange_table_in_use,
3772         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3773         (size_of_aranges): Count !in_std_section and !second_in_std_section
3774         hunks in fdes, instead of looking at arange_table_in_use.
3775         (output_aranges): Add aranges_length argument, don't call
3776         size_of_aranges here.  Instead of using aranges_table*
3777         emit ranges for fdes when !in_std_section resp.
3778         !second_in_std_section.
3779         (dw_loc_list): Break ranges crossing section switch.
3780         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3781         use dw_fde_second_end instead of dw_fde_end as end of last range.
3782         (gen_subprogram_die): Don't call add_arange.  Use
3783         dw_fde_{begin,end} for first partition and if switched
3784         section dw_fde_second_{begin,end} for the second.
3785         (var_location_switch_text_section_1,
3786         var_location_switch_text_section): New functions.
3787         (dwarf2out_begin_function): Initialize cold_text_section even
3788         when function_section () isn't text_section.
3789         (prune_unused_types): Don't walk arange_table.
3790         (dwarf2out_finish): Don't needlessly test
3791         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3792         If info_section_emitted, call size_of_aranges and if it indicates
3793         non-empty .debug_aranges, call output_aranges with the computed
3794         size.  Stop using removed dw_fde_struct fields, use
3795         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3796         for second.
3797
3798         PR debug/48203
3799         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3800         create ENTRY_VALUE if incoming or address of incoming's MEM
3801         is a hard REG.
3802         * dwarf2out.c (mem_loc_descriptor): Don't emit
3803         DW_OP_GNU_entry_value of DW_OP_fbreg.
3804         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3805         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3806         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3807         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3808         ENTRY_VALUE_EXPs.
3809         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3810         is a REG_P or MEM_P with REG_P address, compute hash directly
3811         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3812         (preserve_only_constants): Don't clear VALUES forwaring
3813         ENTRY_VALUE to some other VALUE.
3814
3815 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3816
3817         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3818         instead of GEN_INT.
3819
3820 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3821
3822         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3823         block before expanding the statement.
3824         (expand_gimple_stmt_1): Likewise.  Set them here...
3825         (expand_gimple_stmt): ...and not here.  Tidy.
3826         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3827         unknown.
3828
3829 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3830
3831         * Makefile.in: New rule for cprop.o.
3832         * gcse.c: Move constant/copy propagation to cprop.c.
3833         (compute_local_properties): Only handle expression tables.
3834         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3835         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3836         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3837         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3838         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3839         compute_cprop_data, find_used_regs, try_replace_reg,
3840         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3841         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3842         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3843         find_bypass_set, reg_killed_on_edge, bypass_block,
3844         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3845         execute_rtl_cprop, pass_rtl_cprop): Move to...
3846         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3847         moved from gcse.c to here with minor cleanups in duplicated code.
3848
3849 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3850
3851         * config/i386/i386.c (flag_opts): Fix a typo in
3852         -mavx256-split-unaligned-store.
3853
3854 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3855
3856         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3857         LIBCALL_VALUE): Remove macros.
3858         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3859         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3860         (h8300_function_value, h8300_libcall_value,
3861         h8300_function_value_regno_p): New functions.
3862
3863 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3864
3865         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3866
3867 2011-03-28  Jeff Law  <law@redhat.com>
3868
3869         * tree-ssa-threadupdate.c (redirect_edges): Call
3870         create_edge_and_update_destination_phis as needed.
3871         (create_edge_and_update_destination_phis): Accept new BB argument.
3872         All callers updated.
3873         (thread_block): Do not update the profile when threading around
3874         intermediate blocks.
3875         (thread_single_edge): Likewise.
3876         (determine_bb_domination_status): If BB is not a successor of the
3877         loop header, return NONDOMINATING.
3878         (register_jump_thread): Note when we register a jump thread around
3879         an intermediate block.
3880         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3881         (thread_across_edge): Use it.
3882
3883 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3884
3885         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3886         when for_return is 2.
3887
3888 2011-03-28  Jeff Law  <law@redhat.com>
3889
3890         * var-tracking.c (canonicalize_values_mark): Delete unused
3891         lhs assignment.
3892         (canonicalize_values_star, set_variable_part): Likewise.
3893         (clobber_variable_part, delete_variable_part): Likewise.
3894
3895 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3896
3897         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3898
3899 2011-03-28  Martin Jambor  <mjambor@suse.cz>
3900
3901         * tree-inline.c (expand_call_inline): Do not check that destination
3902         node is analyzed.
3903         (optimize_inline_calls): Assert that destination node is analyzed.
3904         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3905         not call tree_lowering_passes.
3906         * cgraph.h (cgraph_analyze_function): Declare.
3907         * cgraphunit.c (cgraph_analyze_function): Make public.
3908
3909 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
3910
3911         * config/sparc/sparc-opts.h: New.
3912         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3913         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3914         (sparc_option_override): Store processor_type enumeration rather
3915         than string in cpu_default.  Remove name and enumeration from
3916         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
3917         without using sparc_select.  Use target_flags_explicit instead of
3918         fpu_option_set.
3919         * config/sparc/sparc.h (enum processor_type): Move to
3920         sparc-opts.h.
3921         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3922         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3923         HeaderInclude entry.
3924         (mcpu=, mtune=): Use Var and Enum.
3925         (sparc_processor_type): New Enum and EnumValue entries.
3926
3927 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3928             Iain Sandoe  <iains@gcc.gnu.org>
3929
3930         PR target/48245
3931         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3932
3933 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3934
3935         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3936         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3937         Insert new statements at it in lieu of STMT.
3938         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3939         * tree-vect-stmts.c (vectorizable_store): Likewise.
3940         (vectorizable_load): Likewise.
3941
3942 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
3943
3944         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3945         (divtf3): Ditto.
3946         (multf3): Ditto.
3947         (subtf3): Ditto.
3948
3949 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3952         unaligned 256bit load/store.
3953         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3954         (*avx_movdqu<avxmodesuffix>): Likewise.
3955
3956 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3957
3958         PR target/48288
3959         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3960         * config/pa/pa.md (iordi3): Use new predicate in expander.
3961         (iorsi3): Likewise.
3962
3963 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
3964
3965         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3966         FUNCTION_VALUE_REGNO_P): Remove macros.
3967         * config/mips/mips-protos.h (mips_function_value): Remove.
3968         * config/mips/mips.c (mips_function_value): Rename to...
3969         (mips_function_value_1): ... this. Make static.  Handle receiving
3970         the function type in 'fn_decl_or_type' argument.
3971         (mips_function_value, mips_libcall_value,
3972         mips_function_value_regno_p): New function.
3973         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3974         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3975
3976 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3977
3978         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3979         and -mavx256-split-unaligned-store.
3980         (ix86_option_override_internal): Split 32-byte AVX unaligned
3981         load/store by default.
3982         (ix86_avx256_split_vector_move_misalign): New.
3983         (ix86_expand_vector_move_misalign): Use it.
3984
3985         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3986         -mavx256-split-unaligned-store.
3987
3988         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3989         256bit load/store.  Generate unaligned store on misaligned memory
3990         operand.
3991         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3992         256bit load/store.
3993         (*avx_movdqu<avxmodesuffix>): Likewise.
3994
3995         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3996         -mavx256-split-unaligned-store.
3997
3998 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3999
4000         PR target/38598
4001         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4002         Update commentary.
4003
4004 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4005
4006         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4007         opno arguments with an expand_operand.  Use create_input_operand.
4008         (mips_prepare_builtin_target): Delete.
4009         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4010         functions.
4011         (mips_expand_builtin_direct): Use create_output_operand and
4012         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4013         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4014         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4015
4016 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4017
4018         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4019         function.
4020         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4021
4022 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4023
4024         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4025         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4026         basic blocks and call commit_edge_insertions directly.
4027         (fixup_abnormal_edges): Move from here to...
4028         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4029         on the edges and return whether some have actually been inserted.
4030         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4031         compensation code.
4032
4033 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4034
4035         PR rtl-optimization/48144
4036         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4037         (merge_expr_data): ... here.
4038         (av_set_intersect): Rename to av_set_code_motion_filter.
4039         Update all callers.  Call merge_history_vect when an expression
4040         is found in both sets.
4041         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4042
4043 2011-03-26  Alan Modra  <amodra@gmail.com>
4044
4045         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4046         cmodel medium addresses.
4047         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4048         64-bit gpr loads and stores.
4049         (rs6000_secondary_reload_ppc64): New function.
4050         * config/rs6000/rs6000-protos.h: Declare it.
4051         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4052
4053 2011-03-26  Alan Modra  <amodra@gmail.com>
4054
4055         PR target/47487
4056         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4057         GNU Go in traceback table.
4058
4059 2011-03-25  Richard Henderson  <rth@redhat.com>
4060
4061         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4062         if there are exactly 6 operands.
4063         (set_storage_via_setmem): Similarly.
4064
4065 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4066
4067         * collect2.c (write_c_file_stat): Handle backslash
4068         as right-hand directory separator.
4069         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4070         checking just for slash.
4071         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4072         instead of checking for trailing slash.
4073         * gcc.c (record_temp_file): Use filename_cmp instead
4074         of strcmp.
4075         (do_spec_1): Likewise.
4076         (replace_outfile_spec_function): Likewise.
4077         (is_directory): Use filename_ncmp instead of strncmp.
4078         (print_multilib_info): Likewise.
4079         * gcov.c (find_source): Use filename_cmp instead
4080         instead of strcmp.
4081         (make_gcov_file_name): Fix order of slash/backslash
4082         checks.
4083         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4084         (add_standard_paths): Likewise.
4085         * mips-tfile.c (saber_stop): Handle backslash.
4086         * prefix.c (update_path): Use filename_ncmp instead of
4087         strncmp.
4088         * profile.c (output_location): Use filename_cmp instead
4089         of strcmp.
4090         * read-md.c (handle_toplevel_file): Handle backslash.
4091         * tlink.c (frob_extension):  Likewise.
4092         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4093         strcmp.
4094         * tree-dump.c (dequeue_and_dump): Handle backslash.
4095         * tree.c (get_file_function_name): Likewise.
4096         * gengtype.c (read_input_list): Likewise.
4097         (get_file_realbasename): Likewise.
4098         (get_output_file_with_visibility): Use filename_cmp
4099         instead of strcmp.
4100
4101 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4102
4103         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4104         case to VFPv1.
4105
4106 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4107
4108         * fold-const.c (expr_location_or): New function.
4109         (fold_truth_not_expr): Call it.
4110
4111 2011-03-25  Jeff Law  <law@redhat.com>
4112
4113         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4114         va_end.
4115         * c-family/c-common.c (def_fn_type): Likewise.
4116         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4117         * emit-rtl.c (gen_rtvec): Likewise.
4118         * lto/lto-lang.c (def_fn_type): Likewise.
4119
4120 2011-03-25  Richard Guenther  <rguenther@suse.de>
4121
4122         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4123         also generate copies.
4124         (fini_copy_prop): Handle constant values properly.
4125
4126 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4127
4128         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4129         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4130         (hash_loc_operands, compare_loc_operands): Handle
4131         DW_OP_GNU_entry_value.
4132
4133 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4134
4135         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4136         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4137         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4138         comment and use macro TARGET_64BIT_MS_ABI instead.
4139         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4140         and change default behavior for 32-bit MS_ABI.
4141         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4142         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4143         32-bit, too.
4144         (ix86_cfun_abi): Likewise.
4145         (ix86_maybe_switch_abi): Adjust comment.
4146         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4147         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4148         instead of checking for SYSV_ABI.
4149         (ix86_nsaved_sseregs): Likewise.
4150         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4151         to 16 bytes.
4152         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4153         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4154         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4155         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4156         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4157
4158 2011-03-25  Richard Guenther  <rguenther@suse.de>
4159
4160         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4161         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4162         (verify_gimple): Remove.
4163         * tree-cfg.c (verify_gimple_call): Merge verification
4164         from verify_stmts.
4165         (verify_gimple_phi): Merge verification from verify_stmts.
4166         (verify_gimple_label): New function.
4167         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4168         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4169         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4170         (verify_stmts): Rename to verify_gimple_in_cfg.
4171         (verify_gimple_in_cfg): New function.
4172         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4173         * tree-ssa.c (verify_ssa): Likewise.
4174         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4175
4176 2011-03-25  Richard Guenther  <rguenther@suse.de>
4177
4178         * passes.c (init_optimization_passes): Add FRE pass after
4179         early SRA.
4180
4181 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4182             Andrew Stubbs  <ams@codesourcery.com>
4183
4184         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4185         for Cortex-A8.
4186         (arm_movdi_vfp_cortexa8): New pattern.
4187         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4188         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4189         instructions when tuning for Cortex-A8.  Set attribute "arch".
4190         * config/arm/arm.md: Move include arm-tune.md up a bit.
4191         (define_attr "arch"): Add "onlya8" and "nota8" values.
4192         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4193
4194 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4195
4196         PR bootstrap/48282
4197         Revert:
4198         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4199
4200         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4201         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4202         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4203         * passes.c (init_optimization_passes): Move
4204         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4205
4206 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4207
4208         * c-typeck.c (comptypes_internal): Replace target
4209         hook call of comp_type_attributes by version in tree.c file.
4210         * gimple.c (gimple_types_compatible_p_1): Likewise.
4211         * tree-ssa.c (useless_type_conversion_p): Likewise.
4212         * tree.c (build_type_attribute_qual_variant): Likewise.
4213         (attribute_value_equal): New static helper function.
4214         (comp_type_attributes): New function.
4215         (merge_attributes): Use attribute_value_equal for comparison.
4216         (attribute_list_contained): Likewise.
4217         * tree.h (comp_type_attributes): New prototype.
4218
4219 2011-03-25  Richard Guenther  <rguenther@suse.de>
4220
4221         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4222         of complex types at -O0.
4223         (verify_gimple_assign_binary): Likewise.
4224         (verify_gimple_assign_ternary): Likewise.
4225
4226 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4227
4228         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4229         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4230
4231 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4232
4233         PR debug/48041
4234         * dwarf2out.c (output_abbrev_section): Only write table when
4235         abbrev_die_table_in_use > 1.
4236
4237 2011-02-24  Richard Henderson  <rth@redhat.com>
4238
4239         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4240         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4241         (alpha_expand_unaligned_load_words): Use extql.
4242         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4243         (emit_insxl): Handle all modes for consistency.
4244
4245 2011-02-24  Richard Henderson  <rth@redhat.com>
4246
4247         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4248         (alpha_expand_unaligned_load): Likewise.
4249         (alpha_expand_unaligned_store): Likewise.
4250         (alpha_expand_unaligned_load_words): Likewise.
4251         (alpha_expand_unaligned_store_words): Likewise.
4252         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4253         (alpha_split_lock_test_and_set_12): Likewise.
4254         (print_operand, alpha_fold_builtin_extxx): Likewise.
4255         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4256         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4257         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4258         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4259         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4260         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4261         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4262         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4263         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4264         (extwl, extll, extql): Similarly.
4265         (inswh, inslh, insqh): Similarly.
4266         (mskbl, mskwl, mskll, mskql): Similarly.
4267         (mskwh, msklh, mskqh): Similarly.
4268
4269 2011-02-24  Richard Henderson  <rth@redhat.com>
4270
4271         * config/alpha/alpha.md (attribute isa): Add er, ner.
4272         (attribute enabled): Handle them.
4273         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4274
4275 2011-02-24  Richard Henderson  <rth@redhat.com>
4276
4277         * config/alpha/alpha.md (attribute isa): Add vms.
4278         (attribute enabled): Handle it.
4279         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4280         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4281         (*movtf): Rename from *movtf_internal for consistency.
4282         (*movsi): Merge with *movsi_nt_vms.
4283         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4284         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4285         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4286         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4287
4288 2011-02-24  Richard Henderson  <rth@redhat.com>
4289
4290         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4291         (extendqisi2, extendhisi2): Likewise.
4292         (extendqidi2): Simplify BWX/non-BWX expansions.
4293         (extendhidi2): Similarly.
4294
4295 2011-02-24  Richard Henderson  <rth@redhat.com>
4296
4297         * config/alpha/alpha.md (attribute isa): New.
4298         (attribute enabled): New.
4299         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4300         (zero_extendqisi2, zero_extendqidi2): Similarly.
4301         (zero_extendhisi2, zero_extendhidi2): Similarly.
4302         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4303
4304 2011-02-24  Richard Henderson  <rth@redhat.com>
4305
4306         * config/alpha/predicates.md (input_operand): Revert last change;
4307         update comment to mention 32-bit VMS rather than Windows.
4308
4309 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4310
4311         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4312         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4313         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4314         * passes.c (init_optimization_passes): Move
4315         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4316
4317 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4318
4319         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4320
4321 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4322
4323         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4324         correctly.
4325
4326 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4327
4328         PR debug/48204
4329         * simplify-rtx.c (simplify_const_unary_operation): Call
4330         real_convert when changing mode class with FLOAT_EXTEND.
4331
4332 2011-03-24  Nick Clifton  <nickc@redhat.com>
4333
4334         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4335         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4336         * config/rx/rx.c (rx_option_override): Set align_jumps,
4337         align_loops and align_labels if not set by the user.
4338         (rx_align_for_label): New function.
4339         (rx_max_skip_for_label): New function.
4340         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4341         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4342         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4343         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4344         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4345
4346 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4347
4348         PR rtl-optimization/48263
4349         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4350         and original commutative_p handling.  Use maybe_gen_insn.
4351
4352 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4353
4354         * reload.c (find_reloads_subreg_address): Add address_reloaded
4355         parameter and return true there if the full address has been
4356         reloaded.
4357         (find_reloads_toplev): Pass address_reloaded flag.
4358         (find_reloads_address_1): Don't use address_reloaded parameter.
4359
4360 2011-03-24  Jeff Law  <law@redhat.com>
4361
4362         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4363         unused variable "ann".
4364         (remove_unused_locals): Likewise.
4365
4366         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4367         statement.
4368
4369         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4370         after it is freed.
4371
4372 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4373
4374         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4375         for invalid symbolic addresses.
4376         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4377         larl operands.
4378
4379 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4380
4381         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4382         the argument in calls to fold_truth_not_expr.
4383
4384 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4385
4386         * tree.c (record_node_allocation_statistics): New function.
4387         (make_node_stat, copy_node_stat, build_string): Call it.
4388         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4389         (build1_stat, build_omp_clause): Likewise.
4390
4391 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4392
4393         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4394         last commit.
4395
4396 2011-03-24  Richard Guenther  <rguenther@suse.de>
4397
4398         PR tree-optimization/48271
4399         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4400         blocks that still exist.
4401
4402 2011-03-24  Richard Guenther  <rguenther@suse.de>
4403
4404         PR tree-optimization/48270
4405         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4406         not free datarefs before ddrs.
4407
4408 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4409
4410         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4411         from the address built for a reference with variable offset.
4412
4413 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4414
4415         PR target/48237
4416         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4417         alternatives that can be handled with movq or movabsq insn.
4418         (*movdf_internal): Disable for !TARGET_64BIT.
4419         (*movdf_internal_nointeger): Ditto.
4420         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4421
4422 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4423
4424         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4425         (FUNCTION_ARG_ADVANCE): Likewise.
4426         * tm.texi.in: Change references to them to hook references.
4427         * tm.texi: Regenerate.
4428         * targhooks.c (default_function_arg): Eliminate check for target macro.
4429         (default_function_incoming_arg): Likewise.
4430         (default_function_arg_advance): Likewise.
4431         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4432         (function_arg_advance): Likewise.
4433         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4434
4435 2011-03-24  Richard Guenther  <rguenther@suse.de>
4436
4437         PR middle-end/48269
4438         * tree-object-size.c (addr_object_size): Do not double-account
4439         for MEM_REF offsets.
4440
4441 2011-03-24  Diego Novillo  <dnovillo@google.com>
4442
4443         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4444         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4445         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4446         Update all users.
4447         (lto_input_string): Rename from input_string.  Make extern.
4448         Update all users.
4449         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4450         output_string_with_length.
4451         Output 0 to indicate a non-NULL string.  Update all callers to
4452         not emit 0.
4453         (lto_output_string): Rename from output_string.  Make extern.
4454         Update all users.
4455         (lto_output_decl_state_streams): Make extern.
4456         (lto_output_decl_state_refs): Make extern.
4457         * lto-streamer.h (lto_input_string): Declare.
4458         (lto_input_data_block): Declare.
4459         (lto_output_string): Declare.
4460         (lto_output_string_with_length): Declare.
4461         (lto_output_decl_state_streams): Declare.
4462         (lto_output_decl_state_refs): Declare.
4463
4464 2011-03-24  Richard Guenther  <rguenther@suse.de>
4465
4466         PR tree-optimization/46562
4467         * tree.c (build_invariant_address): New function.
4468         * tree.h (build_invariant_address): Declare.
4469         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4470         a renamed function moved ...
4471         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4472         Take valueization callback parameter.
4473         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4474         * gimple-fold.h: New file.
4475         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4476         (ccp_fold, fold_const_aggregate_ref,
4477         fold_ctor_reference, fold_nonarray_ctor_reference,
4478         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4479         get_base_constructor): Move ...
4480         * gimple-fold.c: ... here.
4481         (gimple_fold_stmt_to_constant_1): New function
4482         split out from ccp_fold.  Take a valueization callback parameter.
4483         Valueize all operands.
4484         (gimple_fold_stmt_to_constant): New wrapper function.
4485         (fold_const_aggregate_ref_1): New function split out from
4486         fold_const_aggregate_ref.  Take a valueization callback parameter.
4487         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4488         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4489         invariant POINTER_PLUS_EXPRs to invariant form.
4490         (vn_valueize): New function.
4491         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4492         * tree-vrp.c (vrp_valueize): New function.
4493         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4494         to fold statements to constants.
4495         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4496         function declarations.
4497         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4498         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4499
4500 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4501
4502         * config/h8300/predicates.md (jump_address_operand): Fix register
4503         mode check.
4504
4505 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4506
4507         * doc/invoke.texi (max-stores-to-sink): Document.
4508         * params.h (MAX_STORES_TO_SINK): Define.
4509         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4510         if either vectorization or if-conversion is disabled.
4511         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4512         tree-vect-data-refs.c vect_equal_offsets.
4513         (dr_equal_offsets_p): New function.
4514         (find_data_references_in_bb): Remove static.
4515         * tree-data-ref.h (find_data_references_in_bb): Declare.
4516         (dr_equal_offsets_p): Likewise.
4517         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4518         (vect_drs_dependent_in_basic_block): Update calls to
4519         vect_equal_offsets.
4520         (vect_check_interleaving): Likewise.
4521         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4522         (cond_if_else_store_replacement): Rename to...
4523         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4524         documentation.
4525         (cond_if_else_store_replacement): New function.
4526         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4527         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4528
4529 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4530
4531         PR target/46934
4532         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4533         to subtract lower bound instead of GEN_INT().
4534
4535 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4536
4537         PR other/48179
4538         PR other/48221
4539         PR other/48234
4540         * doc/extend.texi (Alignment): Move section to match order in TOC.
4541         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4542         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4543
4544 2011-03-23  Jeff Law  <law@redhat.com>
4545
4546         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4547         before removing the edge.
4548
4549         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4550         it may have been freed by redirect_branch_edge or
4551         redirect_edge_succ_nodup.
4552
4553 2011-03-23  Richard Guenther  <rguenther@suse.de>
4554
4555         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4556         (check_va_list_escapes): Likewise.
4557         (check_all_va_list_escapes): Likewise.
4558
4559 2011-03-23  Richard Guenther  <rguenther@suse.de>
4560
4561         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4562         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4563         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4564         (alias.o): Likewise.
4565         (ipa-type-escape.o): Remove.
4566         (ipa-struct-reorg.o): Likewise.
4567         (GTFILES): Remove ipa-struct-reorg.c.
4568         * alias.c: Do not include ipa-type-escape.h.
4569         * tree-ssa-alias.c: Likewise.
4570         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4571         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4572         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4573         and ipa-type-escape passes.
4574         * tree-pass.h (pass_ipa_type_escape): Remove.
4575         (pass_ipa_struct_reorg): Likewise.
4576         * ipa-struct-reorg.h: Remove.
4577         * ipa-struct-reorg.c: Likewise.
4578         * ipa-type-escape.h: Likewise.
4579         * ipa-type-escape.c: Likewise.
4580         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4581         (--param struct-reorg-cold-struct-ratio): Likewise.
4582         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4583         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4584         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4585
4586 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4587
4588         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4589         cpu attribute value.
4590         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4591         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4592         * config/s390/s390.c (processor_flags_table): New constant array.
4593         (s390_handle_arch_option): Remove.
4594         (s390_handle_option): Remove s390_handle_arch_option invocations
4595         and OPT_mwarn_framesize_ handling.
4596         (s390_option_override): Remove s390_handle_arch_option invocation.
4597         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4598         warnings.
4599         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4600         * config/s390/s390.opt (s390_tune, s390_arch)
4601         (march=): Replace s390_arch_option enum and values with
4602         processor_type.  Set variable name to s390_arch.  Set
4603         initialization value.
4604         (mtune=): Replace s390_arch_option with processor_type.  Set
4605         variable name to s390_tune.  Set initialization value.
4606
4607 2011-03-23  Julian Brown  <julian@codesourcery.com>
4608
4609         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4610         accesses which are not naturally aligned.
4611
4612 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4613
4614         PR target/47553
4615         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4616
4617 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4618
4619         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4620         parameter from "int" to "enum insn_code".
4621         (expand_operand_type): New enum.
4622         (expand_operand): New structure.
4623         (create_expand_operand): New function.
4624         (create_fixed_operand, create_output_operand): Likewise
4625         (create_input_operand, create_convert_operand_to): Likewise.
4626         (create_convert_operand_from, create_address_operand): Likewise.
4627         (create_integer_operand): Likewise.
4628         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4629         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4630         (expand_insn, expand_jump_insn): Likewise.
4631         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4632         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4633         (expand_movstr, expand_builtin___clear_cache): Likewise.
4634         (expand_builtin_lock_release): Likewise.
4635         * explow.c (allocate_dynamic_stack_space): Likewise.
4636         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4637         and use the default handling in that case.
4638         * expmed.c (check_predicate_volatile_ok): Delete.
4639         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4640         (emit_cstore): Likewise.
4641         * expr.c (emit_block_move_via_movmem): Likewise.
4642         (set_storage_via_setmem, expand_assignment): Likewise.
4643         (emit_storent_insn, try_casesi): Likewise.
4644         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4645         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4646         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4647         (expand_twoval_unop, expand_twoval_binop): Likewise.
4648         (expand_unop_direct, emit_indirect_jump): Likewise.
4649         (emit_conditional_move, vector_compare_rtx): Likewise.
4650         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4651         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4652         (expand_sync_lock_test_and_set): Likewise.
4653         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4654         (emit_unop_insn): Likewise.
4655         (expand_copysign_absneg): Change icode to an insn_code.
4656         (create_convert_operand_from_type): New function.
4657         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4658         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4659         (expand_insn, expand_jump_insn): Likewise.
4660         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4661         than const_int_operand for operand 2.
4662
4663 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4664
4665         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4666         if possible.
4667
4668 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4669
4670         * emit-rtl.c (emit_pattern_before_noloc): New function.
4671         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4672         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4673         (emit_pattern_after_noloc): New function.
4674         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4675         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4676
4677 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4678
4679         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4680         (__ffsDI2): Likewise.
4681
4682 2011-03-22  Richard Henderson  <rth@redhat.com>
4683
4684         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4685         of !TARGET_ABI_OPEN_VMS.
4686         (alpha_trampoline_init, alpha_start_function): Likewise.
4687         (alpha_expand_epilogue, alpha_file_start): Likewise.
4688         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4689         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4690         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4691         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4692         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4693
4694 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4695
4696         * config/s390/s390-opts.h: New.
4697         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4698         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4699         s390_stack_guard): Remove.
4700         (s390_handle_arch_option): Return void.  Take enum
4701         s390_arch_option value instead of string and searching array.
4702         (s390_handle_option): Don't assert that global structures are in
4703         use.  Access variables via opts pointer.  Use error_at.  Don't use
4704         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4705         s390_handle_arch_option.
4706         (s390_option_override): Update call to s390_handle_arch_option.
4707         (s390_emit_prologue): Use %d format for s390_stack_size in
4708         diagnostic.  Use %wd for HOST_WIDE_INT.
4709         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4710         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4711         * config/s390/s390.opt (config/s390/s390-opts.h): New
4712         HeaderInclude entry.
4713         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4714         s390_arch_flags, s390_warn_framesize): New Variable entries.
4715         (s390_arch_option): New Enum and EnumValue entries.
4716         (march=): Use Enum instead of Var.
4717         (mstack-guard=, mstack-size=): Use UInteger and Var.
4718         (mtune=): Use Enum.
4719
4720 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4721
4722         * config/score/score.c (score_handle_option): Don't assert that
4723         global structures are in use.  Access target_flags via opts
4724         pointer.  Use value of -march= option to determine target_flags
4725         settings.
4726         * config/score/score.opt (march=): Use Enum.
4727         (score_arch): New Enum and EnumValue entries.
4728
4729 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4730
4731         * config/mep/mep.c (option_mtiny_specified): Remove.
4732         (mep_option_override): Move register handling for -mivc2 from
4733         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4734         instead of option_mtiny_specified.
4735         (mep_handle_option): Access target_flags via opts pointer.  Don't
4736         assert that global structures are in use.  Defer part of -mivc2
4737         handling and move it to mep_option_override.
4738         * config/mep/mep.opt (IVC2): New Mask entry.
4739         (mivc2): Use Var and Defer instead of Mask.
4740
4741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * config/v850/v850-opts.h: New.
4744         * config/v850/v850.c (small_memory): Replace with
4745         small_memory_physical_max array.  Make that array static const.
4746         (v850_handle_memory_option): Take integer value of argument.  Take
4747         gcc_options pointer, option text and location.  Return void.
4748         Update for changes to small memory structures.
4749         (v850_handle_option): Access target_flags via opts pointer.  Don't
4750         assert that global structures are in use.  Update calls to
4751         v850_handle_memory_option.
4752         (v850_encode_data_area): Update references to small memory settings.
4753         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4754         (enum small_memory_type): Move to v850-opts.h.
4755         * config/v850/v850.opt (config/v850/v850-opts.h): New
4756         HeaderInclude entry.
4757         (small_memory_max): New Variable entry.
4758         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4759         (mtda, mzda): Likewise.
4760
4761 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4762
4763         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4764         pointer.  Don't assert that global structures are in use.
4765
4766 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4767
4768         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4769         via opts pointer.  Don't assert that global structures are in use.
4770
4771 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4772
4773         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4774         (munix=93): Use Var.
4775         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4776         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4777         * config/pa/pa-opts.h: New.
4778         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4779         (pa_handle_option): Don't assert that global structures are in
4780         use.  Access target_flags via opts pointer.  Don't handle
4781         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4782         OPT_munix_98 here.
4783         (pa_option_override): Handle deferred OPT_mfixed_range_.
4784
4785 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * config/mn10300/mn10300-opts.h: New.
4788         * config/mn10300/mn10300.c (mn10300_processor,
4789         mn10300_tune_string): Remove.
4790         (mn10300_handle_option): Don't assert that global structures are
4791         in use.  Access mn10300_processor via opts pointer.  Don't handle
4792         OPT_mtune_ here.
4793         * config/mn10300/mn10300.h (enum processor_type): Move to
4794         mn10300-opts.h.
4795         (mn10300_processor): Remove.
4796         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4797         HeaderInclude entry.
4798         (mn10300_processor): New Variable entry.
4799         (mtune=): Use Var.
4800
4801 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4802
4803         * config/microblaze/microblaze.c: Don't include opts.h.
4804         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4805         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4806         (mno-clearbss): Use Var and Warn.
4807
4808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4809
4810         * config/m32r/m32r-opts.h: New.
4811         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4812         (m32r_handle_option): Don't assert that global structures are in
4813         use.  Access target_flags and m32r_cache_flush_func via opts
4814         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4815         OPT_mno_flush_trap here.
4816         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4817         include of m32r-opts.h.
4818         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4819         HeaderInclude entry.
4820         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4821         (mmodel=): Use Enum and Var.
4822         (m32r_model): New Enum and EnumValue entries.
4823         (mno-flush-trap): Use Var.
4824         (msdata=): Use Enum and Var.
4825         (m32r_sdata): New Enum and EnumValue entries.
4826
4827 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4828
4829         * config/m32c/m32c.c: Don't include opts.h.
4830         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4831         m32c_handle_option): Remove.
4832         (m32c_option_override): Check global_options_set.x_target_memregs
4833         instead of target_memregs_set.
4834         * config/m32c/m32c.h (target_memregs): Remove.
4835         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4836         variable.
4837
4838 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4839
4840         * config/iq2000/iq2000-opts.h: New.
4841         * config/iq2000/iq2000.c: Don't include opts.h.
4842         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4843         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4844         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4845         HeaderInclude entry.
4846         (iq2000_tune): New Variable entry.
4847         (march=): Add comment.  Use Enum.
4848         (iq2000_arch): New Enum and EnumValue entries.
4849         (mcpu=): Use Enum and Var.
4850         (iq2000_tune): New Enum and EnumValue entries.
4851
4852 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4853
4854         * config/ia64/ia64-opts.h: New.
4855         * config/ia64/ia64.c (ia64_tune): Remove.
4856         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4857         here.  Use error_at.
4858         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4859         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4860         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4861         HeaderInclude entry.
4862         (ia64_tune): New Variable entry.
4863         (mfixed-range=): Use Defer and Var.
4864         (mtune=): Use Enum and Var.
4865         (ia64_tune): New Enum and EnumValue entries.
4866
4867 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4868
4869         * config/frv/frv-opts.h: New.
4870         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4871         frv-opts.h.
4872         (frv_cpu_type): Remove.
4873         * config/frv/frv.c: Don't include opts.h.
4874         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4875         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4876         (frv_cpu_type): New Variable entry.
4877         (frv_cpu): New Enum and EnumValue entries.
4878
4879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4880
4881         * config/cris/cris.c (cris_handle_option): Access target_flags via
4882         opts pointer.  Don't assert that global structures are in use.
4883         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4884         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4885
4886 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4887
4888         * config/bfin/bfin-opts.h: New.
4889         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4890         bfin_si_revision, bfin_workarounds): Remove.
4891         (bfin_cpus): Make static const.
4892         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4893         not bfin_lib_id_given.
4894         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4895         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4896         pointer. Use error_at.  Don't assert that global structures are in use.
4897         * config/bfin/bfin.h: Include bfin-opts.h.
4898         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4899         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4900         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4901         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4902         entries.
4903
4904 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4905
4906         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4907         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4908         or -msoft-float here.
4909         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4910         -msoft-float and -mhard-float.
4911         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4912         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4913         msoft-float.
4914         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4915         -msoft-float.
4916         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4917         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4918         not mhard-float.
4919         (LIBGCC_SPEC): Don't handle -msoft-float.
4920         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4921         -mhard-float.
4922         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4923         msoft-float.
4924         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4925         -mfloat-abi=*, not -msoft-float and -mhard-float.
4926         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4927         -msoft-float.
4928         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4929         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4930         mhard-float and msoft-float.
4931         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4932         mfloat-abi=soft in comments, not mhard-float and msoft-float.
4933         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4934         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4935         mhard-float.
4936         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4937         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4938         msoft-float.
4939         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4940         not mhard-float.
4941         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4942         not msoft-float.
4943
4944 2011-03-22  Richard Henderson  <rth@redhat.com>
4945
4946         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4947         TARGET_ABI_WINDOWS_NT.
4948         (alpha_output_function_end_prologue): Likewise.
4949         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4950         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4951         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4952         (trap, *movsi_nt_vms): Likewise.
4953         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4954         (*tablejump_osf_nt_internal): Remove.
4955         * config/alpha/predicates.md (input_operand): Only test Pmode.
4956
4957 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4958
4959         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4960         via opts pointer.  Use error_at.  Don't assert that global
4961         structures are in use.
4962
4963 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4964
4965         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4966         (ix86_handle_option): Access ix86_isa_flags and
4967         ix86_isa_flags_explicit via opts pointer.  Don't assert that
4968         global structures are in use.
4969         (ix86_function_specific_save, ix86_function_specific_restore):
4970         Update ix86_isa_flags_explicit field name.
4971         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4972         (ix86_isa_flags_explicit): Rename TargetSave entry to
4973         x_ix86_isa_flags_explicit.
4974
4975 2011-03-22  Richard Henderson  <rth@redhat.com>
4976
4977         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4978         (alpha_option_override, direct_return): Likewise.
4979         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4980         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4981         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4982         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4983         (alpha_expand_epilogue, alpha_end_function): Likewise.
4984         (alpha_init_libfuncs): Likewise.
4985         (struct machine_function): Remove unicosmk members.
4986         (print_operand) ['t']: Remove.
4987         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4988         unicosmk_output_module_name, unicosmk_output_common,
4989         current_section_align, unicosmk_output_text_section_asm_op,
4990         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4991         unicosmk_section_type_flags, unicosmk_unique_section,
4992         unicosmk_asm_named_section, unicosmk_insert_attributes,
4993         unicosmk_output_align, unicosmk_defer_case_vector,
4994         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4995         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4996         unicosmk_output_ssib, unicosmk_add_call_info_word,
4997         unicosmk_extern_head, unicosmk_output_default_externs,
4998         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4999         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5000         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5001         * config/alpha/alpha-protos.h: Update.
5002         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5003         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5004         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5005         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5006         (*mulsi_se, mulvsi3): Likewise.
5007         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5008         (*divmodsi_internal, call, call_value, realign): Likewise.
5009         (moddi3, umoddi3): Likewise; remove duplicate expander.
5010         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5011         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5012         (*movdi_nofix): Remove r/U alternative.
5013         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5014         * config/alpha/constraints.md ("U"): Remove.
5015         * config/alpha/predicates.md (call_operand"): Don't test
5016         TARGET_ABI_UNICOSMK.
5017
5018 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5019
5020         * target.def (handle_option): Take gcc_options and
5021         cl_decoded_option pointers and location_t.
5022         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5023         * doc/tm.texi: Regenerate.
5024         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5025         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5026         * lto-opts.c (lto_reissue_options): Generate option structure for
5027         targetm.handle_option call.
5028         * opts.c (target_handle_option): Update call to
5029         targetm.handle_option.  Remove assertions about values now passed
5030         down to hook.
5031         * targhooks.c (default_target_handle_option): New.
5032         * targhooks.h (default_target_handle_option): Declare.
5033         * config/alpha/alpha.c: Include opts.h.
5034         (alpha_handle_option): Update to new hook interface.
5035         * config/arm/arm.c: Include opts.h.
5036         (arm_handle_option): Update to new hook interface.
5037         * config/arm/t-arm (arm.o): Update dependencies.
5038         * config/bfin/bfin.c: Include opts.h.
5039         (bfin_handle_option): Update to new hook interface.
5040         * config/cris/cris.c: Include opts.h.
5041         (cris_handle_option): Update to new hook interface.
5042         * config/frv/frv.c: Include opts.h.
5043         (frv_handle_option): Update to new hook interface.
5044         * config/i386/i386.c: Include opts.h.
5045         (ix86_handle_option): Update to new hook interface.
5046         (ix86_valid_target_attribute_inner_p): Generate option structure
5047         for call to ix86_handle_option.
5048         * config/i386/t-i386 (i386.o): Update dependencies.
5049         * config/ia64/ia64.c: Include opts.h.
5050         (ia64_handle_option): Update to new hook interface.
5051         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5052         * config/iq2000/iq2000.c: Include opts.h.
5053         (iq2000_handle_option): Update to new hook interface.
5054         * config/m32c/m32c.c: Include opts.h.
5055         (m32c_handle_option): Update to new hook interface.
5056         * config/m32r/m32r.c: Include opts.h.
5057         (m32r_handle_option): Update to new hook interface.
5058         * config/m68k/m68k.c: Include opts.h.
5059         (m68k_handle_option): Update to new hook interface.
5060         * config/mep/mep.c: Include opts.h.
5061         (mep_handle_option): Update to new hook interface.
5062         * config/microblaze/microblaze.c: Include opts.h.
5063         (microblaze_handle_option): Update to new hook interface.
5064         * config/mips/mips.c: Include opts.h.
5065         (mips_handle_option): Update to new hook interface.
5066         * config/mn10300/mn10300.c: Include opts.h.
5067         (mn10300_handle_option): Update to new hook interface.
5068         * config/pa/pa.c: Include opts.h.
5069         (pa_handle_option): Update to new hook interface.
5070         * config/pdp11/pdp11.c: Include opts.h.
5071         (pdp11_handle_option): Update to new hook interface.
5072         * config/rs6000/rs6000.c: Include opts.h.
5073         (rs6000_handle_option): Update to new hook interface.
5074         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5075         * config/rx/rx.c: Include opts.h.
5076         (rx_handle_option): Update to new hook interface.
5077         * config/s390/s390.c: Include opts.h.
5078         (s390_handle_option): Update to new hook interface.
5079         * config/score/score.c: Include opts.h.
5080         (score_handle_option): Update to new hook interface.
5081         * config/sh/sh.c: Include opts.h.
5082         (sh_handle_option): Update to new hook interface.
5083         * config/sparc/sparc.c: Include opts.h.
5084         (sparc_handle_option): Update to new hook interface.
5085         * config/v850/v850.c: Include opts.h.
5086         (v850_handle_option): Update to new hook interface.
5087
5088 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5089
5090         * gcc.c (driver_unknown_option_callback): Only permit and save
5091         unknown -Wno- options.
5092         (driver_wrong_lang_callback): Save options directly instead of via
5093         driver_unknown_option_callback.
5094
5095 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5096
5097         * combine.c (simplify_set): Try harder to find the best CC mode when
5098         simplifying a nested COMPARE on the RHS.
5099
5100 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5101
5102         * config/alpha/gnu.h: Remove.
5103         * config/arc: Remove directory.
5104         * config/arm/netbsd.h: Remove.
5105         * config/arm/t-pe: Remove.
5106         * config/crx: Remove directory.
5107         * config/i386/netbsd.h: Remove.
5108         * config/m68hc11: Remove directory.
5109         * config/m68k/uclinux-oldabi.h: Remove.
5110         * config/mcore/mcore-pe.h: Remove.
5111         * config/mcore/t-mcore-pe: Remove.
5112         * config/netbsd-aout.h: Remove.
5113         * config/rs6000/gnu.h: Remove.
5114         * config/sh/sh-symbian.h: Remove.
5115         * config/sh/symbian-base.c: Remove.
5116         * config/sh/symbian-c.c: Remove.
5117         * config/sh/symbian-cxx.c: Remove.
5118         * config/sh/symbian-post.h: Remove.
5119         * config/sh/symbian-pre.h: Remove.
5120         * config/sh/t-symbian: Remove.
5121         * config/svr3.h: Remove.
5122         * config/vax/netbsd.h: Remove.
5123         * config.build: Don't handle i[34567]86-*-pe.
5124         * config.gcc: Remove handling of deprecations for most deprecated
5125         targets.
5126         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5127         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5128         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5129         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5130         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5131         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5132         Remove cases.
5133         * config.host: Don't handle i[34567]86-*-pe.
5134         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5135         (ASM_SPEC32): Don't handle -mcall-gnu.
5136         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5137         -mcall-gnu.
5138         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5139         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5140         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5141         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5142         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5143         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5144         conditional on SYMBIAN.
5145         * configure.ac: Don't handle powerpc*-*-gnu*.
5146         * configure: Regenerate.
5147         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5148         * doc/install-old.texi (m6811, m6812): Don't mention.
5149         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5150         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5151         (m68k-uclinuxoldabi): Don't mention.
5152         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5153         Remove.
5154         (-mcall-gnu): Remove.
5155         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5156         families): Remove constraint documentation.
5157
5158 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5159
5160         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5161         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5162         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5163
5164 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5165
5166         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5167         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5168         * config/avr/avr.c (init_cumulative_args)
5169         (avr_function_arg_advance): Use it.
5170         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5171         sibcall epilogues.
5172         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5173         (avr_function_ok_for_sibcall): ...this new function.
5174         (avr_lookup_function_attribute1): New static Function.
5175         (avr_naked_function_p, interrupt_function_p)
5176         (signal_function_p, avr_OS_task_function_p)
5177         (avr_OS_main_function_p): Use it.
5178         * config/avr/avr.md ("sibcall", "sibcall_value")
5179         ("sibcall_epilogue"): New expander.
5180         ("*call_insn", "*call_value_insn"): New insn.
5181         ("call_insn", "call_value_insn"): Remove
5182         ("call", "call_value", "epilogue"): Change expander to handle
5183         sibling calls.
5184
5185 2011-03-21  Nick Clifton  <nickc@redhat.com>
5186
5187         * doc/invoke.texi (Overall Options): Move closing brace to end of
5188         options list.
5189         (Optimization Options): Add missing @gol.
5190         (Directory Options): Likewise.
5191         (i386 and x86-64 Options): Likewise.
5192         (RS6000 and PowerPC Options): Likewise.
5193         (i386 and x86-64 Windows Options): Likewise.
5194         (V850 Options): Add text missing from descriptions.
5195
5196 2011-03-22  Richard Henderson  <rth@redhat.com>
5197
5198         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5199         (avr_incoming_return_addr_rtx): New.
5200         (emit_push_byte): New.
5201         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5202         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5203         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5204         (emit_pop_byte): New.
5205         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5206         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5207         (INCOMING_RETURN_ADDR_RTX): New.
5208         (INCOMING_FRAME_SP_OFFSET): New.
5209         (ARG_POINTER_CFA_OFFSET): New.
5210         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5211         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5212         (pophi): Remove.
5213
5214         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5215
5216 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5217
5218         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5219         (FUNCTION_ARG_ADVANCE): Likewise.
5220         * tm.texi.in: Change references to them to hook references.
5221         * tm.texi: Regenerate.
5222         * targhooks.c (default_function_arg): Eliminate check for target
5223         macro.
5224         (default_function_incoming_arg): Likewise.
5225         (default_function_arg_advance): Likewise.
5226         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5227         (function_arg_advance): Likewise.
5228         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5229
5230 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5231
5232         * tree.c (build_call_1): New function.
5233         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5234
5235 2011-03-22  Richard Guenther  <rguenther@suse.de>
5236
5237         PR tree-optimization/48228
5238         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5239         for single-arg PHIs.
5240
5241 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5242
5243         PR rtl-optimization/48143
5244         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5245         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5246         sse2_cvtps2pd): Likewise.
5247
5248 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5249
5250         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5251
5252 2011-03-22  Richard Guenther  <rguenther@suse.de>
5253
5254         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5255         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5256         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5257         and REALIGN_LOAD_EXPR.
5258         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5259         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5260         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5261         DOT_PROD_EXPR case ...
5262         (expand_expr_real_2): ... here.
5263         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5264         and REALIGN_LOAD_EXPR.
5265         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5266         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5267         (vect_create_epilog_for_reduction): Likewise.
5268         (vectorizable_reduction): Likewise.
5269         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5270         * tree-vect-stmts.c (vectorizable_load): Likewise.
5271
5272 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5273
5274         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5275
5276 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5277
5278         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5279         handling for PLTOFF/GOTOFF.
5280
5281 2011-03-22  Nick Clifton  <nickc@redhat.com>
5282
5283         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5284         trailing backslash from the end of the macro definition.
5285
5286 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5287
5288         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5289         and PLT unspecs.
5290
5291 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5292
5293         * expr.h (prepare_operand): Move to...
5294         * optabs.h (prepare_operand): ...here and change the insn code
5295         parameter from "int" to "enum insn_code".
5296         (insn_operand_matches): Declare.
5297         * expr.c (init_expr_target): Use insn_operand_matches.
5298         (compress_float_constant): Likewise.
5299         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5300         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5301         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5302         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5303         Likewise.
5304         (gen_cond_trap): Likewise.
5305         (prepare_operand): Likewise.  Change icode to an insn_code.
5306         (insn_operand_matches): New function.
5307         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5308         * reload1.c (gen_reload): Likewise.
5309         * targhooks.c (default_secondary_reload): Likewise.
5310
5311 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5312
5313         * config/alpha/alpha.md (unspec): New define_c_enum.
5314         (unspecv): Ditto.
5315
5316 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5317
5318         PR debug/48214
5319         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5320         between a call and its CALL_ARG_LOCATION note.
5321
5322 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5323
5324         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5325
5326 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5327
5328         PR c/42544
5329         PR c/48197
5330         * c-common.c (shorten_compare): If primopN is first sign-extended
5331         to opN and then zero-extended to result type, set primopN to opN.
5332
5333 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5334
5335         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5336         for barrier handlers.
5337
5338 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5339
5340         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5341         UNSPEC constants to be in the unspec enumeration, and redefine
5342         all UNSPECV constants to be in the unspecv enumeration, so that
5343         dumps print which unspec/unspec_volatile this is.
5344         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5345         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5346         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5347         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5348         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5349
5350         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5351         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5352         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5353         * config/rs6000/sync.md (isync, lwsync): Ditto.
5354
5355 2011-03-21  Richard Guenther  <rguenther@suse.de>
5356
5357         * params.def (lto-min-partition): Fix typo.
5358
5359 2011-03-21  Richard Guenther  <rguenther@suse.de>
5360
5361         PR c/47939
5362         * c-decl.c (grokdeclarator): Drop to the main variant only
5363         for array types.  Drop flag_gen_aux_info check.
5364
5365 2011-03-21  Richard Guenther  <rguenther@suse.de>
5366
5367         PR translation/47911
5368         * params.def (lto-partitions): Fix typo.
5369         (lto-min-partition): Fix wording.
5370
5371 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5372
5373         * config/rs6000/t-freebsd: Remove duplication from file.
5374
5375 2011-03-21  Richard Guenther  <rguenther@suse.de>
5376
5377         PR middle-end/47661
5378         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5379
5380 2011-03-21  Richard Guenther  <rguenther@suse.de>
5381
5382         PR lto/48210
5383         * params.def (lto-partitions): Require at least 1 partition.
5384
5385 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5386
5387         * gthr-solaris.h: Remove.
5388         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5389         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5390         (LIB_SPEC): Likewise.
5391         * config/sol2.opt (threads): Remove.
5392         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5393         (sparc*-*-solaris2*): Likewise.
5394         * configure.ac (enable_threads): Enable solaris support.
5395         * configure: Regenerate.
5396         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5397         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5398         solaris.
5399
5400 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5401
5402         * config.gcc: Obsolete *-*-solaris2.8*.
5403         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5404
5405 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5406
5407         PR bootstrap/48135
5408         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5409         reference.  Solaris 8 perl works.
5410
5411 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5412
5413         PR bootstrap/48135
5414         * doc/install.texi (Prerequisites): Move jar etc. up.
5415         Explain support library version requirements.
5416
5417 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5418
5419         PR bootstrap/48135
5420         * doc/install.texi (Prerequisites): Move Perl to build
5421         requirements.  Always necessary on Solaris 2 with Sun ld.
5422
5423 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5424
5425         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5426         binutils 2.21.
5427         (Specific, i?86-*-solaris2.[89]): Likewise.
5428         (Specific, i?86-*-solaris2.10): Likewise.
5429         (Specific, mips-sgi-irix6): Likewise.
5430         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5431         Update for binutils 2.21.
5432
5433 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5434
5435         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5436         Allow -fuse-linker-plugin for non-default plugin linker.
5437         * configure: Regenerate.
5438
5439 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5440
5441         PR bootstrap/48167
5442         * gengtype.c (files_rules): Added rule for cp/parser.h.
5443
5444 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5445
5446         PR target/48213
5447         * config/s390/s390.c (s390_delegitimize_address): Don't call
5448         lowpart_subreg if orig_x has BLKmode.
5449
5450 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5451
5452         PR target/12171
5453         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5454         * tree.h (attribute_spec): Add new member affects_type_identity.
5455         * attribs.c (empty_attribute_table): Adjust attribute_spec
5456         initializers.
5457         * config/alpha/alpha.c: Likewise.
5458         * config/arc/arc.c: Likewise.
5459         * config/arm/arm.c: Likewise.
5460         * config/avr/avr.c: Likewise.
5461         * config/bfin/bfin.c: Likewise.
5462         * config/crx/crx.c: Likewise.
5463         * config/darwin.h: Likewise.
5464         * config/h8300/h8300.c: Likewise.
5465         * config/i386/cygming.h: Likewise.
5466         * config/i386/i386.c: Likewise.
5467         * config/ia64/ia64.c: Likewise.
5468         * config/m32c/m32c.c: Likewise.
5469         * config/m32r/m32r.c: Likewise.
5470         * config/m68hc11/m68hc11.c: Likewise.
5471         * config/m68k/m68k.c: Likewise.
5472         * config/mcore/mcore.c: Likewise.
5473         * config/mep/mep.c: Likewise.
5474         * config/microblaze/microblaze.c: Likewise.
5475         * config/mips/mips.c: Likewise.
5476         * config/rs6000/rs6000.c: Likewise.
5477         * config/rx/rx.c: Likewise.
5478         * config/sh/sh.c: Likewise.
5479         * config/sol2.h: Likewise.
5480         * config/sparc/sparc.c: Likewise.
5481         * config/spu/spu.c: Likewise.
5482         * config/stormy16/stormy16.c: Likewise.
5483         * config/v850/v850.c: Likewise.
5484
5485 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5486
5487         * simplify-rtx.c (simplify_binary_operation_1): Handle
5488         (xor (and A B) C) case when B and C are both constants.
5489
5490 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5491
5492         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5493
5494 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5495
5496         PR bootstrap/48168
5497         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5498
5499 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5500
5501         PR rtl-optimization/48156
5502         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5503         assume df and df_lr are not NULL.
5504
5505 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5506
5507         PR debug/48023
5508         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5509         between a call and its CALL_ARG_LOCATION note.
5510
5511 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5512
5513         PR debug/48178
5514         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5515         between a call and its corresponding CALL_ARG_LOCATION note.
5516
5517 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5518
5519         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5520         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5521         * haifa-sched.c (setup_ref_regs): Ditto.
5522         * caller-save.c (add_used_regs_1): Ditto.
5523         * dse.c (look_for_hardregs): Ditto.
5524         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5525         * sched-rgn.c (check_live_1): Ditto.
5526
5527 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * c-decl.c (diagnose_mismatched_decls): Give an error for
5530         redefining a typedef with variably modified type.
5531
5532 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5533
5534         * c-decl.c (grokfield): Don't allow typedefs for structures or
5535         unions with no tag by default.
5536         * doc/extend.texi (Unnamed Fields): Update.
5537
5538 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5539
5540         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5541         Rewrite using indirect functions.
5542         (lwp_slwpcb): Ditto.
5543         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5544         (avx_vinsertf128<mode>): Ditto.
5545
5546 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5547
5548         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5549         unspecs.
5550
5551 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5552
5553         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5554         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5555
5556 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5557
5558         PR rtl-optimization/48170
5559         * gcse.c (hoist_code): Remove bogus asserts.
5560
5561 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5562
5563         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5564         computation for prologue/epilogue.
5565
5566 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5567
5568         * Makefile.in (check-consistency): Remove.
5569
5570 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5571
5572         PR debug/48176
5573         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5574         arange_table_in_use is 0, but either text_section_used or
5575         cold_text_section_used is true.  Don't call it if
5576         !info_section_emitted.
5577
5578 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5579
5580         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5581         FUNCTION_VALUE_REGNO_P): Remove.
5582         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5583         Remove.
5584         * config/avr/avr.c (avr_ret_register): Make static inline.
5585         (avr_function_value_regno_p): New function.
5586         (avr_libcall_value): Make static. Add 'func' argument.
5587         (avr_function_value): Make static. Rename 'func' argument to
5588         'fn_decl_or_type', forward it to avr_libcall_value. Call
5589         avr_ret_register function instead of RET_REGISTER macro.
5590         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5591
5592 2011-03-18  Jason Merrill  <jason@redhat.com>
5593
5594         PR c++/23372
5595         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5596
5597 2011-03-18  Richard Guenther  <rguenther@suse.de>
5598
5599         * doc/install.texi (--enable-gold): Remove.
5600         (--with-plugin-ld): Document.
5601         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5602
5603 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5604
5605         PR middle-end/47790
5606         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5607         again after expansion changes.
5608
5609 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5610
5611         * combine.c (try_combine): Do simplification only call of
5612         subst() on i2 even when i1 is present. Update comments.
5613
5614 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5615
5616         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5617         and UNSPEC_PCREL_SYMOFF.
5618
5619 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5620
5621         * config/s390/s390.md: Use define_c_enum for the unspec constant
5622         definitions.
5623
5624 2011-03-18  Richard Henderson  <rth@redhat.com>
5625             Jakub Jelinek  <jakub@redhat.com>
5626
5627         PR bootstrap/48161
5628         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5629         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5630
5631 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5632
5633         PR middle-end/47725
5634         * combine.c (cant_combine_insn_p): Don't check zero/sign
5635         extended hard registers.
5636
5637 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5638
5639         PR middle-end/47725
5640         * combine.c (cant_combine_insn_p): Check zero/sign extended
5641         hard registers.
5642
5643 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5644
5645         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5646         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5647         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5648         Change return type to bool.
5649         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5650
5651 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5652
5653         PR debug/48163
5654         * var-tracking.c (prepare_call_arguments): If CALL target
5655         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5656         pc instead of looking it up using cselib_lookup and use
5657         Pmode for it if x has VOIDmode.
5658         * dwarf2out.c (gen_subprogram_die): If also both first and
5659         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5660
5661         PR debug/48163
5662         * function.c (assign_parms): For data.passed_pointer parms
5663         use MEM of data.entry_parm instead of data.entry_parm itself
5664         as DECL_INCOMING_RTL.
5665         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5666         also when passed and declared mode is the same, DECL_RTL
5667         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5668         a MEM too.
5669
5670 2011-03-16  Jeff Law  <law@redhat.com>
5671
5672         PR rtl-optimization/37273
5673         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5674         handle them like argument loads from stack slots.  Do not double
5675         count memory for memory constants and argument loads from stack slots.
5676
5677 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5678
5679         PR debug/48160
5680         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5681
5682 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5683
5684         PR target/48171
5685         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5686
5687 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5688
5689         PR bootstrap/48153
5690         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5691         if dwarf_strict.
5692         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5693         Clear call_arg_locations and call_arg_loc_last always.
5694
5695         PR middle-end/48152
5696         * var-tracking.c (prepare_call_arguments): If argument needs to be
5697         passed by reference, adjust argtype and mode.
5698
5699 2011-03-17  Richard Guenther  <rguenther@suse.de>
5700
5701         PR middle-end/48134
5702         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5703         a value make sure to fold the statement.
5704
5705 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5706
5707         PR target/43872
5708         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5709         return condition with !cfun->calls_alloca.
5710
5711 2011-03-17  Richard Guenther  <rguenther@suse.de>
5712
5713         PR bootstrap/48148
5714         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5715         origin for decls in other ltrans units.
5716         (input_varpool_node): Likewise.
5717
5718 2011-03-17  Richard Guenther  <rguenther@suse.de>
5719
5720         PR middle-end/48165
5721         * tree-object-size.c (compute_object_offset): Properly return
5722         the offset operand of MEM_REFs as sizetype.
5723
5724 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5725
5726         PR rtl-optimization/48141
5727         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5728         * dse.c: Include params.h.
5729         (active_local_stores_len): New variable.
5730         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5731         to NULL.
5732         (record_store, check_mem_read_rtx): Decrease it when removing
5733         from the chain.
5734         (scan_insn): Likewise.  Increase it when adding to chain, if it
5735         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5736         set active_local_stores to NULL before the addition.
5737         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5738
5739         PR rtl-optimization/48141
5740         * dse.c (record_store): If no positions are needed in an insn
5741         that cannot be deleted, at least unchain it from active_local_stores.
5742
5743 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5744
5745         PR debug/47510
5746         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5747         (lookup_type_die_strip_naming_typedef): ... here.
5748         (get_context_die): Use it.
5749         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5750         the anonymous struct named by the naming typedef.
5751
5752 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5753
5754         PR target/48154
5755         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5756         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5757
5758 2011-03-16  Jeff Law  <law@redhat.com>
5759
5760         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5761         check for operands of conditional.  Allow type to be a pointer.
5762
5763 2011-03-16  Richard Guenther  <rguenther@suse.de>
5764
5765         PR tree-optimization/48149
5766         * fold-const.c (fold_binary_loc): Fold
5767         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5768
5769 2011-03-16  Richard Guenther  <rguenther@suse.de>
5770
5771         PR tree-optimization/26134
5772         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5773         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5774         (non_rewritable_mem_ref_base): Handle complex type component
5775         accesses, constrain offsets for vector and complex extracts
5776         more properly.
5777
5778 2011-03-16  Richard Guenther  <rguenther@suse.de>
5779
5780         PR tree-optimization/48146
5781         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5782         operands avoiding the need for renaming.
5783
5784 2011-03-16  Richard Guenther  <rguenther@suse.de>
5785
5786         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5787         constant folding.  Move MEM_REF canonicalization first.
5788         Rely on fold_const_aggregate_ref for initializer folding.
5789         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5790
5791 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5792
5793         PR middle-end/48136
5794         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5795         arg0/arg1 or their arguments are always fold converted to matching
5796         types.
5797
5798         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5799         to nargs.
5800
5801 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5802
5803         PR lto/46944
5804         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5805         Handle in-tree gold.
5806         (ld_vers): Extract binutils version for gold.
5807         (gcc_cv_ld_hidden): Handle gold here.
5808         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5809         * configure: Regenerate.
5810         * config.in: Regenerate.
5811         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5812         -fuse-linker-plugin otherwise.
5813         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5814         (LINK_COMMAND_SPEC): Use it.
5815         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5816
5817 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5818
5819         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5820         * calls.c: Remove debug.h include.
5821         (emit_call_1): Don't call virtual_call_token debug hook.
5822         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5823         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5824         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5825         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5826         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5827         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5828         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5829         dwarf2out_virtual_call): Remove.
5830         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5831         copy_call_info and virtual_call hooks.
5832         (dwarf2out_init): Don't initialize vcall_insn_table,
5833         debug_dcall_section and debug_vcall_section.
5834         (prune_unused_types): Don't mark nodes from dcall_table.
5835         (dwarf2out_finish): Don't output dcall or vcall tables.
5836         * final.c (final_scan_insn): Don't call direct_call or
5837         virtual_call debug hooks.
5838         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5839         virtual_call_token, copy_call_info and virtual_call hooks.
5840         (debug_nothing_uid): Remove prototype.
5841         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5842         copy_call_info and virtual_call hooks.
5843         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5844         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5845         * debug.c (do_nothing_debug_hooks): Likewise.
5846         (debug_nothing_uid): Remove.
5847         * doc/invoke.texi (-fenable-icf-debug): Remove.
5848         * common.opt (-fenable-icf-debug): Likewise.
5849
5850         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5851         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5852         call's MEM.  Handle functions returning aggregate through a hidden
5853         first pointer.  For virtual calls add clobbered pc to call arguments
5854         chain.
5855         * dwarf2out.c (gen_subprogram_die): Emit
5856         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5857         can't be emitted.
5858
5859         PR debug/45882
5860         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5861         * rtl.h (ENTRY_VALUE_EXP): Define.
5862         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5863         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5864         * print-rtl.c (print_rtx): Likewise.
5865         * gengtype.c (adjust_field_rtx_def): Likewise.
5866         * var-tracking.c (vt_add_function_parameter): Adjust
5867         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5868         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5869         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5870         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5871         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5872
5873         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5874         Call var_location debug hook even on CALL_INSNs.
5875         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5876         * rtl.def (ENTRY_VALUE): New.
5877         * dwarf2out.c: Include cfglayout.h.
5878         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5879         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5880         (struct call_arg_loc_node): New type.
5881         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5882         tail_call_site_count): New variables.
5883         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5884         DW_TAG_GNU_call_site_parameter.
5885         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5886         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5887         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5888         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5889         and DW_AT_GNU_all_source_call_sites.
5890         (mem_loc_descriptor): Handle ENTRY_VALUE.
5891         (add_src_coords_attributes): Don't add enything if
5892         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5893         (dwarf2out_abstract_function): Save and clear call_arg_location,
5894         call_site_count and tail_call_site_count around dwarf2out_decl call.
5895         (gen_call_site_die): New function.
5896         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5897         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5898         (dwarf2out_function_decl): Clear call_arg_locations,
5899         call_arg_loc_last, set call_site_count and tail_call_site_count
5900         to -1 and free block_map.
5901         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5902         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
5903         followed by any real instructions.
5904         (dwarf2out_begin_function): Set call_site_count and
5905         tail_call_site_count to 0.
5906         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5907         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5908         attempt to force a DIE for it and worst case remove the attribute.
5909         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5910         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5911         the decl itself.
5912         * var-tracking.c: Include tm_p.h.
5913         (vt_stack_adjustments): For calls call note_register_arguments.
5914         (argument_reg_set): New variable.
5915         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5916         ensure the VALUE is resolved.
5917         (call_arguments): New variable.
5918         (prepare_call_arguments): New function.
5919         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5920         (struct expand_loc_callback_data): Add ignore_cur_loc field.
5921         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5922         always use the best expression.
5923         (vt_expand_loc): Add ignore_cur_loc argument.
5924         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5925         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5926         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5927         note for all calls.
5928         (vt_add_function_parameter): Use cselib_lookup_from_insn.
5929         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5930         argument.  Don't call cselib_preserve_only_values and
5931         cselib_reset_table.
5932         (note_register_arguments): New function.
5933         (vt_initialize): Compute argument_reg_set.  Call
5934         vt_add_function_parameters before processing basic blocks instead of
5935         afterwards.  For calls call prepare_call_arguments before calling
5936         cselib_process_insn.
5937         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5938         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5939         (var-tracking.o): Depend on $(TM_P_H).
5940         * cfglayout.h (insn_scope): New prototype.
5941         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5942         * cfglayout.c (insn_scope): No longer static.
5943         * insn-notes.def (CALL_ARG_LOCATION): New.
5944         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5945         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5946         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5947         nothing for DECL_EXTERNAL BLOCK_VARS.
5948
5949 2011-03-16  Alan Modra  <amodra@gmail.com>
5950
5951         PR target/45844
5952         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5953         create invalid offset address for vsx splat insn.
5954         * config/rs6000/predicates.md (splat_input_operand): New.
5955         * config/rs6000/vsx.md (vsx_splat_*): Use it.
5956
5957 2011-03-15  Xinliang David Li  <davidxl@google.com>
5958
5959         PR c/47837
5960         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5961         (normalize_preds): New function.
5962         (is_use_properly_guarded): Normalize def predicates.
5963
5964 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5965
5966         PR target/46788
5967         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5968         in the output template.
5969
5970 2011-03-15  Richard Guenther  <rguenther@suse.de>
5971
5972         PR middle-end/47650
5973         * tree-pretty-print.c (dump_function_declaration): Properly
5974         dump unprototyped and varargs function types.
5975
5976 2011-03-15  Richard Guenther  <rguenther@suse.de>
5977
5978         PR tree-optimization/13954
5979         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5980         and friends.
5981
5982 2011-03-15  Richard Guenther  <rguenther@suse.de>
5983
5984         PR tree-optimization/48037
5985         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5986         selects into BIT_FIELD_REFs.
5987         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5988         vector select.
5989
5990 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
5991
5992         PR tree-optimization/48129
5993         * builtins.c (fold_builtin_snprintf): Convert to type of
5994         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5995         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5996
5997 2011-03-15  Richard Guenther  <rguenther@suse.de>
5998
5999         PR tree-optimization/41490
6000         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6001         value but with VUSE.
6002         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6003         return statements.
6004         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6005         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6006         * tree-tailcall.c (find_tail_calls): Ignore returns.
6007
6008 2011-03-15  Richard Guenther  <rguenther@suse.de>
6009
6010         PR middle-end/48031
6011         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6012         or variable-indexed array accesses when in gimple form.
6013
6014 2011-03-15  Richard Guenther  <rguenther@suse.de>
6015
6016         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6017
6018 2011-03-15  Alan Modra  <amodra@gmail.com>
6019
6020         PR target/48032
6021         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6022         presume symbol_refs without a symbol_ref_decl are suitably
6023         aligned, nor other trees we may see here.  Handle anchor symbols.
6024         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6025         Check cmodel=medium addresses.  Adjust all calls.
6026         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6027         creating cmodel=medium optimized access to locals.
6028         * config/rs6000/constraints.md (R): Pass QImode to
6029         legitimate_constant_pool_address_p.
6030         * config/rs6000/predicates.md (input_operand): Pass mode to
6031         legitimate_constant_pool_address_p.
6032         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6033         Update prototype.
6034
6035 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6036
6037         PR target/48053
6038         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6039         64-bit constants being loaded into registers other than GPRs such
6040         as loading 0 into a VSX register.
6041
6042 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6043
6044         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6045
6046 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6047
6048         PR middle-end/47917
6049         * builtins.c (fold_builtin_snprintf): New function.
6050         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6051         (fold_builtin_4): Likewise.
6052
6053         PR middle-end/38878
6054         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6055         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6056         and C - X == X also strip nops from +/-/p+ operand.
6057         When optimizing -X == C, fold C to arg0's type.
6058
6059         PR debug/47946
6060         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6061         emit it as add_AT_int instead of add_AT_unsigned.
6062
6063 2011-03-14  Tom Tromey  <tromey@redhat.com>
6064
6065         * unwind-dw2.c: Include sys/sdt.h if it exists.
6066         (_Unwind_DebugHook): Use STAP_PROBE2.
6067         * config.in, configure: Rebuild.
6068         * configure.ac: Check for sys/sdt.h.
6069
6070 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6071
6072         * config/i386/i386.md (ROUND_FLOOR): New constant.
6073         (ROUND_CEIL): Ditto.
6074         (ROUND_TRUNC): Ditto.
6075         (ROUND_MXCSR): Ditto.
6076         (ROUND_NO_EXC): Ditto.
6077         (rint<mode>2): Use new defines instead of numerical constants.
6078         (floor<mode>2): Ditto.
6079         (ceil<mode>2): Ditto.
6080         (btrunc<mode>2): Ditto.
6081         * config/i386/i386-builtin-types.def: Define ROUND function type
6082         aliases.
6083         * config/i386/i386.c (enum ix86_builtins): Add
6084         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6085         (struct builtin_description): Add
6086         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6087         (ix86_expand_sse_round): New static function.
6088         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6089         function types.
6090         (ix86_builtin_vectorized_function): Handle
6091         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6092
6093 2011-03-14  Tom Tromey  <tromey@redhat.com>
6094
6095         * c-parser.c (c_parser_asm_string_literal): Clear
6096         warn_overlength_strings.
6097
6098 2011-03-14  Tom Tromey  <tromey@redhat.com>
6099
6100         * c-parser.c (disable_extension_diagnostics): Save
6101         warn_overlength_strings.
6102         (restore_extension_diagnostics): Restore warn_overlength_strings.
6103
6104 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6105
6106         * BASE-VER: Change to 4.7.0.
6107
6108 2011-03-14  Richard Guenther  <rguenther@suse.de>
6109
6110         PR middle-end/48098
6111         * tree.c (build_vector_from_val): Adjust assert to requirements
6112         and reality.
6113
6114 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6115
6116         PR bootstrap/48102
6117         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6118
6119 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6120
6121         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
6122         terms of target_flags_explicit. Adjust copyright year.
6123
6124         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6125         * config/rs6000/t-freebsd: New file. Add override for
6126         LIB2FUNCS_EXTRA.
6127
6128 2011-03-13  Chris Demetriou  <cgd@google.com>
6129
6130         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6131         (-fno-diagnostics-show-option): this, to reflect current default.
6132         (-Werror=): Update text about -fno-diagnostics-show-option.
6133
6134 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6135
6136         PR target/48053
6137         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6138         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6139         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6140         mode is not V2DImode or V2DFmode.
6141         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6142         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6143         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6144         registers to 0.
6145         (movdi_internal64): Likewise.
6146
6147 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6148
6149         PR tree-optimization/47127
6150         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6151         parameter.
6152         (set_cloog_options): Same.
6153         (scop_to_clast): Same.
6154         (print_clast_stmt): Do not call cloog_state_malloc and
6155         cloog_state_free.
6156         (print_generated_program): Same.
6157         (gloog): Same.
6158         * graphite-clast-to-gimple.h (cloog_state): Declared.
6159         (scop_to_clast): Adjust declaration.
6160         * graphite.c (cloog_state): Defined here.
6161         (graphite_initialize): Call cloog_state_malloc.
6162         (graphite_finalize): Call cloog_state_free.
6163
6164 2011-03-11  Jason Merrill  <jason@redhat.com>
6165
6166         * attribs.c (lookup_attribute_spec): Take const_tree.
6167         * tree.h: Adjust.
6168
6169 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6170
6171         * config/sparc/sparc.c (sparc_option_override): Use
6172         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6173
6174 2011-03-11  Richard Guenther  <rguenther@suse.de>
6175
6176         PR tree-optimization/48067
6177         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6178         multiplication result will be only used once on the target
6179         stmt.
6180
6181 2011-03-11  Richard Guenther  <rguenther@suse.de>
6182
6183         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6184
6185 2011-03-11  Richard Guenther  <rguenther@suse.de>
6186
6187         PR lto/48073
6188         * tree.c (find_decls_types_r): Do not walk types only reachable
6189         from IDENTIFIER_NODEs.
6190
6191 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6192
6193         PR middle-end/48044
6194         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6195         all vnode->force_output nodes as needed.
6196
6197 2011-03-11  Jason Merrill  <jason@redhat.com>
6198
6199         PR c++/48069
6200         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6201         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6202
6203 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6204
6205         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6206         cgraph_node.
6207
6208 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6209
6210         PR tree-optimization/48063
6211         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6212         inline functions called once if !tree_can_inline_p (node->callers).
6213
6214 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6215
6216         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6217         extra_objs.
6218         * config/score/score3.c: Delete.
6219         * config/score/score3.h: Delete.
6220         * config/score/mul-div.S: Delete.
6221         * config/score/sfp-machine.h: Add new file.
6222         * config/score/constraints.md: Add new file.
6223         * config/score/t-score-softfp: Add new file.
6224         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6225         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6226         (score7_extra_constraint): Delete.
6227         (score7_option_override): Remove unused code.
6228         * config/score/score.c: Remove score3 and score5 define and code.
6229         * config/score/score.h: Remove score3 and score5 define and code.
6230         * config/score/score.md: Remove score3 template and unusual insn.
6231         * config/score/score.opt: Remove score3 and score5 options.
6232
6233 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6234
6235         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6236         when _HPUX_SOURCE is defined.
6237         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6238
6239 2011-03-10  Jason Merrill  <jason@redhat.com>
6240
6241         PR c++/48029
6242         * stor-layout.c (layout_type): Don't set structural equality
6243         on arrays of incomplete type.
6244         * tree.c (type_hash_eq): Handle comparing them properly.
6245
6246 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6247
6248         PR debug/48043
6249         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6250         result mode matches original rtl mode.
6251
6252 2011-03-10  Nick Clifton  <nickc@redhat.com>
6253
6254         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6255         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6256
6257 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6258
6259         PR rtl-optimization/47866
6260         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6261         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6262         if target wasn't scalar.
6263         * function.c (assign_stack_temp_for_type): Assert that neither
6264         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6265         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6266         macro.
6267         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6268
6269 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6270
6271         * config/s390/s390-protos.h (s390_label_align): New prototype.
6272         * config/s390/s390.c (s390_label_align): New function.
6273         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6274
6275 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6276
6277         PR target/47755
6278         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6279         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6280         (output_vec_const_move): Ditto.
6281
6282 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6283
6284         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6285         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6286         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6287         Change 'rclass' argument and result type to reg_class_t.
6288         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6289
6290 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6291
6292         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6293         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6294         (TARGET_MEMORY_MOVE_COST): Define.
6295         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6296
6297 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6298
6299         PR debug/47881
6300         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6301         removed anything.
6302
6303         PR tree-optimization/48022
6304         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6305         for EQ/NE_EXPR.
6306
6307 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6308
6309         PR debug/47991
6310         * var-tracking.c (find_use_val): Return NULL for
6311         cui->sets && cui->store_p BLKmode MEMs.
6312
6313 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6314
6315         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6316         Remove.
6317         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6318         xstormy16_print_operand_address): Remove.
6319         * config/stormy16/stormy16.c (xstormy16_print_operand,
6320         xstormy16_print_operand_address): Make static.
6321         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6322
6323 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6324
6325         PR target/47862
6326         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6327         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6328         before definition.
6329
6330 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6331
6332         PR bootstrap/48000
6333         * cfgloopmanip.c (fix_bb_placements): Return immediately
6334         if FROM is BASE_LOOP's header.
6335
6336 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6337
6338         * gimplify.c (gimplify_function_tree): Fix building calls
6339         to __builtin_return_address.
6340
6341 2011-03-07  Alan Modra  <amodra@gmail.com>
6342
6343         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6344         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6345         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6346         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6347         return_mode args.
6348         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6349         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6350         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6351         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6352         * config/rs6000/rs6000.c
6353         (rs6000_elf_end_indicate_exec_stack): Rename to..
6354         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6355         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6356         (rs6000_file_start): ..here.
6357         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6358         file scope variables.
6359         (call_ABI_of_interest): New function.
6360         (init_cumulative_args): Set above vars when function return value
6361         is a float, vector, or small struct.
6362         (rs6000_function_arg_advance_1): Likewise for function args.
6363         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6364         references float args.
6365
6366 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6367
6368         * doc/cfg.texi: Remove "See" before @ref.
6369         * doc/invoke.texi: Likewise.
6370
6371 2011-03-05  Jason Merrill  <jason@redhat.com>
6372
6373         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6374
6375 2011-03-05  Anthony Green  <green@moxielogic.com>
6376
6377         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6378
6379 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6380
6381         PR rtl-optimization/47899
6382         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6383         to flow_loop_nested_p when moving the loop upward.
6384
6385 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6386
6387         PR target/47719
6388         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6389
6390 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6391
6392         PR tree-optimization/47967
6393         * ipa-cp.c (build_const_val): Return NULL instead of creating
6394         VIEW_CONVERT_EXPR for mismatching sizes.
6395         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6396         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6397         give up on versioning.
6398
6399 2011-03-05  Alan Modra  <amodra@gmail.com>
6400
6401         PR target/47986
6402         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6403         full cmodel medium/large lo_sum + high addresses.
6404
6405 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6406
6407         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6408         pool references in UNSPEC_LTREL_OFFSET.
6409
6410 2011-03-04  Jan Hubicka  <jh@suse.cz>
6411
6412         PR lto/47497
6413         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6414         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6415         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6416         Add node pointers.
6417         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6418         cgraph_add_thunk): Add node pointers.
6419         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6420         associated to right node.
6421         (input_node): Update use of cgraph_same_body_alias
6422         and cgraph_add_thunk.
6423
6424 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6425
6426         * config/i386/i386.opt (mprefer-avx128): New flag.
6427         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6428         modes when the flag -mprefer-avx128 is on.
6429
6430 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6431
6432         * dwarf2out.c (compare_loc_operands): Fix address handling.
6433
6434 2011-03-04  Alan Modra  <amodra@gmail.com>
6435
6436         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6437
6438 2011-03-04  Richard Guenther  <rguenther@suse.de>
6439
6440         PR middle-end/47968
6441         * expmed.c (extract_bit_field_1): Prefer vector modes that
6442         vec_extract patterns can handle.
6443
6444 2011-03-04  Richard Guenther  <rguenther@suse.de>
6445
6446         PR middle-end/47975
6447         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6448
6449 2011-03-04  Richard Henderson  <rth@redhat.com>
6450
6451         * explow.c (emit_stack_save): Remove 'after' parameter.
6452         (emit_stack_restore): Likewise.
6453         * expr.h: Update to match.
6454         * builtins.c, calls.c, stmt.c: Likewise.
6455         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6456         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6457         * function.c (expand_function_end): Insert the emit_stack_save
6458         sequence before parm_birth_insn instead of after.
6459
6460 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6461
6462         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6463         (ssse3_pmaddubsw128): Ditto.
6464         (ssse3_pmaddubsw): Ditto.
6465
6466 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6467
6468         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6469
6470 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6471
6472         PR c/47963
6473         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6474         on TYPE_SIZE_UNIT if it is a DECL.
6475
6476         PR debug/47283
6477         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6478         first operand is not is_gimple_mem_ref_addr, try to fold it.
6479         If the operand still isn't is_gimple_mem_ref_addr, clear
6480         MEM_EXPR on op0.
6481
6482 2011-03-03  Richard Guenther  <rguenther@suse.de>
6483
6484         PR middle-end/47283
6485         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6486         match comment.
6487         (refs_may_alias_p_1): For release branches return true if
6488         we are confused by our input.
6489
6490 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6491
6492         * config/s390/s390.c (s390_function_value): Rename to ...
6493         (s390_function_and_libcall_value): ... this.
6494         (s390_function_value): New function.
6495         (s390_libcall_value): New function.
6496         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6497         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6498         target macro definitions.
6499         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6500
6501 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6502
6503         * config/i386/freebsd64.h (CC1_SPEC): Define.
6504         * config/i386/linux64.h (CC1_SPEC): Define.
6505         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6506
6507 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6508
6509         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6510         Remove.
6511         * config/stormy16/stormy16.c: Include reload.h.
6512         (xstormy16_memory_move_cost): New function.
6513         (TARGET_MEMORY_MOVE_COST): Define.
6514
6515 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6516
6517         PR rtl-optimization/47925
6518         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6519         with side effects.  Remove the more-specific check for volatile asms.
6520
6521 2011-03-02  Alan Modra  <amodra@gmail.com>
6522
6523         PR target/47935
6524         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6525         toc relative addresses for valid offsets.
6526
6527 2011-03-01  Richard Guenther  <rguenther@suse.de>
6528
6529         PR tree-optimization/47890
6530         * tree-vect-loop.c (get_initial_def_for_induction): Set
6531         related stmt properly.
6532
6533 2011-03-01  Richard Guenther  <rguenther@suse.de>
6534
6535         PR lto/47924
6536         * lto-streamer.c (lto_record_common_node): Also register
6537         the canonical type.
6538
6539 2011-03-01  Richard Guenther  <rguenther@suse.de>
6540
6541         PR lto/46911
6542         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6543         Do not stream DECL_ABSTRACT_ORIGIN.
6544         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6545         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6546         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6547         Do not stream DECL_ABSTRACT_ORIGIN.
6548         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6549         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6550
6551 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6552
6553         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6554         FUNCTION_VALUE_REGNO_P): Remove.
6555         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6556         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6557         Add 'outgoing' argument.
6558         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6559         function.
6560         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6561         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6562
6563 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6564
6565         PR debug/28047
6566         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6567         (lookup_filename): Likewise.
6568         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6569
6570 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6571             Jakub Jelinek  <jakub@redhat.com>
6572
6573         PR middle-end/47893
6574         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6575         (assign_stack_local_1): Change last argument type to int.
6576         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6577         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6578         don't record padding space into frame_space_list nor use those areas.
6579         (assign_stack_local): Adjust caller.
6580         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6581         of assign_stack_local, pass 0 as last argument.
6582         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6583         callers.
6584
6585 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6586
6587         PR debug/47283
6588         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6589         Use target address_mode and pointer_mode hooks instead of hardcoded
6590         Pmode and ptr_mode.  Handle some simple cases of extending if
6591         POINTERS_EXTEND_UNSIGNED < 0.
6592         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6593         Call convert_debug_memory_address.
6594         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6595         convert_debug_memory_address.
6596
6597         PR middle-end/46790
6598         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6599         * configure: Regenerated.
6600         * config.in: Regenerated.
6601         * varasm.c (default_function_section): Return NULL
6602         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6603
6604 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6605
6606         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6607         the description to match the printed values.
6608
6609 2011-02-28  Richard Guenther  <rguenther@suse.de>
6610
6611         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6612         of the copied scope tree.
6613
6614 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6615
6616         * doc/extend.texi (Function Attributes): Avoid deeply (and
6617         wrongly) nested tables.
6618
6619 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6620
6621         PR middle-end/47903
6622         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6623         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6624         r isn't op0 nor op1.
6625
6626 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6627
6628         * config/avr/avr.md: Remove magic comment for emacs.
6629
6630 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6631
6632         PR target/45261
6633         * config/avr/avr.c (avr_option_override): Use error on bad options.
6634         (avr_help): New function.
6635         (TARGET_HELP): Define.
6636
6637 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6638
6639         PR target/42240
6640         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6641         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6642
6643 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6644
6645         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6646         (ARM Options): Ditto.
6647         (i386 and x86-64 Options): Ditto.
6648         (RX Options): Ditto.
6649         (SPARC Options): Ditto.
6650
6651 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6652
6653         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6654         FreeBSD 6 and later.  Generally use cpu generic.
6655
6656 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6657
6658         * doc/cpp.texi: Update copyright years.
6659
6660 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6661
6662         PR target/46898
6663         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6664
6665 2011-02-25  Jon Beniston  <jon@beniston.com>
6666
6667         PR target/46898
6668         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6669         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6670         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6671         (lm32_block_move_inline): Add type cast to remove warning.
6672         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6673         (gen_int_relational): Move declarations to start of function.
6674
6675 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6676
6677         PR tree-optimization/45470
6678         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6679         can throw internally only.
6680         * tree-vect-stmts.c (vectorizable_call): Likewise.
6681
6682 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6683
6684         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6685         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6686         * config/stormy16/stormy16-protos.h
6687         (xstormy16_preferred_reload_class): Remove.
6688         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6689         static. Change 'rclass' argument and return type to reg_class_t.
6690         (TARGET_PREFERRED_RELOAD_CLASS,
6691         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6692
6693 2011-02-24  Richard Guenther  <rguenther@suse.de>
6694
6695         * lto-streamer-in.c (input_bb): Do not find referenced vars
6696         in debug statements.
6697
6698 2011-02-23  Jason Merrill  <jason@redhat.com>
6699
6700         * common.opt (fabi-version): Document v5 and v6.
6701
6702 2011-02-23  Richard Guenther  <rguenther@suse.de>
6703
6704         PR tree-optimization/47849
6705         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6706
6707 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6708
6709         * opts-common.c (decode_cmdline_option): Print empty string
6710         argument as "" in decoded->orig_option_with_args_text.
6711         * gcc.c (execute): Print empty string argument as ""
6712         in the verbose output.
6713         (do_spec_1): Keep empty string argument.
6714
6715 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6716
6717         * config.gcc: Declare score-* and crx-* obsolete.
6718
6719 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6720
6721         PR rtl-optimization/47763
6722         * web.c (web_main): Ignore naked clobber when replacing register.
6723
6724 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6725
6726         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6727         Remove.
6728
6729 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6730
6731         PR doc/47848
6732         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6733
6734 2011-02-22  Mike Stump  <mikestump@comcast.net>
6735
6736         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6737         assembler.
6738         * configure: Regenerate.
6739
6740 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6741
6742         PR rtl-optimization/46002
6743         * ira-color.c (update_copy_costs): Change class intersection
6744         test to reg_class_contents[] test of 'hard_regno'.
6745
6746 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6747
6748         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6749         than Driver option.
6750         * config/hpux11.opt (mt): Likewise.
6751         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6752         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6753         * config/vax/elf.opt (mno-asm-pic): Likewise.
6754         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6755
6756 2011-02-21  Mike Stump  <mikestump@comcast.net>
6757
6758         PR target/47822
6759         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6760         tree so we can get save the type.
6761         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6762         for CFString instead of trying to use past the end of the builtins.
6763         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6764         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6765         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6766         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6767         Rename to darwin_builtin_cfstring.
6768         (darwin_init_cfstring_builtins): Return the built type.
6769
6770 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6771
6772         PR target/47840
6773         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6774         (_mm256_insert_epi64): Use _mm_insert_epi64.
6775
6776 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6777
6778         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6779         * config/stormy16/stormy16-protos.h
6780         (xstormy16_mode_dependent_address_p): Remove.
6781         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6782         Make static. Change return type to bool. Change argument type to
6783         const_rtx. Remove dead code.
6784         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6785
6786 2011-02-21  Richard Guenther  <rguenther@suse.de>
6787
6788         PR lto/47820
6789         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6790         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6791         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6792         TUs context.
6793         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6794         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6795
6796 2011-02-20  Richard Guenther  <rguenther@suse.de>
6797
6798         PR lto/47822
6799         * tree.c (free_lang_data_in_decl): Clean builtins from
6800         the TU decl BLOCK_VARS.
6801
6802 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6803
6804         PR debug/47620
6805         PR debug/47630
6806         * haifa-sched.c (fix_tick_ready): Skip tick computation
6807         for debug insns.
6808
6809 2011-02-19  Richard Guenther  <rguenther@suse.de>
6810
6811         PR lto/47647
6812         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6813         Remove lazy BLOCK_VARS streaming.
6814         (lto_input_ts_block_tree_pointers): Likewise.
6815         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6816
6817 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6818
6819         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6820
6821 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6822
6823         * config/i386/biarch32.h, config/i386/mach.h,
6824         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6825
6826 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6827
6828         PR target/47800
6829         * config/i386/i386.md (peephole2 for shift and plus): Use
6830         operands[1] original mode in the first insn.
6831
6832 2011-02-18  Mike Stump  <mikestump@comcast.net>
6833
6834         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6835
6836 2011-02-18  Jan Hubicka  <jh@suse.cz>
6837
6838         PR middle-end/47788
6839         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6840         to zero when the function is not inlinable at all.
6841
6842 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6843
6844         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6845         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6846         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6847         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6848         * config/pa/t-pa64: Likewise.
6849         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6850
6851 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6852
6853         PR driver/47787
6854         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6855
6856 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6857
6858         PR target/47792
6859         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6860
6861 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6862
6863         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6864         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6865         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6866         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6867         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6868         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6869         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6870         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6871         m32r_legitimate_address_p): New functions.
6872         * config/m32r/constraints.md (constraint "S"): Don't use
6873         STORE_PREINC_PREDEC_P.
6874         (constraint "U"): Don't use LOAD_POSTINC_P.
6875
6876 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6877
6878         PR rtl-optimization/46178
6879         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6880         compute ira_hard_regno_cover_class[].
6881
6882 2011-02-18  Richard Guenther  <rguenther@suse.de>
6883
6884         PR lto/47798
6885         * lto-streamer.h (lto_global_var_decls): Declare.
6886         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6887         statics for global var processing.
6888
6889 2011-02-18  Richard Guenther  <rguenther@suse.de>
6890
6891         PR tree-optimization/47737
6892         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6893         edge dominance check.
6894
6895 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6896
6897         PR debug/47780
6898         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6899         avoid invalid rtx sharing.
6900
6901 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
6902
6903         * doc/cpp.texi (Obsolete Features): Add background on the
6904         origin of assertions.
6905
6906 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
6907
6908         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6909         objc_abi == 2.
6910         * config/darwin.c (output_objc_section_asm_op): Added support for
6911         ABI v1 and v2.
6912         (is_objc_metadata): New.
6913         (darwin_objc2_section): New.
6914         (darwin_objc1_section): New.
6915         (machopic_select_section): Added support for ABI v1 and v2.
6916         (darwin_emit_objc_zeroed): New.
6917         (darwin_output_aligned_bss): Detect objc metadata and treat it
6918         appropriately.
6919         (darwin_asm_output_aligned_decl_common): Same.
6920         (darwin_asm_output_aligned_decl_local): Same.
6921         * config/darwin-sections.def: Updated for ABI v1 and v2.
6922         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6923         compiling Objective-C code for the NeXT runtime, default to using
6924         ABI version 0 for 32-bit, and version 2 for 64-bit.
6925
6926 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6927
6928         * common.opt (optimize_fast): New Variable.
6929         * opts.c (default_options_optimization): Use opts->x_optimize_fast
6930         instead of local variable ofast.
6931
6932 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6933
6934         * doc/invoke.texi (fobjc-abi-version): Documented.
6935         (fobjc-nilcheck): Documented.
6936         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6937         version.
6938
6939 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6940
6941         PR driver/47390
6942         * common.opt (export-dynamic): New Driver option.
6943         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6944
6945 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6946
6947         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6948
6949 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
6950             Jan Hubicka  <jh@suse.cz>
6951
6952         PR debug/47106
6953         PR debug/47402
6954         * cfgexpand.c (account_used_vars_for_block): Remove.
6955         (estimated_stack_frame_size): Use referenced vars.
6956         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6957         that were referenced in the original function.  Test src_fn
6958         rather than cfun.  Drop redundant get_var_ann.
6959         (setup_one_parameter): Drop redundant get_var_ann.
6960         (declare_return_variable): Likewise.
6961         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6962         (copy_arguments_for_versioning): Drop redundant get_var_ann.
6963         * ipa-inline.c (compute_inline_parameters): Do not compute
6964         disregard_inline_limits here.
6965         (compute_inlinable_for_current, pass_inlinable): New.
6966         (pass_inline_parameters): Require PROP_referenced_vars.
6967         * cgraphunit.c (cgraph_process_new_functions): Don't run
6968         compute_inline_parameters explicitly unless function is in SSA form.
6969         (cgraph_analyze_function): Set .disregard_inline_limits.
6970         * tree-sra.c (convert_callers): Compute inliner parameters
6971         only for functions already in SSA form.
6972
6973 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6974
6975         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6976         -mlittle-endian-data.
6977
6978 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6981         -mno-fpu, not -fpu and -no-fpu.
6982         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6983         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6984
6985 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
6986
6987         PR target/43653
6988         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6989         input reload with PLUS RTX.
6990
6991 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6992
6993         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6994         of InverseVar(MDMX).
6995
6996 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6997
6998         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6999         --m4-340.
7000
7001 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7002
7003         * config/mn10300/mn10300.opt (mno-crt0): New.
7004
7005 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7006
7007         * config/m68k/uclinux.opt (static-libc): New Driver option.
7008
7009 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7010
7011         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7012
7013 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7014
7015         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7016         %{muser-extend-enabled}.
7017
7018 2011-02-16  Richard Guenther  <rguenther@suse.de>
7019
7020         PR tree-optimization/47738
7021         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7022         the TODO from tree_predictive_commoning.
7023
7024 2011-02-15  Jeff Law  <law@redhat.com>
7025
7026         Revert
7027         2011-01-25  Jeff Law  <law@redhat.com>
7028
7029         PR rtl-optimization/37273
7030         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7031         handle them like argument loads from stack slots.  Do not double
7032         count memory for memory constants and argument loads from stack slots.
7033
7034 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7035
7036         PR middle-end/47725
7037         * combine.c (cant_combine_insn_p): Revert the last change.
7038
7039 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7040
7041         PR target/47755
7042         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7043         mode for vector constants.  Remove code that checks for TImode.
7044
7045 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7046
7047         PR debug/47106
7048         PR debug/47402
7049         * cgraph.h (compute_inline_parameters): Return void.
7050         * ipa-inline.c (compute_inline_parameters): Adjust.
7051
7052 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7053
7054         PR debug/47106
7055         PR debug/47402
7056         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7057         rather than decl.
7058         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7059         * ipa-inline.c (compute_inline_parameters): Adjust.
7060
7061 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7062
7063         PR debug/47106
7064         PR debug/47402
7065         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7066         Adjust all users.  Pass FN to...
7067         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7068         fn argument.
7069         * ipa-struct-reorg.c: Adjust.
7070         * tree-dfa.c: Adjust.
7071         * tree-into-ssa.c: Adjust.
7072         * tree-sra.c: Adjust.
7073         * tree-ssa-alias.c: Adjust.
7074         * tree-ssa-live.c: Adjust.
7075         * tree-ssa.c: Adjust.
7076         * tree-ssanames.c: Adjust.
7077         * tree-tailcall.c: Adjust.
7078
7079 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7080
7081         PR debug/47106
7082         PR debug/47402
7083         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7084         Adjust all callers.
7085         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7086         * tree-flow-inline.h: Adjust.
7087         * gimple-pretty-print.c: Adjust.
7088         * tree-into-ssa.c: Adjust.
7089         * tree-ssa.c: Adjust.
7090         * cfgexpand.c: Adjust.
7091
7092 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7093
7094         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7095         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7096         (EXTRA_CONSTRAINT): Delete.
7097         * config/iq2000/constraints.md: New file.
7098         * config/iq2000/iq2000.md: Include it.
7099         (define_insn ""): Delete.
7100         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7101         unsupported constraint letters from patterns.
7102         (call_value, call_value_internal1): Likewise.
7103         (call_value_multiple_internal1): Likewise.
7104
7105 2011-02-15  Nick Clifton  <nickc@redhat.com>
7106
7107         * config/mn10300/mn10300.c: Include tm-constrs.h.
7108         (struct liw_data): New data structure describing an LIW candidate
7109         instruction.
7110         (extract_bundle): Use struct liw_data.  Allow small integer
7111         operands for some instructions.
7112         (check_liw_constraints): Use struct liw_data.  Remove swapped
7113         parameter.  Add comments describing the checks.  Fix bug when
7114         assigning the source of liw1 to the source of liw2.
7115         (liw_candidate): Delete.  Code moved into extract_bundle.
7116         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7117         before swapping.
7118         * config/mn10300/predicates.md (liw_operand): New predicate.
7119         Allows registers and small integer constants.
7120         * config/mn10300/constraints.md (O): New constraint.  Accetps
7121         integers in the range -8 to +7 inclusive.
7122         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7123         for moving a small integer into a register.  Give this alternative
7124         LIW attributes.
7125         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7126         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7127         using the J,K,L and M constraints,
7128         (liw): Remove SI mode on second operands to allow for HI and QI
7129         mode values.
7130         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7131         instruction.
7132
7133 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7134
7135         PR middle-end/47725
7136         * combine.c (cant_combine_insn_p): Check zero/sign extended
7137         hard registers.
7138
7139 2011-02-15  Richard Guenther  <rguenther@suse.de>
7140
7141         PR tree-optimization/47743
7142         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7143         for a non-type-compatible VN lookup bail out.
7144
7145 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7146
7147         * config/fr30/constraints.md: New file.
7148         * config/fr30/fr30.md: Include it.
7149         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7150         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7151         (EXTRA_CONSTRAINT): Delete.
7152
7153 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7154
7155         * config/frv/constraints.md: New file.
7156         * config/frv/predicates.md: Include it.
7157         * config/frv/frv.c (reg_class_from_letter): Delete.
7158         (frv_option_override): Don't initialize it.
7159         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7160         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7161         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7162         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7163         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7164         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7165         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7166         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7167         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7168         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7169         (REG_CLASS_FROM_CONSTRAINT): Delete.
7170
7171 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7172
7173         PR middle-end/47581
7174         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7175         if frame size is 0 in a leaf function.
7176
7177 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7178
7179         PR pch/14940
7180         * config/alpha/host-osf.c: New file.
7181         * config/alpha/x-osf: New file.
7182         * config.host (alpha*-dec-osf*): Use it.
7183
7184 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7185
7186         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7187         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7188         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7189         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7190         type to const_rtx.
7191         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7192
7193 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7194
7195         * config/stormy16/constraints.md: New file.
7196         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7197         Use satisfies_constraint_Q and satisfies_constraint_R.
7198         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7199         Delete.
7200         (xstormy16_legitiamte_address_p): Declare.
7201         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7202         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7203         (EXTRA_CONSTRAINT): Delete.
7204         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7205         Un-staticize.
7206         (xstormy16_extra_constraint_p): Delete.
7207
7208 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7209
7210         PR tree-optimization/46494
7211         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7212         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7213         (pass_rtl_loop_done): Add TODO_verify_flow.
7214         * fwprop.c (pass_rtl_fwprop): Likewise.
7215         * modulo-sched.c (pass_sms): Likewise.
7216         * tree-ssa-dom.c (pass_dominator): Likewise.
7217         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7218         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7219         (pass_tree_loop_done): Likewise.
7220         * tree-ssa-pre.c (execute_pre): Likewise.
7221         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7222         * tree-ssa-sink.c (pass_sink_code): Likewise.
7223         * tree-vrp.c (pass_vrp): Likewise.
7224
7225 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7226
7227         * config/v850/constraints.md: New file.
7228         * config/v850/v850.md: Include it.
7229         * config/v850/predicates.md (reg_or_0_operand): Use
7230         satisfies_constraint_G.
7231         (special_symbolref_operand): Use satisfies_constraint_K.
7232         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7233         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7234         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7235         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7236         (EXTRA_CONSTRAINT): Delete.
7237         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7238         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7239         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7240
7241 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7242
7243         PR target/47696
7244         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7245         description.
7246
7247 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7248
7249         * config/mcore/constraints.md: New file.
7250         * config/mcore/mcore.md: Include it.
7251         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7252         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7253         (REG_CLASS_FROM_LETTER): Delete.
7254         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7255         insn_const_int_ok_for_constraint.
7256         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7257         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7258         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7259         (EXTRA_CONSTRAINT): Delete.
7260
7261 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7262
7263         PR ada/41929
7264         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7265         (IS_SIGHANDLER): Define.
7266         (sparc64_is_sighandler): New function, split off from
7267         sparc64_fallback_frame_state.
7268         (sparc_is_sighandler): New function, split off from
7269         sparc_fallback_frame_state.
7270         (sparc64_fallback_frame_state): Merge with ...
7271         (sparc_fallback_frame_state): ... this into ...
7272         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7273         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7274         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7275         stack instead of hardcoded offsets.
7276
7277 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7278
7279         PR target/45808
7280         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7281
7282 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7283
7284         * configure: Regenerate.
7285
7286 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7287
7288         PR driver/45731
7289         * gcc.c (asm_options): Correct spec matching --target-help.
7290
7291 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7292
7293         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7294         to gimple call error.
7295
7296 2011-02-12  Mike Stump  <mikestump@comcast.net>
7297
7298         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7299         comments in backslash regions.
7300
7301 2011-02-12  Mike Stump  <mikestump@comcast.net>
7302             Jakub Jelinek  <jakub@redhat.com>
7303             Iain Sandoe  <iains@gcc.gnu.org>
7304
7305         PR target/47324
7306         * dwarf2out.c (output_cfa_loc): When required, apply the
7307         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7308         (output_loc_sequence): Likewise.
7309         (output_loc_operands_raw): Likewise.
7310         (output_loc_sequence_raw): Likewise.
7311         (output_cfa_loc): Likewise.
7312         (output_loc_list): Suppress register number adjustment when
7313         calling output_loc_sequence()
7314         (output_die): Likewise.
7315
7316 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7317
7318         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7319         Remove macros.
7320         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7321         xtensa_memory_move_cost): New functions.
7322         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7323
7324 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7325
7326         PR lto/47225
7327         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7328         in the current directory.
7329         * configure: Rebuilt.
7330
7331 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7332
7333         * config/darwin.c (darwin_override_options): Add a hunk missed
7334         from the commit of r168571.  Trim comment line lengths and
7335         correct indents of the preceding block.
7336
7337 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7338
7339         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7340         the switch.
7341
7342 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7343
7344         * common.opt (nostartfiles): New Driver option.
7345
7346 2011-02-11  Xinliang David Li  <davidxl@google.com>
7347
7348         PR tree-optimization/47707
7349         * tree-chrec.c (convert_affine_scev): Keep type precision.
7350
7351 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7352
7353         PR tree-optimization/47420
7354         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7355
7356 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7357
7358         PR rtl-optimization/47614
7359         * rtl.h (check_for_inc_dec): Declare.
7360         * dse.c (check_for_inc_dec): Externalize...
7361         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7362         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7363
7364 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7365
7366         PR driver/47678
7367         * gcc.c (main): Do not compile inputs if there were errors in
7368         option handling.
7369         * opts-common.c (read_cmdline_option): Check for wrong language
7370         after other error checks.
7371
7372 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7373
7374         * cgraph.c: Fix comment typos.
7375         * cgraph.h: Likewise.
7376         * cgraphunit.c: Likewise.
7377         * ipa-cp.c: Likewise.
7378         * ipa-inline.c: Likewise.
7379         * ipa-prop.c: Likewise.
7380         * ipa-pure-const.c: Likewise.
7381         * ipa-ref.c: Likewise.
7382         * ipa-reference.c: Likewise.
7383
7384 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7385
7386         PR debug/47684
7387         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7388
7389 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7390
7391         PR testsuite/47400
7392         * doc/sourcebuild.texi (Require Support): Document
7393         dg-require-ascii-locale.
7394
7395 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7396
7397         * doc/lto.texi (Write summary): Fix missing parentheses.
7398
7399 2011-02-10  DJ Delorie  <dj@redhat.com>
7400
7401         * config/m32c/m32c.c (m32c_option_override): Disable
7402         -fcombine-stack-adjustments until flag value tracking and compare
7403         optimization can be rewritten.
7404
7405 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7406
7407         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7408         PROCESSOR_POWER7.
7409         (PROCESSOR_DEFAULT64): Likewise.
7410
7411 2011-02-10  Richard Henderson  <rth@redhat.com>
7412
7413         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7414         change from 2011-02-03.
7415         * config/rx/rx.c (flags_from_code): Likewise.
7416         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7417         is valid, n/pz otherwise.
7418         (rx_select_cc_mode): Return CCmode if Y is not zero.
7419
7420 2011-02-10  Richard Guenther  <rguenther@suse.de>
7421
7422         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7423
7424 2011-02-10  Richard Guenther  <rguenther@suse.de>
7425
7426         PR tree-optimization/47677
7427         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7428
7429 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7430
7431         PR target/47665
7432         * combine.c (make_compound_operation): Only change shifts into
7433         multiplication for SCALAR_INT_MODE_P.
7434
7435 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7436
7437         PR testsuite/47622
7438         Revert
7439         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7440         PR debug/42631
7441         * web.c (entry_register): Don't clobber the number of the
7442         first uninitialized reference in used[].
7443
7444 2011-02-09  Richard Guenther  <rguenther@suse.de>
7445
7446         PR tree-optimization/47664
7447         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7448         all edges again.
7449
7450 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7451
7452         PR target/46481
7453         PR target/47032
7454         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7455         PROCESSOR_POWER7.
7456         (PROCESSOR_DEFAULT64): Same.
7457         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7458
7459 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7460
7461         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7462
7463 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7464
7465         PR middle-end/45505
7466         * tree-sra.c (struct access): New flags grp_scalar_read and
7467         grp_scalar_write.  Changed description of assignment read and write
7468         flags.
7469         (dump_access): Dump new flags, reorder all of them.
7470         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7471         to detect multiple scalar reads.
7472         (analyze_access_subtree): Use the new scalar read write flags instead
7473         of the old flags.  Adjusted comments.
7474
7475 2011-02-08  DJ Delorie  <dj@redhat.com>
7476
7477         PR target/47548
7478         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7479         patterns.
7480
7481 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7482
7483         * config/m68k/uclinux.opt: New.
7484         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7485
7486 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7487
7488         * config/cris/elf.opt (sim): New Driver option.
7489
7490 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7491
7492         * config/xtensa/elf.opt: New.
7493         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7494
7495 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7496
7497         * config/vax/elf.opt: New.
7498         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7499
7500 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7501
7502         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7503
7504 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7505
7506         * config/gnu-user.opt: New.
7507         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7508         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7509         *-*-uclinux*): Use gnu-user.opt.
7510
7511 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7512
7513         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7514         * config/i386/gnu.h (CPP_SPEC): Likewise.
7515
7516 2011-02-08  Ian Lance Taylor  <iant@google.com>
7517
7518         * common.opt (fcx-limited-range): Add SetByCombined flag.
7519         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7520         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7521         (fassociative-math, freciprocal-math): Likewise.
7522         (funsafe-math-optimizations): Likewise.
7523         * opth-gen.awk: Handle SetByCombined.
7524         * optc-gen.awk: Likewise.
7525         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7526         (set_unsafe_math_optimizations_flags): Likewise.
7527         * doc/options.texi (Option properties): Document SetByCombined.
7528
7529 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7530
7531         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7532         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7533         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7534         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7535         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7536
7537 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7538
7539         PR tree-optimization/46834
7540         PR tree-optimization/46994
7541         PR tree-optimization/46995
7542         * graphite-sese-to-poly.c (used_outside_reduction): New.
7543         (detect_commutative_reduction): Call used_outside_reduction.
7544         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7545         translate_scalar_reduction_to_array only when at least one
7546         loop-phi/close-phi tuple has been detected.
7547
7548 2011-02-08  Richard Guenther  <rguenther@suse.de>
7549
7550         PR middle-end/47639
7551         * tree-vect-generic.c (expand_vector_operations_1): Update
7552         stmts here ...
7553         (expand_vector_operations): ... not here.  Cleanup EH info
7554         and the CFG if required.
7555
7556 2011-02-08  Richard Guenther  <rguenther@suse.de>
7557
7558         PR tree-optimization/47641
7559         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7560         require type compatibility.
7561
7562 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7563
7564         * gimple-low.c (lower_function_body): Don't remove the location of
7565         the return statement here.
7566         (lower_gimple_return): Do it here instead but only if the return
7567         statement is actually used twice.
7568
7569 2011-02-08  Richard Guenther  <rguenther@suse.de>
7570
7571         PR tree-optimization/47632
7572         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7573         unused up_to_stmt parameter, return whether cfg-cleanup is
7574         necessary, remove EH info properly.
7575         (forward_propagate_into_gimple_cond): Adjust caller.
7576         (forward_propagate_into_cond): Likewise.
7577         (forward_propagate_comparison): Likewise.
7578         (tree_ssa_forward_propagate_single_use_vars): Make
7579         forward_propagate_comparison case similar to the two others.
7580
7581 2011-02-08  Nick Clifton  <nickc@redhat.com>
7582
7583         * config/mn10300/mn10300.opt (mliw): New command line option.
7584         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7585         (liw_bundling): New automaton.
7586         (liw): New attribute.
7587         (liw_op): New attribute.
7588         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7589         (movsi_internal): Add LIW attributes.
7590         (andsi3): Likewise.
7591         (iorsi3): Likewise.
7592         (xorsi3): Likewise.
7593         (addsi3): Separate register and immediate alternatives.
7594         Add LIW attributes.
7595         (subsi3): Likewise.
7596         (cmpsi): Likewise.
7597         (aslsi3): Likewise.
7598         (lshrsi3): Likewise.
7599         (ashrsi3): Likewise.
7600         (liw): New pattern.
7601         * config/mn10300/mn10300.c (liw_op_names): New
7602         (mn10300_print_operand): Handle 'W' operand descriptor.
7603         (extract_bundle): New function.
7604         (check_liw_constraints): New function.
7605         (liw_candidate): New function.
7606         (mn10300_bundle_liw): New function.
7607         (mn10300_reorg): New function.
7608         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7609         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7610         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7611         __LIW__ or __NO_LIW__.
7612         * doc/invoke.texi: Describe the -mliw command line option.
7613
7614 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7615
7616         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7617         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7618         pthread_mutex_unlock): Remove.
7619         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7620         * config/pa/t-pa64: Likewise.
7621         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7622         shared libc if not linking against libpthread.
7623         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7624
7625 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7626
7627         PR target/47558
7628         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7629         on 10.6 and later to ensure that we always use the unwinder from
7630         the system.  Only add -no_compact_unwind when tarteting darwin
7631         10.6 or later.
7632
7633 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7634
7635         PR target/46997
7636         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7637         (vec_interleave_lowv2sf): Ditto.
7638         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7639         (vec_extract_oddv2sf): Ditto.
7640
7641 2011-02-07  Mike Stump  <mikestump@comcast.net>
7642
7643         PR target/42333
7644         Add __ieee_divdc3 entry point.
7645         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7646         entry point.
7647         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7648         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7649         * config/darwin.c (darwin_rename_builtins): Add.
7650         * config/darwin-protos.h (darwin_rename_builtins): Add.
7651
7652 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7653
7654         PR target/47636
7655         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7656         for the condition.
7657
7658 2011-02-07  Mike Stump  <mikestump@comcast.net>
7659
7660         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7661
7662 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7663
7664         PR target/47534
7665         * config/avr/libgcc.S (exit): Move .endfunc
7666
7667 2011-02-07  Richard Guenther  <rguenther@suse.de>
7668
7669         PR tree-optimization/47615
7670         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7671         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7672         (run_scc_vn): Initialize it.
7673         (visit_reference_op_load): Use it.
7674         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7675
7676 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7677
7678         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7679         DImode trapping arithmetic libfuncs.
7680
7681 2011-02-07  Richard Guenther  <rguenther@suse.de>
7682
7683         PR tree-optimization/47621
7684         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7685         two duplicates ...
7686         (execute_update_addresses_taken): ... here.  Make it more
7687         conservative in what we accept.
7688
7689 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7690
7691         * config/sparc/freebsd.h (ASM_SPEC): Define.
7692         * config/sparc/vxworks.h (ASM_SPEC): Define.
7693
7694 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7695
7696         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7697
7698 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7699
7700         * doc/invoke.texi: Remove reference to compiler internals from
7701         user documentation.
7702
7703         * reg-notes.def: Remove REG_VALUE_PROFILE.
7704         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7705
7706 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7707
7708         PR middle-end/47610
7709         * varasm.c (default_section_type_flags): If decl is NULL,
7710         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7711
7712 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7713
7714         PR debug/42631
7715         * web.c (entry_register): Don't clobber the number of the
7716         first uninitialized reference in used[].
7717
7718 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7719
7720         PR tree-optimization/46194
7721         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7722         (build_classic_dist_vector_1): Do not represent classic distance
7723         vectors when the access functions are variating in different loops.
7724
7725 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7726
7727         * config/mips/iris6.opt: New.
7728         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7729
7730 2011-02-04  Richard Henderson  <rth@redhat.com>
7731             Steve Ellcey  <sje@cup.hp.com>
7732
7733         PR target/46997
7734         * config/ia64/predicates.md (mux1_brcst_element): New.
7735         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7736         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7737         (ia64_unpack_sign): New.
7738         (ia64_expand_unpack): Rewrite using new routines.
7739         (ia64_expand_widen_sum): Ditto.
7740         (ia64_expand_dot_prod_v8qi): Ditto.
7741         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7742         routines, add endian check.
7743         (pmpy2_even): Rename from pmpy2_r, add endian check.
7744         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7745         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7746         (vec_widen_smult_hi_v4hi): Ditto.
7747         (vec_widen_umult_lo_v4hi): Ditto.
7748         (vec_widen_umult_hi_v4hi): Ditto.
7749         (mulv2si3): Change endian checks.
7750         (sdot_prodv4hi): Rewrite with new calls.
7751         (udot_prodv4hi): New.
7752         (vec_pack_ssat_v4hi): Add endian check.
7753         (vec_pack_usat_v4hi): Ditto.
7754         (vec_pack_ssat_v2si): Ditto.
7755         (max1_even): Rename from max1_r, add endian check.
7756         (max1_odd): Rename from max1_l, add endian check.
7757         (*mux1_rev): Format change.
7758         (*mux1_mix): Ditto.
7759         (*mux1_shuf): Ditto.
7760         (*mux1_alt): Ditto.
7761         (*mux1_brcst_v8qi): Use new predicate.
7762         (vec_extract_evenv8qi): Remove endian check.
7763         (vec_extract_oddv8qi): Ditto.
7764         (vec_interleave_lowv4hi): Format change.
7765         (vec_interleave_highv4hi): Ditto.
7766         (mix2_even): Rename from mix2_r, add endian check.
7767         (mix2_odd): Rename from mux2_l, add endian check.
7768         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7769         (vec_extract_evenodd_helper): Format change.
7770         (vec_extract_evenv4hi): Remove endian check.
7771         (vec_extract_oddv4hi): Remove endian check.
7772         (vec_interleave_lowv2si): Format change.
7773         (vec_interleave_highv2si): Format change.
7774         (vec_initv2si): Remove endian check.
7775         (vecinit_v2si): Add endian check.
7776         (reduc_splus_v2sf): Add endian check.
7777         (reduc_smax_v2sf): Ditto.
7778         (reduc_smin_v2sf): Ditto.
7779         (vec_initv2sf): Remove endian check.
7780         (fpack): Add endian check.
7781         (fswap): Add endian check.
7782         (vec_interleave_highv2sf): Add endian check.
7783         (vec_interleave_lowv2sf): Add endian check.
7784         (fmix_lr): Add endian check.
7785         (vec_setv2sf): Format change.
7786         (*vec_extractv2sf_0_be): Use shift to extract operand.
7787         (*vec_extractv2sf_1_be): New.
7788         (vec_pack_trunc_v4hi): Add endian check.
7789         (vec_pack_trunc_v2si): Format change.
7790
7791 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7792
7793         PR inline-asm/23200
7794         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7795         do bb, locus and block comparison and disallow loads if it is not set.
7796         (stmt_is_replaceable_p): New function.
7797         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7798         callers.
7799         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7800         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7801         SSA_NAME_DEF_STMT.
7802         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7803
7804 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7805
7806         * config/rs6000/xilinx.opt: New.
7807         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7808
7809 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7812
7813 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7814
7815         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7816         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7817         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7818         secondary_reload_info, xtensa_secondary_reload): Remove.
7819         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7820         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7821         (xtensa_preferred_reload_class): Make static. Change return and
7822         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7823         Use CONST_DOUBLE_P predicate.
7824         (xtensa_preferred_output_reload_class): New function.
7825         (xtensa_secondary_reload): Make static.
7826
7827 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7830         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7831         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7832
7833 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7834
7835         PR middle-end/31490
7836         * output.h (SECTION_RELRO): Define.
7837         (SECTION_MACH_DEP): Adjust.
7838         (get_variable_section): New prototype.
7839         * varpool.c (varpool_finalize_named_section_flags): New function.
7840         (varpool_assemble_pending_decls): Call it.
7841         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7842         * cgraphunit.c (cgraph_output_in_order): Call
7843         varpool_finalize_named_section_flags.
7844         * varasm.c (get_section): Allow section flags conflicts between
7845         relro and read-only sections if the section hasn't been declared yet.
7846         Set SECTION_OVERRIDE after diagnosing section type conflict.
7847         (get_variable_section): No longer static.
7848         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7849         readonly sections that need relocations.
7850         (decl_readonly_section_1): New function.
7851         (decl_readonly_section): Use it.
7852
7853         Revert:
7854         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7855                     Steve Ellcey  <sje@cup.hp.com>
7856
7857         PR middle-end/31490
7858         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7859         if section attribute used.
7860
7861 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7862
7863         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7864         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7865         (darwin_init_sections): Remove assertion.
7866
7867 2011-02-03  Nick Clifton  <nickc@redhat.com>
7868
7869         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7870         lt and ge.
7871         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7872         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7873         instead of "n" and "pz".
7874         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7875         CC_FLAG_S.
7876
7877 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7878
7879         PR target/47312
7880         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7881         fma, expand FMA_EXPR as fma{,f,l} call.
7882
7883         PR lto/47274
7884         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7885         copy them into a unsigned char variable and pass address of it to
7886         lto_output_data_stream.
7887
7888         PR target/47564
7889         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7890         around backend_init_target and lang_dependent_init_target calls.
7891         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7892         (verify_cgraph_node): Don't call set_cfun here.  Use
7893         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7894         Set error_found for incorrectly represented calls to thunks.
7895
7896 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7897
7898         PR debug/43092
7899         PR rtl-optimization/43494
7900         * rtl.h (for_each_inc_dec_fn): New type.
7901         (for_each_inc_dec): Declare.
7902         * rtlanal.c (struct for_each_inc_dec_ops): New type.
7903         (for_each_inc_dec_find_inc_dec): New fn.
7904         (for_each_inc_dec_find_mem): New fn.
7905         (for_each_inc_dec): New fn.
7906         * dse.c (struct insn_size): Remove.
7907         (replace_inc_dec, replace_inc_dec_mem): Remove.
7908         (emit_inc_dec_insn_before): New fn.
7909         (check_for_inc_dec): Use it, along with for_each_inc_dec.
7910         (canon_address): Pass mem modes to cselib_lookup.
7911         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
7912         (cselib_lookup_from_insn): Likewise.
7913         (cselib_subst_to_values): Likewise.
7914         * cselib.c (find_slot_memmode): New var.
7915         (cselib_find_slot): New fn.  Use it instead of
7916         htab_find_slot_with_hash everywhere.
7917         (entry_and_rtx_equal_p): Use find_slot_memmode.
7918         (autoinc_split): New fn.
7919         (rtx_equal_for_cselib_p): Rename and implement in terms of...
7920         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
7921         Deal with autoinc.  Special-case recursion into MEMs.
7922         (cselib_hash_rtx): Likewise.
7923         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
7924         address and MEM modes.
7925         (cselib_subst_to_values): Add memmode, pass it on.
7926         Deal with autoinc.
7927         (cselib_lookup): Add memmode argument, pass it on.
7928         (cselib_lookup_from_insn): Add memmode.
7929         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7930         (struct cselib_record_autoinc_data): New.
7931         (cselib_record_autoinc_cb): New fn.
7932         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
7933         mode to cselib_lookup.  Reset autoinced REGs here instead of...
7934         (cselib_process_insn): ... here.
7935         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7936         to cselib_lookup.
7937         (add_uses): Likewise, also to cselib_subst_to_values.
7938         (add_stores): Likewise.
7939         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
7940         cselib_subst_to_values.
7941         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
7942         * gcse.c (do_local_cprop): Adjusted.
7943         * postreload.c (reload_cse_simplify_set): Adjusted.
7944         (reload_cse_simplify_operands): Adjusted.
7945         * sel-sched-dump (debug_mem_addr_value): Pass mode.
7946
7947 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7948
7949         PR tree-optimization/45122
7950         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7951         unsafe assumptions when there's more than one loop exit.
7952
7953 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7954
7955         PR target/47272
7956         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7957         Document using vector double with the load/store builtins, and
7958         that the load/store builtins always use Altivec instructions.
7959
7960         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7961         to use altivec memory instructions, even on VSX.
7962         (vector_altivec_store_<mode>): Ditto.
7963
7964         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7965         function.
7966
7967         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7968         V2DF, V2DI support to load/store overloaded builtins.
7969
7970         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7971         altivec load/store builtins for V2DF/V2DI types.
7972
7973         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7974         set avoid indexed addresses on power6 if -maltivec.
7975         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7976         vector_altivec_load/vector_altivec_store builtins.
7977         (altivec_expand_st_builtin): Ditto.
7978         (altivec_expand_builtin): Add VSX memory builtins.
7979         (rs6000_init_builtins): Add V2DI types to internal types.
7980         (altivec_init_builtins): Add support for V2DF/V2DI altivec
7981         load/store builtins.
7982         (rs6000_address_for_altivec): Insure memory address is appropriate
7983         for Altivec.
7984
7985         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7986         vec_vsx_ld and vec_vsx_st.
7987         (vsx_store_<mode>): Ditto.
7988
7989         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7990         variables to hold long long types for VSX vector memory builtins.
7991         (RS6000_BTI_unsigned_long_long): Ditto.
7992         (long_long_integer_type_internal_node): Ditti.
7993         (long_long_unsigned_type_internal_node): Ditti.
7994
7995         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7996         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7997         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7998
7999         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8000         short cuts.
8001         (vec_vsx_st): Ditto.
8002
8003 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8004
8005         * config/pa/pa-hpux10.opt: New.
8006         * config/hpux11.opt (pthread): New Driver option.
8007         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8008         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8009
8010 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8011
8012         * config/ia64/vms.opt: New.
8013         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8014
8015 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8016
8017         PR target/47580
8018         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8019         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8020         generator functions.
8021         (vsx_floatuns<VSi><mode>2): Ditto.
8022         (vsx_fix_trunc<mode><VSi>2): Ditto.
8023         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8024
8025 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8026
8027         * config/i386/djgpp.opt (posix): New Driver option.
8028
8029 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8030
8031         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8032         Move to the unsupported targets list.
8033
8034 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8035
8036         PR rtl-optimization/47525
8037         * df-scan.c: Update copyright years.
8038         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8039         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8040
8041 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8042
8043         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8044         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8045         (ASM_OUTPUT_ASCII): Remove.
8046         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8047
8048 2011-02-02  Jeff Law  <law@redhat.com>
8049
8050         PR middle-end/47543
8051         * reload.c (find_reloads_address): Handle reg+d address where both
8052         components are invalid by reloading the entire address.
8053
8054 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8055             Richard Guenther  <rguenther@suse.de>
8056
8057         PR tree-optimization/40979
8058         PR bootstrap/47044
8059         * passes.c (init_optimization_passes): After LIM call copy_prop
8060         and DCE to clean up.
8061         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8062
8063 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8064
8065         PR tree-optimization/47576
8066         PR tree-optimization/47555
8067         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8068         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8069         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8070         * tree-scalar-evolution.c (follow_ssa_edge): Use
8071         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8072
8073 2011-02-02  Richard Guenther  <rguenther@suse.de>
8074
8075         PR tree-optimization/47566
8076         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8077
8078 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8079
8080         PR debug/47106
8081         PR debug/47402
8082         * tree-inline.c (declare_return_variable): Remove unused caller
8083         variable.
8084
8085         PR debug/47106
8086         PR debug/47402
8087         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8088         * cfgexpand.c (account_used_vars_for_block): Use them.
8089         * tree-nrv.c (tree_nrv): Likewise.
8090         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8091         (dump_scope_block): Likewise.
8092         (remove_unused_locals): Likewise.
8093
8094         PR debug/47106
8095         PR debug/47402
8096         * tree-inline.c (declare_return_variable): Add result decl to
8097         local decls only once.
8098         * gimple-low.c (record_vars_into): Mark newly-created variables
8099         as referenced.
8100
8101 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8102
8103         PR debug/47498
8104         PR debug/47501
8105         PR debug/45136
8106         PR debug/45130
8107         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8108         debug insns.
8109         (no_real_insns_p, schedule_block, set_priorities): Drop special
8110         treatment of boundary debug insns.
8111         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8112         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8113         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8114         (BOUNDARY_DEBUG_INSN_P): Likewise.
8115         (SCHEDULE_DEBUG_INSN_P): Likewise.
8116         * sched-rgn.c (init_ready_list): Drop special treatment of
8117         boundary debug insns.
8118         * final.c (rest_of_clean_state): Clear notes' BB.
8119
8120 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * config/openbsd.opt (assert=): New Driver option.
8123
8124 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8125
8126         * config/i386/nto.opt: New.
8127         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8128
8129 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8130
8131         * config/i386/netware.opt: New.
8132         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8133
8134 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8135
8136         * config/interix.opt (posix): New Driver option.
8137
8138 2011-02-01  DJ Delorie  <dj@redhat.com>
8139
8140         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8141
8142         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8143         class for A0/A1.
8144
8145 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8146
8147         PR tree-optimization/47561
8148         * toplev.c (process_options): Print the Graphite flags.  Add
8149         flag_loop_flatten to the list of options requiring Graphite.
8150
8151 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8152
8153         * config/i386/cygming.opt (posix): New Driver option.
8154
8155 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8156
8157         * config/arm/vxworks.opt: New.
8158         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8159
8160 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8161
8162         * config/alpha/elf.opt: New.
8163         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8164         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8165
8166 2011-02-01  Richard Guenther  <rguenther@suse.de>
8167
8168         PR tree-optimization/47559
8169         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8170         store-motion on references that can throw.
8171
8172 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8173
8174         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8175         * tree-pass.h (TDF_CSELIB): New macro.
8176         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8177         cselib_lookup): Check for it rather than for TDF_DETAILS.
8178
8179 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8180
8181         PR driver/47547
8182         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8183         is HOST_BIT_BUCKET.
8184
8185         * opts.c (finish_options): Don't add x_aux_base_name if it is
8186         HOST_BIT_BUCKET.
8187
8188 2011-02-01  Richard Guenther  <rguenther@suse.de>
8189
8190         PR tree-optimization/47555
8191         Revert
8192         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8193
8194         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8195
8196 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8197
8198         PR gcc/46692
8199         * config/lm32/t-lm32: Add multilib for all CPU options.
8200
8201 2011-02-01  Richard Guenther  <rguenther@suse.de>
8202
8203         PR tree-optimization/47541
8204         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8205         sure to have a field at offset zero.
8206
8207 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8208
8209         * config/arc/arc.opt (EB, EL): New Driver options.
8210
8211 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8212
8213         * config/alpha/osf5.opt: New.
8214         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8215
8216 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8217
8218         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8219
8220 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8221
8222         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8223         -floop-interchange.
8224         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8225         is an alias of -floop-interchange and that it requires the
8226         Graphite infrastructure.
8227         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8228         flag_loop_interchange based on the value of flag_tree_loop_linear.
8229
8230 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8231             Richard Guenther  <rguenther@suse.de>
8232
8233         PR tree-optimization/47538
8234         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8235         type instead of r1type, except for comparisons.  For right
8236         shifts and comparisons punt if there are mismatches in
8237         sizetype vs. non-sizetype types.
8238
8239 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8240
8241         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8242         avx_runtime.
8243
8244 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8245
8246         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8247         version number.
8248         * configure: Regenerate.
8249
8250 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8251
8252         * configure.ac (gcc_cv_ld_static_option): Define.
8253         (gcc_cv_ld_dynamic_option): Define.
8254         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8255         instead.
8256         (HAVE_LD_STATIC_DYNAMIC): Update message.
8257         (LD_STATIC_OPTION): Define.
8258         (LD_DYNAMIC_OPTION): Define.
8259         * configure: Regenerate.
8260         * config.in: Regenerate.
8261         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8262         HAVE_LD_STATIC_DYNAMIC]: Use them.
8263
8264 2011-01-31  Nick Clifton  <nickc@redhat.com>
8265
8266         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8267         registers inside interrupt handlers if the handler is not a leaf
8268         function.
8269
8270 2011-01-31  Nick Clifton  <nickc@redhat.com>
8271
8272         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8273         reg_renumber returning an INVALID_REGNUM.
8274
8275 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8276
8277         PR libgcj/44341
8278         * doc/install.texi: Document host options discarded when cross
8279         configuring target libraries.
8280
8281 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8282
8283         Reverted:
8284         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8285         PR debug/45136
8286         PR debug/45130
8287         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8288         debug insns.
8289         (no_real_insns_p, schedule_block, set_priorities): Drop special
8290         treatment of boundary debug insns.
8291         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8292         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8293         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8294         (BOUNDARY_DEBUG_INSN_P): Likewise.
8295         (SCHEDULE_DEBUG_INSN_P): Likewise.
8296         * sched-rgn.c (init_ready_list): Drop special treatment of
8297         boundary debug insns.
8298         * final.c (rest_of_clean-state): Clear notes' BB.
8299
8300 2011-01-31  Alan Modra  <amodra@gmail.com>
8301
8302         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8303         toc relative expressions as we do in print_operand_address.
8304
8305 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8306
8307         * doc/extend.texi: Follow spelling conventions.
8308         * doc/invoke.texi: Fix a typo.
8309
8310 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8311
8312         * config/hpux11.opt: New.
8313         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8314         ia64*-*-hpux*): Use hpux11.opt.
8315
8316 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8317
8318         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8319         to tmake_file.
8320
8321 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8322
8323         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8324         support sites.
8325
8326 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8327
8328         * doc/install.texi (Binaries): Remove outdated reference for
8329         Motorola 68HC11/68HC12 downloads.
8330
8331 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8332
8333         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8334         Drepper's paper.
8335
8336 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8337
8338         PR bootstrap/47147
8339         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8340         used by NetBSD.
8341
8342 2011-01-28  Ahmad Sharif  <asharif@google.com>
8343
8344         * value-prof.c (check_counter): Corrected error message.
8345
8346 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8347
8348         * config/arm/arm.c (arm_legitimize_reload_address): New.
8349         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8350         arm_legitimize_reload_address.
8351         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8352
8353 2011-01-28  Ian Lance Taylor  <iant@google.com>
8354
8355         * godump.c (go_define): Ignore macros whose definitions include
8356         two adjacent operands.
8357
8358 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8359
8360         PR target/42894
8361         * varasm.c (force_const_mem): Store copy of x in desc->constant
8362         instead of x itself.
8363         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8364         itself into REG_EQUAL note.
8365
8366 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8367
8368         * config/freebsd.opt (posix, rdynamic): New Driver options.
8369
8370 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8371
8372         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8373         -Bstatic/-Bdynamic.
8374         * configure: Regenerate.
8375
8376 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8377
8378         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8379         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8380
8381 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8382
8383         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8384         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8385         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8386         (s390_preferred_reload_class): Make static. Change return and
8387         'rclass' argument type to reg_class_t.
8388
8389 2011-01-27  Jan Hubicka  <jh@suse.cz>
8390
8391         PR middle-end/46949
8392         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8393         (process_function_and_variable_attributes): Check defined weakrefs.
8394
8395 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8396
8397         PR tree-optimization/47228
8398         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8399         build_ref_for_offset.
8400
8401 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8402
8403         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8404
8405 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8406
8407         PR rtl-optimization/46856
8408         * postreload.c (reload_combine_recognize_const_pattern): Do not
8409         separate cc0 setter and user on cc0 targets.
8410
8411 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8412
8413         PR c/43082
8414         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8415         passed a VOID_TYPE expression, immediately emit an error and
8416         return error_mark_node.
8417
8418 2011-01-26  Jeff Law  <law@redhat.com>
8419
8420         PR rtl-optimization/47464
8421         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8422         rather than may_trap_p as needed.
8423
8424 2011-01-26  DJ Delorie  <dj@redhat.com>
8425
8426         PR rtl-optimization/46878
8427         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8428         setter/user dependency as well.
8429
8430 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8431
8432         PR rtl-optimization/44469
8433         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8434         after removing trivially dead basic blocks.
8435
8436 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8437
8438         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8439         * config/frv/frv.h (LINK_SPEC): Likewise.
8440         * config/i386/netware.h (LINK_SPEC): Likewise.
8441         * config/m68k/linux.h (ASM_SPEC): Likewise.
8442         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8443         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8444         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8445         * config/sparc/linux.h (ASM_SPEC): Likewise.
8446         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8447         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8448
8449 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8450
8451         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8452         * config/frv/frv.h (ASM_SPEC): Likewise.
8453         * config/m68k/linux.h (ASM_SPEC): Likewise.
8454         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8455         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8456         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8457         * config/sparc/linux.h (ASM_SPEC): Likewise.
8458         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8459         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8460
8461 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8462
8463         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8464         * config/frv/frv.h (LINK_SPEC): Likewise.
8465         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8466
8467 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8468
8469         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8470         * config/frv/frv.h (ASM_SPEC): Likewise.
8471         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8472         * config/m68k/linux.h (ASM_SPEC): Likewise.
8473         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8474         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8475         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8476         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8477         * config/sparc/linux.h (ASM_SPEC): Likewise.
8478         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8479         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8480         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8481
8482 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8483
8484         PR target/46997
8485         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8486         (*mux2): Ditto.
8487         (vec_extract_evenodd_help): Ditto.
8488         (vec_extract_evenv4hi): Ditto.
8489         (vec_extract_oddv4hi): Ditto.
8490         (vec_interleave_lowv2si): Ditto.
8491         (vec_interleave_highv2si): Ditto.
8492         (vec_extract_evenv2si): Ditto.
8493         (vec_extract_oddv2si: Ditto.
8494         (vec_pack_trunc_v2si): Ditto.
8495
8496 2011-01-22  Jan Hubicka  <jh@suse.cz>
8497
8498         PR target/47237
8499         * cgraph.h (cgraph_local_info): New field can_change_signature.
8500         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8501         signature can change.
8502         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8503         can change.
8504         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8505         (cgraph_function_versioning): We can not change signature of functions
8506         that don't allow that.
8507         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8508         (lto_input_node): Likewise.
8509         * ipa-inline.c (compute_inline_parameters): Compute
8510         local.can_change_signature.
8511         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8512         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8513         functions that can not change signature.
8514         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8515         init_cumulative_args): Do not use local calling conventions
8516         for functions that can not change signature.
8517
8518 2011-01-22  Jan Hubicka  <jh@suse.cz>
8519
8520         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8521
8522 2011-01-26  Richard Guenther  <rguenther@suse.de>
8523
8524         PR tree-optimization/47190
8525         * cgraphunit.c (process_common_attributes): New function.
8526         (process_function_and_variable_attributes): Use it.
8527
8528 2011-01-26  Richard Guenther  <rguenther@suse.de>
8529
8530         PR lto/47423
8531         * cgraphbuild.c (record_eh_tables): Record reference to personality
8532         function.
8533
8534 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8535
8536         PR debug/45454
8537         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8538         non-debug insns from moving up.
8539
8540 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8541
8542         PR target/40125
8543         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8544         t-dlldir{,-x} fragment for build and add it to tmake_file.
8545         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8546         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8547         * config/i386/t-dlldir: New file.
8548         (SHLIB_DLLDIR): Define.
8549         * config/i386/t-dlldir-x: New file.
8550         (SHLIB_DLLDIR): Define.
8551         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8552         (SHLIB_INSTALL): Use it.
8553
8554 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8555
8556         PR target/47246
8557         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8558         lower bound of the allowed Thumb-2 coprocessor load/store
8559         index range to -256. Add explaining comment.
8560
8561 2011-01-25  Ian Lance Taylor  <iant@google.com>
8562
8563         * godump.c (go_define): Improve lexing of macro expansion to only
8564         accept expressions which match Go spec.
8565
8566 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8567
8568         PR c++/43601
8569         * tree.c (handle_dll_attribute): Handle it.
8570         * doc/extend.texi (@item dllexport): Mention it.
8571         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8572
8573 2011-01-25  Ian Lance Taylor  <iant@google.com>
8574
8575         PR tree-optimization/26854
8576         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8577         (decl_jump_unsafe): Move higher in file, with no other change.
8578         (bind): Set has_jump_unsafe_decl if appropriate.
8579         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8580         (check_earlier_gotos): Likewise.
8581         (c_check_switch_jump_warnings): Likewise.
8582
8583 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8584
8585         * doc/invoke.texi (Warning Options): Add missing hyphen.
8586         (-fprofile-dir): Minor grammatical fixes.
8587         (-fbranch-probabilities): Likewise.
8588
8589 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8590
8591         PR debug/45136
8592         PR debug/45130
8593         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8594         debug insns.
8595         (no_real_insns_p, schedule_block, set_priorities): Drop special
8596         treatment of boundary debug insns.
8597         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8598         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8599         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8600         (BOUNDARY_DEBUG_INSN_P): Likewise.
8601         (SCHEDULE_DEBUG_INSN_P): Likewise.
8602         * sched-rgn.c (init_ready_list): Drop special treatment of
8603         boundary debug insns.
8604         * final.c (rest_of_clean-state): Clear notes' BB.
8605
8606 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8607
8608         * Makefile.in (LAMBDA_H): Removed.
8609         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8610         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8611         lambda-trans.o, and tree-loop-linear.o.
8612         (lto-symtab.o): Remove dependence on LAMBDA_H.
8613         (tree-loop-linear.o): Remove rule.
8614         (lambda-mat.o): Same.
8615         (lambda-trans.o): Same.
8616         (lambda-code.o): Same.
8617         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8618         (tree-vect-slp.o): Same.
8619         * hwint.h (gcd): Moved here.
8620         (least_common_multiple): Same.
8621         * lambda-code.c: Removed.
8622         * lambda-mat.c: Removed.
8623         * lambda-trans.c: Removed.
8624         * lambda.h: Removed.
8625         * tree-loop-linear.c: Removed.
8626         * lto-symtab.c: Do not include lambda.h.
8627         * omega.c (gcd): Removed.
8628         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8629         * tree-data-ref.c (print_lambda_vector): Moved here.
8630         (lambda_vector_copy): Same.
8631         (lambda_matrix_copy): Same.
8632         (lambda_matrix_id): Same.
8633         (lambda_vector_first_nz): Same.
8634         (lambda_matrix_row_add): Same.
8635         (lambda_matrix_row_exchange): Same.
8636         (lambda_vector_mult_const): Same.
8637         (lambda_vector_negate): Same.
8638         (lambda_matrix_row_negate): Same.
8639         (lambda_vector_equal): Same.
8640         (lambda_matrix_right_hermite): Same.
8641         * tree-data-ref.h: Do not include lambda.h.
8642         (lambda_vector): Moved here.
8643         (lambda_matrix): Same.
8644         (dependence_level): Same.
8645         (lambda_transform_legal_p): Removed declaration.
8646         (lambda_collect_parameters): Same.
8647         (lambda_compute_access_matrices): Same.
8648         (lambda_vector_gcd): Same.
8649         (lambda_vector_new): Same.
8650         (lambda_vector_clear): Same.
8651         (lambda_vector_lexico_pos): Same.
8652         (lambda_vector_zerop): Same.
8653         (lambda_matrix_new): Same.
8654         * tree-flow.h (least_common_multiple): Removed declaration.
8655         * tree-parloops.c (lambda_trans_matrix): Moved here.
8656         (LTM_MATRIX): Same.
8657         (LTM_ROWSIZE): Same.
8658         (LTM_COLSIZE): Same.
8659         (LTM_DENOMINATOR): Same.
8660         (lambda_trans_matrix_new): Same.
8661         (lambda_matrix_vector_mult): Same.
8662         (lambda_transform_legal_p): Same.
8663         * tree-pass.h (pass_linear_transform): Removed declaration.
8664         * tree-ssa-loop.c (tree_linear_transform): Removed.
8665         (gate_tree_linear_transform): Removed.
8666         (pass_linear_transform): Removed.
8667         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8668         flag_loop_interchange.
8669
8670 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8671
8672         PR tree-optimization/47265
8673         PR tree-optimization/47443
8674         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8675         if name still has some uses.
8676
8677 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8678
8679         PR tree-optimization/47382
8680         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8681         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8682
8683 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8684
8685         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8686         sjlj_except_unwind_info.
8687
8688 2011-01-25  Richard Guenther  <rguenther@suse.de>
8689
8690         PR tree-optimization/47426
8691         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8692         visible functions results escape.
8693
8694 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8695
8696         PR target/45701
8697         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8698         (arm_get_frame_offsets): Use it.
8699
8700 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8701             Jakub Jelinek  <jakub@redhat.com>
8702
8703         PR tree-optimization/47271
8704         * tree-if-conv.c (bb_postdominates_preds): New.
8705         (if_convertible_bb_p): Call bb_postdominates_preds.
8706         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8707         (predicate_scalar_phi): Call bb_postdominates_preds.
8708
8709 2011-01-25  Nick Clifton  <nickc@redhat.com>
8710
8711         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8712         * config/rx/rx.c (rx_function_value): Likewise.
8713         (rx_promote_function_mode): Likewise.
8714         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8715         in order to make it legitimate.
8716         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8717         make sure that the first operand is the same as the result register.
8718         (addsi3_unspec): Delete.
8719         (subdi3): Do not accept immediate operands.
8720         (subdi3_internal): Likewise.
8721
8722 2011-01-25  Jeff Law  <law@redhat.com>
8723
8724         PR rtl-optimization/37273
8725         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8726         handle them like argument loads from stack slots.  Do not double
8727         count memory for memory constants and argument loads from stack slots.
8728
8729 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8730
8731         PR tree-optimization/47427
8732         PR tree-optimization/47428
8733         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8734         coalesce if the new root var would be TREE_READONLY.
8735
8736 2011-01-25  Richard Guenther  <rguenther@suse.de>
8737
8738         PR middle-end/47414
8739         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8740         correct type for TBAA.
8741
8742 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8743
8744         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8745         (close_phi_written_to_memory): Call for_each_index with
8746         dr_indices_valid_in_loop.
8747
8748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8749
8750         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8751         when it is initialized.
8752
8753 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8754
8755         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8756         call to graphite_find_data_references_in_stmt.
8757         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8758         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8759         call to graphite_find_data_references_in_stmt.
8760         (analyze_drs_in_stmts): Same.
8761         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8762         in which the scalar analysis of indices is performed.
8763         (create_data_ref): Same.  Update call to dr_analyze_indices.
8764         (find_data_references_in_stmt): Update call to create_data_ref.
8765         (graphite_find_data_references_in_stmt): Same.
8766         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8767         declaration.
8768         (create_data_ref): Same.
8769         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8770         call to create_data_ref.
8771
8772 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8773
8774         * graphite-sese-to-poly.c (build_poly_scop): Move
8775         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8776
8777 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8778
8779         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8780         VAR_DECL, PARM_DECL, and RESULT_DECL.
8781
8782 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8783
8784         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8785         in a reduction PBB.
8786         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8787         that have already been marked as PBB_IS_REDUCTION.
8788
8789 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8790
8791         * graphite-scop-detection.c (same_close_phi_node): New.
8792         (remove_duplicate_close_phi): New.
8793         (make_close_phi_nodes_unique): New.
8794         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8795
8796 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8797
8798         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8799         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8800         of both data references to be the same.
8801
8802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8803
8804         * graphite-dependences.c (build_lexicographical_constraint): Remove
8805         the gdim parameter.
8806         (build_lexicographical_constraint): Adjust call to
8807         ppl_powerset_is_empty.
8808         (dependence_polyhedron): Same.
8809         (graphite_legal_transform_dr): Same.
8810         (graphite_carried_dependence_level_k): Same.
8811         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8812         parameter.
8813         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8814
8815 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8816
8817         * graphite-sese-to-poly.c
8818         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8819         (close_phi_written_to_memory): New.
8820         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8821         and unshare_expr.
8822
8823 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8824
8825         * doc/install.texi: Update the expected version number of PPL to 0.11.
8826         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8827         #if PPL_VERSION_MINOR < 11.
8828
8829 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8830
8831         * graphite-dependences.c: Include graphite-cloog-util.h.
8832         (new_poly_ddr): Inlined into dependence_polyhedron.
8833         (free_poly_ddr): Moved close by new_poly_ddr.
8834         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8835         Early return NULL when ppl_powerset_is_empty returns true.
8836         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8837         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8838         (graphite_legal_transform_dr): Call new_poly_ddr.
8839         (graphite_carried_dependence_level_k): Same.
8840         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8841         (dot_transformed_deps_stmt_1): Removed.
8842         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8843         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8844         (dot_deps_1): Call dot_deps_2.
8845         * Makefile.in (graphite-dependences.o): Add missing dependence on
8846         graphite-cloog-util.h.
8847
8848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8849
8850         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8851         (build_lexicographical_constraint): Same.
8852         (dependence_polyhedron_1): Same.
8853         (graphite_legal_transform_dr): Same.
8854         (graphite_carried_dependence_level_k): Same.
8855         * graphite-ppl.c (ppl_powerset_is_empty): New.
8856         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8857         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8858
8859 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8860
8861         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8862         the "a followed by b" relation and document it.
8863
8864 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8865
8866         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8867         iteration when the bag of constraints is empty.
8868
8869 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8870
8871         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8872
8873 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8874
8875         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8876         nest and two loop depths as parameters.
8877         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8878         lst_perfect_nestify.
8879
8880 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8881
8882         * graphite-dependences.c (print_pddr): Call
8883         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8884
8885 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8886
8887         * graphite-ppl.c (debug_gmp_value): New.
8888         * graphite-ppl.h (debug_gmp_value): Declared.
8889
8890 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8891
8892         * doc/install.texi: Document availability of cloog-0.16.
8893
8894 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
8895
8896         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8897         invalid postdominance info.
8898
8899 2011-01-24  Jan Hubicka  <jh@suse.cz>
8900
8901         PR c/21659
8902         * doc/extend.texi (weak pragma): Drop claim that it must
8903         appear before definition.
8904         * varasm.c (merge_weak, declare_weak): Only sanity check
8905         that DECL is not output at a time it is declared weak.
8906
8907 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
8908
8909         * machmode.def: Fixed comments.
8910
8911 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
8912
8913         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8914
8915 2011-01-24  Paul Koning  <ni1d@arrl.net>
8916
8917         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8918         WORDS_BIG_ENDIAN.
8919
8920 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8921
8922         PR target/46519
8923         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8924         (block_info): Add scanned and prev.
8925         (move_or_delete_vzeroupper_2): Return if the basic block
8926         has been scanned and the upper 128bit state is unchanged
8927         from the last scan.
8928         (move_or_delete_vzeroupper_1): Return true if the exit
8929         state is changed.
8930         (move_or_delete_vzeroupper): Visit basic blocks using the
8931         work-list based algorithm based on vt_find_locations in
8932         var-tracking.c.
8933
8934         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8935
8936 2011-01-24  Nick Clifton  <nickc@redhat.com>
8937
8938         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8939         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8940         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
8941         then define __v850e1__.
8942         * doc/invoke.texi: Document -mv850es.
8943
8944 2011-01-24  Richard Henderson  <rth@redhat.com>
8945
8946         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8947         compound unordered comparisons.
8948         * config/rx/rx.c (rx_split_fp_compare): Remove.
8949         * config/rx/rx-protos.h: Update.
8950         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8951         (cbranchsf4): Don't call rx_split_fp_compare.
8952         (*cbranchsf4): Use rx_split_cbranch.
8953         (*cmpsf): Don't accept "i" constraint.
8954         (*conditional_branch): Only valid after reload.
8955         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
8956
8957 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8958
8959         PR target/47385
8960         * config/rs6000/altivec.md (vector constant splitters): Add
8961         support for creating vector single precision constants if -mvsx is
8962         used and we would create the constant using Altivec primitives.
8963
8964 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
8965             Richard Sandiford  <rdsandiford@googlemail.com>
8966
8967         PR rtl-optimization/47166
8968         * reload1.c (emit_reload_insns): Disable the spill_reg_store
8969         mechanism for PRE_MODIFY and POST_MODIFY.
8970         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8971         reloadreg.
8972
8973 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
8974
8975         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8976
8977 2011-01-22  Jan Hubicka  <jh@suse.cz>
8978
8979         PR lto/47333
8980         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8981
8982 2011-01-22  Jan Hubicka  <jh@suse.cz>
8983
8984         PR tree-optimization/43884
8985         PR lto/44334
8986         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8987         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8988
8989 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
8990
8991         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8992         * config/s390/s390.c (s390_register_move_cost,
8993         s390_memory_move_cost): New.
8994         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8995
8996 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8997
8998         PR middle-end/47401
8999         * except.c (sjlj_assign_call_site_values): Move setting the
9000         crtl->uses_eh_lsda flag to ...
9001         (sjlj_mark_call_sites): ... here.
9002         (sjlj_emit_function_enter): Support NULL dispatch label.
9003         (sjlj_build_landing_pads): In a function with no landing pads
9004         that still has must-not-throw regions, generate code to register
9005         a personality function with empty LSDA.
9006
9007 2011-01-21  Richard Henderson  <rth@redhat.com>
9008
9009         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9010
9011         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9012
9013         * compare-elim.c: New file.
9014         * Makefile.in (OBJS-common): Add it.
9015         (compare-elim.o): New.
9016         * common.opt (fcompare-elim): New.
9017         * opts.c (default_options_table): Add OPT_fcompare_elim.
9018         * tree-pass.h (pass_compare_elim_after_reload): New.
9019         * passes.c (init_optimization_passes): Add it.
9020         * recog.h: Protect against re-inclusion.
9021         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9022         * doc/invoke.texi (-fcompare-elim): Document it.
9023         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9024         * doc/tm.texi: Rebuild.
9025
9026 2011-01-22  Nick Clifton  <nickc@redhat.com>
9027
9028         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9029         rx_split_fp_compare.
9030
9031 2011-01-22  Nick Clifton  <nickc@redhat.com>
9032
9033         * config/rx/rx.md (UNSPEC_CONST): New.
9034         (deallocate_and_return): Wrap the amount popped off the stack in
9035         an UNSPEC_CONST in order to stop it being rejected by
9036         -mmax-constant-size.
9037         (pop_and_return): Add a "(return)" rtx.
9038         (call): Drop the immediate operand.
9039         (call_internal): Likewise.
9040         (call_value): Likewise.
9041         (call_value_internal): Likewise.
9042         (sibcall_internal): Likewise.
9043         (sibcall_value_internal): Likewise.
9044         (sibcall): Likewise.  Generate an explicit call using
9045         sibcall_internal.
9046         (sibcall_value): Likewise.
9047         (mov<>): FAIL if a constant operand is not legitimate.
9048         (addsi3_unpsec): New pattern.
9049
9050         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9051         (ok_for_max_constant): New function.
9052         (gen_safe_add): New function.
9053         (rx_expand_prologue): Use gen_safe_add.
9054         (rx_expand_epilogue): Likewise.
9055         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9056         UNSPEC CONSTs.
9057
9058 2011-01-21  Jeff Law  <law@redhat.com>
9059
9060         PR tree-optimization/47053
9061         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9062         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9063         statements are deleted.
9064         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9065         is nonempty, then purge dead edges and cleanup the CFG.
9066
9067 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9068
9069         PR debug/47402
9070         Temporarily revert:
9071         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9072         PR debug/47106
9073         * tree-dfa.c (create_var_ann): Mark variable as used.
9074
9075 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9076
9077         PR middle-end/45566
9078         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9079         notes from other section in hot/cold partitioning even if
9080         last_action is -3.  Increment call_site_base.
9081
9082         PR rtl-optimization/47366
9083         * fwprop.c (forward_propagate_into): Return bool.  If
9084         any changes are made, -fnon-call-exceptions is used and
9085         REG_EH_REGION note is present, call purge_dead_edges
9086         and return true if it purged anything.
9087         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9088         any EH edges were purged.
9089
9090 2011-01-21  Jeff Law  <law@redhat.com>
9091
9092         PR rtl-optimization/41619
9093         * caller-save.c (setup_save_areas): Break out code to determine
9094         which hard regs are live across calls by examining the reload chains
9095         so that it is always used.
9096         Eliminate code which checked REG_N_CALLS_CROSSED.
9097
9098 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9099
9100         PR tree-optimization/47355
9101         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9102         NOP has non-debug uses beyond PHIs in new_bb.
9103
9104 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9105
9106         PR debug/47106
9107         * cfgexpand.c (account_used_vars_for_block): Only account vars
9108         that are annotated as used.
9109         (estimated_stack_frame_size): Don't set TREE_USED.
9110         * tree-dfa.c (create_var_ann): Mark variable as used.
9111
9112 2011-01-21  Richard Guenther  <rguenther@suse.de>
9113
9114         PR middle-end/47395
9115         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9116
9117 2011-01-21  Richard Guenther  <rguenther@suse.de>
9118
9119         PR tree-optimization/47365
9120         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9121         (vn_reference_lookup_pieces): Adjust.
9122         (vn_reference_lookup): Likewise.
9123         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9124         (vn_reference_lookup_3): Only look through kills if in
9125         VN_WALKREWRITE mode.
9126         (vn_reference_lookup_pieces): Adjust.
9127         (vn_reference_lookup): Likewise.
9128         (visit_reference_op_load): Likewise.
9129         (visit_reference_op_store): Likewise.
9130         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9131         (compute_avail): Likewise.
9132         (eliminate): Likewise.
9133
9134 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9135
9136         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9137         DECL_IGNORED_P non-reg vars if they are used.
9138
9139         PR tree-optimization/47391
9140         * varpool.c (const_value_known_p): Return false if
9141         decl is volatile.
9142
9143 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9144
9145         PR bootstrap/47215
9146         * config/i386/i386.c (ix86_local_alignment): Handle
9147         case for va_list_type_node is nil.
9148         (ix86_canonical_va_list_type): Likewise.
9149
9150 2011-01-21  Alan Modra  <amodra@gmail.com>
9151
9152         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9153         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9154
9155 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9156
9157         * config/arm/arm.md (define_attr type): Rename f_load
9158         and f_store to f_fpa_load and f_fpa_store. Update.
9159         (write_conflict): Deal with rename fallout.
9160         (*push_fp_multi): Likewise.
9161         * config/arm/fpa.md (f_load): Use f_fpa_load.
9162         (f_store): Use f_fpa_store.
9163         (*movsf_fpa): Likewise.
9164         (*movdf_fpa): Likewise.
9165         (*movxf_fpa): Likewise.
9166         (*thumb2_movsf_fpa): Likewise.
9167         (*thumb2_movdf_fpa): Likewise.
9168         (*thumb2_movxf_fpa): Likewise.
9169         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9170         f_loadd and f_stored.
9171         (*thumb2_movdi_vfp): Likewise.
9172         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9173         (*thumb2_movsi_vfp): Likewise.
9174         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9175         Use f_loads instead of f_load.
9176         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9177
9178 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9179
9180         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9181         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9182         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9183         (xtensa_mode_dependent_address_p): New function.
9184         (constantpool_address_p): Make static. Change return type to bool.
9185         Change argument type to const_rtx. Use CONST_INT_P predicate.
9186
9187 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9188
9189         PR debug/46583
9190         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9191
9192 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9193
9194         PR debug/47283
9195         * cfgexpand.c (expand_debug_expr): Instead of generating
9196         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9197         etc. handling.
9198
9199 2011-01-20  Richard Guenther  <rguenther@suse.de>
9200
9201         PR middle-end/47370
9202         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9203         the pointer operand of MEM_REFs.
9204
9205 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9206
9207         PR tree-optimization/46130
9208         * ipa-split.c (consider_split): If return_bb contains non-virtual
9209         PHIs other than for retval or if split_function would not adjust it,
9210         refuse to split.
9211
9212 2011-01-20  Richard Guenther  <rguenther@suse.de>
9213
9214         PR tree-optimization/47167
9215         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9216         Revert previous change, only avoid enumeral type changes.
9217
9218 2011-01-19  Mike Stump  <mikestump@comcast.net>
9219
9220         * doc/tm.texi.in (BRANCH_COST): Englishify.
9221         * doc/tm.texi (BRANCH_COST): Likewise.
9222
9223 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9224
9225         PR c++/47291
9226         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9227         (gen_scheduled_generic_parms_dies): New functions.
9228         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9229         generation for the end of CU compilation.
9230         (dwarf2out_finish): Generate template parameters DIEs here.
9231
9232 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9233
9234         PR debug/46240
9235         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9236         debug bind stmt on merge edges.
9237
9238 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9239
9240         PR debug/47079
9241         PR debug/46724
9242         * function.c (instantiate_expr): Instantiate incoming rtl of
9243         implicit arguments, and recurse on VALUE_EXPRs.
9244         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9245         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9246
9247 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9248
9249         * c-parser.c (c_parser_for_statement): Initialize
9250         collection_expression.
9251
9252 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9253
9254         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9255
9256 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9257
9258         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9259         (LINK_SHLIB_SPEC): Don't use %(link_path).
9260         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9261
9262 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9263
9264         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9265         (NO_SHARED_LIB_SUPPORT): Remove.
9266         (LINK_SHLIB_SPEC): Remove one conditional definition.
9267
9268 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9271         %{call_shared}.
9272         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9273         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9274         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9275         %{call_shared} and conditionals on these options not being passed.
9276         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9277         %{call_shared}.
9278
9279 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9280
9281         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9282         simplify.
9283
9284         * ipa-split.c: Spelling fixes.
9285
9286 2011-01-19  Richard Henderson  <rth@redhat.com>
9287
9288         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9289         (*mulsi3): Likewise.
9290
9291         * longlong.h [__mn10300__] (count_leading_zeros): New.
9292         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9293         [__mn10300__] (add_ssaaaa, subddmmss): New.
9294         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9295         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9296
9297 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9298
9299         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9300
9301 2011-01-19  Richard Henderson  <rth@redhat.com>
9302
9303         * config/mn10300/mn10300.md (addsi3_flags): New.
9304         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9305         (subsi3_flags, subc_internal, subdi3): New.
9306         (subdi3_internal, *subdi3_degenerate): New.
9307         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9308
9309         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9310         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9311         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9312         * config/mn10300/mn10300-protos.h: Update.
9313         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9314         (return_ret): Likewise.  Rename from return_internal_regs.
9315         (return_internal): Remove.
9316
9317         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9318         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9319         (mn10300_legitimate_constant_p): Likewise.
9320         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9321         (mn10300_frame_size): New.
9322         (mn10300_expand_prologue): Use it.
9323         (mn10300_expand_epilogue): Likewise.
9324         (mn10300_initial_offset): Likewise.
9325         * config/mn10300/mn10300-protos.h: Update.
9326         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9327         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9328         (prologue, epilogue, return_internal): Tidy output code.
9329         (mn10300_store_multiple_operation, return): Likewise.
9330         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9331         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9332         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9333         (load_pic, am33_load_pic): New.
9334         (mn10300_load_pic0, mn10300_load_pic1): New.
9335
9336         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9337         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9338         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9339         (cc_flags_for_mode, cc_flags_for_code): New.
9340         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9341         overflow flag is not valid.  Validate that the flags we need
9342         for the comparison are valid.
9343         (mn10300_output_cmp): Remove.
9344         (mn10300_output_add): New.
9345         (mn10300_select_cc_mode): Use cc_flags_for_code.
9346         (mn10300_split_cbranch): New.
9347         (mn10300_match_ccmode): New.
9348         (mn10300_split_and_operand_count): New.
9349         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9350         to the function.
9351         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9352         (addsi3): ... here.  Use mn10300_output_add.
9353         (*addsi3_flags): New.
9354         (*am33_subsi3, *mn10300_subsi3): Merge...
9355         (subsi3): ... here.  Use attribute isa.
9356         (*subsi3_flags): New.
9357         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9358         when possible.
9359         (*am33_andsi3, *mn10300_andsi3): Merge...
9360         (andsi3): ... here.
9361         (*andsi3_flags): New.
9362         (andsi3 splitters): New.
9363         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9364         (iorsi3): ... here.
9365         (*iorsi3_flags): New.
9366         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9367         (xorsi3): ... here.
9368         (*xorsi3_flags): New.
9369         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9370         (one_cmplsi2): ... here.
9371         (*one_cmplsi2_flags): New.
9372         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9373         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9374         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9375         use matching constraints to eliminate a self-comparison.
9376         (*integer_conditional_branch): Rename from integer_conditional_branch.
9377         Use int_mode_flags to match CC_REG.
9378         (*cbranchsi4_btst, *btstsi): New.
9379         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9380         mn10300_split_cbranch.
9381         (*am33_cmpsf): Rename from am33_cmpsf.
9382         (*float_conditional_branch): Rename from float_conditional_branch.
9383         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9384         (zero_extendqisi2): ... here.
9385         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9386         (zero_extendhisi2): ... here.
9387         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9388         (extendqisi2): ... here.
9389         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9390         (extendhisi2): ... here.
9391         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9392         (ashlsi3): ... here.
9393         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9394         (lshrsi3): ... here.
9395         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9396         (ashrsi3): ... here.
9397         (consecutive add peephole): Remove.
9398         * config/mn10300/predicates.md (label_ref_operand): New.
9399         (int_mode_flags): New.
9400         (CCZN_comparison_operator): New.
9401
9402         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9403         (throughput_42_latency_43): New reservation.
9404         (mulsidi3, umulsidi3): New expanders.
9405         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9406         the MDR register to allocation; separately allocate the low and
9407         high parts of the DImode result.
9408         (umulsidi3_internal): Similarly.
9409         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9410         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9411         (udivsi3, umodsi3): Remove.
9412         (udivmodsi4, divmodsi4): New expanders.
9413         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9414         (*divmodsi4): Simiarly.
9415         (ext_internal): New.
9416
9417         * config/mn10300/constraints.md ("z"): New constraint.
9418         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9419         (FIXED_REGISTERS): Don't fix MDR.
9420         (CALL_USED_REGSITERS): Reformat nicely.
9421         (REG_ALLOC_ORDER): Add MDR.
9422         (enum regclass): Add MDR_REGS.
9423         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9424         (IRA_COVER_CLASSES): Add MDR_REGS.
9425         (REGNO_REG_CLASS): Handle MDR_REG.
9426         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9427         (mn10300_register_move_cost): Likewise.
9428         * config/mn10300/mn10300.md (MDR_REG): New.
9429         (*movsi_internal): Handle moves to/from MDR_REGS.
9430
9431         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9432         POST_MODIFY.
9433         (mn10300_secondary_reload): Tidy combination reload classes.
9434         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9435         addresses for AM33.  Allow symbolic offsets for reg+imm.
9436         (mn10300_regno_in_class_p): New.
9437         (mn10300_legitimize_reload_address): New.
9438         * config/mn10300/mn10300.h (enum reg_class): Remove
9439         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9440         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9441         SP_OR_GENERAL_REGS.
9442         (REG_CLASS_NAMES): Update to match.
9443         (REG_CLASS_CONTENTS): Likewise.
9444         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9445         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9446         (REGNO_IN_RANGE_P): Remove.
9447         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9448         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9449         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9450         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9451         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9452         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9453         (REGNO_GENERAL_P): New.
9454         (HAVE_POST_MODIFY_DISP): New.
9455         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9456         (LEGITIMIZE_RELOAD_ADDRESS): New.
9457         * config/mn10300/mn10300-protos.h: Update.
9458
9459         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9460         DATA_REGS for AM33 stack-pointer destination.
9461         (mn10300_preferred_output_reload_class): Likewise.
9462         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9463         into a form appropriate for ...
9464         (TARGET_SECONDARY_RELOAD): New.
9465         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9466         * config/mn10300/mn10300-protos.h: Update.
9467         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9468         reload_insi; use the "A" constraint for the scratch; handle AM33
9469         moves of sp to non-address registers.
9470
9471         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9472         (*movqi_internal): ... here.
9473         (*am33_movhi, *mn10300_movhi): Merge into...
9474         (*movhi_internal): ... here.
9475         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9476         as the source/destination of moves from/to SP.
9477         (movsf): Only allow for AM33-2.
9478         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9479         any integer constant constraint.  Only allow for AM33-2.  Tidy
9480         all of the alternative outputs.
9481         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9482         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9483         for MN103.
9484         (udivsi3, umodsi3): New patterns for MN103 only.
9485
9486 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9487
9488         * doc/tm.texi.in: Spell out that a lack of register class unions
9489         can lead to ICEs.
9490         * doc/tm.texi: Regenerate.
9491
9492 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9493
9494         PR rtl-optimization/47337
9495         * dce.c (check_argument_store): New function.
9496         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9497
9498         PR tree-optimization/47290
9499         * tree-eh.c (infinite_empty_loop_p): New function.
9500         (cleanup_empty_eh): Use it.
9501
9502 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9503
9504         PR target/46997
9505         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9506         (a64_expand_widen_sum): Ditto.
9507         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9508         (vec_extract_evenodd_help): Ditto.
9509         (vec_extract_evenv4hi): Ditto.
9510         (vec_extract_oddv4hi): Ditto.
9511         (vec_extract_evenv2si): Ditto.
9512         (vec_extract_oddv2si): Ditto.
9513         (vec_extract_evenv2sf): Ditto.
9514         (vec_extract_oddv2sf): Ditto.
9515         (vec_pack_trunc_v4hi: Ditto.
9516         (vec_pack_trunc_v2si): Ditto.
9517         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9518         (vec_interleave_highv8qi): Ditto.
9519         (mix1_r): Ditto.
9520         (vec_extract_oddv8qi): Ditto.
9521         (vec_interleave_lowv4hi): Ditto.
9522         (vec_interleave_highv4hi): Ditto.
9523         (vec_interleave_lowv2si): Ditto.
9524         (vec_interleave_highv2si): Ditto.
9525
9526 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9527
9528         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9529         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9530         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9531         (pa_c_mode_for_suffix): New.
9532         (TARGET_EXPAND_BUILTIN): Define.
9533         (TARGET_C_MODE_FOR_SUFFIX): Define.
9534         (pa_builtins): Define.
9535         (pa_init_builtins): Register __float128 type and init new support
9536         builtins.
9537         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9538         * config/pa/quadlib.c (_U_Qfcopysign): New.
9539
9540 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9541
9542         PR middle-end/46894
9543         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9544         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9545         are defined.
9546
9547 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9548
9549         PR tree-optimization/47179
9550         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9551         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9552
9553 2011-01-18  Richard Guenther  <rguenther@suse.de>
9554
9555         PR rtl-optimization/47216
9556         * emit-rtl.c: Include tree-flow.h.
9557         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9558         of replicating it with different semantics.
9559         * Makefile.in (emit-rtl.o): Adjust.
9560
9561 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9562
9563         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9564         (cortex_a9_dp): Handle neon types correctly.
9565
9566 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9567
9568         PR rtl-optimization/47299
9569         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9570         subtarget.  Use normal multiplication if both operands are constants.
9571         * expmed.c (expand_widening_mult): Don't try to optimize constant
9572         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9573         before using it.
9574
9575 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9576
9577         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9578         spacing after 'e.g.', typos, comma, hyphenation.
9579
9580 2011-01-17  Richard Henderson  <rth@redhat.com>
9581
9582         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9583         (rx_restricted_mem_operand): New.
9584         (rx_shift_operand): Use register_operand.
9585         (rx_source_operand, rx_compare_operand): Likewise.
9586         * config/rx/rx.md (addsi3_flags): New expander.
9587         (adddi3): Rewrite as expander.
9588         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9589         (subsi3_flags): New expander.
9590         (subdi3): Rewrite as expander.
9591         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9592
9593         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9594         (rx_init_builtins): Remove sat builtin.
9595         (rx_expand_builtin): Likewise.
9596         * config/rx/rx.md (ssaddsi3): New.
9597         (*sat): Rename from sat.  Represent the CC_REG input.
9598
9599         * config/rx/predicates.md (rshift_operator): New.
9600         * config/rx/rx.c (rx_expand_insv): Remove.
9601         * config/rx/rx-protos.h: Update.
9602         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9603         operand to the canonical position.
9604         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9605         (*bitclr, *bitclr_in_memory): Similarly.
9606         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9607         (insv): Retain the zero_extract in the expansion.
9608
9609         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9610         (bswaphi2, bitinvert, revw): Likewise.
9611
9612         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9613         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9614         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9615         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9616         (bitset, bitset_in_memory): Likewise.
9617         (bitinvert, bitinvert_in_memory): Likewise.
9618         (bitclr, bitclr_in_memory): Likewise.
9619         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9620         (rx_strend, rx_cmpstrn): Likewise.
9621         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9622         (bitop peep2 patterns): Remove.
9623
9624         * config/rx/rx.c (rx_match_ccmode): New.
9625         * config/rx/rx-protos.h: Update.
9626         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9627         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9628         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9629         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9630         (fix_truncsfsi2, floatsisf2): Likewise.
9631         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9632         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9633         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9634         (*subsi3_flags, *xorsi3_flags): New.
9635
9636         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9637
9638         * config/rx/rx.c (rx_print_operand): Remove workaround for
9639         unsplit comparison operations.
9640
9641         * config/rx/rx.md (movsicc): Split after reload.
9642         (*movsicc): Merge *movsieq and *movsine via match_operator.
9643         (*stcc): New pattern.
9644
9645         * config/rx/rx.c (rx_float_compare_mode): Remove.
9646         * config/rx/rx.h (rx_float_compare_mode): Remove.
9647         * config/rx/rx.md (cstoresi4): Split after reload.
9648         (*sccc): New pattern.
9649
9650         * config/rx/predicates.md (label_ref_operand): New.
9651         (rx_z_comparison_operator): New.
9652         (rx_zs_comparison_operator): New.
9653         (rx_fp_comparison_operator): New.
9654         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9655         Validate that the flags are set properly for the comparison.
9656         (rx_gen_cond_branch_template): Remove.
9657         (rx_cc_modes_compatible): Remove.
9658         (mode_from_flags): New.
9659         (flags_from_code): Rename from flags_needed_for_conditional.
9660         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9661         (rx_select_cc_mode): Likewise.
9662         (rx_split_fp_compare): New.
9663         (rx_split_cbranch): New.
9664         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9665         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9666         (*cbranchsf4): Similarly.
9667         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9668         match_operator and rx_split_cbranch.
9669         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9670         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9671         (*cmpsi): Rename from cmpsi.
9672         (*tstsi): Rename from tstsi.
9673         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9674         (*conditional_branch): Rename from conditional_branch.
9675         (*reveresed_conditional_branch): Remove.
9676         (b<code>): Remove expander.
9677         * config/rx/rx-protos.h: Update.
9678
9679         * config/rx/rx.c (rx_compare_redundant): Remove.
9680         * config/rx/rx.md (cmpsi): Don't use it.
9681         * config/rx/rx-protos.h: Update.
9682
9683         * config/rx/rx-modes.def (CC_F): New mode.
9684         * config/rx/rx.c (rx_select_cc_mode): New.
9685         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9686         * config/rx/rx-protos.h: Update.
9687
9688 2011-01-17  Richard Henderson  <rth@redhat.com>
9689
9690         * except.c (dump_eh_tree): Fix stray ; after for statement.
9691
9692 2011-01-17  Richard Guenther  <rguenther@suse.de>
9693
9694         PR tree-optimization/47313
9695         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9696         handling before copying the body.  Properly deal with
9697         by-reference result in SSA form.
9698
9699 2011-01-17  Ian Lance Taylor  <iant@google.com>
9700
9701         PR target/47219
9702         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9703         (struct_value_alias_set): Don't define.
9704         (sparc_option_override): Don't set sparc_sr_alias_set and
9705         struct_value_alias_set.
9706         (save_or_restore_regs): Use gen_frame_mem rather than calling
9707         set_mem_alias_set.
9708         (sparc_struct_value_rtx): Likewise.
9709
9710 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9711
9712         PR target/47318
9713         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9714         (_mm_maskstore_pd): Likewise.
9715         (_mm_maskload_ps): Likewise.
9716         (_mm_maskstore_ps): Likewise.
9717         (_mm256_maskload_pd): Change mask to __m256i.
9718         (_mm256_maskstore_pd): Likewise.
9719         (_mm256_maskload_ps): Likewise.
9720         (_mm256_maskstore_ps): Likewise.
9721
9722         * config/i386/i386-builtin-types.def: Updated.
9723         (ix86_expand_special_args_builtin): Likewise.
9724
9725         * config/i386/i386.c (bdesc_special_args): Update
9726         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9727         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9728         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9729         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9730
9731         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9732         Use <avxpermvecmode> on mask register.
9733         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9734
9735 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9736             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9737             Eric Botcazou  <ebotcazou@adacore.com>
9738
9739         PR target/46655
9740         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9741         if <= USHRT_MAX in 32-bit mode.
9742
9743 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9744
9745         * doc/install.texi (Configuration, Specific): Wrap long
9746         lines in examples.  Allow line wrapping in long options
9747         and URLs where beneficial for PDF output.
9748
9749 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9750
9751         * config/mips/mips.c (mips_classify_symbol): Don't return
9752         SYMBOL_PC_RELATIVE for nonlocal labels.
9753
9754 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9755
9756         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9757
9758 2011-01-15  Jan Hubicka  <jh@suse.cz>
9759
9760         PR tree-optimization/47276
9761         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9762         declarations as needed.
9763
9764 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9765
9766         * common.opt (fdevirtualize): New flag.
9767         * doc/invoke.texi (Option Summary): Document it.
9768         * opts.c (default_options_table): Add devirtualize flag.
9769         * ipa-prop.c (detect_type_change): Return immediately if
9770         devirtualize flag is not set.
9771         (detect_type_change_ssa): Likewise.
9772         (compute_known_type_jump_func): Likewise.
9773         (ipa_analyze_virtual_call_uses): Likewise.
9774
9775 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9776
9777         PR tree-optimization/45934
9778         PR tree-optimization/46302
9779         * ipa-prop.c (type_change_info): New type.
9780         (stmt_may_be_vtbl_ptr_store): New function.
9781         (check_stmt_for_type_change): Likewise.
9782         (detect_type_change): Likewise.
9783         (detect_type_change_ssa): Likewise.
9784         (compute_complex_assign_jump_func): Check for dynamic type change.
9785         (compute_complex_ancestor_jump_func): Likewise.
9786         (compute_known_type_jump_func): Likewise.
9787         (compute_scalar_jump_functions): Likewise.
9788         (ipa_analyze_virtual_call_uses): Likewise.
9789         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9790
9791 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9794         * config/i386/i386.opt (msse5): New Alias.
9795
9796 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9797
9798         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9799         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9800         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9801         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9802
9803 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9804
9805         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9806         -mcpu options.
9807         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9808         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9809         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9810         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9811         Likewise.
9812         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9813
9814 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9815
9816         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9817
9818 2011-01-14  Mike Stump  <mikestump@comcast.net>
9819
9820         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9821         * config/fr30/fr30.md: Likweise
9822         (movsi_push): Likewise.
9823         (movsi_pop): Likewise.
9824         (enter_func): Likewise.
9825         * config/moxie/moxie.md (movsi_push): Likewise.
9826         (movsi_pop): Likewise.
9827
9828 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9829
9830         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9831         %{no_archive} %{exact_version}.
9832         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9833         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9834         %{no_archive} %{exact_version}.
9835         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9836         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9837         * config/mips/vxworks.h: Likewise.
9838
9839 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9840
9841         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9842
9843 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9844
9845         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9846         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9847
9848 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9851         -nodefaultlib.
9852
9853 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9856         for mcpu not cpu.
9857         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9858         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9859         not cpu.
9860         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9861         Don't handle -shlib.
9862
9863 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9864
9865         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9866         (CC1_SPEC): Don't handle -profile.
9867
9868 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9869
9870         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9871         * config/mips/mips.h (CC1_SPEC): Likewise.
9872
9873 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9874
9875         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9876         * config/mips/mips.h (CC1_SPEC): Likewise.
9877
9878 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9879
9880         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9881         * config/m32r/linux.h (LINK_SPEC): Likewise.
9882         * config/mips/linux.h (LINK_SPEC): Likewise.
9883         * config/mips/linux64.h (LINK_SPEC): Likewise.
9884         * config/sparc/linux.h (LINK_SPEC): Likewise.
9885         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9886         LINK_SPEC): Likewise.
9887         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9888
9889 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9890
9891         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9892         %{version:-v}.
9893         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9894
9895 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9896
9897         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9898         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9899
9900 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9901
9902         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9903
9904 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9905
9906         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9907         supports -Bstatic/-Bdynamic.
9908         * configure: Regenerate.
9909
9910 2011-01-14  Jan Hubicka  <jh@suse.cz>
9911             Jack Howarth  <howarth@bromo.med.uc.edu>
9912
9913         PR target/46037
9914         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9915         when checking debug_info_level. Test write_symbols instead of
9916         debug_hooks->var_location when setting flag_var_tracking_uninit.
9917
9918 2011-01-14  Richard Guenther  <rguenther@suse.de>
9919
9920         PR tree-optimization/47179
9921         * target.def (ref_may_alias_errno): New target hook.
9922         * targhooks.h (default_ref_may_alias_errno): Declare.
9923         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9924         (default_ref_may_alias_errno): New function.
9925         * target.h (struct ao_ref_s): Declare.
9926         * tree-ssa-alias.c: Include target.h.
9927         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9928         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9929         (targhooks.o): Likewise.
9930         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9931         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9932
9933 2011-01-14  Richard Guenther  <rguenther@suse.de>
9934
9935         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
9936
9937 2011-01-14  Richard Guenther  <rguenther@suse.de>
9938
9939         PR tree-optimization/47280
9940         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9941         return CFG changes.
9942         (tree_ssa_forward_propagate_single_use_vars): Deal with
9943         CFG changes from associate_plusminus.
9944
9945 2011-01-14  Richard Guenther  <rguenther@suse.de>
9946
9947         PR middle-end/47281
9948         Revert
9949         2011-01-11  Richard Guenther  <rguenther@suse.de>
9950
9951         PR tree-optimization/46076
9952         * tree-ssa.c (useless_type_conversion_p): Conversions from
9953         unprototyped to empty argument list function types are useless.
9954
9955 2011-01-14  Richard Guenther  <rguenther@suse.de>
9956
9957         PR tree-optimization/47286
9958         * tree-ssa-structalias.c (new_var_info): Register variables are global.
9959
9960 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9961
9962         PR middle-end/46823
9963         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9964
9965 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
9966
9967         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9968         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9969         * config/xtensa/xtensa.c (xtensa_libcall_value,
9970         xtensa_function_value_regno_p): New functions.
9971         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9972
9973 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
9974
9975         PR c++/47213
9976         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9977         PE specific hook.
9978         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9979         New function prototype.
9980         * config/i386/winnt.c (i386_pe_assemble_visibility):
9981         Warn only if attribute was specified by user.
9982
9983 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9984
9985         PR target/47251
9986         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9987         floating point.
9988         (floatunsdidf2_fcfidu): Ditto.
9989
9990 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9991
9992         * config/s390/s390.c (print_operand_address): Replace 'error' with
9993         'output_operand_lossage'.
9994         (print_operand): Likewise.
9995
9996 2011-01-13  Jeff Law  <law@redhat.com>
9997
9998         PR rtl-optimization/39077
9999         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10000         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10001         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10002         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10003         * gcse.c (prune_insertions_deletions): New function.
10004         (compute_pre_data): Use it.
10005
10006 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10007
10008         PR debug/PR46973
10009         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10010         static function.
10011         (prune_unused_types_mark): Use it.
10012
10013 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10014
10015         PR rtl-optimization/45352
10016         * sel-sched.c: Update copyright years.
10017         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10018         in the advancing loop when we have issued issue_rate insns.
10019
10020 2011-01-12  Richard Henderson  <rth@redhat.com>
10021
10022         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10023         (TARGET_MD_ASM_CLOBBERS): New.
10024
10025         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10026         (TARGET_DELEGITIMIZE_ADDRESS): New.
10027
10028         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10029         (clzsi2, *bsch): New patterns.
10030
10031         * config/mn10300/mn10300.md (INT): New mode iterator.
10032         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10033
10034         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10035         flag_split_wide_types.
10036
10037         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10038         (mn10300_trampoline_init): Rewrite without a template, an immediate
10039         load and a direct branch.
10040         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10041
10042 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10043
10044         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10045         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10046         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10047         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10048
10049 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10050
10051         PR debug/47209
10052         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10053         of type.
10054
10055 2011-01-12  Jan Hubicka  <jh@suse.cz>
10056
10057         PR driver/47244
10058         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10059         (PLUGIN_COND_CLOSE): New macro.
10060         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10061
10062 2011-01-12  Richard Guenther  <rguenther@suse.de>
10063
10064         PR lto/47259
10065         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10066         register variables in a MEM_REF.
10067
10068 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10069
10070         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10071         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10072         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10073         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10074         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10075         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10076         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10077         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10078         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10079         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10080         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10081         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10082         * config/gnu-user.h: New.  Copied from linux.h.
10083         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10084         GNU_USER_TARGET_STARTFILE_SPEC.
10085         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10086         GNU_USER_TARGET_ENDFILE_SPEC.
10087         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10088         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10089         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10090         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10091         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10092         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10093         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10094         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10095         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10096         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10097         * config/arm/linux-eabi.h (CC1_SPEC): Use
10098         GNU_USER_TARGET_CC1_SPEC.
10099         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10100         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10101         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10102         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10103         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10104         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10105         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10106         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10107
10108 2011-01-12  Richard Guenther  <rguenther@suse.de>
10109
10110         PR other/46946
10111         * doc/invoke.texi (ffast-math): Document it is turned on
10112         with -Ofast.
10113
10114 2011-01-12  Jan Hubicka  <jh@suse.cz>
10115
10116         PR tree-optimization/47233
10117         * opts.c (common_handle_option): Disable ipa-reference with profile
10118         feedback.
10119
10120 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10121
10122         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10123         error message.
10124
10125 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10126
10127         * c-parser.c (c_lex_one_token): Updated and reindented some
10128         comments.  No changes in code.
10129
10130 2011-01-11  Ian Lance Taylor  <iant@google.com>
10131
10132         * godump.c (go_output_var): Don't output the variable if there is
10133         already a type with the same name.
10134
10135 2011-01-11  Ian Lance Taylor  <iant@google.com>
10136
10137         * godump.c (go_format_type): Don't generate float80.
10138
10139 2011-01-11  Richard Henderson  <rth@redhat.com>
10140
10141         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10142         declaration.  Rewrite for both speed and size.
10143         (mn10300_address_cost_1): Remove.
10144         (mn10300_register_move_cost): New.
10145         (mn10300_memory_move_cost): New.
10146         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10147         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10148         extensions, shifts, BSWAP, CLZ.
10149         (mn10300_wide_const_load_uses_clr): Remove.
10150         (TARGET_REGISTER_MOVE_COST): New.
10151         (TARGET_MEMORY_MOVE_COST): New.
10152         * config/mn10300/mn10300-protos.h: Update.
10153         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10154
10155         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10156         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10157         * config/mn10300/mn10300-protos.h: Update.
10158         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10159         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10160         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10161         (*test_int_bitfield, *test_byte_bitfield): Remove.
10162         (*bit_test, *subreg_bit_test): Remove.
10163         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10164
10165         * config/mn10300/constraints.md ("c"): Rename from "A".
10166         ("A", "D"): New constraint letters.
10167         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10168         (fmssf4, fnmasf4, fnmssf4): Likewise.
10169
10170         * config/mn10300/mn10300.md (isa): New attribute.
10171         (enabled): New attribute.
10172
10173         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10174         (abssf2, negsf2): Define only for hardware fp.
10175         (sqrtsf2): Reformat.
10176         (addsf3, subsf3, mulsf3): Merge expander and insn.
10177
10178         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10179         (DEBUGGER_AUTO_OFFSET): Remove.
10180         (DEBUGGER_ARG_OFFSET): Remove.
10181
10182         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10183         Emit register stores with the same offsets as the hardware.
10184         (mn10300_store_multiple_operation): Don't check that the register
10185         save offsets are monotonic.
10186         * config/mn10300/mn10300-protos.h: Update.
10187
10188         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10189
10190         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10191         in terms of the value on the stack, not the MDR register.
10192
10193 2011-01-11  Jan Hubicka  <jh@suse.cz>
10194
10195         PR lto/45721
10196         PR lto/45375
10197         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10198         (symbol_alias_set_destroy, symbol_alias_set_contains,
10199         propagate_aliases_backward): Declare.
10200         * lto-streamer-out.c (struct sets): New sturcture.
10201         (trivally_defined_alias): New function.
10202         (output_alias_pair_p): Rewrite.
10203         (output_unreferenced_globals): Fix output of alias pairs.
10204         (produce_symtab): Likewise.
10205         * ipa.c (function_and_variable_visibility): Set weak alias destination
10206         as needed in lto.
10207         * varasm.c (symbol_alias_set_t): Remove.
10208         (symbol_alias_set_destroy): Export.
10209         (propagate_aliases_forward, propagate_aliases_backward): New functions
10210         based on ...
10211         (compute_visible_aliases): ... this one; remove.
10212         (trivially_visible_alias): New
10213         (trivially_defined_alias): New.
10214         (remove_unreachable_alias_pairs): Rewrite.
10215         (finish_aliases_1): Reorganize code checking if alias is defined.
10216         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10217         in LTO mode.
10218
10219 2011-01-11  Richard Guenther  <rguenther@suse.de>
10220
10221         PR tree-optimization/46076
10222         * tree-ssa.c (useless_type_conversion_p): Conversions from
10223         unprototyped to empty argument list function types are useless.
10224
10225 2011-01-11  Richard Guenther  <rguenther@suse.de>
10226
10227         PR middle-end/45235
10228         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10229         volatile MEMs as MEM_READONLY_P.
10230
10231 2011-01-11  Richard Guenther  <rguenther@suse.de>
10232
10233         PR tree-optimization/47239
10234         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10235
10236 2011-01-11  Jeff Law  <law@redhat.com>
10237
10238         PR tree-optimization/47086
10239         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10240         IVs from statements that might throw.
10241
10242 2011-01-10  Jan Hubicka  <jh@suse.cz>
10243
10244         PR lto/45375
10245         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10246
10247 2011-01-10  Jan Hubicka  <jh@suse.cz>
10248
10249         PR lto/45375
10250         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10251         when correcting profile.
10252
10253 2011-01-10  Jan Hubicka  <jh@suse.cz>
10254
10255         PR lto/46083
10256         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10257         DECL_FINI_PRIORITY.
10258         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10259         Restore DECL_FINI_PRIORITY.
10260
10261 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10262
10263         * doc/gimple.texi: Fix quoting of multi-word return values in
10264         @deftypefn statements.  Ensure presence of return value.  Wrap
10265         overlong @deftypefn lines.
10266         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10267         descriptions of removed functions.
10268         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10269         of multi-word return value in @deftypefn statement.
10270
10271 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10272
10273         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10274         (Conditional Expressions, Logical Operators)
10275         (Statement and operand traversals): Do not indent smallexample
10276         code.  Fix duplicate function argument in example.
10277
10278 2011-01-10  Jeff Law  <law@redhat.com>
10279
10280         PR tree-optimization/47141
10281         * ipa-split.c (split_function): Handle case where we are
10282         returning a value and the return block has a virtual operand phi.
10283
10284 2011-01-10  Jan Hubicka  <jh@suse.cz>
10285
10286         PR tree-optimization/47234
10287         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10288         (pass_feedback_split_functions): Declare.
10289         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10290         tree-profile.
10291         * ipa-split.c (gate_split_functions): Update comments; disable
10292         split-functions for profile_arc_flag and branch_probabilities.
10293         (gate_feedback_split_functions): New function.
10294         (execute_feedback_split_functions): New function.
10295         (pass_feedback_split_functions): New global var.
10296
10297 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10298
10299         PR lto/46760
10300         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10301         calling gimple_call_set_cannot_inline.
10302
10303 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10304
10305         * config/darwin-sections.def: Remove unused section.
10306
10307 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10308
10309         PR c++/47218
10310         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10311
10312 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10313
10314         PR objc/47232
10315         * c-parser.c (c_parser_declaration_or_fndef): Improved
10316         error message.
10317
10318 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10319
10320         * config/i386/winnt.c (i386_pe_start_function): Make sure
10321         to switch back to function's section.
10322
10323 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10324
10325         PR gcc/46902
10326         PR testsuite/46912
10327         * plugin.c: Move include of dlfcn.h from here...
10328         * system.h: ... to here.
10329
10330 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10331
10332         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10333         file name.
10334         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10335         two extra empty pages in PDF output.
10336
10337 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10338
10339         PR objc/47078
10340         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10341         for error recovery purposes behave as if it was not specified so
10342         that the default type is usd.
10343
10344 2011-01-07  Jan Hubicka  <jh@suse.cz>
10345
10346         PR tree-optmization/46469
10347         * ipa.c (function_and_variable_visibility): Clear needed flags on
10348         nodes with external decls; handle weakrefs merging correctly.
10349
10350 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10351
10352         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10353         not false.
10354
10355 2011-01-07  Jan Hubicka  <jh@suse.cz>
10356
10357         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
10358         and no longer claim that gold is required for linker plugin.
10359         * configure: Regenerate.
10360         * gcc.c (PLUGIN_COND): New macro.
10361         (LINK_COMMAND_SPEC): Use it.
10362         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10363         * config.in (HAVE_LTO_PLUGIN): New.
10364         * configure.ac (--with-lto-plugin): New parameter; autodetect
10365         HAVE_LTO_PLUGIN.
10366
10367 2011-01-07  Jan Hubicka  <jh@suse.cz>
10368
10369         PR tree-optimization/46367
10370         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10371         when we can update original.
10372         (cgraph_mark_inline_edge): Sanity check.
10373         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10374
10375 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10376
10377         * config/spu/spu.h (ASM_COMMENT_START): Define.
10378
10379 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10380
10381         PR driver/42445
10382         * gcc.c (%>S): New.
10383         (SWITCH_KEEP_FOR_GCC): Likewise.
10384         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10385         (do_spec_1): Handle "%>".
10386
10387         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10388
10389 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10390
10391         PR target/47201
10392         * config/i386/i386.c (ix86_delegitimize_address): If
10393         simplify_gen_subreg fails, return orig_x.
10394
10395         PR bootstrap/47187
10396         * value-prof.c (gimple_stringop_fixed_value): Handle
10397         lhs of the call properly.
10398
10399 2011-01-07  Jan Hubicka  <jh@suse.cz>
10400
10401         PR lto/45375
10402         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10403
10404 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10405
10406         * target.def (function_switched_text_sections): New hook.
10407         * doc/tm.texi: Regenerated.
10408         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10409         * final.c (default_function_switched_text_sections): New.
10410         (final_scan_insn): Call function_switched_text_sections when a
10411         mid-function section change occurs.
10412         * output.h (default_function_switched_text_sections): Declare.
10413         * config/darwin-protos.h (darwin_function_switched_text_sections):
10414         Likewise.
10415         * config/darwin.c (darwin_function_switched_text_sections): New.
10416         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10417
10418 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10419
10420         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10421         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10422         the secondary code fragment when outputting for DWARF == 2.
10423
10424 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10425
10426         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10427         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10428         Remove.
10429         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10430         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10431
10432 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10433
10434         PR debug/46704
10435         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10436         when it is not empty.
10437
10438 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10439
10440         Bobcat Enablement
10441         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10442         (case ${target}): Add btver1.
10443         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10444         -march=native recognize btver1 processors.
10445         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10446         btver1 def_and_undef
10447         * config/i386/i386.c (struct processor_costs btver1_cost): New
10448         btver1 cost table.
10449         (m_BTVER1): New definition.
10450         (m_AMD_MULTIPLE): Includes m_BTVER1.
10451         (initial_ix86_tune_features): Add btver1 tune.
10452         (processor_target_table): Add btver1 entry.
10453         (static const char *const cpu_names): Add btver1 entry.
10454         (software_prefetching_beneficial_p): Add btver1.
10455         (ix86_option_override_internal): Add btver1 instruction sets.
10456         (ix86_issue_rate): Add btver1.
10457         (ix86_adjust_cost): Add btver1.
10458         * config/i386/i386.h (TARGET_BTVER1): New definition.
10459         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10460         (enum processor_type): Add PROCESSOR_BTVER1.
10461         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10462
10463 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10464
10465         PR target/43309
10466         * config/i386/i386.c (legitimize_tls_address)
10467         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10468         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10469         (tls_initial_exec_64_sun): New pattern.
10470
10471 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10472
10473         * doc/invoke.texi (Overall Options): Improve wording and markup
10474         of the description of -wrapper.
10475
10476 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10477
10478         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10479         rdynamic, threads): New Driver options.
10480
10481 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10482
10483         PR target/38118
10484         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10485         if coming from .tdata.
10486         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10487
10488 2011-01-06  Jan Hubicka  <jh@suse.cz>
10489
10490         PR lto/47188
10491         * collect2.c (main): Do not enable LTOmode when plugin is active.
10492
10493 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10494
10495         PR other/45915
10496         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10497         --version output if supported.
10498         * configure: Regenerate.
10499
10500 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10501
10502         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10503         Driver options.
10504
10505 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10506
10507         PR c/47150
10508         * c-convert.c (convert): When converting a complex expression
10509         other than COMPLEX_EXPR to a different complex type, ensure
10510         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10511         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10512         when converting COMPLEX_TYPE.
10513
10514 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10515
10516         PR tree-optimization/47139
10517         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10518         only the last reduction value is used outside the loop.  Update
10519         documentation.
10520
10521 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10522
10523         * config/rtems.opt: New.
10524         * config.gcc (*-*-rtems*): Use rtems.opt.
10525
10526 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10527
10528         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10529         processors do not support 3DNow instructions.
10530
10531 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10532
10533         * config/spu/spu.c (spu_option_override): Set parameter
10534         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10535
10536 2011-01-05  Jan Hubicka  <jh@suse.cz>
10537
10538         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10539         at the command line.
10540
10541 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10542
10543         PR lto/47162
10544         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10545         deltas on streamed outgoing edges.
10546         (output_node_opt_summary): Output info for outgoing edges only when
10547         the node is in new parameter set.
10548         (output_cgraph_opt_summary): New parameter set, passed to the two
10549         aforementioned functions.  Update its forward declaration and its
10550         callee too.
10551
10552 2011-01-05  Tom Tromey  <tromey@redhat.com>
10553
10554         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10555         operator to c_finish_omp_atomic.
10556         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10557         (build_unary_op): Update.
10558         (build_modify_expr): Update.
10559         (build_asm_expr): Update.
10560
10561 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10562
10563         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10564         newly inserted insns.
10565         (pad_bb): Likewise.
10566         (spu_emit_branch_hint): Likewise.
10567         (insert_hbrp_for_ilb_runout): Likewise.
10568         (spu_machine_dependent_reorg): Call df_finish_pass after
10569         schedule_insns returns.
10570
10571 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10572
10573         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10574
10575 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10576
10577         PR tree-optimization/47005
10578         * tree-sra.c (struct access): Add 'non_addressable' bit.
10579         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10580         (decide_one_param_reduction): Return 0 if the parameter is passed by
10581         reference and one of the accesses in the group is non_addressable.
10582
10583 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10584
10585         PR tree-optimization/47056
10586         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10587         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10588         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10589
10590 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10591
10592         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10593         initializer.  Skip view conversions from aggregate types.
10594
10595 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10596
10597         PR bootstrap/47055
10598         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10599
10600 2011-01-04  Philipp Thomas  <pth@suse.de>
10601
10602         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10603         obvious typo.
10604
10605 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10606
10607         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10608         on empty epilogue sequences.
10609
10610 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10611
10612         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10613         non-static): New Driver options.
10614
10615 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10616
10617         PR driver/47137
10618         * gcc.c (default_compilers[]): Set combinable field to 0
10619         for all assembly languages.
10620
10621 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10622
10623         * config/mips/loongson3a.md: New file.
10624         * config/mips/mips.md: Include loongson3a.md.
10625         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10626         TUNE_LOONGSON_3A.
10627
10628 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10629
10630         PR middle-end/47017
10631         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10632         instead of convert_memory_address_addr_space on the base expression.
10633
10634 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10635
10636         * config/spu/spu.c (spu_option_override): Update error text
10637         for bad -march= / -mtune= values.
10638
10639 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10640
10641         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10642         if branch-hint optimization will be performed.
10643
10644 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10645
10646         PR tree-optimization/47148
10647         * ipa-split.c (split_function): Convert arguments to
10648         DECL_ARG_TYPE if possible.
10649
10650         PR tree-optimization/47155
10651         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10652         when computing uns.
10653
10654         PR rtl-optimization/47157
10655         * combine.c (try_combine): If undobuf.other_insn becomes
10656         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10657         and set *new_direct_jump_p too.
10658
10659 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10660
10661         PR tree-optimization/47021
10662         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10663
10664 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10665
10666         * gcc.c (process_command): Update copyright notice dates.
10667         * gcov.c (print_version): Likewise.
10668         * gcov-dump.c (print_version): Likewise.
10669         * mips-tfile.c (main): Likewise.
10670         * mips-tdump.c (main): Likewise.
10671
10672 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10673
10674         PR tree-optimization/46801
10675         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10676         aggregate fields start at byte boundary instead of the bit-field flag.
10677
10678 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10679
10680         PR driver/47137
10681         * gcc.c (main): Revert revision 168407.
10682
10683 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10684
10685         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10686
10687 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10688
10689         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10690         vector optab to expand vector/scalar shift, update gimple to vector.
10691
10692 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10693
10694         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10695         a thunk.
10696
10697 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10698
10699         PR tree-optimization/46984
10700         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10701         HOST_WIDE_INT.
10702         (cgraph_create_indirect_edge): Fixed line length.
10703         (cgraph_indirect_call_info): Declare.
10704         (cgraph_make_edge_direct) Update declaration.
10705         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10706         (cgraph_create_indirect_edge): Use it.
10707         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10708         callees.
10709         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10710         the new thunk_delta representation.
10711         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10712         HOST_WIDE_INT.
10713         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10714         (ipa_read_indirect_edge_info): Likewise.
10715         * lto-cgraph.c (output_edge_opt_summary): New function.
10716         (output_node_opt_summary): Call it on all outgoing edges.
10717         (input_edge_opt_summary): New function.
10718         (input_node_opt_summary): Call it on all outgoing edges.
10719
10720 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10721
10722         PR driver/47137
10723         * gcc.c (main): Don't check have_o when settting combine_inputs.
10724
10725 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10726
10727         * regrename.c: Add general comment describing the pass.
10728         (struct du_head): Remove 'length' field.
10729         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10730         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10731         Force renaming to the preferred class (if any) in the first pass and do
10732         not consider registers that belong to it in the second pass.
10733         (create_new_chain): Do not set 'length' field.
10734         (scan_rtx_reg): Likewise.
10735
10736 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10737
10738         PR tree-optimization/47140
10739         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10740         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10741         to bit_value_binop.
10742
10743         PR rtl-optimization/47028
10744         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10745         parm_birth_insn instead of at the beginning of first bb.
10746
10747 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10748
10749         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10750         Remove the word "see" before "@pxref".
10751         * doc/rtl.texi: Remove the word "see" before "@pxref".
10752
10753 2011-01-01  Jan Hubicka  <jh@suse.cz>
10754
10755         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10756         memory.
10757
10758 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10759
10760         PR target/38662
10761         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10762
10763 \f
10764 Copyright (C) 2011 Free Software Foundation, Inc.
10765
10766 Copying and distribution of this file, with or without modification,
10767 are permitted in any medium without royalty provided the copyright
10768 notice and this notice are preserved.